class ResponsePolicies extends Resource (View source)

The "responsePolicies" collection of methods.

Typical usage is:

 $dnsService = new Google\Service\Dns(...);
 $responsePolicies = $dnsService->responsePolicies;

Methods

create(string $project, ResponsePolicy $postBody, array $optParams = [])

Creates a new Response Policy (responsePolicies.create)

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

Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network. (responsePolicies.delete)

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

Fetches the representation of an existing Response Policy.

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

Enumerates all Response Policies associated with a project.

patch(string $project, string $responsePolicy, ResponsePolicy $postBody, array $optParams = [])

Applies a partial update to an existing Response Policy.

update(string $project, string $responsePolicy, ResponsePolicy $postBody, array $optParams = [])

Updates an existing Response Policy. (responsePolicies.update)

Details

ResponsePolicy create(string $project, ResponsePolicy $postBody, array $optParams = [])

Creates a new Response Policy (responsePolicies.create)

Parameters

string $project

Identifies the project addressed by this request.

ResponsePolicy $postBody
array $optParams

Optional parameters.

Return Value

ResponsePolicy

Exceptions

Exception

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

Deletes a previously created Response Policy. Fails if the response policy is non-empty or still being referenced by a network. (responsePolicies.delete)

Parameters

string $project

Identifies the project addressed by this request.

string $responsePolicy

User assigned name of the Response Policy addressed by this request.

array $optParams

Optional parameters.

Exceptions

Exception

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

Fetches the representation of an existing Response Policy.

(responsePolicies.get)

Parameters

string $project

Identifies the project addressed by this request.

string $responsePolicy

User assigned name of the Response Policy addressed by this request.

array $optParams

Optional parameters.

Return Value

ResponsePolicy

Exceptions

Exception

ResponsePoliciesListResponse listResponsePolicies(string $project, array $optParams = [])

Enumerates all Response Policies associated with a project.

(responsePolicies.listResponsePolicies)

Parameters

string $project

Identifies the project addressed by this request.

array $optParams

Optional parameters.

Return Value

ResponsePoliciesListResponse

Exceptions

Exception

ResponsePoliciesPatchResponse patch(string $project, string $responsePolicy, ResponsePolicy $postBody, array $optParams = [])

Applies a partial update to an existing Response Policy.

(responsePolicies.patch)

Parameters

string $project

Identifies the project addressed by this request.

string $responsePolicy

User assigned name of the response policy addressed by this request.

ResponsePolicy $postBody
array $optParams

Optional parameters.

Return Value

ResponsePoliciesPatchResponse

Exceptions

Exception

ResponsePoliciesUpdateResponse update(string $project, string $responsePolicy, ResponsePolicy $postBody, array $optParams = [])

Updates an existing Response Policy. (responsePolicies.update)

Parameters

string $project

Identifies the project addressed by this request.

string $responsePolicy

User assigned name of the Response Policy addressed by this request.

ResponsePolicy $postBody
array $optParams

Optional parameters.

Return Value

ResponsePoliciesUpdateResponse

Exceptions

Exception