google-cloud-eventarc-v1 1.0.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/eventarc/v1/bindings_override.rb +96 -0
- data/lib/google/cloud/eventarc/v1/channel_pb.rb +1 -1
- data/lib/google/cloud/eventarc/v1/enrollment_pb.rb +47 -0
- data/lib/google/cloud/eventarc/v1/eventarc/client.rb +2595 -187
- data/lib/google/cloud/eventarc/v1/eventarc/operations.rb +12 -15
- data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +112 -0
- data/lib/google/cloud/eventarc/v1/eventarc/rest/client.rb +2442 -193
- data/lib/google/cloud/eventarc/v1/eventarc/rest/operations.rb +43 -38
- data/lib/google/cloud/eventarc/v1/eventarc/rest/service_stub.rb +1602 -265
- data/lib/google/cloud/eventarc/v1/eventarc_pb.rb +35 -1
- data/lib/google/cloud/eventarc/v1/eventarc_services_pb.rb +42 -0
- data/lib/google/cloud/eventarc/v1/google_api_source_pb.rb +50 -0
- data/lib/google/cloud/eventarc/v1/logging_config_pb.rb +45 -0
- data/lib/google/cloud/eventarc/v1/message_bus_pb.rb +49 -0
- data/lib/google/cloud/eventarc/v1/network_config_pb.rb +45 -0
- data/lib/google/cloud/eventarc/v1/pipeline_pb.rb +65 -0
- data/lib/google/cloud/eventarc/v1/trigger_pb.rb +4 -1
- data/lib/google/cloud/eventarc/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/eventarc/v1/channel.rb +5 -1
- data/proto_docs/google/cloud/eventarc/v1/discovery.rb +8 -7
- data/proto_docs/google/cloud/eventarc/v1/enrollment.rb +95 -0
- data/proto_docs/google/cloud/eventarc/v1/eventarc.rb +522 -8
- data/proto_docs/google/cloud/eventarc/v1/google_api_source.rb +95 -0
- data/proto_docs/google/cloud/eventarc/v1/logging_config.rb +78 -0
- data/proto_docs/google/cloud/eventarc/v1/message_bus.rb +94 -0
- data/proto_docs/google/cloud/eventarc/v1/network_config.rb +37 -0
- data/proto_docs/google/cloud/eventarc/v1/pipeline.rb +583 -0
- data/proto_docs/google/cloud/eventarc/v1/trigger.rb +76 -35
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +18 -5
@@ -124,14 +124,6 @@ module Google
|
|
124
124
|
# Lists operations that match the specified filter in the request. If the
|
125
125
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
126
126
|
#
|
127
|
-
# NOTE: the `name` binding allows API services to override the binding
|
128
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
129
|
-
# override the binding, API services can add a binding such as
|
130
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
131
|
-
# For backwards compatibility, the default name includes the operations
|
132
|
-
# collection id, however overriding users must ensure the name binding
|
133
|
-
# is the parent resource, without the operations collection id.
|
134
|
-
#
|
135
127
|
# @overload list_operations(request, options = nil)
|
136
128
|
# Pass arguments to `list_operations` via a request object, either of type
|
137
129
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -221,7 +213,7 @@ module Google
|
|
221
213
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
222
214
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
223
215
|
yield response, operation if block_given?
|
224
|
-
|
216
|
+
throw :response, response
|
225
217
|
end
|
226
218
|
rescue ::GRPC::BadStatus => e
|
227
219
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -317,7 +309,7 @@ module Google
|
|
317
309
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
318
310
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
319
311
|
yield response, operation if block_given?
|
320
|
-
|
312
|
+
throw :response, response
|
321
313
|
end
|
322
314
|
rescue ::GRPC::BadStatus => e
|
323
315
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -406,7 +398,6 @@ module Google
|
|
406
398
|
|
407
399
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
408
400
|
yield response, operation if block_given?
|
409
|
-
return response
|
410
401
|
end
|
411
402
|
rescue ::GRPC::BadStatus => e
|
412
403
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -421,8 +412,9 @@ module Google
|
|
421
412
|
# other methods to check whether the cancellation succeeded or whether the
|
422
413
|
# operation completed despite cancellation. On successful cancellation,
|
423
414
|
# the operation is not deleted; instead, it becomes an operation with
|
424
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
425
|
-
# corresponding to
|
415
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
416
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
417
|
+
# `Code.CANCELLED`.
|
426
418
|
#
|
427
419
|
# @overload cancel_operation(request, options = nil)
|
428
420
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -501,7 +493,6 @@ module Google
|
|
501
493
|
|
502
494
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
503
495
|
yield response, operation if block_given?
|
504
|
-
return response
|
505
496
|
end
|
506
497
|
rescue ::GRPC::BadStatus => e
|
507
498
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -599,7 +590,7 @@ module Google
|
|
599
590
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
600
591
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
601
592
|
yield response, operation if block_given?
|
602
|
-
|
593
|
+
throw :response, response
|
603
594
|
end
|
604
595
|
rescue ::GRPC::BadStatus => e
|
605
596
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -688,6 +679,11 @@ module Google
|
|
688
679
|
# default endpoint URL. The default value of nil uses the environment
|
689
680
|
# universe (usually the default "googleapis.com" universe).
|
690
681
|
# @return [::String,nil]
|
682
|
+
# @!attribute [rw] logger
|
683
|
+
# A custom logger to use for request/response debug logging, or the value
|
684
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
685
|
+
# explicitly disable logging.
|
686
|
+
# @return [::Logger,:default,nil]
|
691
687
|
#
|
692
688
|
class Configuration
|
693
689
|
extend ::Gapic::Config
|
@@ -712,6 +708,7 @@ module Google
|
|
712
708
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
713
709
|
config_attr :quota_project, nil, ::String, nil
|
714
710
|
config_attr :universe_domain, nil, ::String, nil
|
711
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
715
712
|
|
716
713
|
# @private
|
717
714
|
def initialize parent_config = nil
|
@@ -102,6 +102,44 @@ module Google
|
|
102
102
|
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
103
103
|
end
|
104
104
|
|
105
|
+
##
|
106
|
+
# Create a fully-qualified Enrollment resource string.
|
107
|
+
#
|
108
|
+
# The resource will be in the following format:
|
109
|
+
#
|
110
|
+
# `projects/{project}/locations/{location}/enrollments/{enrollment}`
|
111
|
+
#
|
112
|
+
# @param project [String]
|
113
|
+
# @param location [String]
|
114
|
+
# @param enrollment [String]
|
115
|
+
#
|
116
|
+
# @return [::String]
|
117
|
+
def enrollment_path project:, location:, enrollment:
|
118
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
119
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
120
|
+
|
121
|
+
"projects/#{project}/locations/#{location}/enrollments/#{enrollment}"
|
122
|
+
end
|
123
|
+
|
124
|
+
##
|
125
|
+
# Create a fully-qualified GoogleApiSource resource string.
|
126
|
+
#
|
127
|
+
# The resource will be in the following format:
|
128
|
+
#
|
129
|
+
# `projects/{project}/locations/{location}/googleApiSources/{google_api_source}`
|
130
|
+
#
|
131
|
+
# @param project [String]
|
132
|
+
# @param location [String]
|
133
|
+
# @param google_api_source [String]
|
134
|
+
#
|
135
|
+
# @return [::String]
|
136
|
+
def google_api_source_path project:, location:, google_api_source:
|
137
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
138
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
139
|
+
|
140
|
+
"projects/#{project}/locations/#{location}/googleApiSources/#{google_api_source}"
|
141
|
+
end
|
142
|
+
|
105
143
|
##
|
106
144
|
# Create a fully-qualified GoogleChannelConfig resource string.
|
107
145
|
#
|
@@ -136,6 +174,63 @@ module Google
|
|
136
174
|
"projects/#{project}/locations/#{location}"
|
137
175
|
end
|
138
176
|
|
177
|
+
##
|
178
|
+
# Create a fully-qualified MessageBus resource string.
|
179
|
+
#
|
180
|
+
# The resource will be in the following format:
|
181
|
+
#
|
182
|
+
# `projects/{project}/locations/{location}/messageBuses/{message_bus}`
|
183
|
+
#
|
184
|
+
# @param project [String]
|
185
|
+
# @param location [String]
|
186
|
+
# @param message_bus [String]
|
187
|
+
#
|
188
|
+
# @return [::String]
|
189
|
+
def message_bus_path project:, location:, message_bus:
|
190
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
191
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
192
|
+
|
193
|
+
"projects/#{project}/locations/#{location}/messageBuses/#{message_bus}"
|
194
|
+
end
|
195
|
+
|
196
|
+
##
|
197
|
+
# Create a fully-qualified NetworkAttachment resource string.
|
198
|
+
#
|
199
|
+
# The resource will be in the following format:
|
200
|
+
#
|
201
|
+
# `projects/{project}/regions/{region}/networkAttachments/{networkattachment}`
|
202
|
+
#
|
203
|
+
# @param project [String]
|
204
|
+
# @param region [String]
|
205
|
+
# @param networkattachment [String]
|
206
|
+
#
|
207
|
+
# @return [::String]
|
208
|
+
def network_attachment_path project:, region:, networkattachment:
|
209
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
210
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
211
|
+
|
212
|
+
"projects/#{project}/regions/#{region}/networkAttachments/#{networkattachment}"
|
213
|
+
end
|
214
|
+
|
215
|
+
##
|
216
|
+
# Create a fully-qualified Pipeline resource string.
|
217
|
+
#
|
218
|
+
# The resource will be in the following format:
|
219
|
+
#
|
220
|
+
# `projects/{project}/locations/{location}/pipelines/{pipeline}`
|
221
|
+
#
|
222
|
+
# @param project [String]
|
223
|
+
# @param location [String]
|
224
|
+
# @param pipeline [String]
|
225
|
+
#
|
226
|
+
# @return [::String]
|
227
|
+
def pipeline_path project:, location:, pipeline:
|
228
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
229
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
230
|
+
|
231
|
+
"projects/#{project}/locations/#{location}/pipelines/#{pipeline}"
|
232
|
+
end
|
233
|
+
|
139
234
|
##
|
140
235
|
# Create a fully-qualified Provider resource string.
|
141
236
|
#
|
@@ -172,6 +267,23 @@ module Google
|
|
172
267
|
"projects/#{project}/serviceAccounts/#{service_account}"
|
173
268
|
end
|
174
269
|
|
270
|
+
##
|
271
|
+
# Create a fully-qualified Topic resource string.
|
272
|
+
#
|
273
|
+
# The resource will be in the following format:
|
274
|
+
#
|
275
|
+
# `projects/{project}/topics/{topic}`
|
276
|
+
#
|
277
|
+
# @param project [String]
|
278
|
+
# @param topic [String]
|
279
|
+
#
|
280
|
+
# @return [::String]
|
281
|
+
def topic_path project:, topic:
|
282
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
283
|
+
|
284
|
+
"projects/#{project}/topics/#{topic}"
|
285
|
+
end
|
286
|
+
|
175
287
|
##
|
176
288
|
# Create a fully-qualified Trigger resource string.
|
177
289
|
#
|