code: @BetaApi
    public final Operation removeRuleSecurityPolicy(
        Integer priority, ProjectGlobalSecurityPolicyName securityPolicy) {
  
      RemoveRuleSecurityPolicyHttpRequest request =
          RemoveRuleSecurityPolicyHttpRequest.newBuilder()
              .setPriority(priority)
              .setSecurityPolicy(securityPolicy == null ? null : securityPolicy.toString())
              .build();
      return removeRuleSecurityPolicy(request);
    }
docs: Deletes a rule at the specified priority.
  
  <p>Sample code:
  
  <pre><code>
  try (SecurityPolicyClient securityPolicyClient = SecurityPolicyClient.create()) {
  Integer priority = 0;
  ProjectGlobalSecurityPolicyName securityPolicy = ProjectGlobalSecurityPolicyName.of("[PROJECT]", "[SECURITY_POLICY]");
  Operation response = securityPolicyClient.removeRuleSecurityPolicy(priority, securityPolicy);
  }
  </code></pre>
  
  @param priority The priority of the rule to remove from the security policy.
  @param securityPolicy Name of the security policy to update.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails