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

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//agent:export'\ -X POST \ -H 'Authorization: Bearer '$(gcloud auth print-access-token) \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ --compressed \ --data-binary '{}' \ | grep agentContent | sed -e 's/."agentContent": "([^"])".*/\1/' \ | base64 --decode >



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

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.



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

class ExportAgentResponse; end