Dialogflow V2 API - Module Google::Cloud::Dialogflow::V2::Documents::Paths (v0.20.0)

Reference documentation and code samples for the Dialogflow V2 API module Google::Cloud::Dialogflow::V2::Documents::Paths.

Path helper methods for the Documents API.

Methods

#document_path

def document_path(project:, knowledge_base:, document:) -> ::String
def document_path(project:, location:, knowledge_base:, document:) -> ::String

Create a fully-qualified Document resource string.

Overloads
def document_path(project:, knowledge_base:, document:) -> ::String
The resource will be in the following format:

projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}

Parameters
  • project (String)
  • knowledge_base (String)
  • document (String)
def document_path(project:, location:, knowledge_base:, document:) -> ::String
The resource will be in the following format:

projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}/documents/{document}

Parameters
  • project (String)
  • location (String)
  • knowledge_base (String)
  • document (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#knowledge_base_path

def knowledge_base_path(project:, knowledge_base:) -> ::String
def knowledge_base_path(project:, location:, knowledge_base:) -> ::String

Create a fully-qualified KnowledgeBase resource string.

Overloads
def knowledge_base_path(project:, knowledge_base:) -> ::String
The resource will be in the following format:

projects/{project}/knowledgeBases/{knowledge_base}

Parameters
  • project (String)
  • knowledge_base (String)
def knowledge_base_path(project:, location:, knowledge_base:) -> ::String
The resource will be in the following format:

projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}

Parameters
  • project (String)
  • location (String)
  • knowledge_base (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)