delivery_pipelines
Creates, updates, deletes, gets or lists a delivery_pipelines
resource.
Overview
Name | delivery_pipelines |
Type | Resource |
Id | google.clouddeploy.delivery_pipelines |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of the DeliveryPipeline . Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline} . The deliveryPipeline component must match [a-z]([a-z0-9-]{0,61}[a-z0-9])? |
annotations | object | Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. |
condition | object | Output only. Information around the state of the Delivery Pipeline. (id: PipelineCondition) |
createTime | string (google-datetime) | Output only. Time at which the pipeline was created. |
description | string | Optional. Description of the DeliveryPipeline . Max length is 255 characters. |
etag | string | 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 | 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. |
serialPipeline | object | Optional. SerialPipeline defines a sequential set of stages for a DeliveryPipeline . (id: SerialPipeline) |
suspended | boolean | Optional. When suspended, no new releases or rollouts can be created, but in-progress ones will complete. |
uid | string | Output only. Unique identifier of the DeliveryPipeline . |
updateTime | string (google-datetime) | Output only. Most recent time at which the pipeline was updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of the DeliveryPipeline . Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline} . The deliveryPipeline component must match [a-z]([a-z0-9-]{0,61}[a-z0-9])? |
annotations | object | Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. |
condition | object | Output only. Information around the state of the Delivery Pipeline. (id: PipelineCondition) |
createTime | string (google-datetime) | Output only. Time at which the pipeline was created. |
description | string | Optional. Description of the DeliveryPipeline . Max length is 255 characters. |
etag | string | 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 | 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. |
serialPipeline | object | Optional. SerialPipeline defines a sequential set of stages for a DeliveryPipeline . (id: SerialPipeline) |
suspended | boolean | Optional. When suspended, no new releases or rollouts can be created, but in-progress ones will complete. |
uid | string | Output only. Unique identifier of the DeliveryPipeline . |
updateTime | string (google-datetime) | Output only. Most recent time at which the pipeline was updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , deliveryPipelinesId | Gets details of a single DeliveryPipeline. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | Lists DeliveryPipelines in a given project and location. |
create | insert | projectsId , locationsId | deliveryPipelineId , requestId , validateOnly | Creates a new DeliveryPipeline in a given project and location. |
patch | update | projectsId , locationsId , deliveryPipelinesId | updateMask , requestId , allowMissing , validateOnly | Updates the parameters of a single DeliveryPipeline. |
delete | delete | projectsId , locationsId , deliveryPipelinesId | requestId , allowMissing , validateOnly , force , etag | Deletes a single DeliveryPipeline. |
rollback_target | exec | projectsId , locationsId , deliveryPipelinesId | Creates a Rollout to roll back the specified target. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
deliveryPipelinesId | string | |
locationsId | string | |
projectsId | string | |
allowMissing | boolean | |
deliveryPipelineId | string | |
etag | string | |
filter | string | |
force | boolean | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
updateMask | string (google-fieldmask) | |
validateOnly | boolean |
SELECT
examples
- get
- list
Gets details of a single DeliveryPipeline.
SELECT
name,
annotations,
condition,
createTime,
description,
etag,
labels,
serialPipeline,
suspended,
uid,
updateTime
FROM google.clouddeploy.delivery_pipelines
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND deliveryPipelinesId = '{{ deliveryPipelinesId }}' -- required;
Lists DeliveryPipelines in a given project and location.
SELECT
name,
annotations,
condition,
createTime,
description,
etag,
labels,
serialPipeline,
suspended,
uid,
updateTime
FROM google.clouddeploy.delivery_pipelines
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- create
- Manifest
Creates a new DeliveryPipeline in a given project and location.
INSERT INTO google.clouddeploy.delivery_pipelines (
data__name,
data__description,
data__annotations,
data__labels,
data__serialPipeline,
data__etag,
data__suspended,
projectsId,
locationsId,
deliveryPipelineId,
requestId,
validateOnly
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ annotations }}',
'{{ labels }}',
'{{ serialPipeline }}',
'{{ etag }}',
{{ suspended }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ deliveryPipelineId }}',
'{{ requestId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: delivery_pipelines
props:
- name: projectsId
value: string
description: Required parameter for the delivery_pipelines resource.
- name: locationsId
value: string
description: Required parameter for the delivery_pipelines resource.
- name: name
value: string
description: >
Identifier. Name of the `DeliveryPipeline`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. The `deliveryPipeline` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
- name: description
value: string
description: >
Optional. Description of the `DeliveryPipeline`. Max length is 255 characters.
- name: annotations
value: object
description: >
Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy.
- name: labels
value: object
description: >
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.
- name: serialPipeline
value: object
description: >
Optional. SerialPipeline defines a sequential set of stages for a `DeliveryPipeline`.
- name: etag
value: string
description: >
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.
- name: suspended
value: boolean
description: >
Optional. When suspended, no new releases or rollouts can be created, but in-progress ones will complete.
- name: deliveryPipelineId
value: string
- name: requestId
value: string
- name: validateOnly
value: boolean
UPDATE
examples
- patch
Updates the parameters of a single DeliveryPipeline.
UPDATE google.clouddeploy.delivery_pipelines
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__annotations = '{{ annotations }}',
data__labels = '{{ labels }}',
data__serialPipeline = '{{ serialPipeline }}',
data__etag = '{{ etag }}',
data__suspended = {{ suspended }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND deliveryPipelinesId = '{{ deliveryPipelinesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
AND allowMissing = {{ allowMissing}}
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- delete
Deletes a single DeliveryPipeline.
DELETE FROM google.clouddeploy.delivery_pipelines
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND deliveryPipelinesId = '{{ deliveryPipelinesId }}' --required
AND requestId = '{{ requestId }}'
AND allowMissing = '{{ allowMissing }}'
AND validateOnly = '{{ validateOnly }}'
AND force = '{{ force }}'
AND etag = '{{ etag }}';
Lifecycle Methods
- rollback_target
Creates a Rollout
to roll back the specified target.
EXEC google.clouddeploy.delivery_pipelines.rollback_target
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@deliveryPipelinesId='{{ deliveryPipelinesId }}' --required
@@json=
'{
"targetId": "{{ targetId }}",
"rolloutId": "{{ rolloutId }}",
"releaseId": "{{ releaseId }}",
"rolloutToRollBack": "{{ rolloutToRollBack }}",
"rollbackConfig": "{{ rollbackConfig }}",
"validateOnly": {{ validateOnly }},
"overrideDeployPolicy": "{{ overrideDeployPolicy }}"
}';