class ResponsePolicyRules extends Resource (View source)

The "responsePolicyRules" collection of methods.

Typical usage is:

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

Methods

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

Creates a new Response Policy Rule. (responsePolicyRules.create)

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

Deletes a previously created Response Policy Rule.

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

Fetches the representation of an existing Response Policy Rule.

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

Enumerates all Response Policy Rules associated with a project.

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

Applies a partial update to an existing Response Policy Rule.

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

Updates an existing Response Policy Rule. (responsePolicyRules.update)

Details

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

Creates a new Response Policy Rule. (responsePolicyRules.create)

Parameters

string $project

Identifies the project addressed by this request.

string $responsePolicy

User assigned name of the Response Policy containing the Response Policy Rule.

ResponsePolicyRule $postBody
array $optParams

Optional parameters.

Return Value

ResponsePolicyRule

Exceptions

Exception

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

Deletes a previously created Response Policy Rule.

(responsePolicyRules.delete)

Parameters

string $project

Identifies the project addressed by this request.

string $responsePolicy

User assigned name of the Response Policy containing the Response Policy Rule.

string $responsePolicyRule

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

array $optParams

Optional parameters.

Exceptions

Exception

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

Fetches the representation of an existing Response Policy Rule.

(responsePolicyRules.get)

Parameters

string $project

Identifies the project addressed by this request.

string $responsePolicy

User assigned name of the Response Policy containing the Response Policy Rule.

string $responsePolicyRule

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

array $optParams

Optional parameters.

Return Value

ResponsePolicyRule

Exceptions

Exception

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

Enumerates all Response Policy Rules associated with a project.

(responsePolicyRules.listResponsePolicyRules)

Parameters

string $project

Identifies the project addressed by this request.

string $responsePolicy

User assigned name of the Response Policy to list.

array $optParams

Optional parameters.

Return Value

ResponsePolicyRulesListResponse

Exceptions

Exception

ResponsePolicyRulesPatchResponse patch(string $project, string $responsePolicy, string $responsePolicyRule, ResponsePolicyRule $postBody, array $optParams = [])

Applies a partial update to an existing Response Policy Rule.

(responsePolicyRules.patch)

Parameters

string $project

Identifies the project addressed by this request.

string $responsePolicy

User assigned name of the Response Policy containing the Response Policy Rule.

string $responsePolicyRule

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

ResponsePolicyRule $postBody
array $optParams

Optional parameters.

Return Value

ResponsePolicyRulesPatchResponse

Exceptions

Exception

ResponsePolicyRulesUpdateResponse update(string $project, string $responsePolicy, string $responsePolicyRule, ResponsePolicyRule $postBody, array $optParams = [])

Updates an existing Response Policy Rule. (responsePolicyRules.update)

Parameters

string $project

Identifies the project addressed by this request.

string $responsePolicy

User assigned name of the Response Policy containing the Response Policy Rule.

string $responsePolicyRule

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

ResponsePolicyRule $postBody
array $optParams

Optional parameters.

Return Value

ResponsePolicyRulesUpdateResponse

Exceptions

Exception