Class: Google::Cloud::Dialogflow::V2::ExportAgentResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb

Overview

The response message for Agents::ExportAgent.

Instance Attribute Summary collapse

Instance Attribute Details

#agent_contentString

Returns The exported agent.

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

curl \
  '<a href="https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:export'%5C">https://dialogflow.googleapis.com/v2/projects/&lt;project_name&gt;/agent:export'\</a>
  -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/.<em>"agentContent": "([^"]</em>)".*/\1/' \
| base64 --decode > <agent zip file>
.

Returns:

  • (String)

    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>


215
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb', line 215

class ExportAgentResponse; end

#agent_uriString

Returns The URI to a file containing the exported agent. This field is populated only if agent_uri is specified in ExportAgentRequest.

Returns:

  • (String)

    The URI to a file containing the exported agent. This field is populated only if agent_uri is specified in ExportAgentRequest.



215
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb', line 215

class ExportAgentResponse; end