Dialogflow V2 API - Module Google::Cloud::Dialogflow::V2::KnowledgeBases::Paths (v0.32.0)

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

Path helper methods for the KnowledgeBases API.

Methods

#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)

#location_path

def location_path(project:, location:) -> ::String

Create a fully-qualified Location resource string.

The resource will be in the following format:

projects/{project}/locations/{location}

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

#project_path

def project_path(project:) -> ::String

Create a fully-qualified Project resource string.

The resource will be in the following format:

projects/{project}

Parameter
  • project (String)
Returns
  • (::String)