Vertex AI V1 API - Module Google::Cloud::AIPlatform::V1::VertexRagDataService::Paths (v0.59.0)

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

Path helper methods for the VertexRagDataService API.

Methods

#endpoint_path

def endpoint_path(project:, location:, endpoint:) -> ::String
def endpoint_path(project:, location:, publisher:, model:) -> ::String

Create a fully-qualified Endpoint resource string.

Overloads
def endpoint_path(project:, location:, endpoint:) -> ::String
The resource will be in the following format:

projects/{project}/locations/{location}/endpoints/{endpoint}

Parameters
  • project (String)
  • location (String)
  • endpoint (String)
def endpoint_path(project:, location:, publisher:, model:) -> ::String
The resource will be in the following format:

projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

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

#model_path

def model_path(project:, location:, model:) -> ::String

Create a fully-qualified Model resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/models/{model}

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

#rag_file_path

def rag_file_path(project:, location:, rag_corpus:, rag_file:) -> ::String

Create a fully-qualified RagFile resource string.

The resource will be in the following format:

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

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

#secret_version_path

def secret_version_path(project:, secret:, secret_version:) -> ::String

Create a fully-qualified SecretVersion resource string.

The resource will be in the following format:

projects/{project}/secrets/{secret}/versions/{secret_version}

Parameters
  • project (String)
  • secret (String)
  • secret_version (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)