@BetaApi
  public final Operation insertSecurityPolicy(
      String project, SecurityPolicy securityPolicyResource) {

    InsertSecurityPolicyHttpRequest request =
        InsertSecurityPolicyHttpRequest.newBuilder()
            .setProject(project)
            .setSecurityPolicyResource(securityPolicyResource)
            .build();
    return insertSecurityPolicy(request);
  }
@ BetaApi public final Operation insertSecurityPolicy ( String project , SecurityPolicy securityPolicyResource ) { InsertSecurityPolicyHttpRequest request = InsertSecurityPolicyHttpRequest . newBuilder ( ) . setProject ( project ) . setSecurityPolicyResource ( securityPolicyResource ) . build ( ) ; return insertSecurityPolicy ( request ) ; }
Creates a new policy in the specified project using the data included in the request.

<p>Sample code:

<pre><code>
try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
ProjectName project = ProjectName.of("[PROJECT]");
SecurityPolicy securityPolicyResource = SecurityPolicy.newBuilder().build();
Operation response = securityPolicyClient.insertSecurityPolicy(project.toString(), securityPolicyResource);
}
</code></pre>

@param project Project ID for this request.
@param securityPolicyResource A security policy is comprised of one or more rules. It can also
be associated with one or more 'targets'. (== resource_for v1.securityPolicies ==) (==
resource_for beta.securityPolicies ==)
@throws com.google.api.gax.rpc.ApiException if the remote call fails