class RegionNetworkFirewallPolicies extends Resource (View source)

The "regionNetworkFirewallPolicies" collection of methods.

Typical usage is:

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

Methods

addAssociation(string $project, string $region, string $firewallPolicy, FirewallPolicyAssociation $postBody, array $optParams = [])

Inserts an association for the specified network firewall policy.

addRule(string $project, string $region, string $firewallPolicy, FirewallPolicyRule $postBody, array $optParams = [])

Inserts a rule into a network firewall policy.

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

Copies rules to the specified network firewall policy.

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

Deletes the specified network firewall policy.

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

Returns the specified network firewall policy.

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

Gets an association with the specified name.

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

Returns the effective firewalls on a given network.

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

Gets the access control policy for a resource. May be empty if no such policy or resource exists. (regionNetworkFirewallPolicies.getIamPolicy)

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

Gets a rule of the specified priority.

insert(string $project, string $region, FirewallPolicy $postBody, array $optParams = [])

Creates a new network firewall policy in the specified project and region.

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

Lists all the network firewall policies that have been configured for the specified project in the given region.

patch(string $project, string $region, string $firewallPolicy, FirewallPolicy $postBody, array $optParams = [])

Patches the specified network firewall policy.

patchRule(string $project, string $region, string $firewallPolicy, FirewallPolicyRule $postBody, array $optParams = [])

Patches a rule of the specified priority.

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

Removes an association for the specified network firewall policy.

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

Deletes a rule of the specified priority.

setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (regionNetworkFirewallPolicies.setIamPolicy)

testIamPermissions(string $project, string $region, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

Details

Operation addAssociation(string $project, string $region, string $firewallPolicy, FirewallPolicyAssociation $postBody, array $optParams = [])

Inserts an association for the specified network firewall policy.

(regionNetworkFirewallPolicies.addAssociation)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

Name of the firewall policy to update.

FirewallPolicyAssociation $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation addRule(string $project, string $region, string $firewallPolicy, FirewallPolicyRule $postBody, array $optParams = [])

Inserts a rule into a network firewall policy.

(regionNetworkFirewallPolicies.addRule)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

Name of the firewall policy to update.

FirewallPolicyRule $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation cloneRules(string $project, string $region, string $firewallPolicy, array $optParams = [])

Copies rules to the specified network firewall policy.

(regionNetworkFirewallPolicies.cloneRules)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

Name of the firewall policy to update.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes the specified network firewall policy.

(regionNetworkFirewallPolicies.delete)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

Name of the firewall policy to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns the specified network firewall policy.

(regionNetworkFirewallPolicies.get)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

Name of the firewall policy to get.

array $optParams

Optional parameters.

Return Value

FirewallPolicy

Exceptions

Exception

FirewallPolicyAssociation getAssociation(string $project, string $region, string $firewallPolicy, array $optParams = [])

Gets an association with the specified name.

(regionNetworkFirewallPolicies.getAssociation)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

Name of the firewall policy to which the queried association belongs.

array $optParams

Optional parameters.

Return Value

FirewallPolicyAssociation

Exceptions

Exception

RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse getEffectiveFirewalls(string $project, string $region, string $network, array $optParams = [])

Returns the effective firewalls on a given network.

(regionNetworkFirewallPolicies.getEffectiveFirewalls)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $network

Network reference

array $optParams

Optional parameters.

Return Value

RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse

Exceptions

Exception

Policy getIamPolicy(string $project, string $region, string $resource, array $optParams = [])

Gets the access control policy for a resource. May be empty if no such policy or resource exists. (regionNetworkFirewallPolicies.getIamPolicy)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

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

Gets a rule of the specified priority.

(regionNetworkFirewallPolicies.getRule)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

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

array $optParams

Optional parameters.

Return Value

FirewallPolicyRule

Exceptions

Exception

Operation insert(string $project, string $region, FirewallPolicy $postBody, array $optParams = [])

Creates a new network firewall policy in the specified project and region.

(regionNetworkFirewallPolicies.insert)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

FirewallPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Lists all the network firewall policies that have been configured for the specified project in the given region.

(regionNetworkFirewallPolicies.listRegionNetworkFirewallPolicies)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

array $optParams

Optional parameters.

Return Value

FirewallPolicyList

Exceptions

Exception

Operation patch(string $project, string $region, string $firewallPolicy, FirewallPolicy $postBody, array $optParams = [])

Patches the specified network firewall policy.

(regionNetworkFirewallPolicies.patch)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

Name of the firewall policy to update.

FirewallPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation patchRule(string $project, string $region, string $firewallPolicy, FirewallPolicyRule $postBody, array $optParams = [])

Patches a rule of the specified priority.

(regionNetworkFirewallPolicies.patchRule)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

Name of the firewall policy to update.

FirewallPolicyRule $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation removeAssociation(string $project, string $region, string $firewallPolicy, array $optParams = [])

Removes an association for the specified network firewall policy.

(regionNetworkFirewallPolicies.removeAssociation)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

Name of the firewall policy to update.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a rule of the specified priority.

(regionNetworkFirewallPolicies.removeRule)

Parameters

string $project

Project ID for this request.

string $region

Name of the region scoping this request.

string $firewallPolicy

Name of the firewall policy to update.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Policy setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (regionNetworkFirewallPolicies.setIamPolicy)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

RegionSetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestPermissionsResponse testIamPermissions(string $project, string $region, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

(regionNetworkFirewallPolicies.testIamPermissions)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

TestPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestPermissionsResponse

Exceptions

Exception