@BetaApi
  public final Operation insertGlobalForwardingRule(
      ProjectName project, ForwardingRule forwardingRuleResource) {

    InsertGlobalForwardingRuleHttpRequest request =
        InsertGlobalForwardingRuleHttpRequest.newBuilder()
            .setProject(project == null ? null : project.toString())
            .setForwardingRuleResource(forwardingRuleResource)
            .build();
    return insertGlobalForwardingRule(request);
  }
@ BetaApi public final Operation insertGlobalForwardingRule ( ProjectName project , ForwardingRule forwardingRuleResource ) { InsertGlobalForwardingRuleHttpRequest request = InsertGlobalForwardingRuleHttpRequest . newBuilder ( ) . setProject ( project == null ? null : project . toString ( ) ) . setForwardingRuleResource ( forwardingRuleResource ) . build ( ) ; return insertGlobalForwardingRule ( request ) ; }
Creates a GlobalForwardingRule resource in the specified project using the data included in the
request.

<p>Sample code:

<pre><code>
try (GlobalForwardingRuleClient globalForwardingRuleClient = GlobalForwardingRuleClient.create()) {
ProjectName project = ProjectName.of("[PROJECT]");
ForwardingRule forwardingRuleResource = ForwardingRule.newBuilder().build();
Operation response = globalForwardingRuleClient.insertGlobalForwardingRule(project, forwardingRuleResource);
}
</code></pre>

@param project Project ID for 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