@BetaApi
  public final Operation insertForwardingRule(
      ProjectRegionName region, ForwardingRule forwardingRuleResource) {

    InsertForwardingRuleHttpRequest request =
        InsertForwardingRuleHttpRequest.newBuilder()
            .setRegion(region == null ? null : region.toString())
            .setForwardingRuleResource(forwardingRuleResource)
            .build();
    return insertForwardingRule(request);
  }
@ BetaApi public final Operation insertForwardingRule ( ProjectRegionName region , ForwardingRule forwardingRuleResource ) { InsertForwardingRuleHttpRequest request = InsertForwardingRuleHttpRequest . newBuilder ( ) . setRegion ( region == null ? null : region . toString ( ) ) . setForwardingRuleResource ( forwardingRuleResource ) . build ( ) ; return insertForwardingRule ( request ) ; }
Creates a ForwardingRule resource in the specified project and region using the data included
in the request.

<p>Sample code:

<pre><code>
try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build();
Operation response = forwardingRuleClient.insertForwardingRule(region, forwardingRuleResource);
}
</code></pre>

@param region Name of the region scoping this request.
@param forwardingRuleResource A ForwardingRule resource. A ForwardingRule resource specifies
which pool of target virtual machines to forward a packet to if it matches the given
[IPAddress, IPProtocol, ports] tuple. (== resource_for beta.forwardingRules ==) (==
resource_for v1.forwardingRules ==) (== resource_for beta.globalForwardingRules ==) (==
resource_for v1.globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==)
(== resource_for v1.regionForwardingRules ==)
@throws com.google.api.gax.rpc.ApiException if the remote call fails