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)
modalitystringOptional. The modality of the deployment. Note: Deployment-level modality override is gated behind an allowlist. Contact the CXAS team to enable this field. (MODALITY_UNSPECIFIED, MODALITY_TEXT, MODALITY_VOICE, MODALITY_VIDEO)
modelSettingsobjectOptional. Model settings for the deployment. Overrides model settings configured at the app/agent levels. Note: Deployment-level model settings override is gated behind an allowlist. Contact the CXAS team to enable this field. (id: ModelSettings)
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, appsIdorderBy, pageSize, pageTokenLists 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,
modality,
modelSettings,
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__appVersion,
data__channelProfile,
data__displayName,
data__experimentConfig,
data__instagramCredentials,
data__modality,
data__modelSettings,
data__name,
data__whatsappCredentials,
projectsId,
locationsId,
appsId,
deploymentId
)
SELECT
'{{ appVersion }}',
'{{ channelProfile }}',
'{{ displayName }}',
'{{ experimentConfig }}',
'{{ instagramCredentials }}',
'{{ modality }}',
'{{ modelSettings }}',
'{{ name }}',
'{{ whatsappCredentials }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ appsId }}',
'{{ deploymentId }}'
RETURNING
name,
appVersion,
channelProfile,
createTime,
displayName,
etag,
experimentConfig,
instagramCredentials,
modality,
modelSettings,
updateTime,
whatsappCredentials
;

UPDATE examples​

Updates the specified deployment.

UPDATE google.ces.deployments
SET
data__appVersion = '{{ appVersion }}',
data__channelProfile = '{{ channelProfile }}',
data__displayName = '{{ displayName }}',
data__experimentConfig = '{{ experimentConfig }}',
data__instagramCredentials = '{{ instagramCredentials }}',
data__modality = '{{ modality }}',
data__modelSettings = '{{ modelSettings }}',
data__name = '{{ name }}',
data__whatsappCredentials = '{{ whatsappCredentials }}'
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,
modality,
modelSettings,
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 }}'
;