Class: Google::Cloud::Dialogflow::V2::ImportAgentRequest

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

Overview

The request message for Agents::ImportAgent.

Instance Attribute Summary collapse

Instance Attribute Details

#agent_contentString

Returns The agent to import.

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

curl \
  '<a href="https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import%5C">https://dialogflow.googleapis.com/v2/projects/&lt;project_name&gt;/agent:import\</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 "{
      'agentContent': '$(cat <agent zip file> | base64 -w 0)'
   }"
.

Returns:

  • (String)

    The agent to import.

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

    curl \
      'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:import\
       -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 <agent zip file> | base64 -w 0)'
       }"


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

class ImportAgentRequest; end

#agent_uriString

Returns The URI to a Google Cloud Storage file containing the agent to import. Note: The URI must start with "gs://".

Returns:

  • (String)

    The URI to a Google Cloud Storage file containing the agent to import. Note: The URI must start with "gs://".



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

class ImportAgentRequest; end

#parentString

Returns Required. The project that the agent to import is associated with. Format: projects/<Project ID>.

Returns:

  • (String)

    Required. The project that the agent to import is associated with. Format: projects/<Project ID>.



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

class ImportAgentRequest; end