| Package | Description | 
|---|---|
| com.google.api.services.compute | |
| com.google.api.services.compute.model | 
| Modifier and Type | Method and Description | 
|---|---|
| Compute.SecurityPolicies.AddRule | Compute.SecurityPolicies. addRule(String project,
       String securityPolicy,
       SecurityPolicyRule content)Inserts a rule into a security policy. | 
| Compute.SecurityPolicies.PatchRule | Compute.SecurityPolicies. patchRule(String project,
         String securityPolicy,
         SecurityPolicyRule content)Patches a rule at the specified priority. | 
| Constructor and Description | 
|---|
| AddRule(String project,
       String securityPolicy,
       SecurityPolicyRule content)Inserts a rule into a security policy. | 
| PatchRule(String project,
         String securityPolicy,
         SecurityPolicyRule content)Patches a rule at the specified priority. | 
| Modifier and Type | Method and Description | 
|---|---|
| SecurityPolicyRule | SecurityPolicyRule. clone() | 
| SecurityPolicyRule | SecurityPolicyRule. set(String fieldName,
   Object value) | 
| SecurityPolicyRule | SecurityPolicyRule. setAction(String action)The Action to perform when the client connection triggers the rule. | 
| SecurityPolicyRule | SecurityPolicyRule. setDescription(String description)An optional description of this resource. | 
| SecurityPolicyRule | SecurityPolicyRule. setKind(String kind)[Output only] Type of the resource. | 
| SecurityPolicyRule | SecurityPolicyRule. setMatch(SecurityPolicyRuleMatcher match)A match condition that incoming traffic is evaluated against. | 
| SecurityPolicyRule | SecurityPolicyRule. setPreview(Boolean preview)If set to true, the specified action is not enforced. | 
| SecurityPolicyRule | SecurityPolicyRule. setPriority(Integer priority)An integer indicating the priority of a rule in the list. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<SecurityPolicyRule> | SecurityPolicy. getRules()A list of rules that belong to this policy. | 
| Modifier and Type | Method and Description | 
|---|---|
| SecurityPolicy | SecurityPolicy. setRules(List<SecurityPolicyRule> rules)A list of rules that belong to this policy. | 
Copyright © 2011–2021 Google. All rights reserved.