Skip to main content

custom_target_types

Creates, updates, deletes, gets or lists a custom_target_types resource.

Overview

Namecustom_target_types
TypeResource
Idgoogle.clouddeploy.custom_target_types

Fields

NameDatatypeDescription
namestringOptional. Name of the CustomTargetType. Format is projects/{project}/locations/{location}/customTargetTypes/{customTargetType}. The customTargetType component must match [a-z]([a-z0-9-]{0,61}[a-z0-9])?
descriptionstringOptional. Description of the CustomTargetType. Max length is 255 characters.
annotationsobjectOptional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
createTimestringOutput only. Time at which the CustomTargetType was created.
customActionsobjectCustomTargetSkaffoldActions represents the CustomTargetType configuration using Skaffold custom actions.
customTargetTypeIdstringOutput only. Resource id of the CustomTargetType.
etagstringOptional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
labelsobjectOptional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. Keys must start with a lowercase letter or international character. Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 128 bytes.
uidstringOutput only. Unique identifier of the CustomTargetType.
updateTimestringOutput only. Most recent time at which the CustomTargetType was updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcustomTargetTypesId, locationsId, projectsIdGets details of a single CustomTargetType.
listSELECTlocationsId, projectsIdLists CustomTargetTypes in a given project and location.
createINSERTlocationsId, projectsIdCreates a new CustomTargetType in a given project and location.
deleteDELETEcustomTargetTypesId, locationsId, projectsIdDeletes a single CustomTargetType.
patchUPDATEcustomTargetTypesId, locationsId, projectsIdUpdates a single CustomTargetType.

SELECT examples

Lists CustomTargetTypes in a given project and location.

SELECT
name,
description,
annotations,
createTime,
customActions,
customTargetTypeId,
etag,
labels,
uid,
updateTime
FROM google.clouddeploy.custom_target_types
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new custom_target_types resource.

/*+ create */
INSERT INTO google.clouddeploy.custom_target_types (
locationsId,
projectsId,
name,
description,
annotations,
labels,
etag,
customActions
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ annotations }}',
'{{ labels }}',
'{{ etag }}',
'{{ customActions }}'
;

UPDATE example

Updates a custom_target_types resource.

/*+ update */
UPDATE google.clouddeploy.custom_target_types
SET
name = '{{ name }}',
description = '{{ description }}',
annotations = '{{ annotations }}',
labels = '{{ labels }}',
etag = '{{ etag }}',
customActions = '{{ customActions }}'
WHERE
customTargetTypesId = '{{ customTargetTypesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified custom_target_types resource.

/*+ delete */
DELETE FROM google.clouddeploy.custom_target_types
WHERE customTargetTypesId = '{{ customTargetTypesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';