GoogleApi.Dialogflow.V2.Api.Projects.dialogflow_projects_agent_environments_patch
You're seeing just the function
dialogflow_projects_agent_environments_patch
, go back to GoogleApi.Dialogflow.V2.Api.Projects module for more information.
Link to this function
dialogflow_projects_agent_environments_patch(connection, name, optional_params \\ [], opts \\ [])
View SourceSpecs
dialogflow_projects_agent_environments_patch( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Environment.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
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.
Parameters
-
connection
(type:GoogleApi.Dialogflow.V2.Connection.t
) - Connection to server -
name
(type:String.t
) - Output only. The unique identifier of this agent environment. Supported formats: -projects//agent/environments/
-projects//locations//agent/environments/
-
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:allowLoadToDraftAndDiscardChanges
(type:boolean()
) - 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 =-
). -
:updateMask
(type:String.t
) - Required. The mask to control which fields get updated. -
:body
(type:GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Environment.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2Environment{}}
on success -
{:error, info}
on failure