custom_target_types
Creates, updates, deletes, gets or lists a custom_target_types
resource.
Overview
Name | custom_target_types |
Type | Resource |
Id | google.clouddeploy.custom_target_types |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Optional. 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])? |
description | string | Optional. Description of the CustomTargetType . Max length is 255 characters. |
annotations | object | Optional. 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. |
createTime | string | Output only. Time at which the CustomTargetType was created. |
customActions | object | CustomTargetSkaffoldActions represents the CustomTargetType configuration using Skaffold custom actions. |
customTargetTypeId | string | Output only. Resource id of the CustomTargetType . |
etag | string | Optional. 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. |
labels | object | Optional. 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. |
uid | string | Output only. Unique identifier of the CustomTargetType . |
updateTime | string | Output only. Most recent time at which the CustomTargetType was updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | customTargetTypesId, locationsId, projectsId | Gets details of a single CustomTargetType. |
list | SELECT | locationsId, projectsId | Lists CustomTargetTypes in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new CustomTargetType in a given project and location. |
delete | DELETE | customTargetTypesId, locationsId, projectsId | Deletes a single CustomTargetType. |
patch | UPDATE | customTargetTypesId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: customTargetTypeId
value: string
- name: uid
value: string
- name: description
value: string
- name: annotations
value: object
- name: labels
value: object
- name: createTime
value: string
- name: updateTime
value: string
- name: etag
value: string
- name: customActions
value:
- name: renderAction
value: string
- name: deployAction
value: string
- name: includeSkaffoldModules
value:
- - name: configs
value:
- string
- name: git
value:
- name: repo
value: string
- name: path
value: string
- name: ref
value: string
- name: googleCloudStorage
value:
- name: source
value: string
- name: path
value: string
- name: googleCloudBuildRepo
value:
- name: repository
value: string
- name: path
value: string
- name: ref
value: string
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 }}';