Module: Google::Cloud::Deploy::V1::CloudDeploy::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/deploy/v1/cloud_deploy/paths.rb
Overview
Path helper methods for the CloudDeploy API.
Instance Method Summary collapse
-
#automation_path(project:, location:, delivery_pipeline:, automation:) ⇒ ::String
Create a fully-qualified Automation resource string.
-
#automation_run_path(project:, location:, delivery_pipeline:, automation_run:) ⇒ ::String
Create a fully-qualified AutomationRun resource string.
-
#build_path(project:, location:, build:) ⇒ ::String
Create a fully-qualified Build resource string.
-
#cluster_path(project:, location:, cluster:) ⇒ ::String
Create a fully-qualified Cluster resource string.
-
#config_path(project:, location:) ⇒ ::String
Create a fully-qualified Config resource string.
-
#custom_target_type_path(project:, location:, custom_target_type:) ⇒ ::String
Create a fully-qualified CustomTargetType resource string.
-
#delivery_pipeline_path(project:, location:, delivery_pipeline:) ⇒ ::String
Create a fully-qualified DeliveryPipeline resource string.
-
#job_path(project:, location:, job:) ⇒ ::String
Create a fully-qualified Job resource string.
-
#job_run_path(project:, location:, delivery_pipeline:, release:, rollout:, job_run:) ⇒ ::String
Create a fully-qualified JobRun resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#membership_path(project:, location:, membership:) ⇒ ::String
Create a fully-qualified Membership resource string.
-
#release_path(project:, location:, delivery_pipeline:, release:) ⇒ ::String
Create a fully-qualified Release resource string.
-
#rollout_path(project:, location:, delivery_pipeline:, release:, rollout:) ⇒ ::String
Create a fully-qualified Rollout resource string.
-
#service_path(project:, location:, service:) ⇒ ::String
Create a fully-qualified Service resource string.
-
#target_path(project:, location:, target:) ⇒ ::String
Create a fully-qualified Target resource string.
-
#worker_pool_path(project:, location:, worker_pool:) ⇒ ::String
Create a fully-qualified WorkerPool resource string.
Instance Method Details
#automation_path(project:, location:, delivery_pipeline:, automation:) ⇒ ::String
Create a fully-qualified Automation resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 40 def automation_path project:, location:, delivery_pipeline:, automation: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "delivery_pipeline cannot contain /" if delivery_pipeline.to_s.include? "/" "projects/#{project}/locations/#{location}/deliveryPipelines/#{delivery_pipeline}/automations/#{automation}" end |
#automation_run_path(project:, location:, delivery_pipeline:, automation_run:) ⇒ ::String
Create a fully-qualified AutomationRun resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}
61 62 63 64 65 66 67 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 61 def automation_run_path project:, location:, delivery_pipeline:, automation_run: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "delivery_pipeline cannot contain /" if delivery_pipeline.to_s.include? "/" "projects/#{project}/locations/#{location}/deliveryPipelines/#{delivery_pipeline}/automationRuns/#{automation_run}" end |
#build_path(project:, location:, build:) ⇒ ::String
Create a fully-qualified Build resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/builds/{build}
81 82 83 84 85 86 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 81 def build_path project:, location:, build: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/builds/#{build}" end |
#cluster_path(project:, location:, cluster:) ⇒ ::String
Create a fully-qualified Cluster resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/clusters/{cluster}
100 101 102 103 104 105 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 100 def cluster_path project:, location:, cluster: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/clusters/#{cluster}" end |
#config_path(project:, location:) ⇒ ::String
Create a fully-qualified Config resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/config
118 119 120 121 122 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 118 def config_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}/config" end |
#custom_target_type_path(project:, location:, custom_target_type:) ⇒ ::String
Create a fully-qualified CustomTargetType resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}
136 137 138 139 140 141 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 136 def custom_target_type_path project:, location:, custom_target_type: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/customTargetTypes/#{custom_target_type}" end |
#delivery_pipeline_path(project:, location:, delivery_pipeline:) ⇒ ::String
Create a fully-qualified DeliveryPipeline resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}
155 156 157 158 159 160 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 155 def delivery_pipeline_path project:, location:, delivery_pipeline: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/deliveryPipelines/#{delivery_pipeline}" end |
#job_path(project:, location:, job:) ⇒ ::String
Create a fully-qualified Job resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/jobs/{job}
174 175 176 177 178 179 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 174 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_run_path(project:, location:, delivery_pipeline:, release:, rollout:, job_run:) ⇒ ::String
Create a fully-qualified JobRun resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run}
196 197 198 199 200 201 202 203 204 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 196 def job_run_path project:, location:, delivery_pipeline:, release:, rollout:, job_run: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "delivery_pipeline cannot contain /" if delivery_pipeline.to_s.include? "/" raise ::ArgumentError, "release cannot contain /" if release.to_s.include? "/" raise ::ArgumentError, "rollout cannot contain /" if rollout.to_s.include? "/" "projects/#{project}/locations/#{location}/deliveryPipelines/#{delivery_pipeline}/releases/#{release}/rollouts/#{rollout}/jobRuns/#{job_run}" end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
217 218 219 220 221 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 217 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#membership_path(project:, location:, membership:) ⇒ ::String
Create a fully-qualified Membership resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/memberships/{membership}
235 236 237 238 239 240 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 235 def membership_path project:, location:, membership: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/memberships/#{membership}" end |
#release_path(project:, location:, delivery_pipeline:, release:) ⇒ ::String
Create a fully-qualified Release resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}
255 256 257 258 259 260 261 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 255 def release_path project:, location:, delivery_pipeline:, release: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "delivery_pipeline cannot contain /" if delivery_pipeline.to_s.include? "/" "projects/#{project}/locations/#{location}/deliveryPipelines/#{delivery_pipeline}/releases/#{release}" end |
#rollout_path(project:, location:, delivery_pipeline:, release:, rollout:) ⇒ ::String
Create a fully-qualified Rollout resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}
277 278 279 280 281 282 283 284 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 277 def rollout_path project:, location:, delivery_pipeline:, release:, rollout: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "delivery_pipeline cannot contain /" if delivery_pipeline.to_s.include? "/" raise ::ArgumentError, "release cannot contain /" if release.to_s.include? "/" "projects/#{project}/locations/#{location}/deliveryPipelines/#{delivery_pipeline}/releases/#{release}/rollouts/#{rollout}" end |
#service_path(project:, location:, service:) ⇒ ::String
Create a fully-qualified Service resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/services/{service}
298 299 300 301 302 303 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 298 def service_path project:, location:, service: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/services/#{service}" end |
#target_path(project:, location:, target:) ⇒ ::String
Create a fully-qualified Target resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/targets/{target}
317 318 319 320 321 322 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 317 def target_path project:, location:, target: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/targets/#{target}" end |
#worker_pool_path(project:, location:, worker_pool:) ⇒ ::String
Create a fully-qualified WorkerPool resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/workerPools/{worker_pool}
336 337 338 339 340 341 |
# File 'lib/google/cloud/deploy/v1/cloud_deploy/paths.rb', line 336 def worker_pool_path project:, location:, worker_pool: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/workerPools/#{worker_pool}" end |