Class: Google::Cloud::Dialogflow::V2::ExportAgentResponse
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::ExportAgentResponse
- 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
-
#agent_content ⇒ String
The exported agent.
-
#agent_uri ⇒ String
The URI to a file containing the exported agent.
Instance Attribute Details
#agent_content ⇒ String
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/<project_name>/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>
.
215 |
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb', line 215 class ExportAgentResponse; end |
#agent_uri ⇒ String
Returns 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 |