module Google::Cloud::Scheduler::V1beta1::CloudScheduler::Paths
Path helper methods for the CloudScheduler
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/scheduler/v1beta1/cloud_scheduler/paths.rb, line 39 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
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/scheduler/v1beta1/cloud_scheduler/paths.rb, line 57 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end
topic_path(project:, topic: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Topic resource string.
The resource will be in the following format:
`projects/{project}/topics/{topic}`
@param project [String] @param topic [String]
@return [::String]
# File lib/google/cloud/scheduler/v1beta1/cloud_scheduler/paths.rb, line 74 def topic_path project:, topic: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/topics/#{topic}" end