class RegionSecurityPolicies extends Resource (View source)

The "regionSecurityPolicies" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $regionSecurityPolicies = $computeService->regionSecurityPolicies;

Methods

addRule(string $project, string $region, string $securityPolicy, SecurityPolicyRule $postBody, array $optParams = [])

Inserts a rule into a security policy. (regionSecurityPolicies.addRule)

delete(string $project, string $region, string $securityPolicy, array $optParams = [])

Deletes the specified policy. (regionSecurityPolicies.delete)

get(string $project, string $region, string $securityPolicy, array $optParams = [])

List all of the ordered rules present in a single specified policy.

getRule(string $project, string $region, string $securityPolicy, array $optParams = [])

Gets a rule at the specified priority. (regionSecurityPolicies.getRule)

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)

listRegionSecurityPolicies(string $project, string $region, array $optParams = [])

List all the policies that have been configured for the specified project and region. (regionSecurityPolicies.listRegionSecurityPolicies)

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.

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.

removeRule(string $project, string $region, string $securityPolicy, array $optParams = [])

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)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $securityPolicy

Name of the security policy to update.

SecurityPolicyRule $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $project, string $region, string $securityPolicy, array $optParams = [])

Deletes the specified policy. (regionSecurityPolicies.delete)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $securityPolicy

Name of the security policy to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

SecurityPolicy get(string $project, string $region, string $securityPolicy, array $optParams = [])

List all of the ordered rules present in a single specified policy.

(regionSecurityPolicies.get)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $securityPolicy

Name of the security policy to get.

array $optParams

Optional parameters.

Return Value

SecurityPolicy

Exceptions

Exception

SecurityPolicyRule getRule(string $project, string $region, string $securityPolicy, array $optParams = [])

Gets a rule at the specified priority. (regionSecurityPolicies.getRule)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $securityPolicy

Name of the security policy to which the queried rule belongs.

array $optParams

Optional parameters.

Return Value

SecurityPolicyRule

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

SecurityPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

SecurityPolicyList listRegionSecurityPolicies(string $project, string $region, array $optParams = [])

List all the policies that have been configured for the specified project and region. (regionSecurityPolicies.listRegionSecurityPolicies)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

array $optParams

Optional parameters.

Return Value

SecurityPolicyList

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $securityPolicy

Name of the security policy to update.

SecurityPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $securityPolicy

Name of the security policy to update.

SecurityPolicyRule $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation removeRule(string $project, string $region, string $securityPolicy, array $optParams = [])

Deletes a rule at the specified priority. (regionSecurityPolicies.removeRule)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $securityPolicy

Name of the security policy to update.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception