Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idgoogle.ces.deployments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the deployment. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
appVersionstringOptional. The resource name of the app version to deploy. Format: projects/{project}/locations/{location}/apps/{app}/versions/{version} Use projects/{project}/locations/{location}/apps/{app}/versions/- to use the draft app.
channelProfileobjectRequired. The channel profile used in the deployment. (id: ChannelProfile)
createTimestring (google-datetime)Output only. Timestamp when this deployment was created.
displayNamestringRequired. Display name of the deployment.
etagstringOutput only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
experimentConfigobjectOptional. Experiment configuration for the deployment. (id: ExperimentConfig)
instagramCredentialsobjectOptional. Input only. Ephemeral Instagram credentials required when configuring a Instagram channel profile. (id: InstagramCredentials)
updateTimestring (google-datetime)Output only. Timestamp when this deployment was last updated.
whatsappCredentialsobjectOptional. Input only. Ephemeral WhatsApp credentials required when configuring a WhatsApp channel profile. (id: WhatsAppCredentials)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, appsId, deploymentsIdGets details of the specified deployment.
listselectprojectsId, locationsId, appsIdpageSize, pageToken, orderByLists deployments in the given app.
createinsertprojectsId, locationsId, appsIddeploymentIdCreates a new deployment in the given app.
patchupdateprojectsId, locationsId, appsId, deploymentsIdupdateMaskUpdates the specified deployment.
deletedeleteprojectsId, locationsId, appsId, deploymentsIdetagDeletes the specified deployment.

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.

NameDatatypeDescription
appsIdstring
deploymentsIdstring
locationsIdstring
projectsIdstring
deploymentIdstring
etagstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of the specified deployment.

SELECT
name,
appVersion,
channelProfile,
createTime,
displayName,
etag,
experimentConfig,
instagramCredentials,
updateTime,
whatsappCredentials
FROM google.ces.deployments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND appsId = '{{ appsId }}' -- required
AND deploymentsId = '{{ deploymentsId }}' -- required
;

INSERT examples

Creates a new deployment in the given app.

INSERT INTO google.ces.deployments (
data__experimentConfig,
data__whatsappCredentials,
data__instagramCredentials,
data__channelProfile,
data__name,
data__displayName,
data__appVersion,
projectsId,
locationsId,
appsId,
deploymentId
)
SELECT
'{{ experimentConfig }}',
'{{ whatsappCredentials }}',
'{{ instagramCredentials }}',
'{{ channelProfile }}',
'{{ name }}',
'{{ displayName }}',
'{{ appVersion }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ appsId }}',
'{{ deploymentId }}'
RETURNING
name,
appVersion,
channelProfile,
createTime,
displayName,
etag,
experimentConfig,
instagramCredentials,
updateTime,
whatsappCredentials
;

UPDATE examples

Updates the specified deployment.

UPDATE google.ces.deployments
SET
data__experimentConfig = '{{ experimentConfig }}',
data__whatsappCredentials = '{{ whatsappCredentials }}',
data__instagramCredentials = '{{ instagramCredentials }}',
data__channelProfile = '{{ channelProfile }}',
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__appVersion = '{{ appVersion }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND appsId = '{{ appsId }}' --required
AND deploymentsId = '{{ deploymentsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
appVersion,
channelProfile,
createTime,
displayName,
etag,
experimentConfig,
instagramCredentials,
updateTime,
whatsappCredentials;

DELETE examples

Deletes the specified deployment.

DELETE FROM google.ces.deployments
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND appsId = '{{ appsId }}' --required
AND deploymentsId = '{{ deploymentsId }}' --required
AND etag = '{{ etag }}'
;