google-cloud-eventarc-v1 1.0.1 → 1.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/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
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the get_trigger REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "get_trigger",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::Eventarc::V1::Trigger.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "list_triggers",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::Eventarc::V1::ListTriggersResponse.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "create_trigger",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -201,16 +219,18 @@ module Google
|
|
201
219
|
|
202
220
|
response = @client_stub.make_http_request(
|
203
221
|
verb,
|
204
|
-
uri:
|
205
|
-
body:
|
206
|
-
params:
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
method_name: "update_trigger",
|
207
226
|
options: options
|
208
227
|
)
|
209
228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
210
229
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
211
|
-
|
212
|
-
|
213
|
-
|
230
|
+
catch :response do
|
231
|
+
yield result, operation if block_given?
|
232
|
+
result
|
233
|
+
end
|
214
234
|
end
|
215
235
|
|
216
236
|
##
|
@@ -239,16 +259,18 @@ module Google
|
|
239
259
|
|
240
260
|
response = @client_stub.make_http_request(
|
241
261
|
verb,
|
242
|
-
uri:
|
243
|
-
body:
|
244
|
-
params:
|
262
|
+
uri: uri,
|
263
|
+
body: body || "",
|
264
|
+
params: query_string_params,
|
265
|
+
method_name: "delete_trigger",
|
245
266
|
options: options
|
246
267
|
)
|
247
268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
248
269
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
249
|
-
|
250
|
-
|
251
|
-
|
270
|
+
catch :response do
|
271
|
+
yield result, operation if block_given?
|
272
|
+
result
|
273
|
+
end
|
252
274
|
end
|
253
275
|
|
254
276
|
##
|
@@ -277,16 +299,18 @@ module Google
|
|
277
299
|
|
278
300
|
response = @client_stub.make_http_request(
|
279
301
|
verb,
|
280
|
-
uri:
|
281
|
-
body:
|
282
|
-
params:
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "get_channel",
|
283
306
|
options: options
|
284
307
|
)
|
285
308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
286
309
|
result = ::Google::Cloud::Eventarc::V1::Channel.decode_json response.body, ignore_unknown_fields: true
|
287
|
-
|
288
|
-
|
289
|
-
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
290
314
|
end
|
291
315
|
|
292
316
|
##
|
@@ -315,16 +339,18 @@ module Google
|
|
315
339
|
|
316
340
|
response = @client_stub.make_http_request(
|
317
341
|
verb,
|
318
|
-
uri:
|
319
|
-
body:
|
320
|
-
params:
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "list_channels",
|
321
346
|
options: options
|
322
347
|
)
|
323
348
|
operation = ::Gapic::Rest::TransportOperation.new response
|
324
349
|
result = ::Google::Cloud::Eventarc::V1::ListChannelsResponse.decode_json response.body, ignore_unknown_fields: true
|
325
|
-
|
326
|
-
|
327
|
-
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
328
354
|
end
|
329
355
|
|
330
356
|
##
|
@@ -353,16 +379,18 @@ module Google
|
|
353
379
|
|
354
380
|
response = @client_stub.make_http_request(
|
355
381
|
verb,
|
356
|
-
uri:
|
357
|
-
body:
|
358
|
-
params:
|
382
|
+
uri: uri,
|
383
|
+
body: body || "",
|
384
|
+
params: query_string_params,
|
385
|
+
method_name: "create_channel",
|
359
386
|
options: options
|
360
387
|
)
|
361
388
|
operation = ::Gapic::Rest::TransportOperation.new response
|
362
389
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
363
|
-
|
364
|
-
|
365
|
-
|
390
|
+
catch :response do
|
391
|
+
yield result, operation if block_given?
|
392
|
+
result
|
393
|
+
end
|
366
394
|
end
|
367
395
|
|
368
396
|
##
|
@@ -391,16 +419,18 @@ module Google
|
|
391
419
|
|
392
420
|
response = @client_stub.make_http_request(
|
393
421
|
verb,
|
394
|
-
uri:
|
395
|
-
body:
|
396
|
-
params:
|
422
|
+
uri: uri,
|
423
|
+
body: body || "",
|
424
|
+
params: query_string_params,
|
425
|
+
method_name: "update_channel",
|
397
426
|
options: options
|
398
427
|
)
|
399
428
|
operation = ::Gapic::Rest::TransportOperation.new response
|
400
429
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
401
|
-
|
402
|
-
|
403
|
-
|
430
|
+
catch :response do
|
431
|
+
yield result, operation if block_given?
|
432
|
+
result
|
433
|
+
end
|
404
434
|
end
|
405
435
|
|
406
436
|
##
|
@@ -429,16 +459,18 @@ module Google
|
|
429
459
|
|
430
460
|
response = @client_stub.make_http_request(
|
431
461
|
verb,
|
432
|
-
uri:
|
433
|
-
body:
|
434
|
-
params:
|
462
|
+
uri: uri,
|
463
|
+
body: body || "",
|
464
|
+
params: query_string_params,
|
465
|
+
method_name: "delete_channel",
|
435
466
|
options: options
|
436
467
|
)
|
437
468
|
operation = ::Gapic::Rest::TransportOperation.new response
|
438
469
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
439
|
-
|
440
|
-
|
441
|
-
|
470
|
+
catch :response do
|
471
|
+
yield result, operation if block_given?
|
472
|
+
result
|
473
|
+
end
|
442
474
|
end
|
443
475
|
|
444
476
|
##
|
@@ -467,16 +499,18 @@ module Google
|
|
467
499
|
|
468
500
|
response = @client_stub.make_http_request(
|
469
501
|
verb,
|
470
|
-
uri:
|
471
|
-
body:
|
472
|
-
params:
|
502
|
+
uri: uri,
|
503
|
+
body: body || "",
|
504
|
+
params: query_string_params,
|
505
|
+
method_name: "get_provider",
|
473
506
|
options: options
|
474
507
|
)
|
475
508
|
operation = ::Gapic::Rest::TransportOperation.new response
|
476
509
|
result = ::Google::Cloud::Eventarc::V1::Provider.decode_json response.body, ignore_unknown_fields: true
|
477
|
-
|
478
|
-
|
479
|
-
|
510
|
+
catch :response do
|
511
|
+
yield result, operation if block_given?
|
512
|
+
result
|
513
|
+
end
|
480
514
|
end
|
481
515
|
|
482
516
|
##
|
@@ -505,16 +539,18 @@ module Google
|
|
505
539
|
|
506
540
|
response = @client_stub.make_http_request(
|
507
541
|
verb,
|
508
|
-
uri:
|
509
|
-
body:
|
510
|
-
params:
|
542
|
+
uri: uri,
|
543
|
+
body: body || "",
|
544
|
+
params: query_string_params,
|
545
|
+
method_name: "list_providers",
|
511
546
|
options: options
|
512
547
|
)
|
513
548
|
operation = ::Gapic::Rest::TransportOperation.new response
|
514
549
|
result = ::Google::Cloud::Eventarc::V1::ListProvidersResponse.decode_json response.body, ignore_unknown_fields: true
|
515
|
-
|
516
|
-
|
517
|
-
|
550
|
+
catch :response do
|
551
|
+
yield result, operation if block_given?
|
552
|
+
result
|
553
|
+
end
|
518
554
|
end
|
519
555
|
|
520
556
|
##
|
@@ -543,16 +579,18 @@ module Google
|
|
543
579
|
|
544
580
|
response = @client_stub.make_http_request(
|
545
581
|
verb,
|
546
|
-
uri:
|
547
|
-
body:
|
548
|
-
params:
|
582
|
+
uri: uri,
|
583
|
+
body: body || "",
|
584
|
+
params: query_string_params,
|
585
|
+
method_name: "get_channel_connection",
|
549
586
|
options: options
|
550
587
|
)
|
551
588
|
operation = ::Gapic::Rest::TransportOperation.new response
|
552
589
|
result = ::Google::Cloud::Eventarc::V1::ChannelConnection.decode_json response.body, ignore_unknown_fields: true
|
553
|
-
|
554
|
-
|
555
|
-
|
590
|
+
catch :response do
|
591
|
+
yield result, operation if block_given?
|
592
|
+
result
|
593
|
+
end
|
556
594
|
end
|
557
595
|
|
558
596
|
##
|
@@ -581,16 +619,18 @@ module Google
|
|
581
619
|
|
582
620
|
response = @client_stub.make_http_request(
|
583
621
|
verb,
|
584
|
-
uri:
|
585
|
-
body:
|
586
|
-
params:
|
622
|
+
uri: uri,
|
623
|
+
body: body || "",
|
624
|
+
params: query_string_params,
|
625
|
+
method_name: "list_channel_connections",
|
587
626
|
options: options
|
588
627
|
)
|
589
628
|
operation = ::Gapic::Rest::TransportOperation.new response
|
590
629
|
result = ::Google::Cloud::Eventarc::V1::ListChannelConnectionsResponse.decode_json response.body, ignore_unknown_fields: true
|
591
|
-
|
592
|
-
|
593
|
-
|
630
|
+
catch :response do
|
631
|
+
yield result, operation if block_given?
|
632
|
+
result
|
633
|
+
end
|
594
634
|
end
|
595
635
|
|
596
636
|
##
|
@@ -619,16 +659,18 @@ module Google
|
|
619
659
|
|
620
660
|
response = @client_stub.make_http_request(
|
621
661
|
verb,
|
622
|
-
uri:
|
623
|
-
body:
|
624
|
-
params:
|
662
|
+
uri: uri,
|
663
|
+
body: body || "",
|
664
|
+
params: query_string_params,
|
665
|
+
method_name: "create_channel_connection",
|
625
666
|
options: options
|
626
667
|
)
|
627
668
|
operation = ::Gapic::Rest::TransportOperation.new response
|
628
669
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
629
|
-
|
630
|
-
|
631
|
-
|
670
|
+
catch :response do
|
671
|
+
yield result, operation if block_given?
|
672
|
+
result
|
673
|
+
end
|
632
674
|
end
|
633
675
|
|
634
676
|
##
|
@@ -657,16 +699,18 @@ module Google
|
|
657
699
|
|
658
700
|
response = @client_stub.make_http_request(
|
659
701
|
verb,
|
660
|
-
uri:
|
661
|
-
body:
|
662
|
-
params:
|
702
|
+
uri: uri,
|
703
|
+
body: body || "",
|
704
|
+
params: query_string_params,
|
705
|
+
method_name: "delete_channel_connection",
|
663
706
|
options: options
|
664
707
|
)
|
665
708
|
operation = ::Gapic::Rest::TransportOperation.new response
|
666
709
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
667
|
-
|
668
|
-
|
669
|
-
|
710
|
+
catch :response do
|
711
|
+
yield result, operation if block_given?
|
712
|
+
result
|
713
|
+
end
|
670
714
|
end
|
671
715
|
|
672
716
|
##
|
@@ -695,16 +739,18 @@ module Google
|
|
695
739
|
|
696
740
|
response = @client_stub.make_http_request(
|
697
741
|
verb,
|
698
|
-
uri:
|
699
|
-
body:
|
700
|
-
params:
|
742
|
+
uri: uri,
|
743
|
+
body: body || "",
|
744
|
+
params: query_string_params,
|
745
|
+
method_name: "get_google_channel_config",
|
701
746
|
options: options
|
702
747
|
)
|
703
748
|
operation = ::Gapic::Rest::TransportOperation.new response
|
704
749
|
result = ::Google::Cloud::Eventarc::V1::GoogleChannelConfig.decode_json response.body, ignore_unknown_fields: true
|
705
|
-
|
706
|
-
|
707
|
-
|
750
|
+
catch :response do
|
751
|
+
yield result, operation if block_given?
|
752
|
+
result
|
753
|
+
end
|
708
754
|
end
|
709
755
|
|
710
756
|
##
|
@@ -733,160 +779,1279 @@ module Google
|
|
733
779
|
|
734
780
|
response = @client_stub.make_http_request(
|
735
781
|
verb,
|
736
|
-
uri:
|
737
|
-
body:
|
738
|
-
params:
|
782
|
+
uri: uri,
|
783
|
+
body: body || "",
|
784
|
+
params: query_string_params,
|
785
|
+
method_name: "update_google_channel_config",
|
739
786
|
options: options
|
740
787
|
)
|
741
788
|
operation = ::Gapic::Rest::TransportOperation.new response
|
742
789
|
result = ::Google::Cloud::Eventarc::V1::GoogleChannelConfig.decode_json response.body, ignore_unknown_fields: true
|
743
|
-
|
744
|
-
|
745
|
-
|
790
|
+
catch :response do
|
791
|
+
yield result, operation if block_given?
|
792
|
+
result
|
793
|
+
end
|
746
794
|
end
|
747
795
|
|
748
796
|
##
|
749
|
-
#
|
750
|
-
#
|
751
|
-
# GRPC transcoding helper method for the get_trigger REST call
|
797
|
+
# Baseline implementation for the get_message_bus REST call
|
752
798
|
#
|
753
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
799
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetMessageBusRequest]
|
754
800
|
# A request object representing the call parameters. Required.
|
755
|
-
# @
|
756
|
-
#
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
801
|
+
# @param options [::Gapic::CallOptions]
|
802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
803
|
+
#
|
804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
805
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::MessageBus]
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
807
|
+
#
|
808
|
+
# @return [::Google::Cloud::Eventarc::V1::MessageBus]
|
809
|
+
# A result object deserialized from the server's reply
|
810
|
+
def get_message_bus request_pb, options = nil
|
811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
812
|
+
|
813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_message_bus_request request_pb
|
814
|
+
query_string_params = if query_string_params.any?
|
815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
816
|
+
else
|
817
|
+
{}
|
818
|
+
end
|
819
|
+
|
820
|
+
response = @client_stub.make_http_request(
|
821
|
+
verb,
|
822
|
+
uri: uri,
|
823
|
+
body: body || "",
|
824
|
+
params: query_string_params,
|
825
|
+
method_name: "get_message_bus",
|
826
|
+
options: options
|
827
|
+
)
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
829
|
+
result = ::Google::Cloud::Eventarc::V1::MessageBus.decode_json response.body, ignore_unknown_fields: true
|
830
|
+
catch :response do
|
831
|
+
yield result, operation if block_given?
|
832
|
+
result
|
833
|
+
end
|
767
834
|
end
|
768
835
|
|
769
836
|
##
|
770
|
-
#
|
771
|
-
#
|
772
|
-
# GRPC transcoding helper method for the list_triggers REST call
|
837
|
+
# Baseline implementation for the list_message_buses REST call
|
773
838
|
#
|
774
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
839
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListMessageBusesRequest]
|
775
840
|
# A request object representing the call parameters. Required.
|
776
|
-
# @
|
777
|
-
#
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
841
|
+
# @param options [::Gapic::CallOptions]
|
842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
843
|
+
#
|
844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
845
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::ListMessageBusesResponse]
|
846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
847
|
+
#
|
848
|
+
# @return [::Google::Cloud::Eventarc::V1::ListMessageBusesResponse]
|
849
|
+
# A result object deserialized from the server's reply
|
850
|
+
def list_message_buses request_pb, options = nil
|
851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
852
|
+
|
853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_message_buses_request request_pb
|
854
|
+
query_string_params = if query_string_params.any?
|
855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
856
|
+
else
|
857
|
+
{}
|
858
|
+
end
|
859
|
+
|
860
|
+
response = @client_stub.make_http_request(
|
861
|
+
verb,
|
862
|
+
uri: uri,
|
863
|
+
body: body || "",
|
864
|
+
params: query_string_params,
|
865
|
+
method_name: "list_message_buses",
|
866
|
+
options: options
|
867
|
+
)
|
868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
869
|
+
result = ::Google::Cloud::Eventarc::V1::ListMessageBusesResponse.decode_json response.body, ignore_unknown_fields: true
|
870
|
+
catch :response do
|
871
|
+
yield result, operation if block_given?
|
872
|
+
result
|
873
|
+
end
|
788
874
|
end
|
789
875
|
|
790
876
|
##
|
791
|
-
#
|
792
|
-
#
|
793
|
-
# GRPC transcoding helper method for the create_trigger REST call
|
877
|
+
# Baseline implementation for the list_message_bus_enrollments REST call
|
794
878
|
#
|
795
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
879
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest]
|
796
880
|
# A request object representing the call parameters. Required.
|
797
|
-
# @
|
798
|
-
#
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
881
|
+
# @param options [::Gapic::CallOptions]
|
882
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
883
|
+
#
|
884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
885
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse]
|
886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
887
|
+
#
|
888
|
+
# @return [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse]
|
889
|
+
# A result object deserialized from the server's reply
|
890
|
+
def list_message_bus_enrollments request_pb, options = nil
|
891
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
892
|
+
|
893
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_message_bus_enrollments_request request_pb
|
894
|
+
query_string_params = if query_string_params.any?
|
895
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
896
|
+
else
|
897
|
+
{}
|
898
|
+
end
|
899
|
+
|
900
|
+
response = @client_stub.make_http_request(
|
901
|
+
verb,
|
902
|
+
uri: uri,
|
903
|
+
body: body || "",
|
904
|
+
params: query_string_params,
|
905
|
+
method_name: "list_message_bus_enrollments",
|
906
|
+
options: options
|
907
|
+
)
|
908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
909
|
+
result = ::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse.decode_json response.body, ignore_unknown_fields: true
|
910
|
+
catch :response do
|
911
|
+
yield result, operation if block_given?
|
912
|
+
result
|
913
|
+
end
|
810
914
|
end
|
811
915
|
|
812
916
|
##
|
813
|
-
#
|
814
|
-
#
|
815
|
-
# GRPC transcoding helper method for the update_trigger REST call
|
917
|
+
# Baseline implementation for the create_message_bus REST call
|
816
918
|
#
|
817
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
919
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreateMessageBusRequest]
|
818
920
|
# A request object representing the call parameters. Required.
|
819
|
-
# @
|
820
|
-
#
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
921
|
+
# @param options [::Gapic::CallOptions]
|
922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
923
|
+
#
|
924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
925
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
927
|
+
#
|
928
|
+
# @return [::Google::Longrunning::Operation]
|
929
|
+
# A result object deserialized from the server's reply
|
930
|
+
def create_message_bus request_pb, options = nil
|
931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
932
|
+
|
933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_message_bus_request request_pb
|
934
|
+
query_string_params = if query_string_params.any?
|
935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
936
|
+
else
|
937
|
+
{}
|
938
|
+
end
|
939
|
+
|
940
|
+
response = @client_stub.make_http_request(
|
941
|
+
verb,
|
942
|
+
uri: uri,
|
943
|
+
body: body || "",
|
944
|
+
params: query_string_params,
|
945
|
+
method_name: "create_message_bus",
|
946
|
+
options: options
|
947
|
+
)
|
948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
949
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
950
|
+
catch :response do
|
951
|
+
yield result, operation if block_given?
|
952
|
+
result
|
953
|
+
end
|
832
954
|
end
|
833
955
|
|
834
956
|
##
|
835
|
-
#
|
836
|
-
#
|
837
|
-
# GRPC transcoding helper method for the delete_trigger REST call
|
957
|
+
# Baseline implementation for the update_message_bus REST call
|
838
958
|
#
|
839
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
959
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest]
|
840
960
|
# A request object representing the call parameters. Required.
|
841
|
-
# @
|
842
|
-
#
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
961
|
+
# @param options [::Gapic::CallOptions]
|
962
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
963
|
+
#
|
964
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
965
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
966
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
967
|
+
#
|
968
|
+
# @return [::Google::Longrunning::Operation]
|
969
|
+
# A result object deserialized from the server's reply
|
970
|
+
def update_message_bus request_pb, options = nil
|
971
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
972
|
+
|
973
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_message_bus_request request_pb
|
974
|
+
query_string_params = if query_string_params.any?
|
975
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
976
|
+
else
|
977
|
+
{}
|
978
|
+
end
|
979
|
+
|
980
|
+
response = @client_stub.make_http_request(
|
981
|
+
verb,
|
982
|
+
uri: uri,
|
983
|
+
body: body || "",
|
984
|
+
params: query_string_params,
|
985
|
+
method_name: "update_message_bus",
|
986
|
+
options: options
|
987
|
+
)
|
988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
989
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
990
|
+
catch :response do
|
991
|
+
yield result, operation if block_given?
|
992
|
+
result
|
993
|
+
end
|
853
994
|
end
|
854
995
|
|
855
996
|
##
|
856
|
-
#
|
857
|
-
#
|
858
|
-
# GRPC transcoding helper method for the get_channel REST call
|
997
|
+
# Baseline implementation for the delete_message_bus REST call
|
859
998
|
#
|
860
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
999
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest]
|
861
1000
|
# A request object representing the call parameters. Required.
|
862
|
-
# @
|
863
|
-
#
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
1001
|
+
# @param options [::Gapic::CallOptions]
|
1002
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1003
|
+
#
|
1004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1005
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1007
|
+
#
|
1008
|
+
# @return [::Google::Longrunning::Operation]
|
1009
|
+
# A result object deserialized from the server's reply
|
1010
|
+
def delete_message_bus request_pb, options = nil
|
1011
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1012
|
+
|
1013
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_message_bus_request request_pb
|
1014
|
+
query_string_params = if query_string_params.any?
|
1015
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1016
|
+
else
|
1017
|
+
{}
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
response = @client_stub.make_http_request(
|
1021
|
+
verb,
|
1022
|
+
uri: uri,
|
1023
|
+
body: body || "",
|
1024
|
+
params: query_string_params,
|
1025
|
+
method_name: "delete_message_bus",
|
1026
|
+
options: options
|
1027
|
+
)
|
1028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1029
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1030
|
+
catch :response do
|
1031
|
+
yield result, operation if block_given?
|
1032
|
+
result
|
1033
|
+
end
|
874
1034
|
end
|
875
1035
|
|
876
1036
|
##
|
877
|
-
#
|
1037
|
+
# Baseline implementation for the get_enrollment REST call
|
878
1038
|
#
|
879
|
-
#
|
880
|
-
#
|
881
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::ListChannelsRequest]
|
1039
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetEnrollmentRequest]
|
882
1040
|
# A request object representing the call parameters. Required.
|
883
|
-
# @
|
1041
|
+
# @param options [::Gapic::CallOptions]
|
1042
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1043
|
+
#
|
1044
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1045
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::Enrollment]
|
1046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1047
|
+
#
|
1048
|
+
# @return [::Google::Cloud::Eventarc::V1::Enrollment]
|
1049
|
+
# A result object deserialized from the server's reply
|
1050
|
+
def get_enrollment request_pb, options = nil
|
1051
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1052
|
+
|
1053
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_enrollment_request request_pb
|
1054
|
+
query_string_params = if query_string_params.any?
|
1055
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1056
|
+
else
|
1057
|
+
{}
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
response = @client_stub.make_http_request(
|
1061
|
+
verb,
|
1062
|
+
uri: uri,
|
1063
|
+
body: body || "",
|
1064
|
+
params: query_string_params,
|
1065
|
+
method_name: "get_enrollment",
|
1066
|
+
options: options
|
1067
|
+
)
|
1068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1069
|
+
result = ::Google::Cloud::Eventarc::V1::Enrollment.decode_json response.body, ignore_unknown_fields: true
|
1070
|
+
catch :response do
|
1071
|
+
yield result, operation if block_given?
|
1072
|
+
result
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
##
|
1077
|
+
# Baseline implementation for the list_enrollments REST call
|
1078
|
+
#
|
1079
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest]
|
1080
|
+
# A request object representing the call parameters. Required.
|
1081
|
+
# @param options [::Gapic::CallOptions]
|
1082
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1083
|
+
#
|
1084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1085
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse]
|
1086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1087
|
+
#
|
1088
|
+
# @return [::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse]
|
1089
|
+
# A result object deserialized from the server's reply
|
1090
|
+
def list_enrollments request_pb, options = nil
|
1091
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1092
|
+
|
1093
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_enrollments_request request_pb
|
1094
|
+
query_string_params = if query_string_params.any?
|
1095
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1096
|
+
else
|
1097
|
+
{}
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
response = @client_stub.make_http_request(
|
1101
|
+
verb,
|
1102
|
+
uri: uri,
|
1103
|
+
body: body || "",
|
1104
|
+
params: query_string_params,
|
1105
|
+
method_name: "list_enrollments",
|
1106
|
+
options: options
|
1107
|
+
)
|
1108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1109
|
+
result = ::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse.decode_json response.body, ignore_unknown_fields: true
|
1110
|
+
catch :response do
|
1111
|
+
yield result, operation if block_given?
|
1112
|
+
result
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
##
|
1117
|
+
# Baseline implementation for the create_enrollment REST call
|
1118
|
+
#
|
1119
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest]
|
1120
|
+
# A request object representing the call parameters. Required.
|
1121
|
+
# @param options [::Gapic::CallOptions]
|
1122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1123
|
+
#
|
1124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1125
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1127
|
+
#
|
1128
|
+
# @return [::Google::Longrunning::Operation]
|
1129
|
+
# A result object deserialized from the server's reply
|
1130
|
+
def create_enrollment request_pb, options = nil
|
1131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1132
|
+
|
1133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_enrollment_request request_pb
|
1134
|
+
query_string_params = if query_string_params.any?
|
1135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1136
|
+
else
|
1137
|
+
{}
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
response = @client_stub.make_http_request(
|
1141
|
+
verb,
|
1142
|
+
uri: uri,
|
1143
|
+
body: body || "",
|
1144
|
+
params: query_string_params,
|
1145
|
+
method_name: "create_enrollment",
|
1146
|
+
options: options
|
1147
|
+
)
|
1148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1149
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1150
|
+
catch :response do
|
1151
|
+
yield result, operation if block_given?
|
1152
|
+
result
|
1153
|
+
end
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
##
|
1157
|
+
# Baseline implementation for the update_enrollment REST call
|
1158
|
+
#
|
1159
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest]
|
1160
|
+
# A request object representing the call parameters. Required.
|
1161
|
+
# @param options [::Gapic::CallOptions]
|
1162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1163
|
+
#
|
1164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1165
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1167
|
+
#
|
1168
|
+
# @return [::Google::Longrunning::Operation]
|
1169
|
+
# A result object deserialized from the server's reply
|
1170
|
+
def update_enrollment request_pb, options = nil
|
1171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1172
|
+
|
1173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_enrollment_request request_pb
|
1174
|
+
query_string_params = if query_string_params.any?
|
1175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1176
|
+
else
|
1177
|
+
{}
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
response = @client_stub.make_http_request(
|
1181
|
+
verb,
|
1182
|
+
uri: uri,
|
1183
|
+
body: body || "",
|
1184
|
+
params: query_string_params,
|
1185
|
+
method_name: "update_enrollment",
|
1186
|
+
options: options
|
1187
|
+
)
|
1188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1189
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1190
|
+
catch :response do
|
1191
|
+
yield result, operation if block_given?
|
1192
|
+
result
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
##
|
1197
|
+
# Baseline implementation for the delete_enrollment REST call
|
1198
|
+
#
|
1199
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest]
|
1200
|
+
# A request object representing the call parameters. Required.
|
1201
|
+
# @param options [::Gapic::CallOptions]
|
1202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1203
|
+
#
|
1204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1205
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1207
|
+
#
|
1208
|
+
# @return [::Google::Longrunning::Operation]
|
1209
|
+
# A result object deserialized from the server's reply
|
1210
|
+
def delete_enrollment request_pb, options = nil
|
1211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1212
|
+
|
1213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_enrollment_request request_pb
|
1214
|
+
query_string_params = if query_string_params.any?
|
1215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1216
|
+
else
|
1217
|
+
{}
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
response = @client_stub.make_http_request(
|
1221
|
+
verb,
|
1222
|
+
uri: uri,
|
1223
|
+
body: body || "",
|
1224
|
+
params: query_string_params,
|
1225
|
+
method_name: "delete_enrollment",
|
1226
|
+
options: options
|
1227
|
+
)
|
1228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1229
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1230
|
+
catch :response do
|
1231
|
+
yield result, operation if block_given?
|
1232
|
+
result
|
1233
|
+
end
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
##
|
1237
|
+
# Baseline implementation for the get_pipeline REST call
|
1238
|
+
#
|
1239
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetPipelineRequest]
|
1240
|
+
# A request object representing the call parameters. Required.
|
1241
|
+
# @param options [::Gapic::CallOptions]
|
1242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1243
|
+
#
|
1244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1245
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::Pipeline]
|
1246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1247
|
+
#
|
1248
|
+
# @return [::Google::Cloud::Eventarc::V1::Pipeline]
|
1249
|
+
# A result object deserialized from the server's reply
|
1250
|
+
def get_pipeline request_pb, options = nil
|
1251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1252
|
+
|
1253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_pipeline_request request_pb
|
1254
|
+
query_string_params = if query_string_params.any?
|
1255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1256
|
+
else
|
1257
|
+
{}
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
response = @client_stub.make_http_request(
|
1261
|
+
verb,
|
1262
|
+
uri: uri,
|
1263
|
+
body: body || "",
|
1264
|
+
params: query_string_params,
|
1265
|
+
method_name: "get_pipeline",
|
1266
|
+
options: options
|
1267
|
+
)
|
1268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1269
|
+
result = ::Google::Cloud::Eventarc::V1::Pipeline.decode_json response.body, ignore_unknown_fields: true
|
1270
|
+
catch :response do
|
1271
|
+
yield result, operation if block_given?
|
1272
|
+
result
|
1273
|
+
end
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
##
|
1277
|
+
# Baseline implementation for the list_pipelines REST call
|
1278
|
+
#
|
1279
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListPipelinesRequest]
|
1280
|
+
# A request object representing the call parameters. Required.
|
1281
|
+
# @param options [::Gapic::CallOptions]
|
1282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1283
|
+
#
|
1284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1285
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::ListPipelinesResponse]
|
1286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1287
|
+
#
|
1288
|
+
# @return [::Google::Cloud::Eventarc::V1::ListPipelinesResponse]
|
1289
|
+
# A result object deserialized from the server's reply
|
1290
|
+
def list_pipelines request_pb, options = nil
|
1291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1292
|
+
|
1293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_pipelines_request request_pb
|
1294
|
+
query_string_params = if query_string_params.any?
|
1295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1296
|
+
else
|
1297
|
+
{}
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
response = @client_stub.make_http_request(
|
1301
|
+
verb,
|
1302
|
+
uri: uri,
|
1303
|
+
body: body || "",
|
1304
|
+
params: query_string_params,
|
1305
|
+
method_name: "list_pipelines",
|
1306
|
+
options: options
|
1307
|
+
)
|
1308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1309
|
+
result = ::Google::Cloud::Eventarc::V1::ListPipelinesResponse.decode_json response.body, ignore_unknown_fields: true
|
1310
|
+
catch :response do
|
1311
|
+
yield result, operation if block_given?
|
1312
|
+
result
|
1313
|
+
end
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
##
|
1317
|
+
# Baseline implementation for the create_pipeline REST call
|
1318
|
+
#
|
1319
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreatePipelineRequest]
|
1320
|
+
# A request object representing the call parameters. Required.
|
1321
|
+
# @param options [::Gapic::CallOptions]
|
1322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1323
|
+
#
|
1324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1325
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1327
|
+
#
|
1328
|
+
# @return [::Google::Longrunning::Operation]
|
1329
|
+
# A result object deserialized from the server's reply
|
1330
|
+
def create_pipeline request_pb, options = nil
|
1331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1332
|
+
|
1333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_pipeline_request request_pb
|
1334
|
+
query_string_params = if query_string_params.any?
|
1335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1336
|
+
else
|
1337
|
+
{}
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
response = @client_stub.make_http_request(
|
1341
|
+
verb,
|
1342
|
+
uri: uri,
|
1343
|
+
body: body || "",
|
1344
|
+
params: query_string_params,
|
1345
|
+
method_name: "create_pipeline",
|
1346
|
+
options: options
|
1347
|
+
)
|
1348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1349
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1350
|
+
catch :response do
|
1351
|
+
yield result, operation if block_given?
|
1352
|
+
result
|
1353
|
+
end
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
##
|
1357
|
+
# Baseline implementation for the update_pipeline REST call
|
1358
|
+
#
|
1359
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdatePipelineRequest]
|
1360
|
+
# A request object representing the call parameters. Required.
|
1361
|
+
# @param options [::Gapic::CallOptions]
|
1362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1363
|
+
#
|
1364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1365
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1367
|
+
#
|
1368
|
+
# @return [::Google::Longrunning::Operation]
|
1369
|
+
# A result object deserialized from the server's reply
|
1370
|
+
def update_pipeline request_pb, options = nil
|
1371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1372
|
+
|
1373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_pipeline_request request_pb
|
1374
|
+
query_string_params = if query_string_params.any?
|
1375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1376
|
+
else
|
1377
|
+
{}
|
1378
|
+
end
|
1379
|
+
|
1380
|
+
response = @client_stub.make_http_request(
|
1381
|
+
verb,
|
1382
|
+
uri: uri,
|
1383
|
+
body: body || "",
|
1384
|
+
params: query_string_params,
|
1385
|
+
method_name: "update_pipeline",
|
1386
|
+
options: options
|
1387
|
+
)
|
1388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1389
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1390
|
+
catch :response do
|
1391
|
+
yield result, operation if block_given?
|
1392
|
+
result
|
1393
|
+
end
|
1394
|
+
end
|
1395
|
+
|
1396
|
+
##
|
1397
|
+
# Baseline implementation for the delete_pipeline REST call
|
1398
|
+
#
|
1399
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeletePipelineRequest]
|
1400
|
+
# A request object representing the call parameters. Required.
|
1401
|
+
# @param options [::Gapic::CallOptions]
|
1402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1403
|
+
#
|
1404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1405
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1407
|
+
#
|
1408
|
+
# @return [::Google::Longrunning::Operation]
|
1409
|
+
# A result object deserialized from the server's reply
|
1410
|
+
def delete_pipeline request_pb, options = nil
|
1411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1412
|
+
|
1413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_pipeline_request request_pb
|
1414
|
+
query_string_params = if query_string_params.any?
|
1415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1416
|
+
else
|
1417
|
+
{}
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
response = @client_stub.make_http_request(
|
1421
|
+
verb,
|
1422
|
+
uri: uri,
|
1423
|
+
body: body || "",
|
1424
|
+
params: query_string_params,
|
1425
|
+
method_name: "delete_pipeline",
|
1426
|
+
options: options
|
1427
|
+
)
|
1428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1429
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1430
|
+
catch :response do
|
1431
|
+
yield result, operation if block_given?
|
1432
|
+
result
|
1433
|
+
end
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
##
|
1437
|
+
# Baseline implementation for the get_google_api_source REST call
|
1438
|
+
#
|
1439
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest]
|
1440
|
+
# A request object representing the call parameters. Required.
|
1441
|
+
# @param options [::Gapic::CallOptions]
|
1442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1443
|
+
#
|
1444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1445
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::GoogleApiSource]
|
1446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1447
|
+
#
|
1448
|
+
# @return [::Google::Cloud::Eventarc::V1::GoogleApiSource]
|
1449
|
+
# A result object deserialized from the server's reply
|
1450
|
+
def get_google_api_source request_pb, options = nil
|
1451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1452
|
+
|
1453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_google_api_source_request request_pb
|
1454
|
+
query_string_params = if query_string_params.any?
|
1455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1456
|
+
else
|
1457
|
+
{}
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
response = @client_stub.make_http_request(
|
1461
|
+
verb,
|
1462
|
+
uri: uri,
|
1463
|
+
body: body || "",
|
1464
|
+
params: query_string_params,
|
1465
|
+
method_name: "get_google_api_source",
|
1466
|
+
options: options
|
1467
|
+
)
|
1468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1469
|
+
result = ::Google::Cloud::Eventarc::V1::GoogleApiSource.decode_json response.body, ignore_unknown_fields: true
|
1470
|
+
catch :response do
|
1471
|
+
yield result, operation if block_given?
|
1472
|
+
result
|
1473
|
+
end
|
1474
|
+
end
|
1475
|
+
|
1476
|
+
##
|
1477
|
+
# Baseline implementation for the list_google_api_sources REST call
|
1478
|
+
#
|
1479
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest]
|
1480
|
+
# A request object representing the call parameters. Required.
|
1481
|
+
# @param options [::Gapic::CallOptions]
|
1482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1483
|
+
#
|
1484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1485
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse]
|
1486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1487
|
+
#
|
1488
|
+
# @return [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse]
|
1489
|
+
# A result object deserialized from the server's reply
|
1490
|
+
def list_google_api_sources request_pb, options = nil
|
1491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1492
|
+
|
1493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_google_api_sources_request request_pb
|
1494
|
+
query_string_params = if query_string_params.any?
|
1495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1496
|
+
else
|
1497
|
+
{}
|
1498
|
+
end
|
1499
|
+
|
1500
|
+
response = @client_stub.make_http_request(
|
1501
|
+
verb,
|
1502
|
+
uri: uri,
|
1503
|
+
body: body || "",
|
1504
|
+
params: query_string_params,
|
1505
|
+
method_name: "list_google_api_sources",
|
1506
|
+
options: options
|
1507
|
+
)
|
1508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1509
|
+
result = ::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse.decode_json response.body, ignore_unknown_fields: true
|
1510
|
+
catch :response do
|
1511
|
+
yield result, operation if block_given?
|
1512
|
+
result
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
|
1516
|
+
##
|
1517
|
+
# Baseline implementation for the create_google_api_source REST call
|
1518
|
+
#
|
1519
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest]
|
1520
|
+
# A request object representing the call parameters. Required.
|
1521
|
+
# @param options [::Gapic::CallOptions]
|
1522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1523
|
+
#
|
1524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1525
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1527
|
+
#
|
1528
|
+
# @return [::Google::Longrunning::Operation]
|
1529
|
+
# A result object deserialized from the server's reply
|
1530
|
+
def create_google_api_source request_pb, options = nil
|
1531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1532
|
+
|
1533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_google_api_source_request request_pb
|
1534
|
+
query_string_params = if query_string_params.any?
|
1535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1536
|
+
else
|
1537
|
+
{}
|
1538
|
+
end
|
1539
|
+
|
1540
|
+
response = @client_stub.make_http_request(
|
1541
|
+
verb,
|
1542
|
+
uri: uri,
|
1543
|
+
body: body || "",
|
1544
|
+
params: query_string_params,
|
1545
|
+
method_name: "create_google_api_source",
|
1546
|
+
options: options
|
1547
|
+
)
|
1548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1549
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1550
|
+
catch :response do
|
1551
|
+
yield result, operation if block_given?
|
1552
|
+
result
|
1553
|
+
end
|
1554
|
+
end
|
1555
|
+
|
1556
|
+
##
|
1557
|
+
# Baseline implementation for the update_google_api_source REST call
|
1558
|
+
#
|
1559
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest]
|
1560
|
+
# A request object representing the call parameters. Required.
|
1561
|
+
# @param options [::Gapic::CallOptions]
|
1562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1563
|
+
#
|
1564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1565
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1567
|
+
#
|
1568
|
+
# @return [::Google::Longrunning::Operation]
|
1569
|
+
# A result object deserialized from the server's reply
|
1570
|
+
def update_google_api_source request_pb, options = nil
|
1571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1572
|
+
|
1573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_google_api_source_request request_pb
|
1574
|
+
query_string_params = if query_string_params.any?
|
1575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1576
|
+
else
|
1577
|
+
{}
|
1578
|
+
end
|
1579
|
+
|
1580
|
+
response = @client_stub.make_http_request(
|
1581
|
+
verb,
|
1582
|
+
uri: uri,
|
1583
|
+
body: body || "",
|
1584
|
+
params: query_string_params,
|
1585
|
+
method_name: "update_google_api_source",
|
1586
|
+
options: options
|
1587
|
+
)
|
1588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1589
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1590
|
+
catch :response do
|
1591
|
+
yield result, operation if block_given?
|
1592
|
+
result
|
1593
|
+
end
|
1594
|
+
end
|
1595
|
+
|
1596
|
+
##
|
1597
|
+
# Baseline implementation for the delete_google_api_source REST call
|
1598
|
+
#
|
1599
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest]
|
1600
|
+
# A request object representing the call parameters. Required.
|
1601
|
+
# @param options [::Gapic::CallOptions]
|
1602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1603
|
+
#
|
1604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1605
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1607
|
+
#
|
1608
|
+
# @return [::Google::Longrunning::Operation]
|
1609
|
+
# A result object deserialized from the server's reply
|
1610
|
+
def delete_google_api_source request_pb, options = nil
|
1611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1612
|
+
|
1613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_google_api_source_request request_pb
|
1614
|
+
query_string_params = if query_string_params.any?
|
1615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1616
|
+
else
|
1617
|
+
{}
|
1618
|
+
end
|
1619
|
+
|
1620
|
+
response = @client_stub.make_http_request(
|
1621
|
+
verb,
|
1622
|
+
uri: uri,
|
1623
|
+
body: body || "",
|
1624
|
+
params: query_string_params,
|
1625
|
+
method_name: "delete_google_api_source",
|
1626
|
+
options: options
|
1627
|
+
)
|
1628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1629
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1630
|
+
catch :response do
|
1631
|
+
yield result, operation if block_given?
|
1632
|
+
result
|
1633
|
+
end
|
1634
|
+
end
|
1635
|
+
|
1636
|
+
##
|
1637
|
+
# @private
|
1638
|
+
#
|
1639
|
+
# GRPC transcoding helper method for the get_trigger REST call
|
1640
|
+
#
|
1641
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetTriggerRequest]
|
1642
|
+
# A request object representing the call parameters. Required.
|
1643
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1644
|
+
# Uri, Body, Query string parameters
|
1645
|
+
def self.transcode_get_trigger_request request_pb
|
1646
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1647
|
+
.with_bindings(
|
1648
|
+
uri_method: :get,
|
1649
|
+
uri_template: "/v1/{name}",
|
1650
|
+
matches: [
|
1651
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
|
1652
|
+
]
|
1653
|
+
)
|
1654
|
+
transcoder.transcode request_pb
|
1655
|
+
end
|
1656
|
+
|
1657
|
+
##
|
1658
|
+
# @private
|
1659
|
+
#
|
1660
|
+
# GRPC transcoding helper method for the list_triggers REST call
|
1661
|
+
#
|
1662
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListTriggersRequest]
|
1663
|
+
# A request object representing the call parameters. Required.
|
1664
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1665
|
+
# Uri, Body, Query string parameters
|
1666
|
+
def self.transcode_list_triggers_request request_pb
|
1667
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1668
|
+
.with_bindings(
|
1669
|
+
uri_method: :get,
|
1670
|
+
uri_template: "/v1/{parent}/triggers",
|
1671
|
+
matches: [
|
1672
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1673
|
+
]
|
1674
|
+
)
|
1675
|
+
transcoder.transcode request_pb
|
1676
|
+
end
|
1677
|
+
|
1678
|
+
##
|
1679
|
+
# @private
|
1680
|
+
#
|
1681
|
+
# GRPC transcoding helper method for the create_trigger REST call
|
1682
|
+
#
|
1683
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreateTriggerRequest]
|
1684
|
+
# A request object representing the call parameters. Required.
|
1685
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1686
|
+
# Uri, Body, Query string parameters
|
1687
|
+
def self.transcode_create_trigger_request request_pb
|
1688
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1689
|
+
.with_bindings(
|
1690
|
+
uri_method: :post,
|
1691
|
+
uri_template: "/v1/{parent}/triggers",
|
1692
|
+
body: "trigger",
|
1693
|
+
matches: [
|
1694
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1695
|
+
]
|
1696
|
+
)
|
1697
|
+
transcoder.transcode request_pb
|
1698
|
+
end
|
1699
|
+
|
1700
|
+
##
|
1701
|
+
# @private
|
1702
|
+
#
|
1703
|
+
# GRPC transcoding helper method for the update_trigger REST call
|
1704
|
+
#
|
1705
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdateTriggerRequest]
|
1706
|
+
# A request object representing the call parameters. Required.
|
1707
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1708
|
+
# Uri, Body, Query string parameters
|
1709
|
+
def self.transcode_update_trigger_request request_pb
|
1710
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1711
|
+
.with_bindings(
|
1712
|
+
uri_method: :patch,
|
1713
|
+
uri_template: "/v1/{trigger.name}",
|
1714
|
+
body: "trigger",
|
1715
|
+
matches: [
|
1716
|
+
["trigger.name", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
|
1717
|
+
]
|
1718
|
+
)
|
1719
|
+
transcoder.transcode request_pb
|
1720
|
+
end
|
1721
|
+
|
1722
|
+
##
|
1723
|
+
# @private
|
1724
|
+
#
|
1725
|
+
# GRPC transcoding helper method for the delete_trigger REST call
|
1726
|
+
#
|
1727
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeleteTriggerRequest]
|
1728
|
+
# A request object representing the call parameters. Required.
|
1729
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1730
|
+
# Uri, Body, Query string parameters
|
1731
|
+
def self.transcode_delete_trigger_request request_pb
|
1732
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1733
|
+
.with_bindings(
|
1734
|
+
uri_method: :delete,
|
1735
|
+
uri_template: "/v1/{name}",
|
1736
|
+
matches: [
|
1737
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
|
1738
|
+
]
|
1739
|
+
)
|
1740
|
+
transcoder.transcode request_pb
|
1741
|
+
end
|
1742
|
+
|
1743
|
+
##
|
1744
|
+
# @private
|
1745
|
+
#
|
1746
|
+
# GRPC transcoding helper method for the get_channel REST call
|
1747
|
+
#
|
1748
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetChannelRequest]
|
1749
|
+
# A request object representing the call parameters. Required.
|
1750
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1751
|
+
# Uri, Body, Query string parameters
|
1752
|
+
def self.transcode_get_channel_request request_pb
|
1753
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1754
|
+
.with_bindings(
|
1755
|
+
uri_method: :get,
|
1756
|
+
uri_template: "/v1/{name}",
|
1757
|
+
matches: [
|
1758
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
|
1759
|
+
]
|
1760
|
+
)
|
1761
|
+
transcoder.transcode request_pb
|
1762
|
+
end
|
1763
|
+
|
1764
|
+
##
|
1765
|
+
# @private
|
1766
|
+
#
|
1767
|
+
# GRPC transcoding helper method for the list_channels REST call
|
1768
|
+
#
|
1769
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListChannelsRequest]
|
1770
|
+
# A request object representing the call parameters. Required.
|
1771
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1772
|
+
# Uri, Body, Query string parameters
|
1773
|
+
def self.transcode_list_channels_request request_pb
|
1774
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1775
|
+
.with_bindings(
|
1776
|
+
uri_method: :get,
|
1777
|
+
uri_template: "/v1/{parent}/channels",
|
1778
|
+
matches: [
|
1779
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1780
|
+
]
|
1781
|
+
)
|
1782
|
+
transcoder.transcode request_pb
|
1783
|
+
end
|
1784
|
+
|
1785
|
+
##
|
1786
|
+
# @private
|
1787
|
+
#
|
1788
|
+
# GRPC transcoding helper method for the create_channel REST call
|
1789
|
+
#
|
1790
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreateChannelRequest]
|
1791
|
+
# A request object representing the call parameters. Required.
|
1792
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1793
|
+
# Uri, Body, Query string parameters
|
1794
|
+
def self.transcode_create_channel_request request_pb
|
1795
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1796
|
+
.with_bindings(
|
1797
|
+
uri_method: :post,
|
1798
|
+
uri_template: "/v1/{parent}/channels",
|
1799
|
+
body: "channel",
|
1800
|
+
matches: [
|
1801
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1802
|
+
]
|
1803
|
+
)
|
1804
|
+
transcoder.transcode request_pb
|
1805
|
+
end
|
1806
|
+
|
1807
|
+
##
|
1808
|
+
# @private
|
1809
|
+
#
|
1810
|
+
# GRPC transcoding helper method for the update_channel REST call
|
1811
|
+
#
|
1812
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdateChannelRequest]
|
1813
|
+
# A request object representing the call parameters. Required.
|
1814
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1815
|
+
# Uri, Body, Query string parameters
|
1816
|
+
def self.transcode_update_channel_request request_pb
|
1817
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1818
|
+
.with_bindings(
|
1819
|
+
uri_method: :patch,
|
1820
|
+
uri_template: "/v1/{channel.name}",
|
1821
|
+
body: "channel",
|
1822
|
+
matches: [
|
1823
|
+
["channel.name", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
|
1824
|
+
]
|
1825
|
+
)
|
1826
|
+
transcoder.transcode request_pb
|
1827
|
+
end
|
1828
|
+
|
1829
|
+
##
|
1830
|
+
# @private
|
1831
|
+
#
|
1832
|
+
# GRPC transcoding helper method for the delete_channel REST call
|
1833
|
+
#
|
1834
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeleteChannelRequest]
|
1835
|
+
# A request object representing the call parameters. Required.
|
1836
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1837
|
+
# Uri, Body, Query string parameters
|
1838
|
+
def self.transcode_delete_channel_request request_pb
|
1839
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1840
|
+
.with_bindings(
|
1841
|
+
uri_method: :delete,
|
1842
|
+
uri_template: "/v1/{name}",
|
1843
|
+
matches: [
|
1844
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
|
1845
|
+
]
|
1846
|
+
)
|
1847
|
+
transcoder.transcode request_pb
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
##
|
1851
|
+
# @private
|
1852
|
+
#
|
1853
|
+
# GRPC transcoding helper method for the get_provider REST call
|
1854
|
+
#
|
1855
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetProviderRequest]
|
1856
|
+
# A request object representing the call parameters. Required.
|
1857
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1858
|
+
# Uri, Body, Query string parameters
|
1859
|
+
def self.transcode_get_provider_request request_pb
|
1860
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1861
|
+
.with_bindings(
|
1862
|
+
uri_method: :get,
|
1863
|
+
uri_template: "/v1/{name}",
|
1864
|
+
matches: [
|
1865
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/providers/[^/]+/?$}, false]
|
1866
|
+
]
|
1867
|
+
)
|
1868
|
+
transcoder.transcode request_pb
|
1869
|
+
end
|
1870
|
+
|
1871
|
+
##
|
1872
|
+
# @private
|
1873
|
+
#
|
1874
|
+
# GRPC transcoding helper method for the list_providers REST call
|
1875
|
+
#
|
1876
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListProvidersRequest]
|
1877
|
+
# A request object representing the call parameters. Required.
|
1878
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1879
|
+
# Uri, Body, Query string parameters
|
1880
|
+
def self.transcode_list_providers_request request_pb
|
1881
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1882
|
+
.with_bindings(
|
1883
|
+
uri_method: :get,
|
1884
|
+
uri_template: "/v1/{parent}/providers",
|
1885
|
+
matches: [
|
1886
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1887
|
+
]
|
1888
|
+
)
|
1889
|
+
transcoder.transcode request_pb
|
1890
|
+
end
|
1891
|
+
|
1892
|
+
##
|
1893
|
+
# @private
|
1894
|
+
#
|
1895
|
+
# GRPC transcoding helper method for the get_channel_connection REST call
|
1896
|
+
#
|
1897
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest]
|
1898
|
+
# A request object representing the call parameters. Required.
|
1899
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1900
|
+
# Uri, Body, Query string parameters
|
1901
|
+
def self.transcode_get_channel_connection_request request_pb
|
1902
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1903
|
+
.with_bindings(
|
1904
|
+
uri_method: :get,
|
1905
|
+
uri_template: "/v1/{name}",
|
1906
|
+
matches: [
|
1907
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
|
1908
|
+
]
|
1909
|
+
)
|
1910
|
+
transcoder.transcode request_pb
|
1911
|
+
end
|
1912
|
+
|
1913
|
+
##
|
1914
|
+
# @private
|
1915
|
+
#
|
1916
|
+
# GRPC transcoding helper method for the list_channel_connections REST call
|
1917
|
+
#
|
1918
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest]
|
1919
|
+
# A request object representing the call parameters. Required.
|
1920
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1921
|
+
# Uri, Body, Query string parameters
|
1922
|
+
def self.transcode_list_channel_connections_request request_pb
|
1923
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1924
|
+
.with_bindings(
|
1925
|
+
uri_method: :get,
|
1926
|
+
uri_template: "/v1/{parent}/channelConnections",
|
1927
|
+
matches: [
|
1928
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1929
|
+
]
|
1930
|
+
)
|
1931
|
+
transcoder.transcode request_pb
|
1932
|
+
end
|
1933
|
+
|
1934
|
+
##
|
1935
|
+
# @private
|
1936
|
+
#
|
1937
|
+
# GRPC transcoding helper method for the create_channel_connection REST call
|
1938
|
+
#
|
1939
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest]
|
1940
|
+
# A request object representing the call parameters. Required.
|
1941
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1942
|
+
# Uri, Body, Query string parameters
|
1943
|
+
def self.transcode_create_channel_connection_request request_pb
|
1944
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1945
|
+
.with_bindings(
|
1946
|
+
uri_method: :post,
|
1947
|
+
uri_template: "/v1/{parent}/channelConnections",
|
1948
|
+
body: "channel_connection",
|
1949
|
+
matches: [
|
1950
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1951
|
+
]
|
1952
|
+
)
|
1953
|
+
transcoder.transcode request_pb
|
1954
|
+
end
|
1955
|
+
|
1956
|
+
##
|
1957
|
+
# @private
|
1958
|
+
#
|
1959
|
+
# GRPC transcoding helper method for the delete_channel_connection REST call
|
1960
|
+
#
|
1961
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest]
|
1962
|
+
# A request object representing the call parameters. Required.
|
1963
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1964
|
+
# Uri, Body, Query string parameters
|
1965
|
+
def self.transcode_delete_channel_connection_request request_pb
|
1966
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1967
|
+
.with_bindings(
|
1968
|
+
uri_method: :delete,
|
1969
|
+
uri_template: "/v1/{name}",
|
1970
|
+
matches: [
|
1971
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
|
1972
|
+
]
|
1973
|
+
)
|
1974
|
+
transcoder.transcode request_pb
|
1975
|
+
end
|
1976
|
+
|
1977
|
+
##
|
1978
|
+
# @private
|
1979
|
+
#
|
1980
|
+
# GRPC transcoding helper method for the get_google_channel_config REST call
|
1981
|
+
#
|
1982
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest]
|
1983
|
+
# A request object representing the call parameters. Required.
|
1984
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
884
1985
|
# Uri, Body, Query string parameters
|
885
|
-
def self.
|
1986
|
+
def self.transcode_get_google_channel_config_request request_pb
|
886
1987
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
887
1988
|
.with_bindings(
|
888
1989
|
uri_method: :get,
|
889
|
-
uri_template: "/v1/{
|
1990
|
+
uri_template: "/v1/{name}",
|
1991
|
+
matches: [
|
1992
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/googleChannelConfig/?$}, false]
|
1993
|
+
]
|
1994
|
+
)
|
1995
|
+
transcoder.transcode request_pb
|
1996
|
+
end
|
1997
|
+
|
1998
|
+
##
|
1999
|
+
# @private
|
2000
|
+
#
|
2001
|
+
# GRPC transcoding helper method for the update_google_channel_config REST call
|
2002
|
+
#
|
2003
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest]
|
2004
|
+
# A request object representing the call parameters. Required.
|
2005
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2006
|
+
# Uri, Body, Query string parameters
|
2007
|
+
def self.transcode_update_google_channel_config_request request_pb
|
2008
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2009
|
+
.with_bindings(
|
2010
|
+
uri_method: :patch,
|
2011
|
+
uri_template: "/v1/{google_channel_config.name}",
|
2012
|
+
body: "google_channel_config",
|
2013
|
+
matches: [
|
2014
|
+
["google_channel_config.name", %r{^projects/[^/]+/locations/[^/]+/googleChannelConfig/?$}, false]
|
2015
|
+
]
|
2016
|
+
)
|
2017
|
+
transcoder.transcode request_pb
|
2018
|
+
end
|
2019
|
+
|
2020
|
+
##
|
2021
|
+
# @private
|
2022
|
+
#
|
2023
|
+
# GRPC transcoding helper method for the get_message_bus REST call
|
2024
|
+
#
|
2025
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetMessageBusRequest]
|
2026
|
+
# A request object representing the call parameters. Required.
|
2027
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2028
|
+
# Uri, Body, Query string parameters
|
2029
|
+
def self.transcode_get_message_bus_request request_pb
|
2030
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2031
|
+
.with_bindings(
|
2032
|
+
uri_method: :get,
|
2033
|
+
uri_template: "/v1/{name}",
|
2034
|
+
matches: [
|
2035
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+/?$}, false]
|
2036
|
+
]
|
2037
|
+
)
|
2038
|
+
transcoder.transcode request_pb
|
2039
|
+
end
|
2040
|
+
|
2041
|
+
##
|
2042
|
+
# @private
|
2043
|
+
#
|
2044
|
+
# GRPC transcoding helper method for the list_message_buses REST call
|
2045
|
+
#
|
2046
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListMessageBusesRequest]
|
2047
|
+
# A request object representing the call parameters. Required.
|
2048
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2049
|
+
# Uri, Body, Query string parameters
|
2050
|
+
def self.transcode_list_message_buses_request request_pb
|
2051
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2052
|
+
.with_bindings(
|
2053
|
+
uri_method: :get,
|
2054
|
+
uri_template: "/v1/{parent}/messageBuses",
|
890
2055
|
matches: [
|
891
2056
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
892
2057
|
]
|
@@ -897,18 +2062,39 @@ module Google
|
|
897
2062
|
##
|
898
2063
|
# @private
|
899
2064
|
#
|
900
|
-
# GRPC transcoding helper method for the
|
2065
|
+
# GRPC transcoding helper method for the list_message_bus_enrollments REST call
|
901
2066
|
#
|
902
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2067
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest]
|
903
2068
|
# A request object representing the call parameters. Required.
|
904
2069
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
905
2070
|
# Uri, Body, Query string parameters
|
906
|
-
def self.
|
2071
|
+
def self.transcode_list_message_bus_enrollments_request request_pb
|
2072
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2073
|
+
.with_bindings(
|
2074
|
+
uri_method: :get,
|
2075
|
+
uri_template: "/v1/{parent}:listEnrollments",
|
2076
|
+
matches: [
|
2077
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+/?$}, false]
|
2078
|
+
]
|
2079
|
+
)
|
2080
|
+
transcoder.transcode request_pb
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
##
|
2084
|
+
# @private
|
2085
|
+
#
|
2086
|
+
# GRPC transcoding helper method for the create_message_bus REST call
|
2087
|
+
#
|
2088
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreateMessageBusRequest]
|
2089
|
+
# A request object representing the call parameters. Required.
|
2090
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2091
|
+
# Uri, Body, Query string parameters
|
2092
|
+
def self.transcode_create_message_bus_request request_pb
|
907
2093
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
908
2094
|
.with_bindings(
|
909
2095
|
uri_method: :post,
|
910
|
-
uri_template: "/v1/{parent}/
|
911
|
-
body: "
|
2096
|
+
uri_template: "/v1/{parent}/messageBuses",
|
2097
|
+
body: "message_bus",
|
912
2098
|
matches: [
|
913
2099
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
914
2100
|
]
|
@@ -919,20 +2105,20 @@ module Google
|
|
919
2105
|
##
|
920
2106
|
# @private
|
921
2107
|
#
|
922
|
-
# GRPC transcoding helper method for the
|
2108
|
+
# GRPC transcoding helper method for the update_message_bus REST call
|
923
2109
|
#
|
924
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2110
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest]
|
925
2111
|
# A request object representing the call parameters. Required.
|
926
2112
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
927
2113
|
# Uri, Body, Query string parameters
|
928
|
-
def self.
|
2114
|
+
def self.transcode_update_message_bus_request request_pb
|
929
2115
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
930
2116
|
.with_bindings(
|
931
2117
|
uri_method: :patch,
|
932
|
-
uri_template: "/v1/{
|
933
|
-
body: "
|
2118
|
+
uri_template: "/v1/{message_bus.name}",
|
2119
|
+
body: "message_bus",
|
934
2120
|
matches: [
|
935
|
-
["
|
2121
|
+
["message_bus.name", %r{^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+/?$}, false]
|
936
2122
|
]
|
937
2123
|
)
|
938
2124
|
transcoder.transcode request_pb
|
@@ -941,19 +2127,19 @@ module Google
|
|
941
2127
|
##
|
942
2128
|
# @private
|
943
2129
|
#
|
944
|
-
# GRPC transcoding helper method for the
|
2130
|
+
# GRPC transcoding helper method for the delete_message_bus REST call
|
945
2131
|
#
|
946
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2132
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest]
|
947
2133
|
# A request object representing the call parameters. Required.
|
948
2134
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
949
2135
|
# Uri, Body, Query string parameters
|
950
|
-
def self.
|
2136
|
+
def self.transcode_delete_message_bus_request request_pb
|
951
2137
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
952
2138
|
.with_bindings(
|
953
2139
|
uri_method: :delete,
|
954
2140
|
uri_template: "/v1/{name}",
|
955
2141
|
matches: [
|
956
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
2142
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+/?$}, false]
|
957
2143
|
]
|
958
2144
|
)
|
959
2145
|
transcoder.transcode request_pb
|
@@ -962,19 +2148,19 @@ module Google
|
|
962
2148
|
##
|
963
2149
|
# @private
|
964
2150
|
#
|
965
|
-
# GRPC transcoding helper method for the
|
2151
|
+
# GRPC transcoding helper method for the get_enrollment REST call
|
966
2152
|
#
|
967
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2153
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetEnrollmentRequest]
|
968
2154
|
# A request object representing the call parameters. Required.
|
969
2155
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
970
2156
|
# Uri, Body, Query string parameters
|
971
|
-
def self.
|
2157
|
+
def self.transcode_get_enrollment_request request_pb
|
972
2158
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
973
2159
|
.with_bindings(
|
974
2160
|
uri_method: :get,
|
975
2161
|
uri_template: "/v1/{name}",
|
976
2162
|
matches: [
|
977
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
2163
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/enrollments/[^/]+/?$}, false]
|
978
2164
|
]
|
979
2165
|
)
|
980
2166
|
transcoder.transcode request_pb
|
@@ -983,17 +2169,17 @@ module Google
|
|
983
2169
|
##
|
984
2170
|
# @private
|
985
2171
|
#
|
986
|
-
# GRPC transcoding helper method for the
|
2172
|
+
# GRPC transcoding helper method for the list_enrollments REST call
|
987
2173
|
#
|
988
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2174
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest]
|
989
2175
|
# A request object representing the call parameters. Required.
|
990
2176
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
991
2177
|
# Uri, Body, Query string parameters
|
992
|
-
def self.
|
2178
|
+
def self.transcode_list_enrollments_request request_pb
|
993
2179
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
994
2180
|
.with_bindings(
|
995
2181
|
uri_method: :get,
|
996
|
-
uri_template: "/v1/{parent}/
|
2182
|
+
uri_template: "/v1/{parent}/enrollments",
|
997
2183
|
matches: [
|
998
2184
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
999
2185
|
]
|
@@ -1004,19 +2190,84 @@ module Google
|
|
1004
2190
|
##
|
1005
2191
|
# @private
|
1006
2192
|
#
|
1007
|
-
# GRPC transcoding helper method for the
|
2193
|
+
# GRPC transcoding helper method for the create_enrollment REST call
|
1008
2194
|
#
|
1009
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2195
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest]
|
1010
2196
|
# A request object representing the call parameters. Required.
|
1011
2197
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1012
2198
|
# Uri, Body, Query string parameters
|
1013
|
-
def self.
|
2199
|
+
def self.transcode_create_enrollment_request request_pb
|
2200
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2201
|
+
.with_bindings(
|
2202
|
+
uri_method: :post,
|
2203
|
+
uri_template: "/v1/{parent}/enrollments",
|
2204
|
+
body: "enrollment",
|
2205
|
+
matches: [
|
2206
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2207
|
+
]
|
2208
|
+
)
|
2209
|
+
transcoder.transcode request_pb
|
2210
|
+
end
|
2211
|
+
|
2212
|
+
##
|
2213
|
+
# @private
|
2214
|
+
#
|
2215
|
+
# GRPC transcoding helper method for the update_enrollment REST call
|
2216
|
+
#
|
2217
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest]
|
2218
|
+
# A request object representing the call parameters. Required.
|
2219
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2220
|
+
# Uri, Body, Query string parameters
|
2221
|
+
def self.transcode_update_enrollment_request request_pb
|
2222
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2223
|
+
.with_bindings(
|
2224
|
+
uri_method: :patch,
|
2225
|
+
uri_template: "/v1/{enrollment.name}",
|
2226
|
+
body: "enrollment",
|
2227
|
+
matches: [
|
2228
|
+
["enrollment.name", %r{^projects/[^/]+/locations/[^/]+/enrollments/[^/]+/?$}, false]
|
2229
|
+
]
|
2230
|
+
)
|
2231
|
+
transcoder.transcode request_pb
|
2232
|
+
end
|
2233
|
+
|
2234
|
+
##
|
2235
|
+
# @private
|
2236
|
+
#
|
2237
|
+
# GRPC transcoding helper method for the delete_enrollment REST call
|
2238
|
+
#
|
2239
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest]
|
2240
|
+
# A request object representing the call parameters. Required.
|
2241
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2242
|
+
# Uri, Body, Query string parameters
|
2243
|
+
def self.transcode_delete_enrollment_request request_pb
|
2244
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2245
|
+
.with_bindings(
|
2246
|
+
uri_method: :delete,
|
2247
|
+
uri_template: "/v1/{name}",
|
2248
|
+
matches: [
|
2249
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/enrollments/[^/]+/?$}, false]
|
2250
|
+
]
|
2251
|
+
)
|
2252
|
+
transcoder.transcode request_pb
|
2253
|
+
end
|
2254
|
+
|
2255
|
+
##
|
2256
|
+
# @private
|
2257
|
+
#
|
2258
|
+
# GRPC transcoding helper method for the get_pipeline REST call
|
2259
|
+
#
|
2260
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetPipelineRequest]
|
2261
|
+
# A request object representing the call parameters. Required.
|
2262
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2263
|
+
# Uri, Body, Query string parameters
|
2264
|
+
def self.transcode_get_pipeline_request request_pb
|
1014
2265
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1015
2266
|
.with_bindings(
|
1016
2267
|
uri_method: :get,
|
1017
2268
|
uri_template: "/v1/{name}",
|
1018
2269
|
matches: [
|
1019
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
2270
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/pipelines/[^/]+/?$}, false]
|
1020
2271
|
]
|
1021
2272
|
)
|
1022
2273
|
transcoder.transcode request_pb
|
@@ -1025,17 +2276,17 @@ module Google
|
|
1025
2276
|
##
|
1026
2277
|
# @private
|
1027
2278
|
#
|
1028
|
-
# GRPC transcoding helper method for the
|
2279
|
+
# GRPC transcoding helper method for the list_pipelines REST call
|
1029
2280
|
#
|
1030
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2281
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListPipelinesRequest]
|
1031
2282
|
# A request object representing the call parameters. Required.
|
1032
2283
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1033
2284
|
# Uri, Body, Query string parameters
|
1034
|
-
def self.
|
2285
|
+
def self.transcode_list_pipelines_request request_pb
|
1035
2286
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1036
2287
|
.with_bindings(
|
1037
2288
|
uri_method: :get,
|
1038
|
-
uri_template: "/v1/{parent}/
|
2289
|
+
uri_template: "/v1/{parent}/pipelines",
|
1039
2290
|
matches: [
|
1040
2291
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1041
2292
|
]
|
@@ -1046,18 +2297,18 @@ module Google
|
|
1046
2297
|
##
|
1047
2298
|
# @private
|
1048
2299
|
#
|
1049
|
-
# GRPC transcoding helper method for the
|
2300
|
+
# GRPC transcoding helper method for the create_pipeline REST call
|
1050
2301
|
#
|
1051
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2302
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreatePipelineRequest]
|
1052
2303
|
# A request object representing the call parameters. Required.
|
1053
2304
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1054
2305
|
# Uri, Body, Query string parameters
|
1055
|
-
def self.
|
2306
|
+
def self.transcode_create_pipeline_request request_pb
|
1056
2307
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1057
2308
|
.with_bindings(
|
1058
2309
|
uri_method: :post,
|
1059
|
-
uri_template: "/v1/{parent}/
|
1060
|
-
body: "
|
2310
|
+
uri_template: "/v1/{parent}/pipelines",
|
2311
|
+
body: "pipeline",
|
1061
2312
|
matches: [
|
1062
2313
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1063
2314
|
]
|
@@ -1068,19 +2319,41 @@ module Google
|
|
1068
2319
|
##
|
1069
2320
|
# @private
|
1070
2321
|
#
|
1071
|
-
# GRPC transcoding helper method for the
|
2322
|
+
# GRPC transcoding helper method for the update_pipeline REST call
|
1072
2323
|
#
|
1073
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2324
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdatePipelineRequest]
|
1074
2325
|
# A request object representing the call parameters. Required.
|
1075
2326
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1076
2327
|
# Uri, Body, Query string parameters
|
1077
|
-
def self.
|
2328
|
+
def self.transcode_update_pipeline_request request_pb
|
2329
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2330
|
+
.with_bindings(
|
2331
|
+
uri_method: :patch,
|
2332
|
+
uri_template: "/v1/{pipeline.name}",
|
2333
|
+
body: "pipeline",
|
2334
|
+
matches: [
|
2335
|
+
["pipeline.name", %r{^projects/[^/]+/locations/[^/]+/pipelines/[^/]+/?$}, false]
|
2336
|
+
]
|
2337
|
+
)
|
2338
|
+
transcoder.transcode request_pb
|
2339
|
+
end
|
2340
|
+
|
2341
|
+
##
|
2342
|
+
# @private
|
2343
|
+
#
|
2344
|
+
# GRPC transcoding helper method for the delete_pipeline REST call
|
2345
|
+
#
|
2346
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeletePipelineRequest]
|
2347
|
+
# A request object representing the call parameters. Required.
|
2348
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2349
|
+
# Uri, Body, Query string parameters
|
2350
|
+
def self.transcode_delete_pipeline_request request_pb
|
1078
2351
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1079
2352
|
.with_bindings(
|
1080
2353
|
uri_method: :delete,
|
1081
2354
|
uri_template: "/v1/{name}",
|
1082
2355
|
matches: [
|
1083
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
2356
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/pipelines/[^/]+/?$}, false]
|
1084
2357
|
]
|
1085
2358
|
)
|
1086
2359
|
transcoder.transcode request_pb
|
@@ -1089,19 +2362,19 @@ module Google
|
|
1089
2362
|
##
|
1090
2363
|
# @private
|
1091
2364
|
#
|
1092
|
-
# GRPC transcoding helper method for the
|
2365
|
+
# GRPC transcoding helper method for the get_google_api_source REST call
|
1093
2366
|
#
|
1094
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2367
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest]
|
1095
2368
|
# A request object representing the call parameters. Required.
|
1096
2369
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1097
2370
|
# Uri, Body, Query string parameters
|
1098
|
-
def self.
|
2371
|
+
def self.transcode_get_google_api_source_request request_pb
|
1099
2372
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1100
2373
|
.with_bindings(
|
1101
2374
|
uri_method: :get,
|
1102
2375
|
uri_template: "/v1/{name}",
|
1103
2376
|
matches: [
|
1104
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
2377
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/googleApiSources/[^/]+/?$}, false]
|
1105
2378
|
]
|
1106
2379
|
)
|
1107
2380
|
transcoder.transcode request_pb
|
@@ -1110,20 +2383,84 @@ module Google
|
|
1110
2383
|
##
|
1111
2384
|
# @private
|
1112
2385
|
#
|
1113
|
-
# GRPC transcoding helper method for the
|
2386
|
+
# GRPC transcoding helper method for the list_google_api_sources REST call
|
1114
2387
|
#
|
1115
|
-
# @param request_pb [::Google::Cloud::Eventarc::V1::
|
2388
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest]
|
1116
2389
|
# A request object representing the call parameters. Required.
|
1117
2390
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1118
2391
|
# Uri, Body, Query string parameters
|
1119
|
-
def self.
|
2392
|
+
def self.transcode_list_google_api_sources_request request_pb
|
2393
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2394
|
+
.with_bindings(
|
2395
|
+
uri_method: :get,
|
2396
|
+
uri_template: "/v1/{parent}/googleApiSources",
|
2397
|
+
matches: [
|
2398
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2399
|
+
]
|
2400
|
+
)
|
2401
|
+
transcoder.transcode request_pb
|
2402
|
+
end
|
2403
|
+
|
2404
|
+
##
|
2405
|
+
# @private
|
2406
|
+
#
|
2407
|
+
# GRPC transcoding helper method for the create_google_api_source REST call
|
2408
|
+
#
|
2409
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest]
|
2410
|
+
# A request object representing the call parameters. Required.
|
2411
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2412
|
+
# Uri, Body, Query string parameters
|
2413
|
+
def self.transcode_create_google_api_source_request request_pb
|
2414
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2415
|
+
.with_bindings(
|
2416
|
+
uri_method: :post,
|
2417
|
+
uri_template: "/v1/{parent}/googleApiSources",
|
2418
|
+
body: "google_api_source",
|
2419
|
+
matches: [
|
2420
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2421
|
+
]
|
2422
|
+
)
|
2423
|
+
transcoder.transcode request_pb
|
2424
|
+
end
|
2425
|
+
|
2426
|
+
##
|
2427
|
+
# @private
|
2428
|
+
#
|
2429
|
+
# GRPC transcoding helper method for the update_google_api_source REST call
|
2430
|
+
#
|
2431
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest]
|
2432
|
+
# A request object representing the call parameters. Required.
|
2433
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2434
|
+
# Uri, Body, Query string parameters
|
2435
|
+
def self.transcode_update_google_api_source_request request_pb
|
1120
2436
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1121
2437
|
.with_bindings(
|
1122
2438
|
uri_method: :patch,
|
1123
|
-
uri_template: "/v1/{
|
1124
|
-
body: "
|
2439
|
+
uri_template: "/v1/{google_api_source.name}",
|
2440
|
+
body: "google_api_source",
|
1125
2441
|
matches: [
|
1126
|
-
["
|
2442
|
+
["google_api_source.name", %r{^projects/[^/]+/locations/[^/]+/googleApiSources/[^/]+/?$}, false]
|
2443
|
+
]
|
2444
|
+
)
|
2445
|
+
transcoder.transcode request_pb
|
2446
|
+
end
|
2447
|
+
|
2448
|
+
##
|
2449
|
+
# @private
|
2450
|
+
#
|
2451
|
+
# GRPC transcoding helper method for the delete_google_api_source REST call
|
2452
|
+
#
|
2453
|
+
# @param request_pb [::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest]
|
2454
|
+
# A request object representing the call parameters. Required.
|
2455
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2456
|
+
# Uri, Body, Query string parameters
|
2457
|
+
def self.transcode_delete_google_api_source_request request_pb
|
2458
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2459
|
+
.with_bindings(
|
2460
|
+
uri_method: :delete,
|
2461
|
+
uri_template: "/v1/{name}",
|
2462
|
+
matches: [
|
2463
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/googleApiSources/[^/]+/?$}, false]
|
1127
2464
|
]
|
1128
2465
|
)
|
1129
2466
|
transcoder.transcode request_pb
|