Vertex AI V1 API - Module Google::Cloud::AIPlatform::V1::GenAiCacheService::Paths (v0.62.0)

Reference documentation and code samples for the Vertex AI V1 API module Google::Cloud::AIPlatform::V1::GenAiCacheService::Paths.

Path helper methods for the GenAiCacheService API.

Methods

#cached_content_path

def cached_content_path(project:, location:, cached_content:) -> ::String

Create a fully-qualified CachedContent resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/cachedContents/{cached_content}

Parameters
  • project (String)
  • location (String)
  • cached_content (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)

#rag_corpus_path

def rag_corpus_path(project:, location:, rag_corpus:) -> ::String

Create a fully-qualified RagCorpus resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

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