versions
Creates, updates, deletes, gets or lists a versions
resource.
Overview
Name | versions |
Type | Resource |
Id | google.dialogflow.versions |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation. |
description | string | The description of the version. The maximum length is 500 characters. If exceeded, the request is rejected. |
createTime | string | Output only. Create time of the version. |
displayName | string | Required. The human-readable name of the version. Limit of 64 characters. |
nluSettings | object | Settings related to NLU. |
state | string | Output only. The state of this version. This field is read-only and cannot be set by create and update methods. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_agents_flows_versions_get | SELECT | agentsId, flowsId, locationsId, projectsId, versionsId | Retrieves the specified Version. |
projects_locations_agents_flows_versions_list | SELECT | agentsId, flowsId, locationsId, projectsId | Returns the list of all versions in the specified Flow. |
projects_locations_agents_flows_versions_create | INSERT | agentsId, flowsId, locationsId, projectsId | Creates a Version in the specified Flow. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata : CreateVersionOperationMetadata - response : Version |
projects_locations_agents_flows_versions_delete | DELETE | agentsId, flowsId, locationsId, projectsId, versionsId | Deletes the specified Version. |
projects_locations_agents_flows_versions_patch | UPDATE | agentsId, flowsId, locationsId, projectsId, versionsId | Updates the specified Version. |
projects_locations_agents_flows_versions_compare_versions | EXEC | agentsId, flowsId, locationsId, projectsId, versionsId | Compares the specified base version with target version. |
projects_locations_agents_flows_versions_load | EXEC | agentsId, flowsId, locationsId, projectsId, versionsId | Loads resources in the specified version to the draft flow. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata : An empty Struct message - response : An Empty message |
SELECT
examples
Returns the list of all versions in the specified Flow.
SELECT
name,
description,
createTime,
displayName,
nluSettings,
state
FROM google.dialogflow.versions
WHERE agentsId = '{{ agentsId }}'
AND flowsId = '{{ flowsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new versions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.dialogflow.versions (
agentsId,
flowsId,
locationsId,
projectsId,
name,
displayName,
description
)
SELECT
'{{ agentsId }}',
'{{ flowsId }}',
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ description }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: displayName
value: string
- name: description
value: string
- name: nluSettings
value:
- name: modelType
value: string
- name: classificationThreshold
value: number
- name: modelTrainingMode
value: string
- name: createTime
value: string
- name: state
value: string
UPDATE
example
Updates a versions
resource.
/*+ update */
UPDATE google.dialogflow.versions
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
description = '{{ description }}'
WHERE
agentsId = '{{ agentsId }}'
AND flowsId = '{{ flowsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND versionsId = '{{ versionsId }}';
DELETE
example
Deletes the specified versions
resource.
/*+ delete */
DELETE FROM google.dialogflow.versions
WHERE agentsId = '{{ agentsId }}'
AND flowsId = '{{ flowsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND versionsId = '{{ versionsId }}';