class NetworkFirewallPolicies extends Resource (View source)

The "networkFirewallPolicies" collection of methods.

Typical usage is:

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

Methods

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

Inserts an association for the specified firewall policy.

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

Inserts a rule into a firewall policy. (networkFirewallPolicies.addRule)

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

Copies rules to the specified firewall policy.

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

Deletes the specified policy. (networkFirewallPolicies.delete)

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

Returns the specified network firewall policy. (networkFirewallPolicies.get)

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

Gets an association with the specified name.

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

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

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

Gets a rule of the specified priority. (networkFirewallPolicies.getRule)

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

Creates a new policy in the specified project using the data included in the request. (networkFirewallPolicies.insert)

listNetworkFirewallPolicies(string $project, array $optParams = [])

Lists all the policies that have been configured for the specified project.

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

Patches the specified policy with the data included in the request.

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

Patches a rule of the specified priority. (networkFirewallPolicies.patchRule)

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

Removes an association for the specified firewall policy.

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

Deletes a rule of the specified priority.

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

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

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

Returns permissions that a caller has on the specified resource.

Details

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

Inserts an association for the specified firewall policy.

(networkFirewallPolicies.addAssociation)

Parameters

string $project

Project ID for 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 $firewallPolicy, FirewallPolicyRule $postBody, array $optParams = [])

Inserts a rule into a firewall policy. (networkFirewallPolicies.addRule)

Parameters

string $project

Project ID for 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 $firewallPolicy, array $optParams = [])

Copies rules to the specified firewall policy.

(networkFirewallPolicies.cloneRules)

Parameters

string $project

Project ID for 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 $firewallPolicy, array $optParams = [])

Deletes the specified policy. (networkFirewallPolicies.delete)

Parameters

string $project

Project ID for 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 $firewallPolicy, array $optParams = [])

Returns the specified network firewall policy. (networkFirewallPolicies.get)

Parameters

string $project

Project ID for 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 $firewallPolicy, array $optParams = [])

Gets an association with the specified name.

(networkFirewallPolicies.getAssociation)

Parameters

string $project

Project ID for this request.

string $firewallPolicy

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

array $optParams

Optional parameters.

Return Value

FirewallPolicyAssociation

Exceptions

Exception

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

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

Parameters

string $project

Project ID 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 $firewallPolicy, array $optParams = [])

Gets a rule of the specified priority. (networkFirewallPolicies.getRule)

Parameters

string $project

Project ID for 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, FirewallPolicy $postBody, array $optParams = [])

Creates a new policy in the specified project using the data included in the request. (networkFirewallPolicies.insert)

Parameters

string $project

Project ID for this request.

FirewallPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Lists all the policies that have been configured for the specified project.

(networkFirewallPolicies.listNetworkFirewallPolicies)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

FirewallPolicyList

Exceptions

Exception

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

Patches the specified policy with the data included in the request.

(networkFirewallPolicies.patch)

Parameters

string $project

Project ID for 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 $firewallPolicy, FirewallPolicyRule $postBody, array $optParams = [])

Patches a rule of the specified priority. (networkFirewallPolicies.patchRule)

Parameters

string $project

Project ID for 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 $firewallPolicy, array $optParams = [])

Removes an association for the specified firewall policy.

(networkFirewallPolicies.removeAssociation)

Parameters

string $project

Project ID for 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 $firewallPolicy, array $optParams = [])

Deletes a rule of the specified priority.

(networkFirewallPolicies.removeRule)

Parameters

string $project

Project ID for 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 $resource, GlobalSetPolicyRequest $postBody, array $optParams = [])

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

Parameters

string $project

Project ID for this request.

string $resource

Name or id of the resource for this request.

GlobalSetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

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

Returns permissions that a caller has on the specified resource.

(networkFirewallPolicies.testIamPermissions)

Parameters

string $project

Project ID 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