| Modifier and Type | Class and Description | 
|---|---|
class  | 
Compute.SecurityPolicies.AddRule  | 
class  | 
Compute.SecurityPolicies.Delete  | 
class  | 
Compute.SecurityPolicies.Get  | 
class  | 
Compute.SecurityPolicies.GetRule  | 
class  | 
Compute.SecurityPolicies.Insert  | 
class  | 
Compute.SecurityPolicies.List  | 
class  | 
Compute.SecurityPolicies.ListPreconfiguredExpressionSets  | 
class  | 
Compute.SecurityPolicies.Patch  | 
class  | 
Compute.SecurityPolicies.PatchRule  | 
class  | 
Compute.SecurityPolicies.RemoveRule  | 
class  | 
Compute.SecurityPolicies.SetLabels  | 
class  | 
Compute.SecurityPolicies.TestIamPermissions  | 
| Constructor and Description | 
|---|
SecurityPolicies()  | 
| Modifier and Type | Method and Description | 
|---|---|
Compute.SecurityPolicies.AddRule | 
addRule(String project,
       String securityPolicy,
       SecurityPolicyRule content)
Inserts a rule into a security policy. 
 | 
Compute.SecurityPolicies.Delete | 
delete(String project,
      String securityPolicy)
Deletes the specified policy. 
 | 
Compute.SecurityPolicies.Get | 
get(String project,
   String securityPolicy)
List all of the ordered rules present in a single specified policy. 
 | 
Compute.SecurityPolicies.GetRule | 
getRule(String project,
       String securityPolicy)
Gets a rule at the specified priority. 
 | 
Compute.SecurityPolicies.Insert | 
insert(String project,
      SecurityPolicy content)
Creates a new policy in the specified project using the data included in the request. 
 | 
Compute.SecurityPolicies.List | 
list(String project)
List all the policies that have been configured for the specified project. 
 | 
Compute.SecurityPolicies.ListPreconfiguredExpressionSets | 
listPreconfiguredExpressionSets(String project)
Gets the current list of preconfigured Web Application Firewall (WAF) expressions. 
 | 
Compute.SecurityPolicies.Patch | 
patch(String project,
     String securityPolicy,
     SecurityPolicy content)
Patches the specified policy with the data included in the request. 
 | 
Compute.SecurityPolicies.PatchRule | 
patchRule(String project,
         String securityPolicy,
         SecurityPolicyRule content)
Patches a rule at the specified priority. 
 | 
Compute.SecurityPolicies.RemoveRule | 
removeRule(String project,
          String securityPolicy)
Deletes a rule at the specified priority. 
 | 
Compute.SecurityPolicies.SetLabels | 
setLabels(String project,
         String resource,
         GlobalSetLabelsRequest content)
Sets the labels on a security policy. 
 | 
Compute.SecurityPolicies.TestIamPermissions | 
testIamPermissions(String project,
                  String resource,
                  TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource. 
 | 
public Compute.SecurityPolicies.AddRule addRule(String project, String securityPolicy, SecurityPolicyRule content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.securityPolicy - Name of the security policy to update.content - the SecurityPolicyRuleIOExceptionpublic Compute.SecurityPolicies.Delete delete(String project, String securityPolicy) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.securityPolicy - Name of the security policy to delete.IOExceptionpublic Compute.SecurityPolicies.Get get(String project, String securityPolicy) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.securityPolicy - Name of the security policy to get.IOExceptionpublic Compute.SecurityPolicies.GetRule getRule(String project, String securityPolicy) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.securityPolicy - Name of the security policy to which the queried rule belongs.IOExceptionpublic Compute.SecurityPolicies.Insert insert(String project, SecurityPolicy content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.content - the SecurityPolicyIOExceptionpublic Compute.SecurityPolicies.List list(String project) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.IOExceptionpublic Compute.SecurityPolicies.ListPreconfiguredExpressionSets listPreconfiguredExpressionSets(String project) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the
 remote operation.project - Project ID for this request.IOExceptionpublic Compute.SecurityPolicies.Patch patch(String project, String securityPolicy, SecurityPolicy content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.securityPolicy - Name of the security policy to update.content - the SecurityPolicyIOExceptionpublic Compute.SecurityPolicies.PatchRule patchRule(String project, String securityPolicy, SecurityPolicyRule content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.securityPolicy - Name of the security policy to update.content - the SecurityPolicyRuleIOExceptionpublic Compute.SecurityPolicies.RemoveRule removeRule(String project, String securityPolicy) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.securityPolicy - Name of the security policy to update.IOExceptionpublic Compute.SecurityPolicies.SetLabels setLabels(String project, String resource, GlobalSetLabelsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.resource - Name or id of the resource for this request.content - the GlobalSetLabelsRequestIOExceptionpublic Compute.SecurityPolicies.TestIamPermissions testIamPermissions(String project, String resource, TestPermissionsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Project ID for this request.resource - Name or id of the resource for this request.content - the TestPermissionsRequestIOExceptionCopyright © 2011–2020 Google. All rights reserved.