module Google::Cloud::Video::Transcoder::V1::TranscoderService::Paths
Path helper methods for the TranscoderService
API.
Public Instance Methods
job_path(project:, location:, job: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Job
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/jobs/{job}`
@param project [String] @param location [String] @param job [String]
@return [::String]
# File lib/google/cloud/video/transcoder/v1/transcoder_service/paths.rb, line 40 def job_path project:, location:, job: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/jobs/#{job}" end
job_template_path(project:, location:, job_template: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified JobTemplate resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/jobTemplates/{job_template}`
@param project [String] @param location [String] @param job_template [String]
@return [::String]
# File lib/google/cloud/video/transcoder/v1/transcoder_service/paths.rb, line 59 def job_template_path project:, location:, job_template: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/jobTemplates/#{job_template}" end
location_path(project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
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/video/transcoder/v1/transcoder_service/paths.rb, line 77 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end