Module: Google::Cloud::TextToSpeech::V1beta1::TextToSpeechLongAudioSynthesize::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/paths.rb
Overview
Path helper methods for the TextToSpeechLongAudioSynthesize API.
Instance Method Summary collapse
-
#model_path(project:, location:, model:) ⇒ ::String
Create a fully-qualified Model resource string.
Instance Method Details
#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}
39 40 41 42 43 44 |
# File 'lib/google/cloud/text_to_speech/v1beta1/text_to_speech_long_audio_synthesize/paths.rb', line 39 def model_path project:, location:, model: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/models/#{model}" end |