Skip to main content

delivery_pipelines

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

Overview

Namedelivery_pipelines
TypeResource
Idgoogle.clouddeploy.delivery_pipelines

Fields

NameDatatypeDescription
namestringOptional. 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])?
descriptionstringDescription of the DeliveryPipeline. Max length is 255 characters.
annotationsobjectUser annotations. These attributes can only be set and used by the user, and not by Cloud Deploy.
conditionobjectPipelineCondition contains all conditions relevant to a Delivery Pipeline.
createTimestringOutput only. Time at which the pipeline was created.
etagstringThis 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.
labelsobjectLabels 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.
serialPipelineobjectSerialPipeline defines a sequential set of stages for a DeliveryPipeline.
suspendedbooleanWhen suspended, no new releases or rollouts can be created, but in-progress ones will complete.
uidstringOutput only. Unique identifier of the DeliveryPipeline.
updateTimestringOutput only. Most recent time at which the pipeline was updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeliveryPipelinesId, locationsId, projectsIdGets details of a single DeliveryPipeline.
listSELECTlocationsId, projectsIdLists DeliveryPipelines in a given project and location.
createINSERTlocationsId, projectsIdCreates a new DeliveryPipeline in a given project and location.
deleteDELETEdeliveryPipelinesId, locationsId, projectsIdDeletes a single DeliveryPipeline.
patchUPDATEdeliveryPipelinesId, locationsId, projectsIdUpdates the parameters of a single DeliveryPipeline.
rollback_targetEXECdeliveryPipelinesId, locationsId, projectsIdCreates a Rollout to roll back the specified target.

SELECT examples

Lists DeliveryPipelines in a given project and location.

SELECT
name,
description,
annotations,
condition,
createTime,
etag,
labels,
serialPipeline,
suspended,
uid,
updateTime
FROM google.clouddeploy.delivery_pipelines
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

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

UPDATE example

Updates a delivery_pipelines resource.

/*+ update */
UPDATE google.clouddeploy.delivery_pipelines
SET
name = '{{ name }}',
description = '{{ description }}',
annotations = '{{ annotations }}',
labels = '{{ labels }}',
serialPipeline = '{{ serialPipeline }}',
etag = '{{ etag }}',
suspended = true|false
WHERE
deliveryPipelinesId = '{{ deliveryPipelinesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified delivery_pipelines resource.

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