class ProjectsLocationsCustomTargetTypes extends Resource (View source)

The "customTargetTypes" collection of methods.

Typical usage is:

 $clouddeployService = new Google\Service\CloudDeploy(...);
 $customTargetTypes = $clouddeployService->projects_locations_customTargetTypes;

Methods

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

Creates a new CustomTargetType in a given project and location.

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

Deletes a single CustomTargetType. (customTargetTypes.delete)

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

Gets details of a single CustomTargetType. (customTargetTypes.get)

getIamPolicy(string $resource, 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.

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

Lists CustomTargetTypes in a given project and location.

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

Updates a single CustomTargetType. (customTargetTypes.patch)

setIamPolicy(string $resource, SetIamPolicyRequest $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. (customTargetTypes.setIamPolicy)

Details

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

Creates a new CustomTargetType in a given project and location.

(customTargetTypes.create)

Parameters

string $parent

Required. The parent collection in which the CustomTargetType must be created. The format is projects/{project_id}/locations/{location_name}.

CustomTargetType $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single CustomTargetType. (customTargetTypes.delete)

Parameters

string $name

Required. The name of the CustomTargetType to delete. Format must be projects/{project_id}/locations/{location_name}/customTargetT ypes/{custom_target_type}.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single CustomTargetType. (customTargetTypes.get)

Parameters

string $name

Required. Name of the CustomTargetType. Format must be projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_ta rget_type}.

array $optParams

Optional parameters.

Return Value

CustomTargetType

Exceptions

Exception

Policy getIamPolicy(string $resource, 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.

(customTargetTypes.getIamPolicy)

Parameters

string $resource

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

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

ListCustomTargetTypesResponse listProjectsLocationsCustomTargetTypes(string $parent, array $optParams = [])

Lists CustomTargetTypes in a given project and location.

(customTargetTypes.listProjectsLocationsCustomTargetTypes)

Parameters

string $parent

Required. The parent that owns this collection of custom target types. Format must be projects/{project_id}/locations/{location_name}.

array $optParams

Optional parameters.

Return Value

ListCustomTargetTypesResponse

Exceptions

Exception

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

Updates a single CustomTargetType. (customTargetTypes.patch)

Parameters

string $name

Optional. Name of the CustomTargetType. Format is proj ects/{project}/locations/{location}/customTargetTypes/{customTargetType}. The customTargetType component must match [a-z]([a-z0-9-]{0,61}[a-z0-9])?

CustomTargetType $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $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. (customTargetTypes.setIamPolicy)

Parameters

string $resource

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

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception