Skip to content

Commit

Permalink
fix(dialogflow): update the API
Browse files Browse the repository at this point in the history
#### dialogflow:v3beta1

The following keys were changed:
- schemas.GoogleCloudDialogflowCxV3beta1Experiment.properties.experimentLength.description
- schemas.GoogleCloudDialogflowCxV3beta1Experiment.properties.state.description
- schemas.GoogleCloudDialogflowCxV3beta1Experiment.properties.state.enum
- schemas.GoogleCloudDialogflowCxV3beta1Experiment.properties.state.enumDescriptions

#### dialogflow:v2

The following keys were changed:
- resources.projects.resources.agent.resources.environments.methods.delete.parameters.name.description
- resources.projects.resources.agent.resources.environments.methods.get.parameters.name.description
- resources.projects.resources.agent.resources.environments.methods.getHistory.parameters.parent.description
- resources.projects.resources.agent.resources.environments.methods.list.description
- resources.projects.resources.agent.resources.environments.methods.patch.description
- resources.projects.resources.agent.resources.environments.methods.patch.parameters.allowLoadToDraftAndDiscardChanges.description
- resources.projects.resources.agent.resources.environments.methods.patch.parameters.name.description
- resources.projects.resources.locations.resources.agent.resources.environments.methods.delete.parameters.name.description
- resources.projects.resources.locations.resources.agent.resources.environments.methods.get.parameters.name.description
- resources.projects.resources.locations.resources.agent.resources.environments.methods.getHistory.parameters.parent.description
- resources.projects.resources.locations.resources.agent.resources.environments.methods.list.description
- resources.projects.resources.locations.resources.agent.resources.environments.methods.patch.description
- resources.projects.resources.locations.resources.agent.resources.environments.methods.patch.parameters.allowLoadToDraftAndDiscardChanges.description
- resources.projects.resources.locations.resources.agent.resources.environments.methods.patch.parameters.name.description
- schemas.GoogleCloudDialogflowV2Environment.properties.name.description
- schemas.GoogleCloudDialogflowV2EnvironmentHistory.properties.parent.description

#### dialogflow:v3

