RegionSecurityPolicies
class RegionSecurityPolicies extends Resource (View source)
The "regionSecurityPolicies" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$regionSecurityPolicies = $computeService->regionSecurityPolicies;
Methods
Inserts a rule into a security policy. (regionSecurityPolicies.addRule)
Deletes the specified policy. (regionSecurityPolicies.delete)
List all of the ordered rules present in a single specified policy.
Gets a rule at the specified priority. (regionSecurityPolicies.getRule)
Creates a new policy in the specified project using the data included in the request. (regionSecurityPolicies.insert)
List all the policies that have been configured for the specified project and region. (regionSecurityPolicies.listRegionSecurityPolicies)
Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
Deletes a rule at the specified priority. (regionSecurityPolicies.removeRule)
Details
Operation
addRule(string $project, string $region, string $securityPolicy, SecurityPolicyRule $postBody, array $optParams = [])
Inserts a rule into a security policy. (regionSecurityPolicies.addRule)
Operation
delete(string $project, string $region, string $securityPolicy, array $optParams = [])
Deletes the specified policy. (regionSecurityPolicies.delete)
SecurityPolicy
get(string $project, string $region, string $securityPolicy, array $optParams = [])
List all of the ordered rules present in a single specified policy.
(regionSecurityPolicies.get)
SecurityPolicyRule
getRule(string $project, string $region, string $securityPolicy, array $optParams = [])
Gets a rule at the specified priority. (regionSecurityPolicies.getRule)
Operation
insert(string $project, string $region, SecurityPolicy $postBody, array $optParams = [])
Creates a new policy in the specified project using the data included in the request. (regionSecurityPolicies.insert)
SecurityPolicyList
listRegionSecurityPolicies(string $project, string $region, array $optParams = [])
List all the policies that have been configured for the specified project and region. (regionSecurityPolicies.listRegionSecurityPolicies)
Operation
patch(string $project, string $region, string $securityPolicy, SecurityPolicy $postBody, array $optParams = [])
Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
(regionSecurityPolicies.patch)
Operation
patchRule(string $project, string $region, string $securityPolicy, SecurityPolicyRule $postBody, array $optParams = [])
Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
(regionSecurityPolicies.patchRule)
Operation
removeRule(string $project, string $region, string $securityPolicy, array $optParams = [])
Deletes a rule at the specified priority. (regionSecurityPolicies.removeRule)