google-cloud-deploy-v1 1.0.0 → 1.1.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/cloud_deploy/client.rb +674 -48
- data/lib/google/cloud/deploy/v1/cloud_deploy/paths.rb +19 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/client.rb +638 -48
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb +297 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb +21 -1
- data/lib/google/cloud/deploy/v1/cloud_deploy_services_pb.rb +10 -0
- data/lib/google/cloud/deploy/v1/customtargettype_notification_payload_pb.rb +44 -0
- data/lib/google/cloud/deploy/v1/deploypolicy_evaluation_payload_pb.rb +46 -0
- data/lib/google/cloud/deploy/v1/deploypolicy_notification_payload_pb.rb +44 -0
- data/lib/google/cloud/deploy/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/deploy/v1/cloud_deploy.rb +537 -46
- data/proto_docs/google/cloud/deploy/v1/customtargettype_notification_payload.rb +46 -0
- data/proto_docs/google/cloud/deploy/v1/deploypolicy_evaluation_payload.rb +106 -0
- data/proto_docs/google/cloud/deploy/v1/deploypolicy_notification_payload.rb +47 -0
- data/proto_docs/google/type/date.rb +1 -1
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +10 -2
@@ -159,6 +159,25 @@ module Google
|
|
159
159
|
"projects/#{project}/locations/#{location}/deliveryPipelines/#{delivery_pipeline}"
|
160
160
|
end
|
161
161
|
|
162
|
+
##
|
163
|
+
# Create a fully-qualified DeployPolicy resource string.
|
164
|
+
#
|
165
|
+
# The resource will be in the following format:
|
166
|
+
#
|
167
|
+
# `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`
|
168
|
+
#
|
169
|
+
# @param project [String]
|
170
|
+
# @param location [String]
|
171
|
+
# @param deploy_policy [String]
|
172
|
+
#
|
173
|
+
# @return [::String]
|
174
|
+
def deploy_policy_path project:, location:, deploy_policy:
|
175
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
176
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
177
|
+
|
178
|
+
"projects/#{project}/locations/#{location}/deployPolicies/#{deploy_policy}"
|
179
|
+
end
|
180
|
+
|
162
181
|
##
|
163
182
|
# Create a fully-qualified Job resource string.
|
164
183
|
#
|