The following keys were changed:
- schemas.GoogleCloudDialogflowCxV3Experiment.properties.experimentLength.description
- schemas.GoogleCloudDialogflowCxV3Experiment.properties.state.description
- schemas.GoogleCloudDialogflowCxV3Experiment.properties.state.enum
- schemas.GoogleCloudDialogflowCxV3Experiment.properties.state.enumDescriptions
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jul 8, 2021
1 parent 9899e49 commit cad65ce
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 57 deletions.
34 changes: 17 additions & 17 deletions discovery/dialogflow-v2.json
Expand Up @@ -822,7 +822,7 @@
],
"parameters": {
"name": {
"description": "Required. The name of the environment to delete. / Format: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
"description": "Required. The name of the environment to delete. / Format: - `projects//agent/environments/` - `projects//locations//agent/environments/` The environment ID for the default environment is `-`.",
"location": "path",
"pattern": "^projects/[^/]+/agent/environments/[^/]+$",
"required": true,
Expand All @@ -848,7 +848,7 @@
],
"parameters": {
"name": {
"description": "Required. The name of the environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
"description": "Required. The name of the environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/` The environment ID for the default environment is `-`.",
"location": "path",
"pattern": "^projects/[^/]+/agent/environments/[^/]+$",
"required": true,
Expand Down Expand Up @@ -885,7 +885,7 @@
"type": "string"
},
"parent": {
"description": "Required. The name of the environment to retrieve history for. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
"description": "Required. The name of the environment to retrieve history for. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/` The environment ID for the default environment is `-`.",
"location": "path",
"pattern": "^projects/[^/]+/agent/environments/[^/]+$",
"required": true,
Expand All @@ -902,7 +902,7 @@
]
},
"list": {
"description": "Returns the list of all non-draft environments of the specified agent.",
"description": "Returns the list of all non-default environments of the specified agent.",
"flatPath": "v2/projects/{projectsId}/agent/environments",
"httpMethod": "GET",
"id": "dialogflow.projects.agent.environments.list",
Expand Down Expand Up @@ -939,7 +939,7 @@
]
},
"patch": {
"description": "Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting `environment.agent_version`, the environment is temporarily set to the `LOADING` state. During that time, the environment keeps on serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state. You can use \"-\" as Environment ID in environment name to update version in \"draft\" environment. WARNING: this will negate all recent changes to draft and can't be undone. You may want to save the draft to a version before calling this function.",
"description": "Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting `environment.agent_version`, the environment is temporarily set to the `LOADING` state. During that time, the environment continues serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state. You can use \"-\" as Environment ID in environment name to update an agent version in the default environment. WARNING: this will negate all recent changes to the draft agent and can't be undone. You may want to save the draft agent to a version before calling this method.",
"flatPath": "v2/projects/{projectsId}/agent/environments/{environmentsId}",
"httpMethod": "PATCH",
"id": "dialogflow.projects.agent.environments.patch",
Expand All @@ -948,12 +948,12 @@
],
"parameters": {
"allowLoadToDraftAndDiscardChanges": {
"description": "Optional. This field is used to prevent accidental overwrite of the draft environment, which is an operation that cannot be undone. To confirm that the caller desires this overwrite, this field must be explicitly set to true when updating the draft environment (environment ID = `-`).",
"description": "Optional. This field is used to prevent accidental overwrite of the default environment, which is an operation that cannot be undone. To confirm that the caller desires this overwrite, this field must be explicitly set to true when updating the default environment (environment ID = `-`).",
"location": "query",
"type": "boolean"
},
"name": {
"description": "Output only. The unique identifier of this agent environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
"description": "Output only. The unique identifier of this agent environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/` The environment ID for the default environment is `-`.",
"location": "path",
"pattern": "^projects/[^/]+/agent/environments/[^/]+$",
"required": true,
Expand Down Expand Up @@ -4300,7 +4300,7 @@
],
"parameters": {
"name": {
"description": "Required. The name of the environment to delete. / Format: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
"description": "Required. The name of the environment to delete. / Format: - `projects//agent/environments/` - `projects//locations//agent/environments/` The environment ID for the default environment is `-`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
"required": true,
Expand All @@ -4326,7 +4326,7 @@
],
"parameters": {
"name": {
"description": "Required. The name of the environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
"description": "Required. The name of the environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/` The environment ID for the default environment is `-`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
"required": true,
Expand Down Expand Up @@ -4363,7 +4363,7 @@
"type": "string"
},
"parent": {
"description": "Required. The name of the environment to retrieve history for. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
"description": "Required. The name of the environment to retrieve history for. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/` The environment ID for the default environment is `-`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
"required": true,
Expand All @@ -4380,7 +4380,7 @@
]
},
"list": {
"description": "Returns the list of all non-draft environments of the specified agent.",
"description": "Returns the list of all non-default environments of the specified agent.",
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/agent/environments",
"httpMethod": "GET",
"id": "dialogflow.projects.locations.agent.environments.list",
Expand Down Expand Up @@ -4417,7 +4417,7 @@
]
},
"patch": {
"description": "Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting `environment.agent_version`, the environment is temporarily set to the `LOADING` state. During that time, the environment keeps on serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state. You can use \"-\" as Environment ID in environment name to update version in \"draft\" environment. WARNING: this will negate all recent changes to draft and can't be undone. You may want to save the draft to a version before calling this function.",
"description": "Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting `environment.agent_version`, the environment is temporarily set to the `LOADING` state. During that time, the environment continues serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state. You can use \"-\" as Environment ID in environment name to update an agent version in the default environment. WARNING: this will negate all recent changes to the draft agent and can't be undone. You may want to save the draft agent to a version before calling this method.",
"flatPath": "v2/projects/{projectsId}/locations/{locationsId}/agent/environments/{environmentsId}",
"httpMethod": "PATCH",
"id": "dialogflow.projects.locations.agent.environments.patch",
Expand All @@ -4426,12 +4426,12 @@
],
"parameters": {
"allowLoadToDraftAndDiscardChanges": {
"description": "Optional. This field is used to prevent accidental overwrite of the draft environment, which is an operation that cannot be undone. To confirm that the caller desires this overwrite, this field must be explicitly set to true when updating the draft environment (environment ID = `-`).",
"description": "Optional. This field is used to prevent accidental overwrite of the default environment, which is an operation that cannot be undone. To confirm that the caller desires this overwrite, this field must be explicitly set to true when updating the default environment (environment ID = `-`).",
"location": "query",
"type": "boolean"
},
"name": {
"description": "Output only. The unique identifier of this agent environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
"description": "Output only. The unique identifier of this agent environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/` The environment ID for the default environment is `-`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/agent/environments/[^/]+$",
"required": true,
Expand Down Expand Up @@ -6915,7 +6915,7 @@
}
}
},
"revision": "20210625",
"revision": "20210706",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3AudioInput": {
Expand Down Expand Up @@ -11075,7 +11075,7 @@
"description": "Optional. The fulfillment settings to use for this environment."
},
"name": {
"description": "Output only. The unique identifier of this agent environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
"description": "Output only. The unique identifier of this agent environment. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/` The environment ID for the default environment is `-`.",
"readOnly": true,
"type": "string"
},
Expand Down Expand Up @@ -11127,7 +11127,7 @@
"type": "string"
},
"parent": {
"description": "Output only. The name of the environment this history is for. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/`",
"description": "Output only. The name of the environment this history is for. Supported formats: - `projects//agent/environments/` - `projects//locations//agent/environments/` The environment ID for the default environment is `-`.",
"readOnly": true,
"type": "string"
}
Expand Down
12 changes: 7 additions & 5 deletions discovery/dialogflow-v3.json
Expand Up @@ -3553,7 +3553,7 @@
}
}
},
"revision": "20210618",
"revision": "20210706",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3Agent": {
Expand Down Expand Up @@ -4172,7 +4172,7 @@
"type": "string"
},
"experimentLength": {
"description": "Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.",
"description": "LINT.IfChange(default_experiment_length) Maximum number of days to run the experiment/rollout. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days. LINT.ThenChange(//depot/google3/cloud/ml/api/conversation/analytics/compute.cc:default_experiment_length)",
"format": "google-duration",
"type": "string"
},
Expand All @@ -4195,18 +4195,20 @@
"type": "string"
},
"state": {
"description": "The current state of the experiment. Transition triggered by Expriments.StartExperiment: PENDING->RUNNING. Transition triggered by Expriments.CancelExperiment: PENDING->CANCELLED or RUNNING->CANCELLED.",
"description": "The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.",
"enum": [
"STATE_UNSPECIFIED",
"DRAFT",
"RUNNING",
"DONE"
"DONE",
"ROLLOUT_FAILED"
],
"enumDescriptions": [
"State unspecified.",
"The experiment is created but not started yet.",
"The experiment is running.",
"The experiment is done."
"The experiment is done.",
"The experiment with auto-rollout enabled has failed."
],
"type": "string"
},
Expand Down
12 changes: 7 additions & 5 deletions discovery/dialogflow-v3beta1.json
Expand Up @@ -3553,7 +3553,7 @@
}
}
},
"revision": "20210618",
"revision": "20210706",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3AudioInput": {
Expand Down Expand Up @@ -5743,7 +5743,7 @@
"type": "string"
},
"experimentLength": {
"description": "Maximum number of days to run the experiment. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days.",
"description": "LINT.IfChange(default_experiment_length) Maximum number of days to run the experiment. If auto-rollout is not enabled, default value and maximum will be 30 days. If auto-rollout is enabled, default value and maximum will be 6 days. LINT.ThenChange(//depot/google3/cloud/ml/api/conversation/analytics/compute.cc:default_experiment_length)",
"format": "google-duration",
"type": "string"
},
Expand All @@ -5766,18 +5766,20 @@
"type": "string"
},
"state": {
"description": "The current state of the experiment. Transition triggered by Expriments.StartExperiment: PENDING->RUNNING. Transition triggered by Expriments.CancelExperiment: PENDING->CANCELLED or RUNNING->CANCELLED.",
"description": "The current state of the experiment. Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING. Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or RUNNING->DONE.",
"enum": [
"STATE_UNSPECIFIED",
"DRAFT",
"RUNNING",
"DONE"
"DONE",
"ROLLOUT_FAILED"
],
"enumDescriptions": [
"State unspecified.",
"The experiment is created but not started yet.",
"The experiment is running.",
"The experiment is done."
"The experiment is done.",
"The experiment with auto-rollout enabled has failed."
],
"type": "string"
},
Expand Down

0 comments on commit cad65ce

Please sign in to comment.