google_api_dialogflow v0.9.0 GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2ExportAgentResponse View Source

The response message for Agents.ExportAgent.

Attributes

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

    Example for how to export an agent to a zip file via a command line:

    curl 
    'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'
    -X POST
    -H 'Authorization: Bearer '$(gcloud auth application-default print-access-token)
    -H 'Accept: application/json'
    -H 'Content-Type: application/json'
    --compressed
    --data-binary '{}'
    | grep agentContent | sed -e 's/."agentContent": "([^"])".*/\1/'
    | base64 --decode > <agent zip file>

  • agentUri (type: String.t, default: nil) - The URI to a file containing the exported agent. This field is populated only if agent_uri is specified in ExportAgentRequest.

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.GoogleCloudDialogflowV2ExportAgentResponse{
    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.