Vision AI V1 API - Module Google::Cloud::VisionAI::V1::Warehouse::Paths (v0.1.0)

Reference documentation and code samples for the Vision AI V1 API module Google::Cloud::VisionAI::V1::Warehouse::Paths.

Path helper methods for the Warehouse API.

Methods

#annotation_path

def annotation_path(project_number:, location:, corpus:, asset:, annotation:) -> ::String

Create a fully-qualified Annotation resource string.

The resource will be in the following format:

projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}

Parameters
  • project_number (String)
  • location (String)
  • corpus (String)
  • asset (String)
  • annotation (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#asset_path

def asset_path(project_number:, location:, corpus:, asset:) -> ::String

Create a fully-qualified Asset resource string.

The resource will be in the following format:

projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}

Parameters
  • project_number (String)
  • location (String)
  • corpus (String)
  • asset (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#collection_path

def collection_path(project_number:, location:, corpus:, collection:) -> ::String

Create a fully-qualified Collection resource string.

The resource will be in the following format:

projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

Parameters
  • project_number (String)
  • location (String)
  • corpus (String)
  • collection (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#corpus_path

def corpus_path(project_number:, location:, corpus:) -> ::String

Create a fully-qualified Corpus resource string.

The resource will be in the following format:

projects/{project_number}/locations/{location}/corpora/{corpus}

Parameters
  • project_number (String)
  • location (String)
  • corpus (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#data_schema_path

def data_schema_path(project_number:, location:, corpus:, data_schema:) -> ::String

Create a fully-qualified DataSchema resource string.

The resource will be in the following format:

projects/{project_number}/locations/{location}/corpora/{corpus}/dataSchemas/{data_schema}

Parameters
  • project_number (String)
  • location (String)
  • corpus (String)
  • data_schema (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#index_endpoint_path

def index_endpoint_path(project:, location:, index_endpoint:) -> ::String

Create a fully-qualified IndexEndpoint resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

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

#index_path

def index_path(project_number:, location:, corpus:, index:) -> ::String

Create a fully-qualified Index resource string.

The resource will be in the following format:

projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}

Parameters
  • project_number (String)
  • location (String)
  • corpus (String)
  • index (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)

#search_config_path

def search_config_path(project_number:, location:, corpus:, search_config:) -> ::String

Create a fully-qualified SearchConfig resource string.

The resource will be in the following format:

projects/{project_number}/locations/{location}/corpora/{corpus}/searchConfigs/{search_config}

Parameters
  • project_number (String)
  • location (String)
  • corpus (String)
  • search_config (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#search_hypernym_path

def search_hypernym_path(project_number:, location:, corpus:, search_hypernym:) -> ::String

Create a fully-qualified SearchHypernym resource string.

The resource will be in the following format:

projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

Parameters
  • project_number (String)
  • location (String)
  • corpus (String)
  • search_hypernym (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)