class ProjectsFirewallpolicies extends Resource (View source)

The "firewallpolicies" collection of methods.

Typical usage is:

 $recaptchaenterpriseService = new Google\Service\RecaptchaEnterprise(...);
 $firewallpolicies = $recaptchaenterpriseService->projects_firewallpolicies;

Methods

create(string $parent, GoogleCloudRecaptchaenterpriseV1FirewallPolicy $postBody, array $optParams = [])

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies. (firewallpolicies.create)

delete(string $name, array $optParams = [])

Deletes the specified firewall policy. (firewallpolicies.delete)

get(string $name, array $optParams = [])

Returns the specified firewall policy. (firewallpolicies.get)

listProjectsFirewallpolicies(string $parent, array $optParams = [])

Returns the list of all firewall policies that belong to a project.

patch(string $name, GoogleCloudRecaptchaenterpriseV1FirewallPolicy $postBody, array $optParams = [])

Updates the specified firewall policy. (firewallpolicies.patch)

reorder(string $parent, GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest $postBody, array $optParams = [])

Reorders all firewall policies. (firewallpolicies.reorder)

Details

GoogleCloudRecaptchaenterpriseV1FirewallPolicy create(string $parent, GoogleCloudRecaptchaenterpriseV1FirewallPolicy $postBody, array $optParams = [])

Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies. (firewallpolicies.create)

Parameters

string $parent

Required. The name of the project this policy will apply to, in the format projects/{project}.

GoogleCloudRecaptchaenterpriseV1FirewallPolicy $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudRecaptchaenterpriseV1FirewallPolicy

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes the specified firewall policy. (firewallpolicies.delete)

Parameters

string $name

Required. The name of the policy to be deleted, in the format projects/{project}/firewallpolicies/{firewallpolicy}.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleCloudRecaptchaenterpriseV1FirewallPolicy get(string $name, array $optParams = [])

Returns the specified firewall policy. (firewallpolicies.get)

Parameters

string $name

Required. The name of the requested policy, in the format projects/{project}/firewallpolicies/{firewallpolicy}.

array $optParams

Optional parameters.

Return Value

GoogleCloudRecaptchaenterpriseV1FirewallPolicy

Exceptions

Exception

GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse listProjectsFirewallpolicies(string $parent, array $optParams = [])

Returns the list of all firewall policies that belong to a project.

(firewallpolicies.listProjectsFirewallpolicies)

Parameters

string $parent

Required. The name of the project to list the policies for, in the format projects/{project}.

array $optParams

Optional parameters.

Return Value

GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse

Exceptions

Exception

GoogleCloudRecaptchaenterpriseV1FirewallPolicy patch(string $name, GoogleCloudRecaptchaenterpriseV1FirewallPolicy $postBody, array $optParams = [])

Updates the specified firewall policy. (firewallpolicies.patch)

Parameters

string $name

Identifier. The resource name for the FirewallPolicy in the format projects/{project}/firewallpolicies/{firewallpolicy}.

GoogleCloudRecaptchaenterpriseV1FirewallPolicy $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudRecaptchaenterpriseV1FirewallPolicy

Exceptions

Exception

GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse reorder(string $parent, GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest $postBody, array $optParams = [])

Reorders all firewall policies. (firewallpolicies.reorder)

Parameters

string $parent

Required. The name of the project to list the policies for, in the format projects/{project}.

GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse

Exceptions

Exception