Skip to main content

environments

Creates, updates, deletes, gets or lists an environments resource.

Overview

Nameenvironments
TypeResource
Idgoogle.dialogflow.environments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
descriptionstring
displayNamestring
testCasesConfigobject (id: GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig)
updateTimestring (google-datetime)
versionConfigsarray
webhookConfigobject (id: GoogleCloudDialogflowCxV3EnvironmentWebhookConfig)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_environments_getselectprojectsId, locationsId, agentsId, environmentsId
projects_locations_agents_environments_listselectprojectsId, locationsId, agentsIdpageSize, pageToken
projects_locations_agents_environments_createinsertprojectsId, locationsId, agentsId
projects_locations_agents_environments_patchupdateprojectsId, locationsId, agentsId, environmentsIdupdateMask
projects_locations_agents_environments_deletedeleteprojectsId, locationsId, agentsId, environmentsId
projects_locations_agents_environments_lookup_environment_historyexecprojectsId, locationsId, agentsId, environmentsIdpageToken, pageSize
projects_locations_agents_environments_run_continuous_testexecprojectsId, locationsId, agentsId, environmentsId
projects_locations_agents_environments_deploy_flowexecprojectsId, locationsId, agentsId, environmentsId

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
agentsIdstring
environmentsIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Successful response

SELECT
name,
description,
displayName,
testCasesConfig,
updateTime,
versionConfigs,
webhookConfig
FROM google.dialogflow.environments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND environmentsId = '{{ environmentsId }}' -- required
;

INSERT examples

No description available.

INSERT INTO google.dialogflow.environments (
data__versionConfigs,
data__displayName,
data__testCasesConfig,
data__description,
data__webhookConfig,
data__name,
projectsId,
locationsId,
agentsId
)
SELECT
'{{ versionConfigs }}',
'{{ displayName }}',
'{{ testCasesConfig }}',
'{{ description }}',
'{{ webhookConfig }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentsId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

No description available.

UPDATE google.dialogflow.environments
SET
data__versionConfigs = '{{ versionConfigs }}',
data__displayName = '{{ displayName }}',
data__testCasesConfig = '{{ testCasesConfig }}',
data__description = '{{ description }}',
data__webhookConfig = '{{ webhookConfig }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND environmentsId = '{{ environmentsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

No description available.

DELETE FROM google.dialogflow.environments
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND environmentsId = '{{ environmentsId }}' --required
;

Lifecycle Methods

Successful response

EXEC google.dialogflow.environments.projects_locations_agents_environments_lookup_environment_history
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@agentsId='{{ agentsId }}' --required,
@environmentsId='{{ environmentsId }}' --required,
@pageToken='{{ pageToken }}',
@pageSize='{{ pageSize }}'
;