google_api_dialogflow v0.7.0 GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2RestoreAgentRequest View Source

The request message for Agents.RestoreAgent.

Attributes

  • agentContent (type: String.t, default: nil) - The agent to restore.

    Example for how to restore an agent via the command line:

    curl       'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:restore       -X POST        -H 'Authorization: Bearer '$(gcloud auth application-default
       print-access-token)        -H 'Accept: application/json'        -H 'Content-Type: application/json'        --compressed        --data-binary "{

       'agentContent': '$(cat &lt;agent zip file&gt; | base64 -w 0)'

    }"

  • agentUri (type: String.t, default: nil) - The URI to a Google Cloud Storage file containing the agent to restore. Note: The URI must start with "gs://".

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() ::
  %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2RestoreAgentRequest{
    agentContent: String.t(),
    agentUri: String.t()
  }

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.