Cloud Translation V3 API - Module Google::Cloud::Translate::V3::TranslationService::Paths (v1.2.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)

#dataset_path

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

Create a fully-qualified Dataset resource string.

The resource will be in the following format:

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

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

#glossary_entry_path

def glossary_entry_path(project:, location:, glossary:, glossary_entry:) -> ::String

Create a fully-qualified GlossaryEntry resource string.

The resource will be in the following format:

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

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

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