google-cloud-deploy-v1 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/deploy/v1/cloud_deploy/client.rb +445 -58
- data/lib/google/cloud/deploy/v1/cloud_deploy/operations.rb +115 -12
- data/lib/google/cloud/deploy/v1/cloud_deploy/paths.rb +19 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb +25 -0
- data/lib/google/cloud/deploy/v1/deliverypipeline_notification_payload_pb.rb +25 -0
- data/lib/google/cloud/deploy/v1/log_enums_pb.rb +24 -0
- data/lib/google/cloud/deploy/v1/release_notification_payload_pb.rb +25 -0
- data/lib/google/cloud/deploy/v1/release_render_payload_pb.rb +23 -0
- data/lib/google/cloud/deploy/v1/rollout_notification_payload_pb.rb +28 -0
- data/lib/google/cloud/deploy/v1/target_notification_payload_pb.rb +25 -0
- data/lib/google/cloud/deploy/v1/version.rb +1 -1
- data/lib/google/cloud/deploy/v1.rb +2 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/deploy/v1/cloud_deploy.rb +135 -26
- data/proto_docs/google/cloud/deploy/v1/deliverypipeline_notification_payload.rb +43 -0
- data/proto_docs/google/cloud/deploy/v1/log_enums.rb +38 -0
- data/proto_docs/google/cloud/deploy/v1/release_notification_payload.rb +43 -0
- data/proto_docs/google/cloud/deploy/v1/release_render_payload.rb +40 -0
- data/proto_docs/google/cloud/deploy/v1/rollout_notification_payload.rb +52 -0
- data/proto_docs/google/cloud/deploy/v1/target_notification_payload.rb +43 -0
- metadata +15 -3
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::Deploy::V1::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -115,6 +115,25 @@ module Google
|
|
115
115
|
"projects/#{project}/locations/#{location}"
|
116
116
|
end
|
117
117
|
|
118
|
+
##
|
119
|
+
# Create a fully-qualified Membership resource string.
|
120
|
+
#
|
121
|
+
# The resource will be in the following format:
|
122
|
+
#
|
123
|
+
# `projects/{project}/locations/{location}/memberships/{membership}`
|
124
|
+
#
|
125
|
+
# @param project [String]
|
126
|
+
# @param location [String]
|
127
|
+
# @param membership [String]
|
128
|
+
#
|
129
|
+
# @return [::String]
|
130
|
+
def membership_path project:, location:, membership:
|
131
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
132
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
133
|
+
|
134
|
+
"projects/#{project}/locations/#{location}/memberships/#{membership}"
|
135
|
+
end
|
136
|
+
|
118
137
|
##
|
119
138
|
# Create a fully-qualified Release resource string.
|
120
139
|
#
|
@@ -98,10 +98,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
98
98
|
repeated :execution_configs, :message, 16, "google.cloud.deploy.v1.ExecutionConfig"
|
99
99
|
oneof :deployment_target do
|
100
100
|
optional :gke, :message, 15, "google.cloud.deploy.v1.GkeCluster"
|
101
|
+
optional :anthos_cluster, :message, 17, "google.cloud.deploy.v1.AnthosCluster"
|
101
102
|
end
|
102
103
|
end
|
103
104
|
add_message "google.cloud.deploy.v1.ExecutionConfig" do
|
104
105
|
repeated :usages, :enum, 1, "google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage"
|
106
|
+
optional :worker_pool, :string, 4
|
107
|
+
optional :service_account, :string, 5
|
108
|
+
optional :artifact_storage, :string, 6
|
105
109
|
oneof :execution_environment do
|
106
110
|
optional :default_pool, :message, 2, "google.cloud.deploy.v1.DefaultPool"
|
107
111
|
optional :private_pool, :message, 3, "google.cloud.deploy.v1.PrivatePool"
|
@@ -123,6 +127,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
123
127
|
end
|
124
128
|
add_message "google.cloud.deploy.v1.GkeCluster" do
|
125
129
|
optional :cluster, :string, 1
|
130
|
+
optional :internal_ip, :bool, 2
|
131
|
+
end
|
132
|
+
add_message "google.cloud.deploy.v1.AnthosCluster" do
|
133
|
+
optional :membership, :string, 1
|
126
134
|
end
|
127
135
|
add_message "google.cloud.deploy.v1.ListTargetsRequest" do
|
128
136
|
optional :parent, :string, 1
|
@@ -183,6 +191,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
183
191
|
add_message "google.cloud.deploy.v1.Release.TargetRender" do
|
184
192
|
optional :rendering_build, :string, 1
|
185
193
|
optional :rendering_state, :enum, 2, "google.cloud.deploy.v1.Release.TargetRender.TargetRenderState"
|
194
|
+
optional :failure_cause, :enum, 4, "google.cloud.deploy.v1.Release.TargetRender.FailureCause"
|
186
195
|
end
|
187
196
|
add_enum "google.cloud.deploy.v1.Release.TargetRender.TargetRenderState" do
|
188
197
|
value :TARGET_RENDER_STATE_UNSPECIFIED, 0
|
@@ -190,6 +199,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
190
199
|
value :FAILED, 2
|
191
200
|
value :IN_PROGRESS, 3
|
192
201
|
end
|
202
|
+
add_enum "google.cloud.deploy.v1.Release.TargetRender.FailureCause" do
|
203
|
+
value :FAILURE_CAUSE_UNSPECIFIED, 0
|
204
|
+
value :CLOUD_BUILD_UNAVAILABLE, 1
|
205
|
+
value :EXECUTION_FAILED, 2
|
206
|
+
end
|
193
207
|
add_enum "google.cloud.deploy.v1.Release.RenderState" do
|
194
208
|
value :RENDER_STATE_UNSPECIFIED, 0
|
195
209
|
value :SUCCEEDED, 1
|
@@ -246,6 +260,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
246
260
|
optional :failure_reason, :string, 14
|
247
261
|
optional :deploying_build, :string, 17
|
248
262
|
optional :etag, :string, 16
|
263
|
+
optional :deploy_failure_cause, :enum, 19, "google.cloud.deploy.v1.Rollout.FailureCause"
|
249
264
|
end
|
250
265
|
add_enum "google.cloud.deploy.v1.Rollout.ApprovalState" do
|
251
266
|
value :APPROVAL_STATE_UNSPECIFIED, 0
|
@@ -264,6 +279,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
264
279
|
value :PENDING, 6
|
265
280
|
value :PENDING_RELEASE, 7
|
266
281
|
end
|
282
|
+
add_enum "google.cloud.deploy.v1.Rollout.FailureCause" do
|
283
|
+
value :FAILURE_CAUSE_UNSPECIFIED, 0
|
284
|
+
value :CLOUD_BUILD_UNAVAILABLE, 1
|
285
|
+
value :EXECUTION_FAILED, 2
|
286
|
+
value :DEADLINE_EXCEEDED, 3
|
287
|
+
value :RELEASE_FAILED, 4
|
288
|
+
end
|
267
289
|
add_message "google.cloud.deploy.v1.ListRolloutsRequest" do
|
268
290
|
optional :parent, :string, 1
|
269
291
|
optional :page_size, :int32, 2
|
@@ -338,6 +360,7 @@ module Google
|
|
338
360
|
DefaultPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.DefaultPool").msgclass
|
339
361
|
PrivatePool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.PrivatePool").msgclass
|
340
362
|
GkeCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.GkeCluster").msgclass
|
363
|
+
AnthosCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.AnthosCluster").msgclass
|
341
364
|
ListTargetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ListTargetsRequest").msgclass
|
342
365
|
ListTargetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ListTargetsResponse").msgclass
|
343
366
|
GetTargetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.GetTargetRequest").msgclass
|
@@ -347,6 +370,7 @@ module Google
|
|
347
370
|
Release = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Release").msgclass
|
348
371
|
Release::TargetRender = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Release.TargetRender").msgclass
|
349
372
|
Release::TargetRender::TargetRenderState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Release.TargetRender.TargetRenderState").enummodule
|
373
|
+
Release::TargetRender::FailureCause = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Release.TargetRender.FailureCause").enummodule
|
350
374
|
Release::RenderState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Release.RenderState").enummodule
|
351
375
|
BuildArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.BuildArtifact").msgclass
|
352
376
|
TargetArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.TargetArtifact").msgclass
|
@@ -357,6 +381,7 @@ module Google
|
|
357
381
|
Rollout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Rollout").msgclass
|
358
382
|
Rollout::ApprovalState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Rollout.ApprovalState").enummodule
|
359
383
|
Rollout::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Rollout.State").enummodule
|
384
|
+
Rollout::FailureCause = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Rollout.FailureCause").enummodule
|
360
385
|
ListRolloutsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ListRolloutsRequest").msgclass
|
361
386
|
ListRolloutsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ListRolloutsResponse").msgclass
|
362
387
|
GetRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.GetRolloutRequest").msgclass
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/deploy/v1/deliverypipeline_notification_payload.proto
|
3
|
+
|
4
|
+
require 'google/cloud/deploy/v1/log_enums_pb'
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/deploy/v1/deliverypipeline_notification_payload.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.deploy.v1.DeliveryPipelineNotificationEvent" do
|
10
|
+
optional :message, :string, 1
|
11
|
+
optional :delivery_pipeline, :string, 2
|
12
|
+
optional :type, :enum, 3, "google.cloud.deploy.v1.Type"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Cloud
|
19
|
+
module Deploy
|
20
|
+
module V1
|
21
|
+
DeliveryPipelineNotificationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.DeliveryPipelineNotificationEvent").msgclass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/deploy/v1/log_enums.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/cloud/deploy/v1/log_enums.proto", :syntax => :proto3) do
|
8
|
+
add_enum "google.cloud.deploy.v1.Type" do
|
9
|
+
value :TYPE_UNSPECIFIED, 0
|
10
|
+
value :TYPE_PUBSUB_NOTIFICATION_FAILURE, 1
|
11
|
+
value :TYPE_RENDER_STATUES_CHANGE, 2
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Cloud
|
18
|
+
module Deploy
|
19
|
+
module V1
|
20
|
+
Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Type").enummodule
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/deploy/v1/release_notification_payload.proto
|
3
|
+
|
4
|
+
require 'google/cloud/deploy/v1/log_enums_pb'
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/deploy/v1/release_notification_payload.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.deploy.v1.ReleaseNotificationEvent" do
|
10
|
+
optional :message, :string, 1
|
11
|
+
optional :release, :string, 2
|
12
|
+
optional :type, :enum, 3, "google.cloud.deploy.v1.Type"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Cloud
|
19
|
+
module Deploy
|
20
|
+
module V1
|
21
|
+
ReleaseNotificationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ReleaseNotificationEvent").msgclass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/deploy/v1/release_render_payload.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
+
add_file("google/cloud/deploy/v1/release_render_payload.proto", :syntax => :proto3) do
|
8
|
+
add_message "google.cloud.deploy.v1.ReleaseRenderEvent" do
|
9
|
+
optional :message, :string, 1
|
10
|
+
optional :release, :string, 2
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Cloud
|
17
|
+
module Deploy
|
18
|
+
module V1
|
19
|
+
ReleaseRenderEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ReleaseRenderEvent").msgclass
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/deploy/v1/rollout_notification_payload.proto
|
3
|
+
|
4
|
+
require 'google/cloud/deploy/v1/log_enums_pb'
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/deploy/v1/rollout_notification_payload.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.deploy.v1.RolloutNotificationEvent" do
|
10
|
+
optional :message, :string, 1
|
11
|
+
optional :pipeline_uid, :string, 2
|
12
|
+
optional :release_uid, :string, 3
|
13
|
+
optional :rollout, :string, 4
|
14
|
+
optional :type, :enum, 5, "google.cloud.deploy.v1.Type"
|
15
|
+
optional :target_id, :string, 6
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Deploy
|
23
|
+
module V1
|
24
|
+
RolloutNotificationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.RolloutNotificationEvent").msgclass
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/deploy/v1/target_notification_payload.proto
|
3
|
+
|
4
|
+
require 'google/cloud/deploy/v1/log_enums_pb'
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/deploy/v1/target_notification_payload.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.deploy.v1.TargetNotificationEvent" do
|
10
|
+
optional :message, :string, 1
|
11
|
+
optional :target, :string, 2
|
12
|
+
optional :type, :enum, 3, "google.cloud.deploy.v1.Type"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Cloud
|
19
|
+
module Deploy
|
20
|
+
module V1
|
21
|
+
TargetNotificationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.TargetNotificationEvent").msgclass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|