Cloud Translation V3 API - Module Google::Cloud::Translate::V3::TranslationService::Paths (v1.0.0)

Reference documentation and code samples for the Cloud Translation V3 API module Google::Cloud::Translate::V3::TranslationService::Paths.

Path helper methods for the TranslationService API.

Methods

#adaptive_mt_dataset_path

def adaptive_mt_dataset_path(project:, location:, dataset:) -> ::String

Create a fully-qualified AdaptiveMtDataset resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}

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

#adaptive_mt_file_path

def adaptive_mt_file_path(project:, location:, dataset:, file:) -> ::String

Create a fully-qualified AdaptiveMtFile resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}

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

#glossary_path

def glossary_path(project:, location:, glossary:) -> ::String

Create a fully-qualified Glossary resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/glossaries/{glossary}

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