google-cloud-deploy-v1 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/deploy/v1/automation_payload_pb.rb +44 -0
- data/lib/google/cloud/deploy/v1/automationrun_payload_pb.rb +44 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/client.rb +1155 -136
- data/lib/google/cloud/deploy/v1/cloud_deploy/paths.rb +61 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/client.rb +1088 -134
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb +535 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb +38 -1
- data/lib/google/cloud/deploy/v1/cloud_deploy_services_pb.rb +21 -0
- data/lib/google/cloud/deploy/v1/release_render_payload_pb.rb +3 -1
- data/lib/google/cloud/deploy/v1/rollout_update_payload_pb.rb +45 -0
- data/lib/google/cloud/deploy/v1/version.rb +1 -1
- data/proto_docs/google/cloud/deploy/v1/automation_payload.rb +46 -0
- data/proto_docs/google/cloud/deploy/v1/automationrun_payload.rb +55 -0
- data/proto_docs/google/cloud/deploy/v1/cloud_deploy.rb +940 -70
- data/proto_docs/google/cloud/deploy/v1/release_render_payload.rb +4 -1
- data/proto_docs/google/cloud/deploy/v1/rollout_update_payload.rb +99 -0
- metadata +8 -2
@@ -24,6 +24,48 @@ module Google
|
|
24
24
|
module CloudDeploy
|
25
25
|
# Path helper methods for the CloudDeploy API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Automation resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param delivery_pipeline [String]
|
37
|
+
# @param automation [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def automation_path project:, location:, delivery_pipeline:, automation:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
raise ::ArgumentError, "delivery_pipeline cannot contain /" if delivery_pipeline.to_s.include? "/"
|
44
|
+
|
45
|
+
"projects/#{project}/locations/#{location}/deliveryPipelines/#{delivery_pipeline}/automations/#{automation}"
|
46
|
+
end
|
47
|
+
|
48
|
+
##
|
49
|
+
# Create a fully-qualified AutomationRun resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
# @param delivery_pipeline [String]
|
58
|
+
# @param automation_run [String]
|
59
|
+
#
|
60
|
+
# @return [::String]
|
61
|
+
def automation_run_path project:, location:, delivery_pipeline:, automation_run:
|
62
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
63
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
64
|
+
raise ::ArgumentError, "delivery_pipeline cannot contain /" if delivery_pipeline.to_s.include? "/"
|
65
|
+
|
66
|
+
"projects/#{project}/locations/#{location}/deliveryPipelines/#{delivery_pipeline}/automationRuns/#{automation_run}"
|
67
|
+
end
|
68
|
+
|
27
69
|
##
|
28
70
|
# Create a fully-qualified Build resource string.
|
29
71
|
#
|
@@ -98,6 +140,25 @@ module Google
|
|
98
140
|
"projects/#{project}/locations/#{location}/deliveryPipelines/#{delivery_pipeline}"
|
99
141
|
end
|
100
142
|
|
143
|
+
##
|
144
|
+
# Create a fully-qualified Job resource string.
|
145
|
+
#
|
146
|
+
# The resource will be in the following format:
|
147
|
+
#
|
148
|
+
# `projects/{project}/locations/{location}/jobs/{job}`
|
149
|
+
#
|
150
|
+
# @param project [String]
|
151
|
+
# @param location [String]
|
152
|
+
# @param job [String]
|
153
|
+
#
|
154
|
+
# @return [::String]
|
155
|
+
def job_path project:, location:, job:
|
156
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
157
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
158
|
+
|
159
|
+
"projects/#{project}/locations/#{location}/jobs/#{job}"
|
160
|
+
end
|
161
|
+
|
101
162
|
##
|
102
163
|
# Create a fully-qualified JobRun resource string.
|
103
164
|
#
|