class ManagedZones extends Resource (View source)

The "managedZones" collection of methods.

Typical usage is:

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

Methods

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

Creates a new ManagedZone. (managedZones.create)

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

Deletes a previously created ManagedZone. (managedZones.delete)

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

Fetches the representation of an existing ManagedZone. (managedZones.get)

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

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (managedZones.getIamPolicy)

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

Enumerates ManagedZones that have been created but not yet deleted.

patch(string $project, string $managedZone, ManagedZone $postBody, array $optParams = [])

Applies a partial update to an existing ManagedZone. (managedZones.patch)

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

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (managedZones.setIamPolicy)

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

Returns permissions that a caller has on the specified resource. If the resource does not exist, this returns an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

update(string $project, string $managedZone, ManagedZone $postBody, array $optParams = [])

Updates an existing ManagedZone. (managedZones.update)

Details

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

Creates a new ManagedZone. (managedZones.create)

Parameters

string $project

Identifies the project addressed by this request.

ManagedZone $postBody
array $optParams

Optional parameters.

Return Value

ManagedZone

Exceptions

Exception

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

Deletes a previously created ManagedZone. (managedZones.delete)

Parameters

string $project

Identifies the project addressed by this request.

string $managedZone

Identifies the managed zone addressed by this request. Can be the managed zone name or ID.

array $optParams

Optional parameters.

Exceptions

Exception

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

Fetches the representation of an existing ManagedZone. (managedZones.get)

Parameters

string $project

Identifies the project addressed by this request.

string $managedZone

Identifies the managed zone addressed by this request. Can be the managed zone name or ID.

array $optParams

Optional parameters.

Return Value

ManagedZone

Exceptions

Exception

GoogleIamV1Policy getIamPolicy(string $resource, GoogleIamV1GetIamPolicyRequest $postBody, array $optParams = [])

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (managedZones.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

GoogleIamV1GetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleIamV1Policy

Exceptions

Exception

ManagedZonesListResponse listManagedZones(string $project, array $optParams = [])

Enumerates ManagedZones that have been created but not yet deleted.

(managedZones.listManagedZones)

Parameters

string $project

Identifies the project addressed by this request.

array $optParams

Optional parameters.

Return Value

ManagedZonesListResponse

Exceptions

Exception

Operation patch(string $project, string $managedZone, ManagedZone $postBody, array $optParams = [])

Applies a partial update to an existing ManagedZone. (managedZones.patch)

Parameters

string $project

Identifies the project addressed by this request.

string $managedZone

Identifies the managed zone addressed by this request. Can be the managed zone name or ID.

ManagedZone $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

GoogleIamV1Policy setIamPolicy(string $resource, GoogleIamV1SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (managedZones.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

GoogleIamV1SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleIamV1Policy

Exceptions

Exception

GoogleIamV1TestIamPermissionsResponse testIamPermissions(string $resource, GoogleIamV1TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource. If the resource does not exist, this returns an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

This operation may "fail open" without warning. (managedZones.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

GoogleIamV1TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleIamV1TestIamPermissionsResponse

Exceptions

Exception

Operation update(string $project, string $managedZone, ManagedZone $postBody, array $optParams = [])

Updates an existing ManagedZone. (managedZones.update)

Parameters

string $project

Identifies the project addressed by this request.

string $managedZone

Identifies the managed zone addressed by this request. Can be the managed zone name or ID.

ManagedZone $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception