module Google::Cloud::Speech::V1p1beta1::Adaptation::Paths
Path helper methods for the Adaptation
API.
Public Instance Methods
Create a fully-qualified CustomClass
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/customClasses/{custom_class}`
@param project [String] @param location [String] @param custom_class [String]
@return [::String]
# File lib/google/cloud/speech/v1p1beta1/adaptation/paths.rb, line 39 def custom_class_path project:, location:, custom_class: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/customClasses/#{custom_class}" end
Create a fully-qualified Location resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}`
@param project [String] @param location [String]
@return [::String]
# File lib/google/cloud/speech/v1p1beta1/adaptation/paths.rb, line 57 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end
Create a fully-qualified PhraseSet
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@param project [String] @param location [String] @param phrase_set [String]
@return [::String]
# File lib/google/cloud/speech/v1p1beta1/adaptation/paths.rb, line 75 def phrase_set_path project:, location:, phrase_set: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/phraseSets/#{phrase_set}" end