@BetaApi
  public final Operation insertFirewall(ProjectName project, Firewall firewallResource) {

    InsertFirewallHttpRequest request =
        InsertFirewallHttpRequest.newBuilder()
            .setProject(project == null ? null : project.toString())
            .setFirewallResource(firewallResource)
            .build();
    return insertFirewall(request);
  }
@ BetaApi public final Operation insertFirewall ( ProjectName project , Firewall firewallResource ) { InsertFirewallHttpRequest request = InsertFirewallHttpRequest . newBuilder ( ) . setProject ( project == null ? null : project . toString ( ) ) . setFirewallResource ( firewallResource ) . build ( ) ; return insertFirewall ( request ) ; }
Creates a firewall rule in the specified project using the data included in the request.

<p>Sample code:

<pre><code>
try (FirewallClient firewallClient = FirewallClient.create()) {
ProjectName project = ProjectName.of("[PROJECT]");
Firewall firewallResource = Firewall.newBuilder().build();
Operation response = firewallClient.insertFirewall(project, firewallResource);
}
</code></pre>

@param project Project ID for this request.
@param firewallResource Represents a Firewall resource.
@throws com.google.api.gax.rpc.ApiException if the remote call fails