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
@@ -75,6 +75,138 @@ module Google
|
|
75
75
|
end
|
76
76
|
default_config = Client::Configuration.new parent_config
|
77
77
|
|
78
|
+
default_config.rpcs.get_trigger.timeout = 60.0
|
79
|
+
default_config.rpcs.get_trigger.retry_policy = {
|
80
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
81
|
+
}
|
82
|
+
|
83
|
+
default_config.rpcs.list_triggers.timeout = 60.0
|
84
|
+
default_config.rpcs.list_triggers.retry_policy = {
|
85
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
86
|
+
}
|
87
|
+
|
88
|
+
default_config.rpcs.create_trigger.timeout = 60.0
|
89
|
+
|
90
|
+
default_config.rpcs.update_trigger.timeout = 60.0
|
91
|
+
|
92
|
+
default_config.rpcs.delete_trigger.timeout = 60.0
|
93
|
+
|
94
|
+
default_config.rpcs.get_channel.timeout = 60.0
|
95
|
+
default_config.rpcs.get_channel.retry_policy = {
|
96
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
97
|
+
}
|
98
|
+
|
99
|
+
default_config.rpcs.list_channels.timeout = 60.0
|
100
|
+
default_config.rpcs.list_channels.retry_policy = {
|
101
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
102
|
+
}
|
103
|
+
|
104
|
+
default_config.rpcs.create_channel.timeout = 60.0
|
105
|
+
|
106
|
+
default_config.rpcs.update_channel.timeout = 60.0
|
107
|
+
|
108
|
+
default_config.rpcs.delete_channel.timeout = 60.0
|
109
|
+
|
110
|
+
default_config.rpcs.get_provider.timeout = 60.0
|
111
|
+
default_config.rpcs.get_provider.retry_policy = {
|
112
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
113
|
+
}
|
114
|
+
|
115
|
+
default_config.rpcs.list_providers.timeout = 60.0
|
116
|
+
default_config.rpcs.list_providers.retry_policy = {
|
117
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
118
|
+
}
|
119
|
+
|
120
|
+
default_config.rpcs.get_channel_connection.timeout = 60.0
|
121
|
+
default_config.rpcs.get_channel_connection.retry_policy = {
|
122
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
123
|
+
}
|
124
|
+
|
125
|
+
default_config.rpcs.list_channel_connections.timeout = 60.0
|
126
|
+
default_config.rpcs.list_channel_connections.retry_policy = {
|
127
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
128
|
+
}
|
129
|
+
|
130
|
+
default_config.rpcs.create_channel_connection.timeout = 60.0
|
131
|
+
|
132
|
+
default_config.rpcs.delete_channel_connection.timeout = 60.0
|
133
|
+
|
134
|
+
default_config.rpcs.get_google_channel_config.timeout = 60.0
|
135
|
+
default_config.rpcs.get_google_channel_config.retry_policy = {
|
136
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
137
|
+
}
|
138
|
+
|
139
|
+
default_config.rpcs.update_google_channel_config.timeout = 60.0
|
140
|
+
|
141
|
+
default_config.rpcs.get_message_bus.timeout = 60.0
|
142
|
+
default_config.rpcs.get_message_bus.retry_policy = {
|
143
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
144
|
+
}
|
145
|
+
|
146
|
+
default_config.rpcs.list_message_buses.timeout = 60.0
|
147
|
+
default_config.rpcs.list_message_buses.retry_policy = {
|
148
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
149
|
+
}
|
150
|
+
|
151
|
+
default_config.rpcs.list_message_bus_enrollments.timeout = 60.0
|
152
|
+
default_config.rpcs.list_message_bus_enrollments.retry_policy = {
|
153
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
154
|
+
}
|
155
|
+
|
156
|
+
default_config.rpcs.create_message_bus.timeout = 60.0
|
157
|
+
|
158
|
+
default_config.rpcs.update_message_bus.timeout = 60.0
|
159
|
+
|
160
|
+
default_config.rpcs.delete_message_bus.timeout = 60.0
|
161
|
+
|
162
|
+
default_config.rpcs.get_enrollment.timeout = 60.0
|
163
|
+
default_config.rpcs.get_enrollment.retry_policy = {
|
164
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
165
|
+
}
|
166
|
+
|
167
|
+
default_config.rpcs.list_enrollments.timeout = 60.0
|
168
|
+
default_config.rpcs.list_enrollments.retry_policy = {
|
169
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
170
|
+
}
|
171
|
+
|
172
|
+
default_config.rpcs.create_enrollment.timeout = 60.0
|
173
|
+
|
174
|
+
default_config.rpcs.update_enrollment.timeout = 60.0
|
175
|
+
|
176
|
+
default_config.rpcs.delete_enrollment.timeout = 60.0
|
177
|
+
|
178
|
+
default_config.rpcs.get_pipeline.timeout = 60.0
|
179
|
+
default_config.rpcs.get_pipeline.retry_policy = {
|
180
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
181
|
+
}
|
182
|
+
|
183
|
+
default_config.rpcs.list_pipelines.timeout = 60.0
|
184
|
+
default_config.rpcs.list_pipelines.retry_policy = {
|
185
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
186
|
+
}
|
187
|
+
|
188
|
+
default_config.rpcs.create_pipeline.timeout = 60.0
|
189
|
+
|
190
|
+
default_config.rpcs.update_pipeline.timeout = 60.0
|
191
|
+
|
192
|
+
default_config.rpcs.delete_pipeline.timeout = 60.0
|
193
|
+
|
194
|
+
default_config.rpcs.get_google_api_source.timeout = 60.0
|
195
|
+
default_config.rpcs.get_google_api_source.retry_policy = {
|
196
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
197
|
+
}
|
198
|
+
|
199
|
+
default_config.rpcs.list_google_api_sources.timeout = 60.0
|
200
|
+
default_config.rpcs.list_google_api_sources.retry_policy = {
|
201
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2]
|
202
|
+
}
|
203
|
+
|
204
|
+
default_config.rpcs.create_google_api_source.timeout = 60.0
|
205
|
+
|
206
|
+
default_config.rpcs.update_google_api_source.timeout = 60.0
|
207
|
+
|
208
|
+
default_config.rpcs.delete_google_api_source.timeout = 60.0
|
209
|
+
|
78
210
|
default_config
|
79
211
|
end
|
80
212
|
yield @configure if block_given?
|
@@ -160,15 +292,27 @@ module Google
|
|
160
292
|
endpoint: @config.endpoint,
|
161
293
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
162
294
|
universe_domain: @config.universe_domain,
|
163
|
-
credentials: credentials
|
295
|
+
credentials: credentials,
|
296
|
+
logger: @config.logger
|
164
297
|
)
|
165
298
|
|
299
|
+
@eventarc_stub.logger(stub: true)&.info do |entry|
|
300
|
+
entry.set_system_name
|
301
|
+
entry.set_service
|
302
|
+
entry.message = "Created client for #{entry.service}"
|
303
|
+
entry.set_credentials_fields credentials
|
304
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
305
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
306
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
307
|
+
end
|
308
|
+
|
166
309
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
167
310
|
config.credentials = credentials
|
168
311
|
config.quota_project = @quota_project_id
|
169
312
|
config.endpoint = @eventarc_stub.endpoint
|
170
313
|
config.universe_domain = @eventarc_stub.universe_domain
|
171
314
|
config.bindings_override = @config.bindings_override
|
315
|
+
config.logger = @eventarc_stub.logger if config.respond_to? :logger=
|
172
316
|
end
|
173
317
|
|
174
318
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
@@ -177,6 +321,7 @@ module Google
|
|
177
321
|
config.endpoint = @eventarc_stub.endpoint
|
178
322
|
config.universe_domain = @eventarc_stub.universe_domain
|
179
323
|
config.bindings_override = @config.bindings_override
|
324
|
+
config.logger = @eventarc_stub.logger if config.respond_to? :logger=
|
180
325
|
end
|
181
326
|
end
|
182
327
|
|
@@ -201,6 +346,15 @@ module Google
|
|
201
346
|
#
|
202
347
|
attr_reader :iam_policy_client
|
203
348
|
|
349
|
+
##
|
350
|
+
# The logger used for request/response debug logging.
|
351
|
+
#
|
352
|
+
# @return [Logger]
|
353
|
+
#
|
354
|
+
def logger
|
355
|
+
@eventarc_stub.logger
|
356
|
+
end
|
357
|
+
|
204
358
|
# Service calls
|
205
359
|
|
206
360
|
##
|
@@ -276,7 +430,6 @@ module Google
|
|
276
430
|
|
277
431
|
@eventarc_stub.get_trigger request, options do |result, operation|
|
278
432
|
yield result, operation if block_given?
|
279
|
-
return result
|
280
433
|
end
|
281
434
|
rescue ::Gapic::Rest::Error => e
|
282
435
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -378,7 +531,6 @@ module Google
|
|
378
531
|
|
379
532
|
@eventarc_stub.list_triggers request, options do |result, operation|
|
380
533
|
yield result, operation if block_given?
|
381
|
-
return result
|
382
534
|
end
|
383
535
|
rescue ::Gapic::Rest::Error => e
|
384
536
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -409,7 +561,7 @@ module Google
|
|
409
561
|
# @param trigger_id [::String]
|
410
562
|
# Required. The user-provided ID to be assigned to the trigger.
|
411
563
|
# @param validate_only [::Boolean]
|
412
|
-
#
|
564
|
+
# Optional. If set, validate the request and preview the review, but do not
|
413
565
|
# post it.
|
414
566
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
415
567
|
# @yieldparam result [::Gapic::Operation]
|
@@ -472,7 +624,7 @@ module Google
|
|
472
624
|
@eventarc_stub.create_trigger request, options do |result, operation|
|
473
625
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
474
626
|
yield result, operation if block_given?
|
475
|
-
|
627
|
+
throw :response, result
|
476
628
|
end
|
477
629
|
rescue ::Gapic::Rest::Error => e
|
478
630
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -506,7 +658,7 @@ module Google
|
|
506
658
|
# If set to true, and the trigger is not found, a new trigger will be
|
507
659
|
# created. In this situation, `update_mask` is ignored.
|
508
660
|
# @param validate_only [::Boolean]
|
509
|
-
#
|
661
|
+
# Optional. If set, validate the request and preview the review, but do not
|
510
662
|
# post it.
|
511
663
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
512
664
|
# @yieldparam result [::Gapic::Operation]
|
@@ -569,7 +721,7 @@ module Google
|
|
569
721
|
@eventarc_stub.update_trigger request, options do |result, operation|
|
570
722
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
571
723
|
yield result, operation if block_given?
|
572
|
-
|
724
|
+
throw :response, result
|
573
725
|
end
|
574
726
|
rescue ::Gapic::Rest::Error => e
|
575
727
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -602,7 +754,7 @@ module Google
|
|
602
754
|
# If set to true, and the trigger is not found, the request will succeed
|
603
755
|
# but no action will be taken on the server.
|
604
756
|
# @param validate_only [::Boolean]
|
605
|
-
#
|
757
|
+
# Optional. If set, validate the request and preview the review, but do not
|
606
758
|
# post it.
|
607
759
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
608
760
|
# @yieldparam result [::Gapic::Operation]
|
@@ -665,7 +817,7 @@ module Google
|
|
665
817
|
@eventarc_stub.delete_trigger request, options do |result, operation|
|
666
818
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
667
819
|
yield result, operation if block_given?
|
668
|
-
|
820
|
+
throw :response, result
|
669
821
|
end
|
670
822
|
rescue ::Gapic::Rest::Error => e
|
671
823
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -744,7 +896,6 @@ module Google
|
|
744
896
|
|
745
897
|
@eventarc_stub.get_channel request, options do |result, operation|
|
746
898
|
yield result, operation if block_given?
|
747
|
-
return result
|
748
899
|
end
|
749
900
|
rescue ::Gapic::Rest::Error => e
|
750
901
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -842,7 +993,6 @@ module Google
|
|
842
993
|
|
843
994
|
@eventarc_stub.list_channels request, options do |result, operation|
|
844
995
|
yield result, operation if block_given?
|
845
|
-
return result
|
846
996
|
end
|
847
997
|
rescue ::Gapic::Rest::Error => e
|
848
998
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -873,7 +1023,7 @@ module Google
|
|
873
1023
|
# @param channel_id [::String]
|
874
1024
|
# Required. The user-provided ID to be assigned to the channel.
|
875
1025
|
# @param validate_only [::Boolean]
|
876
|
-
#
|
1026
|
+
# Optional. If set, validate the request and preview the review, but do not
|
877
1027
|
# post it.
|
878
1028
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
879
1029
|
# @yieldparam result [::Gapic::Operation]
|
@@ -936,7 +1086,7 @@ module Google
|
|
936
1086
|
@eventarc_stub.create_channel request, options do |result, operation|
|
937
1087
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
938
1088
|
yield result, operation if block_given?
|
939
|
-
|
1089
|
+
throw :response, result
|
940
1090
|
end
|
941
1091
|
rescue ::Gapic::Rest::Error => e
|
942
1092
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -967,7 +1117,7 @@ module Google
|
|
967
1117
|
# If no field mask is provided, all provided fields in the request are
|
968
1118
|
# updated. To update all fields, provide a field mask of "*".
|
969
1119
|
# @param validate_only [::Boolean]
|
970
|
-
#
|
1120
|
+
# Optional. If set, validate the request and preview the review, but do not
|
971
1121
|
# post it.
|
972
1122
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
973
1123
|
# @yieldparam result [::Gapic::Operation]
|
@@ -1030,7 +1180,7 @@ module Google
|
|
1030
1180
|
@eventarc_stub.update_channel request, options do |result, operation|
|
1031
1181
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1032
1182
|
yield result, operation if block_given?
|
1033
|
-
|
1183
|
+
throw :response, result
|
1034
1184
|
end
|
1035
1185
|
rescue ::Gapic::Rest::Error => e
|
1036
1186
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1057,7 +1207,7 @@ module Google
|
|
1057
1207
|
# @param name [::String]
|
1058
1208
|
# Required. The name of the channel to be deleted.
|
1059
1209
|
# @param validate_only [::Boolean]
|
1060
|
-
#
|
1210
|
+
# Optional. If set, validate the request and preview the review, but do not
|
1061
1211
|
# post it.
|
1062
1212
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1063
1213
|
# @yieldparam result [::Gapic::Operation]
|
@@ -1120,7 +1270,7 @@ module Google
|
|
1120
1270
|
@eventarc_stub.delete_channel request, options do |result, operation|
|
1121
1271
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1122
1272
|
yield result, operation if block_given?
|
1123
|
-
|
1273
|
+
throw :response, result
|
1124
1274
|
end
|
1125
1275
|
rescue ::Gapic::Rest::Error => e
|
1126
1276
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1199,7 +1349,6 @@ module Google
|
|
1199
1349
|
|
1200
1350
|
@eventarc_stub.get_provider request, options do |result, operation|
|
1201
1351
|
yield result, operation if block_given?
|
1202
|
-
return result
|
1203
1352
|
end
|
1204
1353
|
rescue ::Gapic::Rest::Error => e
|
1205
1354
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1297,7 +1446,6 @@ module Google
|
|
1297
1446
|
|
1298
1447
|
@eventarc_stub.list_providers request, options do |result, operation|
|
1299
1448
|
yield result, operation if block_given?
|
1300
|
-
return result
|
1301
1449
|
end
|
1302
1450
|
rescue ::Gapic::Rest::Error => e
|
1303
1451
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1376,7 +1524,6 @@ module Google
|
|
1376
1524
|
|
1377
1525
|
@eventarc_stub.get_channel_connection request, options do |result, operation|
|
1378
1526
|
yield result, operation if block_given?
|
1379
|
-
return result
|
1380
1527
|
end
|
1381
1528
|
rescue ::Gapic::Rest::Error => e
|
1382
1529
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1469,7 +1616,6 @@ module Google
|
|
1469
1616
|
|
1470
1617
|
@eventarc_stub.list_channel_connections request, options do |result, operation|
|
1471
1618
|
yield result, operation if block_given?
|
1472
|
-
return result
|
1473
1619
|
end
|
1474
1620
|
rescue ::Gapic::Rest::Error => e
|
1475
1621
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1560,7 +1706,7 @@ module Google
|
|
1560
1706
|
@eventarc_stub.create_channel_connection request, options do |result, operation|
|
1561
1707
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1562
1708
|
yield result, operation if block_given?
|
1563
|
-
|
1709
|
+
throw :response, result
|
1564
1710
|
end
|
1565
1711
|
rescue ::Gapic::Rest::Error => e
|
1566
1712
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1647,7 +1793,7 @@ module Google
|
|
1647
1793
|
@eventarc_stub.delete_channel_connection request, options do |result, operation|
|
1648
1794
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1649
1795
|
yield result, operation if block_given?
|
1650
|
-
|
1796
|
+
throw :response, result
|
1651
1797
|
end
|
1652
1798
|
rescue ::Gapic::Rest::Error => e
|
1653
1799
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1726,7 +1872,6 @@ module Google
|
|
1726
1872
|
|
1727
1873
|
@eventarc_stub.get_google_channel_config request, options do |result, operation|
|
1728
1874
|
yield result, operation if block_given?
|
1729
|
-
return result
|
1730
1875
|
end
|
1731
1876
|
rescue ::Gapic::Rest::Error => e
|
1732
1877
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1809,196 +1954,2153 @@ module Google
|
|
1809
1954
|
|
1810
1955
|
@eventarc_stub.update_google_channel_config request, options do |result, operation|
|
1811
1956
|
yield result, operation if block_given?
|
1812
|
-
return result
|
1813
1957
|
end
|
1814
1958
|
rescue ::Gapic::Rest::Error => e
|
1815
1959
|
raise ::Google::Cloud::Error.from_error(e)
|
1816
1960
|
end
|
1817
1961
|
|
1818
1962
|
##
|
1819
|
-
#
|
1963
|
+
# Get a single MessageBus.
|
1820
1964
|
#
|
1821
|
-
#
|
1822
|
-
#
|
1823
|
-
#
|
1824
|
-
# applied individually to specific RPCs. See
|
1825
|
-
# {::Google::Cloud::Eventarc::V1::Eventarc::Rest::Client::Configuration::Rpcs}
|
1826
|
-
# for a list of RPCs that can be configured independently.
|
1965
|
+
# @overload get_message_bus(request, options = nil)
|
1966
|
+
# Pass arguments to `get_message_bus` via a request object, either of type
|
1967
|
+
# {::Google::Cloud::Eventarc::V1::GetMessageBusRequest} or an equivalent Hash.
|
1827
1968
|
#
|
1828
|
-
#
|
1829
|
-
#
|
1969
|
+
# @param request [::Google::Cloud::Eventarc::V1::GetMessageBusRequest, ::Hash]
|
1970
|
+
# A request object representing the call parameters. Required. To specify no
|
1971
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1972
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1973
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1830
1974
|
#
|
1831
|
-
# @
|
1975
|
+
# @overload get_message_bus(name: nil)
|
1976
|
+
# Pass arguments to `get_message_bus` via keyword arguments. Note that at
|
1977
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1978
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1832
1979
|
#
|
1833
|
-
#
|
1834
|
-
#
|
1835
|
-
#
|
1836
|
-
#
|
1837
|
-
#
|
1838
|
-
# config.rpcs.get_trigger.timeout = 20.0
|
1839
|
-
# end
|
1980
|
+
# @param name [::String]
|
1981
|
+
# Required. The name of the message bus to get.
|
1982
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1983
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::MessageBus]
|
1984
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1840
1985
|
#
|
1841
|
-
#
|
1842
|
-
# client = ::Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new do |config|
|
1843
|
-
# config.timeout = 10.0
|
1844
|
-
# config.rpcs.get_trigger.timeout = 20.0
|
1845
|
-
# end
|
1986
|
+
# @return [::Google::Cloud::Eventarc::V1::MessageBus]
|
1846
1987
|
#
|
1847
|
-
#
|
1848
|
-
# A custom service endpoint, as a hostname or hostname:port. The default is
|
1849
|
-
# nil, indicating to use the default endpoint in the current universe domain.
|
1850
|
-
# @return [::String,nil]
|
1851
|
-
# @!attribute [rw] credentials
|
1852
|
-
# Credentials to send with calls. You may provide any of the following types:
|
1853
|
-
# * (`String`) The path to a service account key file in JSON format
|
1854
|
-
# * (`Hash`) A service account key as a Hash
|
1855
|
-
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1856
|
-
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1857
|
-
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1858
|
-
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1859
|
-
# * (`nil`) indicating no credentials
|
1860
|
-
# @return [::Object]
|
1861
|
-
# @!attribute [rw] scope
|
1862
|
-
# The OAuth scopes
|
1863
|
-
# @return [::Array<::String>]
|
1864
|
-
# @!attribute [rw] lib_name
|
1865
|
-
# The library name as recorded in instrumentation and logging
|
1866
|
-
# @return [::String]
|
1867
|
-
# @!attribute [rw] lib_version
|
1868
|
-
# The library version as recorded in instrumentation and logging
|
1869
|
-
# @return [::String]
|
1870
|
-
# @!attribute [rw] timeout
|
1871
|
-
# The call timeout in seconds.
|
1872
|
-
# @return [::Numeric]
|
1873
|
-
# @!attribute [rw] metadata
|
1874
|
-
# Additional headers to be sent with the call.
|
1875
|
-
# @return [::Hash{::Symbol=>::String}]
|
1876
|
-
# @!attribute [rw] retry_policy
|
1877
|
-
# The retry policy. The value is a hash with the following keys:
|
1878
|
-
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
1879
|
-
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
1880
|
-
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1881
|
-
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1882
|
-
# trigger a retry.
|
1883
|
-
# @return [::Hash]
|
1884
|
-
# @!attribute [rw] quota_project
|
1885
|
-
# A separate project against which to charge quota.
|
1886
|
-
# @return [::String]
|
1887
|
-
# @!attribute [rw] universe_domain
|
1888
|
-
# The universe domain within which to make requests. This determines the
|
1889
|
-
# default endpoint URL. The default value of nil uses the environment
|
1890
|
-
# universe (usually the default "googleapis.com" universe).
|
1891
|
-
# @return [::String,nil]
|
1988
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1892
1989
|
#
|
1893
|
-
|
1894
|
-
|
1990
|
+
# @example Basic example
|
1991
|
+
# require "google/cloud/eventarc/v1"
|
1992
|
+
#
|
1993
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1994
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
1995
|
+
#
|
1996
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1997
|
+
# request = Google::Cloud::Eventarc::V1::GetMessageBusRequest.new
|
1998
|
+
#
|
1999
|
+
# # Call the get_message_bus method.
|
2000
|
+
# result = client.get_message_bus request
|
2001
|
+
#
|
2002
|
+
# # The returned object is of type Google::Cloud::Eventarc::V1::MessageBus.
|
2003
|
+
# p result
|
2004
|
+
#
|
2005
|
+
def get_message_bus request, options = nil
|
2006
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1895
2007
|
|
1896
|
-
|
1897
|
-
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
1898
|
-
DEFAULT_ENDPOINT = "eventarc.googleapis.com"
|
2008
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetMessageBusRequest
|
1899
2009
|
|
1900
|
-
|
1901
|
-
|
1902
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1903
|
-
allowed.any? { |klass| klass === value }
|
1904
|
-
end
|
1905
|
-
config_attr :scope, nil, ::String, ::Array, nil
|
1906
|
-
config_attr :lib_name, nil, ::String, nil
|
1907
|
-
config_attr :lib_version, nil, ::String, nil
|
1908
|
-
config_attr :timeout, nil, ::Numeric, nil
|
1909
|
-
config_attr :metadata, nil, ::Hash, nil
|
1910
|
-
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1911
|
-
config_attr :quota_project, nil, ::String, nil
|
1912
|
-
config_attr :universe_domain, nil, ::String, nil
|
2010
|
+
# Converts hash and nil to an options object
|
2011
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1913
2012
|
|
1914
|
-
#
|
1915
|
-
|
1916
|
-
# are only used when this service is used as mixin, and only
|
1917
|
-
# by the host service.
|
1918
|
-
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
1919
|
-
config_attr :bindings_override, {}, ::Hash, nil
|
2013
|
+
# Customize the options with defaults
|
2014
|
+
call_metadata = @config.rpcs.get_message_bus.metadata.to_h
|
1920
2015
|
|
1921
|
-
#
|
1922
|
-
|
1923
|
-
@
|
2016
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2017
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2018
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2019
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2020
|
+
transports_version_send: [:rest]
|
1924
2021
|
|
1925
|
-
|
1926
|
-
|
2022
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2023
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1927
2024
|
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1937
|
-
|
2025
|
+
options.apply_defaults timeout: @config.rpcs.get_message_bus.timeout,
|
2026
|
+
metadata: call_metadata,
|
2027
|
+
retry_policy: @config.rpcs.get_message_bus.retry_policy
|
2028
|
+
|
2029
|
+
options.apply_defaults timeout: @config.timeout,
|
2030
|
+
metadata: @config.metadata,
|
2031
|
+
retry_policy: @config.retry_policy
|
2032
|
+
|
2033
|
+
@eventarc_stub.get_message_bus request, options do |result, operation|
|
2034
|
+
yield result, operation if block_given?
|
1938
2035
|
end
|
2036
|
+
rescue ::Gapic::Rest::Error => e
|
2037
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2038
|
+
end
|
1939
2039
|
|
1940
|
-
|
1941
|
-
|
1942
|
-
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
|
1947
|
-
|
1948
|
-
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
1986
|
-
|
1987
|
-
|
1988
|
-
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2040
|
+
##
|
2041
|
+
# List message buses.
|
2042
|
+
#
|
2043
|
+
# @overload list_message_buses(request, options = nil)
|
2044
|
+
# Pass arguments to `list_message_buses` via a request object, either of type
|
2045
|
+
# {::Google::Cloud::Eventarc::V1::ListMessageBusesRequest} or an equivalent Hash.
|
2046
|
+
#
|
2047
|
+
# @param request [::Google::Cloud::Eventarc::V1::ListMessageBusesRequest, ::Hash]
|
2048
|
+
# A request object representing the call parameters. Required. To specify no
|
2049
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2050
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2051
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2052
|
+
#
|
2053
|
+
# @overload list_message_buses(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
2054
|
+
# Pass arguments to `list_message_buses` via keyword arguments. Note that at
|
2055
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2056
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2057
|
+
#
|
2058
|
+
# @param parent [::String]
|
2059
|
+
# Required. The parent collection to list triggers on.
|
2060
|
+
# @param page_size [::Integer]
|
2061
|
+
# Optional. The maximum number of results to return on each page.
|
2062
|
+
#
|
2063
|
+
# Note: The service may send fewer.
|
2064
|
+
# @param page_token [::String]
|
2065
|
+
# Optional. The page token; provide the value from the `next_page_token`
|
2066
|
+
# field in a previous call to retrieve the subsequent page.
|
2067
|
+
#
|
2068
|
+
# When paginating, all other parameters provided must match
|
2069
|
+
# the previous call that provided the page token.
|
2070
|
+
# @param order_by [::String]
|
2071
|
+
# Optional. The sorting order of the resources returned. Value should be a
|
2072
|
+
# comma-separated list of fields. The default sorting order is ascending. To
|
2073
|
+
# specify descending order for a field, append a `desc` suffix; for example:
|
2074
|
+
# `name desc, update_time`.
|
2075
|
+
# @param filter [::String]
|
2076
|
+
# Optional. The filter field that the list request will filter on.
|
2077
|
+
# Possible filtersare described in https://google.aip.dev/160.
|
2078
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2079
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::ListMessageBusesResponse]
|
2080
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2081
|
+
#
|
2082
|
+
# @return [::Google::Cloud::Eventarc::V1::ListMessageBusesResponse]
|
2083
|
+
#
|
2084
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2085
|
+
#
|
2086
|
+
# @example Basic example
|
2087
|
+
# require "google/cloud/eventarc/v1"
|
2088
|
+
#
|
2089
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2090
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
2091
|
+
#
|
2092
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2093
|
+
# request = Google::Cloud::Eventarc::V1::ListMessageBusesRequest.new
|
2094
|
+
#
|
2095
|
+
# # Call the list_message_buses method.
|
2096
|
+
# result = client.list_message_buses request
|
2097
|
+
#
|
2098
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2099
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2100
|
+
# result.each do |item|
|
2101
|
+
# # Each element is of type ::Google::Cloud::Eventarc::V1::MessageBus.
|
2102
|
+
# p item
|
2103
|
+
# end
|
2104
|
+
#
|
2105
|
+
def list_message_buses request, options = nil
|
2106
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2107
|
+
|
2108
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListMessageBusesRequest
|
2109
|
+
|
2110
|
+
# Converts hash and nil to an options object
|
2111
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2112
|
+
|
2113
|
+
# Customize the options with defaults
|
2114
|
+
call_metadata = @config.rpcs.list_message_buses.metadata.to_h
|
2115
|
+
|
2116
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2117
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2118
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2119
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2120
|
+
transports_version_send: [:rest]
|
2121
|
+
|
2122
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2123
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2124
|
+
|
2125
|
+
options.apply_defaults timeout: @config.rpcs.list_message_buses.timeout,
|
2126
|
+
metadata: call_metadata,
|
2127
|
+
retry_policy: @config.rpcs.list_message_buses.retry_policy
|
2128
|
+
|
2129
|
+
options.apply_defaults timeout: @config.timeout,
|
2130
|
+
metadata: @config.metadata,
|
2131
|
+
retry_policy: @config.retry_policy
|
2132
|
+
|
2133
|
+
@eventarc_stub.list_message_buses request, options do |result, operation|
|
2134
|
+
yield result, operation if block_given?
|
2135
|
+
end
|
2136
|
+
rescue ::Gapic::Rest::Error => e
|
2137
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2138
|
+
end
|
2139
|
+
|
2140
|
+
##
|
2141
|
+
# List message bus enrollments.
|
2142
|
+
#
|
2143
|
+
# @overload list_message_bus_enrollments(request, options = nil)
|
2144
|
+
# Pass arguments to `list_message_bus_enrollments` via a request object, either of type
|
2145
|
+
# {::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest} or an equivalent Hash.
|
2146
|
+
#
|
2147
|
+
# @param request [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest, ::Hash]
|
2148
|
+
# A request object representing the call parameters. Required. To specify no
|
2149
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2150
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2151
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2152
|
+
#
|
2153
|
+
# @overload list_message_bus_enrollments(parent: nil, page_size: nil, page_token: nil)
|
2154
|
+
# Pass arguments to `list_message_bus_enrollments` via keyword arguments. Note that at
|
2155
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2156
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2157
|
+
#
|
2158
|
+
# @param parent [::String]
|
2159
|
+
# Required. The parent message bus to list enrollments on.
|
2160
|
+
# @param page_size [::Integer]
|
2161
|
+
# Optional. The maximum number of results to return on each page.
|
2162
|
+
#
|
2163
|
+
# Note: The service may send fewer.
|
2164
|
+
# @param page_token [::String]
|
2165
|
+
# Optional. The page token; provide the value from the `next_page_token`
|
2166
|
+
# field in a previous call to retrieve the subsequent page.
|
2167
|
+
#
|
2168
|
+
# When paginating, all other parameters provided must match
|
2169
|
+
# the previous call that provided the page token.
|
2170
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2171
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse]
|
2172
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2173
|
+
#
|
2174
|
+
# @return [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse]
|
2175
|
+
#
|
2176
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2177
|
+
#
|
2178
|
+
# @example Basic example
|
2179
|
+
# require "google/cloud/eventarc/v1"
|
2180
|
+
#
|
2181
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2182
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
2183
|
+
#
|
2184
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2185
|
+
# request = Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest.new
|
2186
|
+
#
|
2187
|
+
# # Call the list_message_bus_enrollments method.
|
2188
|
+
# result = client.list_message_bus_enrollments request
|
2189
|
+
#
|
2190
|
+
# # The returned object is of type Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse.
|
2191
|
+
# p result
|
2192
|
+
#
|
2193
|
+
def list_message_bus_enrollments request, options = nil
|
2194
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2195
|
+
|
2196
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest
|
2197
|
+
|
2198
|
+
# Converts hash and nil to an options object
|
2199
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2200
|
+
|
2201
|
+
# Customize the options with defaults
|
2202
|
+
call_metadata = @config.rpcs.list_message_bus_enrollments.metadata.to_h
|
2203
|
+
|
2204
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2205
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2206
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2207
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2208
|
+
transports_version_send: [:rest]
|
2209
|
+
|
2210
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2211
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2212
|
+
|
2213
|
+
options.apply_defaults timeout: @config.rpcs.list_message_bus_enrollments.timeout,
|
2214
|
+
metadata: call_metadata,
|
2215
|
+
retry_policy: @config.rpcs.list_message_bus_enrollments.retry_policy
|
2216
|
+
|
2217
|
+
options.apply_defaults timeout: @config.timeout,
|
2218
|
+
metadata: @config.metadata,
|
2219
|
+
retry_policy: @config.retry_policy
|
2220
|
+
|
2221
|
+
@eventarc_stub.list_message_bus_enrollments request, options do |result, operation|
|
2222
|
+
yield result, operation if block_given?
|
2223
|
+
end
|
2224
|
+
rescue ::Gapic::Rest::Error => e
|
2225
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2226
|
+
end
|
2227
|
+
|
2228
|
+
##
|
2229
|
+
# Create a new MessageBus in a particular project and location.
|
2230
|
+
#
|
2231
|
+
# @overload create_message_bus(request, options = nil)
|
2232
|
+
# Pass arguments to `create_message_bus` via a request object, either of type
|
2233
|
+
# {::Google::Cloud::Eventarc::V1::CreateMessageBusRequest} or an equivalent Hash.
|
2234
|
+
#
|
2235
|
+
# @param request [::Google::Cloud::Eventarc::V1::CreateMessageBusRequest, ::Hash]
|
2236
|
+
# A request object representing the call parameters. Required. To specify no
|
2237
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2238
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2239
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2240
|
+
#
|
2241
|
+
# @overload create_message_bus(parent: nil, message_bus: nil, message_bus_id: nil, validate_only: nil)
|
2242
|
+
# Pass arguments to `create_message_bus` via keyword arguments. Note that at
|
2243
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2244
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2245
|
+
#
|
2246
|
+
# @param parent [::String]
|
2247
|
+
# Required. The parent collection in which to add this message bus.
|
2248
|
+
# @param message_bus [::Google::Cloud::Eventarc::V1::MessageBus, ::Hash]
|
2249
|
+
# Required. The message bus to create.
|
2250
|
+
# @param message_bus_id [::String]
|
2251
|
+
# Required. The user-provided ID to be assigned to the MessageBus. It should
|
2252
|
+
# match the format (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$)
|
2253
|
+
# @param validate_only [::Boolean]
|
2254
|
+
# Optional. If set, validate the request and preview the review, but do not
|
2255
|
+
# post it.
|
2256
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2257
|
+
# @yieldparam result [::Gapic::Operation]
|
2258
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2259
|
+
#
|
2260
|
+
# @return [::Gapic::Operation]
|
2261
|
+
#
|
2262
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2263
|
+
#
|
2264
|
+
# @example Basic example
|
2265
|
+
# require "google/cloud/eventarc/v1"
|
2266
|
+
#
|
2267
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2268
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
2269
|
+
#
|
2270
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2271
|
+
# request = Google::Cloud::Eventarc::V1::CreateMessageBusRequest.new
|
2272
|
+
#
|
2273
|
+
# # Call the create_message_bus method.
|
2274
|
+
# result = client.create_message_bus request
|
2275
|
+
#
|
2276
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2277
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2278
|
+
# # Here is how to wait for a response.
|
2279
|
+
# result.wait_until_done! timeout: 60
|
2280
|
+
# if result.response?
|
2281
|
+
# p result.response
|
2282
|
+
# else
|
2283
|
+
# puts "No response received."
|
2284
|
+
# end
|
2285
|
+
#
|
2286
|
+
def create_message_bus request, options = nil
|
2287
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2288
|
+
|
2289
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::CreateMessageBusRequest
|
2290
|
+
|
2291
|
+
# Converts hash and nil to an options object
|
2292
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2293
|
+
|
2294
|
+
# Customize the options with defaults
|
2295
|
+
call_metadata = @config.rpcs.create_message_bus.metadata.to_h
|
2296
|
+
|
2297
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2298
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2299
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2300
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2301
|
+
transports_version_send: [:rest]
|
2302
|
+
|
2303
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2304
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2305
|
+
|
2306
|
+
options.apply_defaults timeout: @config.rpcs.create_message_bus.timeout,
|
2307
|
+
metadata: call_metadata,
|
2308
|
+
retry_policy: @config.rpcs.create_message_bus.retry_policy
|
2309
|
+
|
2310
|
+
options.apply_defaults timeout: @config.timeout,
|
2311
|
+
metadata: @config.metadata,
|
2312
|
+
retry_policy: @config.retry_policy
|
2313
|
+
|
2314
|
+
@eventarc_stub.create_message_bus request, options do |result, operation|
|
2315
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2316
|
+
yield result, operation if block_given?
|
2317
|
+
throw :response, result
|
2318
|
+
end
|
2319
|
+
rescue ::Gapic::Rest::Error => e
|
2320
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2321
|
+
end
|
2322
|
+
|
2323
|
+
##
|
2324
|
+
# Update a single message bus.
|
2325
|
+
#
|
2326
|
+
# @overload update_message_bus(request, options = nil)
|
2327
|
+
# Pass arguments to `update_message_bus` via a request object, either of type
|
2328
|
+
# {::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest} or an equivalent Hash.
|
2329
|
+
#
|
2330
|
+
# @param request [::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest, ::Hash]
|
2331
|
+
# A request object representing the call parameters. Required. To specify no
|
2332
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2333
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2334
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2335
|
+
#
|
2336
|
+
# @overload update_message_bus(message_bus: nil, update_mask: nil, allow_missing: nil, validate_only: nil)
|
2337
|
+
# Pass arguments to `update_message_bus` via keyword arguments. Note that at
|
2338
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2339
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2340
|
+
#
|
2341
|
+
# @param message_bus [::Google::Cloud::Eventarc::V1::MessageBus, ::Hash]
|
2342
|
+
# Required. The MessageBus to be updated.
|
2343
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2344
|
+
# Optional. The fields to be updated; only fields explicitly provided are
|
2345
|
+
# updated. If no field mask is provided, all provided fields in the request
|
2346
|
+
# are updated. To update all fields, provide a field mask of "*".
|
2347
|
+
# @param allow_missing [::Boolean]
|
2348
|
+
# Optional. If set to true, and the MessageBus is not found, a new MessageBus
|
2349
|
+
# will be created. In this situation, `update_mask` is ignored.
|
2350
|
+
# @param validate_only [::Boolean]
|
2351
|
+
# Optional. If set, validate the request and preview the review, but do not
|
2352
|
+
# post it.
|
2353
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2354
|
+
# @yieldparam result [::Gapic::Operation]
|
2355
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2356
|
+
#
|
2357
|
+
# @return [::Gapic::Operation]
|
2358
|
+
#
|
2359
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2360
|
+
#
|
2361
|
+
# @example Basic example
|
2362
|
+
# require "google/cloud/eventarc/v1"
|
2363
|
+
#
|
2364
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2365
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
2366
|
+
#
|
2367
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2368
|
+
# request = Google::Cloud::Eventarc::V1::UpdateMessageBusRequest.new
|
2369
|
+
#
|
2370
|
+
# # Call the update_message_bus method.
|
2371
|
+
# result = client.update_message_bus request
|
2372
|
+
#
|
2373
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2374
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2375
|
+
# # Here is how to wait for a response.
|
2376
|
+
# result.wait_until_done! timeout: 60
|
2377
|
+
# if result.response?
|
2378
|
+
# p result.response
|
2379
|
+
# else
|
2380
|
+
# puts "No response received."
|
2381
|
+
# end
|
2382
|
+
#
|
2383
|
+
def update_message_bus request, options = nil
|
2384
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2385
|
+
|
2386
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest
|
2387
|
+
|
2388
|
+
# Converts hash and nil to an options object
|
2389
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2390
|
+
|
2391
|
+
# Customize the options with defaults
|
2392
|
+
call_metadata = @config.rpcs.update_message_bus.metadata.to_h
|
2393
|
+
|
2394
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2395
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2396
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2397
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2398
|
+
transports_version_send: [:rest]
|
2399
|
+
|
2400
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2401
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2402
|
+
|
2403
|
+
options.apply_defaults timeout: @config.rpcs.update_message_bus.timeout,
|
2404
|
+
metadata: call_metadata,
|
2405
|
+
retry_policy: @config.rpcs.update_message_bus.retry_policy
|
2406
|
+
|
2407
|
+
options.apply_defaults timeout: @config.timeout,
|
2408
|
+
metadata: @config.metadata,
|
2409
|
+
retry_policy: @config.retry_policy
|
2410
|
+
|
2411
|
+
@eventarc_stub.update_message_bus request, options do |result, operation|
|
2412
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2413
|
+
yield result, operation if block_given?
|
2414
|
+
throw :response, result
|
2415
|
+
end
|
2416
|
+
rescue ::Gapic::Rest::Error => e
|
2417
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2418
|
+
end
|
2419
|
+
|
2420
|
+
##
|
2421
|
+
# Delete a single message bus.
|
2422
|
+
#
|
2423
|
+
# @overload delete_message_bus(request, options = nil)
|
2424
|
+
# Pass arguments to `delete_message_bus` via a request object, either of type
|
2425
|
+
# {::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest} or an equivalent Hash.
|
2426
|
+
#
|
2427
|
+
# @param request [::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest, ::Hash]
|
2428
|
+
# A request object representing the call parameters. Required. To specify no
|
2429
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2430
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2431
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2432
|
+
#
|
2433
|
+
# @overload delete_message_bus(name: nil, etag: nil, allow_missing: nil, validate_only: nil)
|
2434
|
+
# Pass arguments to `delete_message_bus` via keyword arguments. Note that at
|
2435
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2436
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2437
|
+
#
|
2438
|
+
# @param name [::String]
|
2439
|
+
# Required. The name of the MessageBus to be deleted.
|
2440
|
+
# @param etag [::String]
|
2441
|
+
# Optional. If provided, the MessageBus will only be deleted if the etag
|
2442
|
+
# matches the current etag on the resource.
|
2443
|
+
# @param allow_missing [::Boolean]
|
2444
|
+
# Optional. If set to true, and the MessageBus is not found, the request will
|
2445
|
+
# succeed but no action will be taken on the server.
|
2446
|
+
# @param validate_only [::Boolean]
|
2447
|
+
# Optional. If set, validate the request and preview the review, but do not
|
2448
|
+
# post it.
|
2449
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2450
|
+
# @yieldparam result [::Gapic::Operation]
|
2451
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2452
|
+
#
|
2453
|
+
# @return [::Gapic::Operation]
|
2454
|
+
#
|
2455
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2456
|
+
#
|
2457
|
+
# @example Basic example
|
2458
|
+
# require "google/cloud/eventarc/v1"
|
2459
|
+
#
|
2460
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2461
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
2462
|
+
#
|
2463
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2464
|
+
# request = Google::Cloud::Eventarc::V1::DeleteMessageBusRequest.new
|
2465
|
+
#
|
2466
|
+
# # Call the delete_message_bus method.
|
2467
|
+
# result = client.delete_message_bus request
|
2468
|
+
#
|
2469
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2470
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2471
|
+
# # Here is how to wait for a response.
|
2472
|
+
# result.wait_until_done! timeout: 60
|
2473
|
+
# if result.response?
|
2474
|
+
# p result.response
|
2475
|
+
# else
|
2476
|
+
# puts "No response received."
|
2477
|
+
# end
|
2478
|
+
#
|
2479
|
+
def delete_message_bus request, options = nil
|
2480
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2481
|
+
|
2482
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest
|
2483
|
+
|
2484
|
+
# Converts hash and nil to an options object
|
2485
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2486
|
+
|
2487
|
+
# Customize the options with defaults
|
2488
|
+
call_metadata = @config.rpcs.delete_message_bus.metadata.to_h
|
2489
|
+
|
2490
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2491
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2492
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2493
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2494
|
+
transports_version_send: [:rest]
|
2495
|
+
|
2496
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2497
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2498
|
+
|
2499
|
+
options.apply_defaults timeout: @config.rpcs.delete_message_bus.timeout,
|
2500
|
+
metadata: call_metadata,
|
2501
|
+
retry_policy: @config.rpcs.delete_message_bus.retry_policy
|
2502
|
+
|
2503
|
+
options.apply_defaults timeout: @config.timeout,
|
2504
|
+
metadata: @config.metadata,
|
2505
|
+
retry_policy: @config.retry_policy
|
2506
|
+
|
2507
|
+
@eventarc_stub.delete_message_bus request, options do |result, operation|
|
2508
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2509
|
+
yield result, operation if block_given?
|
2510
|
+
throw :response, result
|
2511
|
+
end
|
2512
|
+
rescue ::Gapic::Rest::Error => e
|
2513
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2514
|
+
end
|
2515
|
+
|
2516
|
+
##
|
2517
|
+
# Get a single Enrollment.
|
2518
|
+
#
|
2519
|
+
# @overload get_enrollment(request, options = nil)
|
2520
|
+
# Pass arguments to `get_enrollment` via a request object, either of type
|
2521
|
+
# {::Google::Cloud::Eventarc::V1::GetEnrollmentRequest} or an equivalent Hash.
|
2522
|
+
#
|
2523
|
+
# @param request [::Google::Cloud::Eventarc::V1::GetEnrollmentRequest, ::Hash]
|
2524
|
+
# A request object representing the call parameters. Required. To specify no
|
2525
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2526
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2527
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2528
|
+
#
|
2529
|
+
# @overload get_enrollment(name: nil)
|
2530
|
+
# Pass arguments to `get_enrollment` via keyword arguments. Note that at
|
2531
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2532
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2533
|
+
#
|
2534
|
+
# @param name [::String]
|
2535
|
+
# Required. The name of the Enrollment to get.
|
2536
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2537
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::Enrollment]
|
2538
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2539
|
+
#
|
2540
|
+
# @return [::Google::Cloud::Eventarc::V1::Enrollment]
|
2541
|
+
#
|
2542
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2543
|
+
#
|
2544
|
+
# @example Basic example
|
2545
|
+
# require "google/cloud/eventarc/v1"
|
2546
|
+
#
|
2547
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2548
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
2549
|
+
#
|
2550
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2551
|
+
# request = Google::Cloud::Eventarc::V1::GetEnrollmentRequest.new
|
2552
|
+
#
|
2553
|
+
# # Call the get_enrollment method.
|
2554
|
+
# result = client.get_enrollment request
|
2555
|
+
#
|
2556
|
+
# # The returned object is of type Google::Cloud::Eventarc::V1::Enrollment.
|
2557
|
+
# p result
|
2558
|
+
#
|
2559
|
+
def get_enrollment request, options = nil
|
2560
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2561
|
+
|
2562
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetEnrollmentRequest
|
2563
|
+
|
2564
|
+
# Converts hash and nil to an options object
|
2565
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2566
|
+
|
2567
|
+
# Customize the options with defaults
|
2568
|
+
call_metadata = @config.rpcs.get_enrollment.metadata.to_h
|
2569
|
+
|
2570
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2571
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2572
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2573
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2574
|
+
transports_version_send: [:rest]
|
2575
|
+
|
2576
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2577
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2578
|
+
|
2579
|
+
options.apply_defaults timeout: @config.rpcs.get_enrollment.timeout,
|
2580
|
+
metadata: call_metadata,
|
2581
|
+
retry_policy: @config.rpcs.get_enrollment.retry_policy
|
2582
|
+
|
2583
|
+
options.apply_defaults timeout: @config.timeout,
|
2584
|
+
metadata: @config.metadata,
|
2585
|
+
retry_policy: @config.retry_policy
|
2586
|
+
|
2587
|
+
@eventarc_stub.get_enrollment request, options do |result, operation|
|
2588
|
+
yield result, operation if block_given?
|
2589
|
+
end
|
2590
|
+
rescue ::Gapic::Rest::Error => e
|
2591
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2592
|
+
end
|
2593
|
+
|
2594
|
+
##
|
2595
|
+
# List Enrollments.
|
2596
|
+
#
|
2597
|
+
# @overload list_enrollments(request, options = nil)
|
2598
|
+
# Pass arguments to `list_enrollments` via a request object, either of type
|
2599
|
+
# {::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest} or an equivalent Hash.
|
2600
|
+
#
|
2601
|
+
# @param request [::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest, ::Hash]
|
2602
|
+
# A request object representing the call parameters. Required. To specify no
|
2603
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2604
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2605
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2606
|
+
#
|
2607
|
+
# @overload list_enrollments(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
2608
|
+
# Pass arguments to `list_enrollments` via keyword arguments. Note that at
|
2609
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2610
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2611
|
+
#
|
2612
|
+
# @param parent [::String]
|
2613
|
+
# Required. The parent collection to list triggers on.
|
2614
|
+
# @param page_size [::Integer]
|
2615
|
+
# Optional. The maximum number of results to return on each page.
|
2616
|
+
#
|
2617
|
+
# Note: The service may send fewer.
|
2618
|
+
# @param page_token [::String]
|
2619
|
+
# Optional. The page token; provide the value from the `next_page_token`
|
2620
|
+
# field in a previous call to retrieve the subsequent page.
|
2621
|
+
#
|
2622
|
+
# When paginating, all other parameters provided must match
|
2623
|
+
# the previous call that provided the page token.
|
2624
|
+
# @param order_by [::String]
|
2625
|
+
# Optional. The sorting order of the resources returned. Value should be a
|
2626
|
+
# comma-separated list of fields. The default sorting order is ascending. To
|
2627
|
+
# specify descending order for a field, append a `desc` suffix; for example:
|
2628
|
+
# `name desc, update_time`.
|
2629
|
+
# @param filter [::String]
|
2630
|
+
# Optional. The filter field that the list request will filter on.
|
2631
|
+
# Possible filtersare described in https://google.aip.dev/160.
|
2632
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2633
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse]
|
2634
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2635
|
+
#
|
2636
|
+
# @return [::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse]
|
2637
|
+
#
|
2638
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2639
|
+
#
|
2640
|
+
# @example Basic example
|
2641
|
+
# require "google/cloud/eventarc/v1"
|
2642
|
+
#
|
2643
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2644
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
2645
|
+
#
|
2646
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2647
|
+
# request = Google::Cloud::Eventarc::V1::ListEnrollmentsRequest.new
|
2648
|
+
#
|
2649
|
+
# # Call the list_enrollments method.
|
2650
|
+
# result = client.list_enrollments request
|
2651
|
+
#
|
2652
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2653
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2654
|
+
# result.each do |item|
|
2655
|
+
# # Each element is of type ::Google::Cloud::Eventarc::V1::Enrollment.
|
2656
|
+
# p item
|
2657
|
+
# end
|
2658
|
+
#
|
2659
|
+
def list_enrollments request, options = nil
|
2660
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2661
|
+
|
2662
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest
|
2663
|
+
|
2664
|
+
# Converts hash and nil to an options object
|
2665
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2666
|
+
|
2667
|
+
# Customize the options with defaults
|
2668
|
+
call_metadata = @config.rpcs.list_enrollments.metadata.to_h
|
2669
|
+
|
2670
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2671
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2672
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2673
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2674
|
+
transports_version_send: [:rest]
|
2675
|
+
|
2676
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2677
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2678
|
+
|
2679
|
+
options.apply_defaults timeout: @config.rpcs.list_enrollments.timeout,
|
2680
|
+
metadata: call_metadata,
|
2681
|
+
retry_policy: @config.rpcs.list_enrollments.retry_policy
|
2682
|
+
|
2683
|
+
options.apply_defaults timeout: @config.timeout,
|
2684
|
+
metadata: @config.metadata,
|
2685
|
+
retry_policy: @config.retry_policy
|
2686
|
+
|
2687
|
+
@eventarc_stub.list_enrollments request, options do |result, operation|
|
2688
|
+
yield result, operation if block_given?
|
2689
|
+
end
|
2690
|
+
rescue ::Gapic::Rest::Error => e
|
2691
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2692
|
+
end
|
2693
|
+
|
2694
|
+
##
|
2695
|
+
# Create a new Enrollment in a particular project and location.
|
2696
|
+
#
|
2697
|
+
# @overload create_enrollment(request, options = nil)
|
2698
|
+
# Pass arguments to `create_enrollment` via a request object, either of type
|
2699
|
+
# {::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest} or an equivalent Hash.
|
2700
|
+
#
|
2701
|
+
# @param request [::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest, ::Hash]
|
2702
|
+
# A request object representing the call parameters. Required. To specify no
|
2703
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2704
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2705
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2706
|
+
#
|
2707
|
+
# @overload create_enrollment(parent: nil, enrollment: nil, enrollment_id: nil, validate_only: nil)
|
2708
|
+
# Pass arguments to `create_enrollment` via keyword arguments. Note that at
|
2709
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2710
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2711
|
+
#
|
2712
|
+
# @param parent [::String]
|
2713
|
+
# Required. The parent collection in which to add this enrollment.
|
2714
|
+
# @param enrollment [::Google::Cloud::Eventarc::V1::Enrollment, ::Hash]
|
2715
|
+
# Required. The enrollment to create.
|
2716
|
+
# @param enrollment_id [::String]
|
2717
|
+
# Required. The user-provided ID to be assigned to the Enrollment. It should
|
2718
|
+
# match the format (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$).
|
2719
|
+
# @param validate_only [::Boolean]
|
2720
|
+
# Optional. If set, validate the request and preview the review, but do not
|
2721
|
+
# post it.
|
2722
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2723
|
+
# @yieldparam result [::Gapic::Operation]
|
2724
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2725
|
+
#
|
2726
|
+
# @return [::Gapic::Operation]
|
2727
|
+
#
|
2728
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2729
|
+
#
|
2730
|
+
# @example Basic example
|
2731
|
+
# require "google/cloud/eventarc/v1"
|
2732
|
+
#
|
2733
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2734
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
2735
|
+
#
|
2736
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2737
|
+
# request = Google::Cloud::Eventarc::V1::CreateEnrollmentRequest.new
|
2738
|
+
#
|
2739
|
+
# # Call the create_enrollment method.
|
2740
|
+
# result = client.create_enrollment request
|
2741
|
+
#
|
2742
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2743
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2744
|
+
# # Here is how to wait for a response.
|
2745
|
+
# result.wait_until_done! timeout: 60
|
2746
|
+
# if result.response?
|
2747
|
+
# p result.response
|
2748
|
+
# else
|
2749
|
+
# puts "No response received."
|
2750
|
+
# end
|
2751
|
+
#
|
2752
|
+
def create_enrollment request, options = nil
|
2753
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2754
|
+
|
2755
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest
|
2756
|
+
|
2757
|
+
# Converts hash and nil to an options object
|
2758
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2759
|
+
|
2760
|
+
# Customize the options with defaults
|
2761
|
+
call_metadata = @config.rpcs.create_enrollment.metadata.to_h
|
2762
|
+
|
2763
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2764
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2765
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2766
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2767
|
+
transports_version_send: [:rest]
|
2768
|
+
|
2769
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2770
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2771
|
+
|
2772
|
+
options.apply_defaults timeout: @config.rpcs.create_enrollment.timeout,
|
2773
|
+
metadata: call_metadata,
|
2774
|
+
retry_policy: @config.rpcs.create_enrollment.retry_policy
|
2775
|
+
|
2776
|
+
options.apply_defaults timeout: @config.timeout,
|
2777
|
+
metadata: @config.metadata,
|
2778
|
+
retry_policy: @config.retry_policy
|
2779
|
+
|
2780
|
+
@eventarc_stub.create_enrollment request, options do |result, operation|
|
2781
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2782
|
+
yield result, operation if block_given?
|
2783
|
+
throw :response, result
|
2784
|
+
end
|
2785
|
+
rescue ::Gapic::Rest::Error => e
|
2786
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2787
|
+
end
|
2788
|
+
|
2789
|
+
##
|
2790
|
+
# Update a single Enrollment.
|
2791
|
+
#
|
2792
|
+
# @overload update_enrollment(request, options = nil)
|
2793
|
+
# Pass arguments to `update_enrollment` via a request object, either of type
|
2794
|
+
# {::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest} or an equivalent Hash.
|
2795
|
+
#
|
2796
|
+
# @param request [::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest, ::Hash]
|
2797
|
+
# A request object representing the call parameters. Required. To specify no
|
2798
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2799
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2800
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2801
|
+
#
|
2802
|
+
# @overload update_enrollment(enrollment: nil, update_mask: nil, allow_missing: nil, validate_only: nil)
|
2803
|
+
# Pass arguments to `update_enrollment` via keyword arguments. Note that at
|
2804
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2805
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2806
|
+
#
|
2807
|
+
# @param enrollment [::Google::Cloud::Eventarc::V1::Enrollment, ::Hash]
|
2808
|
+
# Required. The Enrollment to be updated.
|
2809
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2810
|
+
# Optional. The fields to be updated; only fields explicitly provided are
|
2811
|
+
# updated. If no field mask is provided, all provided fields in the request
|
2812
|
+
# are updated. To update all fields, provide a field mask of "*".
|
2813
|
+
# @param allow_missing [::Boolean]
|
2814
|
+
# Optional. If set to true, and the Enrollment is not found, a new Enrollment
|
2815
|
+
# will be created. In this situation, `update_mask` is ignored.
|
2816
|
+
# @param validate_only [::Boolean]
|
2817
|
+
# Optional. If set, validate the request and preview the review, but do not
|
2818
|
+
# post it.
|
2819
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2820
|
+
# @yieldparam result [::Gapic::Operation]
|
2821
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2822
|
+
#
|
2823
|
+
# @return [::Gapic::Operation]
|
2824
|
+
#
|
2825
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2826
|
+
#
|
2827
|
+
# @example Basic example
|
2828
|
+
# require "google/cloud/eventarc/v1"
|
2829
|
+
#
|
2830
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2831
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
2832
|
+
#
|
2833
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2834
|
+
# request = Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest.new
|
2835
|
+
#
|
2836
|
+
# # Call the update_enrollment method.
|
2837
|
+
# result = client.update_enrollment request
|
2838
|
+
#
|
2839
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2840
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2841
|
+
# # Here is how to wait for a response.
|
2842
|
+
# result.wait_until_done! timeout: 60
|
2843
|
+
# if result.response?
|
2844
|
+
# p result.response
|
2845
|
+
# else
|
2846
|
+
# puts "No response received."
|
2847
|
+
# end
|
2848
|
+
#
|
2849
|
+
def update_enrollment request, options = nil
|
2850
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2851
|
+
|
2852
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest
|
2853
|
+
|
2854
|
+
# Converts hash and nil to an options object
|
2855
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2856
|
+
|
2857
|
+
# Customize the options with defaults
|
2858
|
+
call_metadata = @config.rpcs.update_enrollment.metadata.to_h
|
2859
|
+
|
2860
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2861
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2862
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2863
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2864
|
+
transports_version_send: [:rest]
|
2865
|
+
|
2866
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2867
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2868
|
+
|
2869
|
+
options.apply_defaults timeout: @config.rpcs.update_enrollment.timeout,
|
2870
|
+
metadata: call_metadata,
|
2871
|
+
retry_policy: @config.rpcs.update_enrollment.retry_policy
|
2872
|
+
|
2873
|
+
options.apply_defaults timeout: @config.timeout,
|
2874
|
+
metadata: @config.metadata,
|
2875
|
+
retry_policy: @config.retry_policy
|
2876
|
+
|
2877
|
+
@eventarc_stub.update_enrollment request, options do |result, operation|
|
2878
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2879
|
+
yield result, operation if block_given?
|
2880
|
+
throw :response, result
|
2881
|
+
end
|
2882
|
+
rescue ::Gapic::Rest::Error => e
|
2883
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2884
|
+
end
|
2885
|
+
|
2886
|
+
##
|
2887
|
+
# Delete a single Enrollment.
|
2888
|
+
#
|
2889
|
+
# @overload delete_enrollment(request, options = nil)
|
2890
|
+
# Pass arguments to `delete_enrollment` via a request object, either of type
|
2891
|
+
# {::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest} or an equivalent Hash.
|
2892
|
+
#
|
2893
|
+
# @param request [::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest, ::Hash]
|
2894
|
+
# A request object representing the call parameters. Required. To specify no
|
2895
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2896
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2897
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2898
|
+
#
|
2899
|
+
# @overload delete_enrollment(name: nil, etag: nil, allow_missing: nil, validate_only: nil)
|
2900
|
+
# Pass arguments to `delete_enrollment` via keyword arguments. Note that at
|
2901
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2902
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2903
|
+
#
|
2904
|
+
# @param name [::String]
|
2905
|
+
# Required. The name of the Enrollment to be deleted.
|
2906
|
+
# @param etag [::String]
|
2907
|
+
# Optional. If provided, the Enrollment will only be deleted if the etag
|
2908
|
+
# matches the current etag on the resource.
|
2909
|
+
# @param allow_missing [::Boolean]
|
2910
|
+
# Optional. If set to true, and the Enrollment is not found, the request will
|
2911
|
+
# succeed but no action will be taken on the server.
|
2912
|
+
# @param validate_only [::Boolean]
|
2913
|
+
# Optional. If set, validate the request and preview the review, but do not
|
2914
|
+
# post it.
|
2915
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2916
|
+
# @yieldparam result [::Gapic::Operation]
|
2917
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2918
|
+
#
|
2919
|
+
# @return [::Gapic::Operation]
|
2920
|
+
#
|
2921
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2922
|
+
#
|
2923
|
+
# @example Basic example
|
2924
|
+
# require "google/cloud/eventarc/v1"
|
2925
|
+
#
|
2926
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2927
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
2928
|
+
#
|
2929
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2930
|
+
# request = Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest.new
|
2931
|
+
#
|
2932
|
+
# # Call the delete_enrollment method.
|
2933
|
+
# result = client.delete_enrollment request
|
2934
|
+
#
|
2935
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2936
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2937
|
+
# # Here is how to wait for a response.
|
2938
|
+
# result.wait_until_done! timeout: 60
|
2939
|
+
# if result.response?
|
2940
|
+
# p result.response
|
2941
|
+
# else
|
2942
|
+
# puts "No response received."
|
2943
|
+
# end
|
2944
|
+
#
|
2945
|
+
def delete_enrollment request, options = nil
|
2946
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2947
|
+
|
2948
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest
|
2949
|
+
|
2950
|
+
# Converts hash and nil to an options object
|
2951
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2952
|
+
|
2953
|
+
# Customize the options with defaults
|
2954
|
+
call_metadata = @config.rpcs.delete_enrollment.metadata.to_h
|
2955
|
+
|
2956
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2957
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2958
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2959
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
2960
|
+
transports_version_send: [:rest]
|
2961
|
+
|
2962
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2963
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2964
|
+
|
2965
|
+
options.apply_defaults timeout: @config.rpcs.delete_enrollment.timeout,
|
2966
|
+
metadata: call_metadata,
|
2967
|
+
retry_policy: @config.rpcs.delete_enrollment.retry_policy
|
2968
|
+
|
2969
|
+
options.apply_defaults timeout: @config.timeout,
|
2970
|
+
metadata: @config.metadata,
|
2971
|
+
retry_policy: @config.retry_policy
|
2972
|
+
|
2973
|
+
@eventarc_stub.delete_enrollment request, options do |result, operation|
|
2974
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2975
|
+
yield result, operation if block_given?
|
2976
|
+
throw :response, result
|
2977
|
+
end
|
2978
|
+
rescue ::Gapic::Rest::Error => e
|
2979
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2980
|
+
end
|
2981
|
+
|
2982
|
+
##
|
2983
|
+
# Get a single Pipeline.
|
2984
|
+
#
|
2985
|
+
# @overload get_pipeline(request, options = nil)
|
2986
|
+
# Pass arguments to `get_pipeline` via a request object, either of type
|
2987
|
+
# {::Google::Cloud::Eventarc::V1::GetPipelineRequest} or an equivalent Hash.
|
2988
|
+
#
|
2989
|
+
# @param request [::Google::Cloud::Eventarc::V1::GetPipelineRequest, ::Hash]
|
2990
|
+
# A request object representing the call parameters. Required. To specify no
|
2991
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2992
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2993
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2994
|
+
#
|
2995
|
+
# @overload get_pipeline(name: nil)
|
2996
|
+
# Pass arguments to `get_pipeline` via keyword arguments. Note that at
|
2997
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2998
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2999
|
+
#
|
3000
|
+
# @param name [::String]
|
3001
|
+
# Required. The name of the pipeline to get.
|
3002
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3003
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::Pipeline]
|
3004
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3005
|
+
#
|
3006
|
+
# @return [::Google::Cloud::Eventarc::V1::Pipeline]
|
3007
|
+
#
|
3008
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3009
|
+
#
|
3010
|
+
# @example Basic example
|
3011
|
+
# require "google/cloud/eventarc/v1"
|
3012
|
+
#
|
3013
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3014
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
3015
|
+
#
|
3016
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3017
|
+
# request = Google::Cloud::Eventarc::V1::GetPipelineRequest.new
|
3018
|
+
#
|
3019
|
+
# # Call the get_pipeline method.
|
3020
|
+
# result = client.get_pipeline request
|
3021
|
+
#
|
3022
|
+
# # The returned object is of type Google::Cloud::Eventarc::V1::Pipeline.
|
3023
|
+
# p result
|
3024
|
+
#
|
3025
|
+
def get_pipeline request, options = nil
|
3026
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3027
|
+
|
3028
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetPipelineRequest
|
3029
|
+
|
3030
|
+
# Converts hash and nil to an options object
|
3031
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3032
|
+
|
3033
|
+
# Customize the options with defaults
|
3034
|
+
call_metadata = @config.rpcs.get_pipeline.metadata.to_h
|
3035
|
+
|
3036
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3037
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3038
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3039
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
3040
|
+
transports_version_send: [:rest]
|
3041
|
+
|
3042
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3043
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3044
|
+
|
3045
|
+
options.apply_defaults timeout: @config.rpcs.get_pipeline.timeout,
|
3046
|
+
metadata: call_metadata,
|
3047
|
+
retry_policy: @config.rpcs.get_pipeline.retry_policy
|
3048
|
+
|
3049
|
+
options.apply_defaults timeout: @config.timeout,
|
3050
|
+
metadata: @config.metadata,
|
3051
|
+
retry_policy: @config.retry_policy
|
3052
|
+
|
3053
|
+
@eventarc_stub.get_pipeline request, options do |result, operation|
|
3054
|
+
yield result, operation if block_given?
|
3055
|
+
end
|
3056
|
+
rescue ::Gapic::Rest::Error => e
|
3057
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3058
|
+
end
|
3059
|
+
|
3060
|
+
##
|
3061
|
+
# List pipelines.
|
3062
|
+
#
|
3063
|
+
# @overload list_pipelines(request, options = nil)
|
3064
|
+
# Pass arguments to `list_pipelines` via a request object, either of type
|
3065
|
+
# {::Google::Cloud::Eventarc::V1::ListPipelinesRequest} or an equivalent Hash.
|
3066
|
+
#
|
3067
|
+
# @param request [::Google::Cloud::Eventarc::V1::ListPipelinesRequest, ::Hash]
|
3068
|
+
# A request object representing the call parameters. Required. To specify no
|
3069
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3070
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3071
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3072
|
+
#
|
3073
|
+
# @overload list_pipelines(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
3074
|
+
# Pass arguments to `list_pipelines` via keyword arguments. Note that at
|
3075
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3076
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3077
|
+
#
|
3078
|
+
# @param parent [::String]
|
3079
|
+
# Required. The parent collection to list pipelines on.
|
3080
|
+
# @param page_size [::Integer]
|
3081
|
+
# Optional. The maximum number of results to return on each page.
|
3082
|
+
#
|
3083
|
+
# Note: The service may send fewer.
|
3084
|
+
# @param page_token [::String]
|
3085
|
+
# Optional. The page token; provide the value from the `next_page_token`
|
3086
|
+
# field in a previous call to retrieve the subsequent page.
|
3087
|
+
#
|
3088
|
+
# When paginating, all other parameters provided must match
|
3089
|
+
# the previous call that provided the page token.
|
3090
|
+
# @param order_by [::String]
|
3091
|
+
# Optional. The sorting order of the resources returned. Value should be a
|
3092
|
+
# comma-separated list of fields. The default sorting order is ascending. To
|
3093
|
+
# specify descending order for a field, append a `desc` suffix; for example:
|
3094
|
+
# `name desc, update_time`.
|
3095
|
+
# @param filter [::String]
|
3096
|
+
# Optional. The filter field that the list request will filter on.
|
3097
|
+
# Possible filters are described in https://google.aip.dev/160.
|
3098
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3099
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::ListPipelinesResponse]
|
3100
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3101
|
+
#
|
3102
|
+
# @return [::Google::Cloud::Eventarc::V1::ListPipelinesResponse]
|
3103
|
+
#
|
3104
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3105
|
+
#
|
3106
|
+
# @example Basic example
|
3107
|
+
# require "google/cloud/eventarc/v1"
|
3108
|
+
#
|
3109
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3110
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
3111
|
+
#
|
3112
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3113
|
+
# request = Google::Cloud::Eventarc::V1::ListPipelinesRequest.new
|
3114
|
+
#
|
3115
|
+
# # Call the list_pipelines method.
|
3116
|
+
# result = client.list_pipelines request
|
3117
|
+
#
|
3118
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3119
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3120
|
+
# result.each do |item|
|
3121
|
+
# # Each element is of type ::Google::Cloud::Eventarc::V1::Pipeline.
|
3122
|
+
# p item
|
3123
|
+
# end
|
3124
|
+
#
|
3125
|
+
def list_pipelines request, options = nil
|
3126
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3127
|
+
|
3128
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListPipelinesRequest
|
3129
|
+
|
3130
|
+
# Converts hash and nil to an options object
|
3131
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3132
|
+
|
3133
|
+
# Customize the options with defaults
|
3134
|
+
call_metadata = @config.rpcs.list_pipelines.metadata.to_h
|
3135
|
+
|
3136
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3137
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3138
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3139
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
3140
|
+
transports_version_send: [:rest]
|
3141
|
+
|
3142
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3143
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3144
|
+
|
3145
|
+
options.apply_defaults timeout: @config.rpcs.list_pipelines.timeout,
|
3146
|
+
metadata: call_metadata,
|
3147
|
+
retry_policy: @config.rpcs.list_pipelines.retry_policy
|
3148
|
+
|
3149
|
+
options.apply_defaults timeout: @config.timeout,
|
3150
|
+
metadata: @config.metadata,
|
3151
|
+
retry_policy: @config.retry_policy
|
3152
|
+
|
3153
|
+
@eventarc_stub.list_pipelines request, options do |result, operation|
|
3154
|
+
yield result, operation if block_given?
|
3155
|
+
end
|
3156
|
+
rescue ::Gapic::Rest::Error => e
|
3157
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3158
|
+
end
|
3159
|
+
|
3160
|
+
##
|
3161
|
+
# Create a new Pipeline in a particular project and location.
|
3162
|
+
#
|
3163
|
+
# @overload create_pipeline(request, options = nil)
|
3164
|
+
# Pass arguments to `create_pipeline` via a request object, either of type
|
3165
|
+
# {::Google::Cloud::Eventarc::V1::CreatePipelineRequest} or an equivalent Hash.
|
3166
|
+
#
|
3167
|
+
# @param request [::Google::Cloud::Eventarc::V1::CreatePipelineRequest, ::Hash]
|
3168
|
+
# A request object representing the call parameters. Required. To specify no
|
3169
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3170
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3171
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3172
|
+
#
|
3173
|
+
# @overload create_pipeline(parent: nil, pipeline: nil, pipeline_id: nil, validate_only: nil)
|
3174
|
+
# Pass arguments to `create_pipeline` via keyword arguments. Note that at
|
3175
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3176
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3177
|
+
#
|
3178
|
+
# @param parent [::String]
|
3179
|
+
# Required. The parent collection in which to add this pipeline.
|
3180
|
+
# @param pipeline [::Google::Cloud::Eventarc::V1::Pipeline, ::Hash]
|
3181
|
+
# Required. The pipeline to create.
|
3182
|
+
# @param pipeline_id [::String]
|
3183
|
+
# Required. The user-provided ID to be assigned to the Pipeline.
|
3184
|
+
# @param validate_only [::Boolean]
|
3185
|
+
# Optional. If set, validate the request and preview the review, but do not
|
3186
|
+
# post it.
|
3187
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3188
|
+
# @yieldparam result [::Gapic::Operation]
|
3189
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3190
|
+
#
|
3191
|
+
# @return [::Gapic::Operation]
|
3192
|
+
#
|
3193
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3194
|
+
#
|
3195
|
+
# @example Basic example
|
3196
|
+
# require "google/cloud/eventarc/v1"
|
3197
|
+
#
|
3198
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3199
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
3200
|
+
#
|
3201
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3202
|
+
# request = Google::Cloud::Eventarc::V1::CreatePipelineRequest.new
|
3203
|
+
#
|
3204
|
+
# # Call the create_pipeline method.
|
3205
|
+
# result = client.create_pipeline request
|
3206
|
+
#
|
3207
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3208
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3209
|
+
# # Here is how to wait for a response.
|
3210
|
+
# result.wait_until_done! timeout: 60
|
3211
|
+
# if result.response?
|
3212
|
+
# p result.response
|
3213
|
+
# else
|
3214
|
+
# puts "No response received."
|
3215
|
+
# end
|
3216
|
+
#
|
3217
|
+
def create_pipeline request, options = nil
|
3218
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3219
|
+
|
3220
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::CreatePipelineRequest
|
3221
|
+
|
3222
|
+
# Converts hash and nil to an options object
|
3223
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3224
|
+
|
3225
|
+
# Customize the options with defaults
|
3226
|
+
call_metadata = @config.rpcs.create_pipeline.metadata.to_h
|
3227
|
+
|
3228
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3229
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3230
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3231
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
3232
|
+
transports_version_send: [:rest]
|
3233
|
+
|
3234
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3235
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3236
|
+
|
3237
|
+
options.apply_defaults timeout: @config.rpcs.create_pipeline.timeout,
|
3238
|
+
metadata: call_metadata,
|
3239
|
+
retry_policy: @config.rpcs.create_pipeline.retry_policy
|
3240
|
+
|
3241
|
+
options.apply_defaults timeout: @config.timeout,
|
3242
|
+
metadata: @config.metadata,
|
3243
|
+
retry_policy: @config.retry_policy
|
3244
|
+
|
3245
|
+
@eventarc_stub.create_pipeline request, options do |result, operation|
|
3246
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3247
|
+
yield result, operation if block_given?
|
3248
|
+
throw :response, result
|
3249
|
+
end
|
3250
|
+
rescue ::Gapic::Rest::Error => e
|
3251
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3252
|
+
end
|
3253
|
+
|
3254
|
+
##
|
3255
|
+
# Update a single pipeline.
|
3256
|
+
#
|
3257
|
+
# @overload update_pipeline(request, options = nil)
|
3258
|
+
# Pass arguments to `update_pipeline` via a request object, either of type
|
3259
|
+
# {::Google::Cloud::Eventarc::V1::UpdatePipelineRequest} or an equivalent Hash.
|
3260
|
+
#
|
3261
|
+
# @param request [::Google::Cloud::Eventarc::V1::UpdatePipelineRequest, ::Hash]
|
3262
|
+
# A request object representing the call parameters. Required. To specify no
|
3263
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3264
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3265
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3266
|
+
#
|
3267
|
+
# @overload update_pipeline(pipeline: nil, update_mask: nil, allow_missing: nil, validate_only: nil)
|
3268
|
+
# Pass arguments to `update_pipeline` via keyword arguments. Note that at
|
3269
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3270
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3271
|
+
#
|
3272
|
+
# @param pipeline [::Google::Cloud::Eventarc::V1::Pipeline, ::Hash]
|
3273
|
+
# Required. The Pipeline to be updated.
|
3274
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3275
|
+
# Optional. The fields to be updated; only fields explicitly provided are
|
3276
|
+
# updated. If no field mask is provided, all provided fields in the request
|
3277
|
+
# are updated. To update all fields, provide a field mask of "*".
|
3278
|
+
# @param allow_missing [::Boolean]
|
3279
|
+
# Optional. If set to true, and the Pipeline is not found, a new Pipeline
|
3280
|
+
# will be created. In this situation, `update_mask` is ignored.
|
3281
|
+
# @param validate_only [::Boolean]
|
3282
|
+
# Optional. If set, validate the request and preview the review, but do not
|
3283
|
+
# post it.
|
3284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3285
|
+
# @yieldparam result [::Gapic::Operation]
|
3286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3287
|
+
#
|
3288
|
+
# @return [::Gapic::Operation]
|
3289
|
+
#
|
3290
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3291
|
+
#
|
3292
|
+
# @example Basic example
|
3293
|
+
# require "google/cloud/eventarc/v1"
|
3294
|
+
#
|
3295
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3296
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
3297
|
+
#
|
3298
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3299
|
+
# request = Google::Cloud::Eventarc::V1::UpdatePipelineRequest.new
|
3300
|
+
#
|
3301
|
+
# # Call the update_pipeline method.
|
3302
|
+
# result = client.update_pipeline request
|
3303
|
+
#
|
3304
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3305
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3306
|
+
# # Here is how to wait for a response.
|
3307
|
+
# result.wait_until_done! timeout: 60
|
3308
|
+
# if result.response?
|
3309
|
+
# p result.response
|
3310
|
+
# else
|
3311
|
+
# puts "No response received."
|
3312
|
+
# end
|
3313
|
+
#
|
3314
|
+
def update_pipeline request, options = nil
|
3315
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3316
|
+
|
3317
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::UpdatePipelineRequest
|
3318
|
+
|
3319
|
+
# Converts hash and nil to an options object
|
3320
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3321
|
+
|
3322
|
+
# Customize the options with defaults
|
3323
|
+
call_metadata = @config.rpcs.update_pipeline.metadata.to_h
|
3324
|
+
|
3325
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3326
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3327
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3328
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
3329
|
+
transports_version_send: [:rest]
|
3330
|
+
|
3331
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3332
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3333
|
+
|
3334
|
+
options.apply_defaults timeout: @config.rpcs.update_pipeline.timeout,
|
3335
|
+
metadata: call_metadata,
|
3336
|
+
retry_policy: @config.rpcs.update_pipeline.retry_policy
|
3337
|
+
|
3338
|
+
options.apply_defaults timeout: @config.timeout,
|
3339
|
+
metadata: @config.metadata,
|
3340
|
+
retry_policy: @config.retry_policy
|
3341
|
+
|
3342
|
+
@eventarc_stub.update_pipeline request, options do |result, operation|
|
3343
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3344
|
+
yield result, operation if block_given?
|
3345
|
+
throw :response, result
|
3346
|
+
end
|
3347
|
+
rescue ::Gapic::Rest::Error => e
|
3348
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3349
|
+
end
|
3350
|
+
|
3351
|
+
##
|
3352
|
+
# Delete a single pipeline.
|
3353
|
+
#
|
3354
|
+
# @overload delete_pipeline(request, options = nil)
|
3355
|
+
# Pass arguments to `delete_pipeline` via a request object, either of type
|
3356
|
+
# {::Google::Cloud::Eventarc::V1::DeletePipelineRequest} or an equivalent Hash.
|
3357
|
+
#
|
3358
|
+
# @param request [::Google::Cloud::Eventarc::V1::DeletePipelineRequest, ::Hash]
|
3359
|
+
# A request object representing the call parameters. Required. To specify no
|
3360
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3361
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3363
|
+
#
|
3364
|
+
# @overload delete_pipeline(name: nil, etag: nil, allow_missing: nil, validate_only: nil)
|
3365
|
+
# Pass arguments to `delete_pipeline` via keyword arguments. Note that at
|
3366
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3367
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3368
|
+
#
|
3369
|
+
# @param name [::String]
|
3370
|
+
# Required. The name of the Pipeline to be deleted.
|
3371
|
+
# @param etag [::String]
|
3372
|
+
# Optional. If provided, the Pipeline will only be deleted if the etag
|
3373
|
+
# matches the current etag on the resource.
|
3374
|
+
# @param allow_missing [::Boolean]
|
3375
|
+
# Optional. If set to true, and the Pipeline is not found, the request will
|
3376
|
+
# succeed but no action will be taken on the server.
|
3377
|
+
# @param validate_only [::Boolean]
|
3378
|
+
# Optional. If set, validate the request and preview the review, but do not
|
3379
|
+
# post it.
|
3380
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3381
|
+
# @yieldparam result [::Gapic::Operation]
|
3382
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3383
|
+
#
|
3384
|
+
# @return [::Gapic::Operation]
|
3385
|
+
#
|
3386
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3387
|
+
#
|
3388
|
+
# @example Basic example
|
3389
|
+
# require "google/cloud/eventarc/v1"
|
3390
|
+
#
|
3391
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3392
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
3393
|
+
#
|
3394
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3395
|
+
# request = Google::Cloud::Eventarc::V1::DeletePipelineRequest.new
|
3396
|
+
#
|
3397
|
+
# # Call the delete_pipeline method.
|
3398
|
+
# result = client.delete_pipeline request
|
3399
|
+
#
|
3400
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3401
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3402
|
+
# # Here is how to wait for a response.
|
3403
|
+
# result.wait_until_done! timeout: 60
|
3404
|
+
# if result.response?
|
3405
|
+
# p result.response
|
3406
|
+
# else
|
3407
|
+
# puts "No response received."
|
3408
|
+
# end
|
3409
|
+
#
|
3410
|
+
def delete_pipeline request, options = nil
|
3411
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3412
|
+
|
3413
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::DeletePipelineRequest
|
3414
|
+
|
3415
|
+
# Converts hash and nil to an options object
|
3416
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3417
|
+
|
3418
|
+
# Customize the options with defaults
|
3419
|
+
call_metadata = @config.rpcs.delete_pipeline.metadata.to_h
|
3420
|
+
|
3421
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3422
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3423
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3424
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
3425
|
+
transports_version_send: [:rest]
|
3426
|
+
|
3427
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3428
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3429
|
+
|
3430
|
+
options.apply_defaults timeout: @config.rpcs.delete_pipeline.timeout,
|
3431
|
+
metadata: call_metadata,
|
3432
|
+
retry_policy: @config.rpcs.delete_pipeline.retry_policy
|
3433
|
+
|
3434
|
+
options.apply_defaults timeout: @config.timeout,
|
3435
|
+
metadata: @config.metadata,
|
3436
|
+
retry_policy: @config.retry_policy
|
3437
|
+
|
3438
|
+
@eventarc_stub.delete_pipeline request, options do |result, operation|
|
3439
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3440
|
+
yield result, operation if block_given?
|
3441
|
+
throw :response, result
|
3442
|
+
end
|
3443
|
+
rescue ::Gapic::Rest::Error => e
|
3444
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3445
|
+
end
|
3446
|
+
|
3447
|
+
##
|
3448
|
+
# Get a single GoogleApiSource.
|
3449
|
+
#
|
3450
|
+
# @overload get_google_api_source(request, options = nil)
|
3451
|
+
# Pass arguments to `get_google_api_source` via a request object, either of type
|
3452
|
+
# {::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest} or an equivalent Hash.
|
3453
|
+
#
|
3454
|
+
# @param request [::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest, ::Hash]
|
3455
|
+
# A request object representing the call parameters. Required. To specify no
|
3456
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3457
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3458
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3459
|
+
#
|
3460
|
+
# @overload get_google_api_source(name: nil)
|
3461
|
+
# Pass arguments to `get_google_api_source` via keyword arguments. Note that at
|
3462
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3463
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3464
|
+
#
|
3465
|
+
# @param name [::String]
|
3466
|
+
# Required. The name of the google api source to get.
|
3467
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3468
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::GoogleApiSource]
|
3469
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3470
|
+
#
|
3471
|
+
# @return [::Google::Cloud::Eventarc::V1::GoogleApiSource]
|
3472
|
+
#
|
3473
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3474
|
+
#
|
3475
|
+
# @example Basic example
|
3476
|
+
# require "google/cloud/eventarc/v1"
|
3477
|
+
#
|
3478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3479
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
3480
|
+
#
|
3481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3482
|
+
# request = Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest.new
|
3483
|
+
#
|
3484
|
+
# # Call the get_google_api_source method.
|
3485
|
+
# result = client.get_google_api_source request
|
3486
|
+
#
|
3487
|
+
# # The returned object is of type Google::Cloud::Eventarc::V1::GoogleApiSource.
|
3488
|
+
# p result
|
3489
|
+
#
|
3490
|
+
def get_google_api_source request, options = nil
|
3491
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3492
|
+
|
3493
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest
|
3494
|
+
|
3495
|
+
# Converts hash and nil to an options object
|
3496
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3497
|
+
|
3498
|
+
# Customize the options with defaults
|
3499
|
+
call_metadata = @config.rpcs.get_google_api_source.metadata.to_h
|
3500
|
+
|
3501
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3502
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3503
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3504
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
3505
|
+
transports_version_send: [:rest]
|
3506
|
+
|
3507
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3508
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3509
|
+
|
3510
|
+
options.apply_defaults timeout: @config.rpcs.get_google_api_source.timeout,
|
3511
|
+
metadata: call_metadata,
|
3512
|
+
retry_policy: @config.rpcs.get_google_api_source.retry_policy
|
3513
|
+
|
3514
|
+
options.apply_defaults timeout: @config.timeout,
|
3515
|
+
metadata: @config.metadata,
|
3516
|
+
retry_policy: @config.retry_policy
|
3517
|
+
|
3518
|
+
@eventarc_stub.get_google_api_source request, options do |result, operation|
|
3519
|
+
yield result, operation if block_given?
|
3520
|
+
end
|
3521
|
+
rescue ::Gapic::Rest::Error => e
|
3522
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3523
|
+
end
|
3524
|
+
|
3525
|
+
##
|
3526
|
+
# List GoogleApiSources.
|
3527
|
+
#
|
3528
|
+
# @overload list_google_api_sources(request, options = nil)
|
3529
|
+
# Pass arguments to `list_google_api_sources` via a request object, either of type
|
3530
|
+
# {::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest} or an equivalent Hash.
|
3531
|
+
#
|
3532
|
+
# @param request [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest, ::Hash]
|
3533
|
+
# A request object representing the call parameters. Required. To specify no
|
3534
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3535
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3536
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3537
|
+
#
|
3538
|
+
# @overload list_google_api_sources(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
|
3539
|
+
# Pass arguments to `list_google_api_sources` via keyword arguments. Note that at
|
3540
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3541
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3542
|
+
#
|
3543
|
+
# @param parent [::String]
|
3544
|
+
# Required. The parent collection to list GoogleApiSources on.
|
3545
|
+
# @param page_size [::Integer]
|
3546
|
+
# Optional. The maximum number of results to return on each page.
|
3547
|
+
#
|
3548
|
+
# Note: The service may send fewer.
|
3549
|
+
# @param page_token [::String]
|
3550
|
+
# Optional. The page token; provide the value from the `next_page_token`
|
3551
|
+
# field in a previous call to retrieve the subsequent page.
|
3552
|
+
#
|
3553
|
+
# When paginating, all other parameters provided must match
|
3554
|
+
# the previous call that provided the page token.
|
3555
|
+
# @param order_by [::String]
|
3556
|
+
# Optional. The sorting order of the resources returned. Value should be a
|
3557
|
+
# comma-separated list of fields. The default sorting order is ascending. To
|
3558
|
+
# specify descending order for a field, append a `desc` suffix; for example:
|
3559
|
+
# `name desc, update_time`.
|
3560
|
+
# @param filter [::String]
|
3561
|
+
# Optional. The filter field that the list request will filter on.
|
3562
|
+
# Possible filtersare described in https://google.aip.dev/160.
|
3563
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3564
|
+
# @yieldparam result [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse]
|
3565
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3566
|
+
#
|
3567
|
+
# @return [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse]
|
3568
|
+
#
|
3569
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3570
|
+
#
|
3571
|
+
# @example Basic example
|
3572
|
+
# require "google/cloud/eventarc/v1"
|
3573
|
+
#
|
3574
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3575
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
3576
|
+
#
|
3577
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3578
|
+
# request = Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest.new
|
3579
|
+
#
|
3580
|
+
# # Call the list_google_api_sources method.
|
3581
|
+
# result = client.list_google_api_sources request
|
3582
|
+
#
|
3583
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3584
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3585
|
+
# result.each do |item|
|
3586
|
+
# # Each element is of type ::Google::Cloud::Eventarc::V1::GoogleApiSource.
|
3587
|
+
# p item
|
3588
|
+
# end
|
3589
|
+
#
|
3590
|
+
def list_google_api_sources request, options = nil
|
3591
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3592
|
+
|
3593
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest
|
3594
|
+
|
3595
|
+
# Converts hash and nil to an options object
|
3596
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3597
|
+
|
3598
|
+
# Customize the options with defaults
|
3599
|
+
call_metadata = @config.rpcs.list_google_api_sources.metadata.to_h
|
3600
|
+
|
3601
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3602
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3603
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3604
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
3605
|
+
transports_version_send: [:rest]
|
3606
|
+
|
3607
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3608
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3609
|
+
|
3610
|
+
options.apply_defaults timeout: @config.rpcs.list_google_api_sources.timeout,
|
3611
|
+
metadata: call_metadata,
|
3612
|
+
retry_policy: @config.rpcs.list_google_api_sources.retry_policy
|
3613
|
+
|
3614
|
+
options.apply_defaults timeout: @config.timeout,
|
3615
|
+
metadata: @config.metadata,
|
3616
|
+
retry_policy: @config.retry_policy
|
3617
|
+
|
3618
|
+
@eventarc_stub.list_google_api_sources request, options do |result, operation|
|
3619
|
+
yield result, operation if block_given?
|
3620
|
+
end
|
3621
|
+
rescue ::Gapic::Rest::Error => e
|
3622
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3623
|
+
end
|
3624
|
+
|
3625
|
+
##
|
3626
|
+
# Create a new GoogleApiSource in a particular project and location.
|
3627
|
+
#
|
3628
|
+
# @overload create_google_api_source(request, options = nil)
|
3629
|
+
# Pass arguments to `create_google_api_source` via a request object, either of type
|
3630
|
+
# {::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest} or an equivalent Hash.
|
3631
|
+
#
|
3632
|
+
# @param request [::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest, ::Hash]
|
3633
|
+
# A request object representing the call parameters. Required. To specify no
|
3634
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3635
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3636
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3637
|
+
#
|
3638
|
+
# @overload create_google_api_source(parent: nil, google_api_source: nil, google_api_source_id: nil, validate_only: nil)
|
3639
|
+
# Pass arguments to `create_google_api_source` via keyword arguments. Note that at
|
3640
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3641
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3642
|
+
#
|
3643
|
+
# @param parent [::String]
|
3644
|
+
# Required. The parent collection in which to add this google api source.
|
3645
|
+
# @param google_api_source [::Google::Cloud::Eventarc::V1::GoogleApiSource, ::Hash]
|
3646
|
+
# Required. The google api source to create.
|
3647
|
+
# @param google_api_source_id [::String]
|
3648
|
+
# Required. The user-provided ID to be assigned to the GoogleApiSource. It
|
3649
|
+
# should match the format (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$).
|
3650
|
+
# @param validate_only [::Boolean]
|
3651
|
+
# Optional. If set, validate the request and preview the review, but do not
|
3652
|
+
# post it.
|
3653
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3654
|
+
# @yieldparam result [::Gapic::Operation]
|
3655
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3656
|
+
#
|
3657
|
+
# @return [::Gapic::Operation]
|
3658
|
+
#
|
3659
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3660
|
+
#
|
3661
|
+
# @example Basic example
|
3662
|
+
# require "google/cloud/eventarc/v1"
|
3663
|
+
#
|
3664
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3665
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
3666
|
+
#
|
3667
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3668
|
+
# request = Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest.new
|
3669
|
+
#
|
3670
|
+
# # Call the create_google_api_source method.
|
3671
|
+
# result = client.create_google_api_source request
|
3672
|
+
#
|
3673
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3674
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3675
|
+
# # Here is how to wait for a response.
|
3676
|
+
# result.wait_until_done! timeout: 60
|
3677
|
+
# if result.response?
|
3678
|
+
# p result.response
|
3679
|
+
# else
|
3680
|
+
# puts "No response received."
|
3681
|
+
# end
|
3682
|
+
#
|
3683
|
+
def create_google_api_source request, options = nil
|
3684
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3685
|
+
|
3686
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest
|
3687
|
+
|
3688
|
+
# Converts hash and nil to an options object
|
3689
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3690
|
+
|
3691
|
+
# Customize the options with defaults
|
3692
|
+
call_metadata = @config.rpcs.create_google_api_source.metadata.to_h
|
3693
|
+
|
3694
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3695
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3696
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3697
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
3698
|
+
transports_version_send: [:rest]
|
3699
|
+
|
3700
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3701
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3702
|
+
|
3703
|
+
options.apply_defaults timeout: @config.rpcs.create_google_api_source.timeout,
|
3704
|
+
metadata: call_metadata,
|
3705
|
+
retry_policy: @config.rpcs.create_google_api_source.retry_policy
|
3706
|
+
|
3707
|
+
options.apply_defaults timeout: @config.timeout,
|
3708
|
+
metadata: @config.metadata,
|
3709
|
+
retry_policy: @config.retry_policy
|
3710
|
+
|
3711
|
+
@eventarc_stub.create_google_api_source request, options do |result, operation|
|
3712
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3713
|
+
yield result, operation if block_given?
|
3714
|
+
throw :response, result
|
3715
|
+
end
|
3716
|
+
rescue ::Gapic::Rest::Error => e
|
3717
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3718
|
+
end
|
3719
|
+
|
3720
|
+
##
|
3721
|
+
# Update a single GoogleApiSource.
|
3722
|
+
#
|
3723
|
+
# @overload update_google_api_source(request, options = nil)
|
3724
|
+
# Pass arguments to `update_google_api_source` via a request object, either of type
|
3725
|
+
# {::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest} or an equivalent Hash.
|
3726
|
+
#
|
3727
|
+
# @param request [::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest, ::Hash]
|
3728
|
+
# A request object representing the call parameters. Required. To specify no
|
3729
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3730
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3731
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3732
|
+
#
|
3733
|
+
# @overload update_google_api_source(google_api_source: nil, update_mask: nil, allow_missing: nil, validate_only: nil)
|
3734
|
+
# Pass arguments to `update_google_api_source` via keyword arguments. Note that at
|
3735
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3736
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3737
|
+
#
|
3738
|
+
# @param google_api_source [::Google::Cloud::Eventarc::V1::GoogleApiSource, ::Hash]
|
3739
|
+
# Required. The GoogleApiSource to be updated.
|
3740
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3741
|
+
# Optional. The fields to be updated; only fields explicitly provided are
|
3742
|
+
# updated. If no field mask is provided, all provided fields in the request
|
3743
|
+
# are updated. To update all fields, provide a field mask of "*".
|
3744
|
+
# @param allow_missing [::Boolean]
|
3745
|
+
# Optional. If set to true, and the GoogleApiSource is not found, a new
|
3746
|
+
# GoogleApiSource will be created. In this situation, `update_mask` is
|
3747
|
+
# ignored.
|
3748
|
+
# @param validate_only [::Boolean]
|
3749
|
+
# Optional. If set, validate the request and preview the review, but do not
|
3750
|
+
# post it.
|
3751
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3752
|
+
# @yieldparam result [::Gapic::Operation]
|
3753
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3754
|
+
#
|
3755
|
+
# @return [::Gapic::Operation]
|
3756
|
+
#
|
3757
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3758
|
+
#
|
3759
|
+
# @example Basic example
|
3760
|
+
# require "google/cloud/eventarc/v1"
|
3761
|
+
#
|
3762
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3763
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
3764
|
+
#
|
3765
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3766
|
+
# request = Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest.new
|
3767
|
+
#
|
3768
|
+
# # Call the update_google_api_source method.
|
3769
|
+
# result = client.update_google_api_source request
|
3770
|
+
#
|
3771
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3772
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3773
|
+
# # Here is how to wait for a response.
|
3774
|
+
# result.wait_until_done! timeout: 60
|
3775
|
+
# if result.response?
|
3776
|
+
# p result.response
|
3777
|
+
# else
|
3778
|
+
# puts "No response received."
|
3779
|
+
# end
|
3780
|
+
#
|
3781
|
+
def update_google_api_source request, options = nil
|
3782
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3783
|
+
|
3784
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest
|
3785
|
+
|
3786
|
+
# Converts hash and nil to an options object
|
3787
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3788
|
+
|
3789
|
+
# Customize the options with defaults
|
3790
|
+
call_metadata = @config.rpcs.update_google_api_source.metadata.to_h
|
3791
|
+
|
3792
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3793
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3794
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3795
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
3796
|
+
transports_version_send: [:rest]
|
3797
|
+
|
3798
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3799
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3800
|
+
|
3801
|
+
options.apply_defaults timeout: @config.rpcs.update_google_api_source.timeout,
|
3802
|
+
metadata: call_metadata,
|
3803
|
+
retry_policy: @config.rpcs.update_google_api_source.retry_policy
|
3804
|
+
|
3805
|
+
options.apply_defaults timeout: @config.timeout,
|
3806
|
+
metadata: @config.metadata,
|
3807
|
+
retry_policy: @config.retry_policy
|
3808
|
+
|
3809
|
+
@eventarc_stub.update_google_api_source request, options do |result, operation|
|
3810
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3811
|
+
yield result, operation if block_given?
|
3812
|
+
throw :response, result
|
3813
|
+
end
|
3814
|
+
rescue ::Gapic::Rest::Error => e
|
3815
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3816
|
+
end
|
3817
|
+
|
3818
|
+
##
|
3819
|
+
# Delete a single GoogleApiSource.
|
3820
|
+
#
|
3821
|
+
# @overload delete_google_api_source(request, options = nil)
|
3822
|
+
# Pass arguments to `delete_google_api_source` via a request object, either of type
|
3823
|
+
# {::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest} or an equivalent Hash.
|
3824
|
+
#
|
3825
|
+
# @param request [::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest, ::Hash]
|
3826
|
+
# A request object representing the call parameters. Required. To specify no
|
3827
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3828
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3829
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3830
|
+
#
|
3831
|
+
# @overload delete_google_api_source(name: nil, etag: nil, allow_missing: nil, validate_only: nil)
|
3832
|
+
# Pass arguments to `delete_google_api_source` via keyword arguments. Note that at
|
3833
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3834
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3835
|
+
#
|
3836
|
+
# @param name [::String]
|
3837
|
+
# Required. The name of the GoogleApiSource to be deleted.
|
3838
|
+
# @param etag [::String]
|
3839
|
+
# Optional. If provided, the MessageBus will only be deleted if the etag
|
3840
|
+
# matches the current etag on the resource.
|
3841
|
+
# @param allow_missing [::Boolean]
|
3842
|
+
# Optional. If set to true, and the MessageBus is not found, the request will
|
3843
|
+
# succeed but no action will be taken on the server.
|
3844
|
+
# @param validate_only [::Boolean]
|
3845
|
+
# Optional. If set, validate the request and preview the review, but do not
|
3846
|
+
# post it.
|
3847
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3848
|
+
# @yieldparam result [::Gapic::Operation]
|
3849
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3850
|
+
#
|
3851
|
+
# @return [::Gapic::Operation]
|
3852
|
+
#
|
3853
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3854
|
+
#
|
3855
|
+
# @example Basic example
|
3856
|
+
# require "google/cloud/eventarc/v1"
|
3857
|
+
#
|
3858
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3859
|
+
# client = Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new
|
3860
|
+
#
|
3861
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3862
|
+
# request = Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest.new
|
3863
|
+
#
|
3864
|
+
# # Call the delete_google_api_source method.
|
3865
|
+
# result = client.delete_google_api_source request
|
3866
|
+
#
|
3867
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3868
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3869
|
+
# # Here is how to wait for a response.
|
3870
|
+
# result.wait_until_done! timeout: 60
|
3871
|
+
# if result.response?
|
3872
|
+
# p result.response
|
3873
|
+
# else
|
3874
|
+
# puts "No response received."
|
3875
|
+
# end
|
3876
|
+
#
|
3877
|
+
def delete_google_api_source request, options = nil
|
3878
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3879
|
+
|
3880
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest
|
3881
|
+
|
3882
|
+
# Converts hash and nil to an options object
|
3883
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3884
|
+
|
3885
|
+
# Customize the options with defaults
|
3886
|
+
call_metadata = @config.rpcs.delete_google_api_source.metadata.to_h
|
3887
|
+
|
3888
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3889
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3890
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3891
|
+
gapic_version: ::Google::Cloud::Eventarc::V1::VERSION,
|
3892
|
+
transports_version_send: [:rest]
|
3893
|
+
|
3894
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3895
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3896
|
+
|
3897
|
+
options.apply_defaults timeout: @config.rpcs.delete_google_api_source.timeout,
|
3898
|
+
metadata: call_metadata,
|
3899
|
+
retry_policy: @config.rpcs.delete_google_api_source.retry_policy
|
3900
|
+
|
3901
|
+
options.apply_defaults timeout: @config.timeout,
|
3902
|
+
metadata: @config.metadata,
|
3903
|
+
retry_policy: @config.retry_policy
|
3904
|
+
|
3905
|
+
@eventarc_stub.delete_google_api_source request, options do |result, operation|
|
3906
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
3907
|
+
yield result, operation if block_given?
|
3908
|
+
throw :response, result
|
3909
|
+
end
|
3910
|
+
rescue ::Gapic::Rest::Error => e
|
3911
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3912
|
+
end
|
3913
|
+
|
3914
|
+
##
|
3915
|
+
# Configuration class for the Eventarc REST API.
|
3916
|
+
#
|
3917
|
+
# This class represents the configuration for Eventarc REST,
|
3918
|
+
# providing control over timeouts, retry behavior, logging, transport
|
3919
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
3920
|
+
# applied individually to specific RPCs. See
|
3921
|
+
# {::Google::Cloud::Eventarc::V1::Eventarc::Rest::Client::Configuration::Rpcs}
|
3922
|
+
# for a list of RPCs that can be configured independently.
|
3923
|
+
#
|
3924
|
+
# Configuration can be applied globally to all clients, or to a single client
|
3925
|
+
# on construction.
|
3926
|
+
#
|
3927
|
+
# @example
|
3928
|
+
#
|
3929
|
+
# # Modify the global config, setting the timeout for
|
3930
|
+
# # get_trigger to 20 seconds,
|
3931
|
+
# # and all remaining timeouts to 10 seconds.
|
3932
|
+
# ::Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.configure do |config|
|
3933
|
+
# config.timeout = 10.0
|
3934
|
+
# config.rpcs.get_trigger.timeout = 20.0
|
3935
|
+
# end
|
3936
|
+
#
|
3937
|
+
# # Apply the above configuration only to a new client.
|
3938
|
+
# client = ::Google::Cloud::Eventarc::V1::Eventarc::Rest::Client.new do |config|
|
3939
|
+
# config.timeout = 10.0
|
3940
|
+
# config.rpcs.get_trigger.timeout = 20.0
|
3941
|
+
# end
|
3942
|
+
#
|
3943
|
+
# @!attribute [rw] endpoint
|
3944
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
3945
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
3946
|
+
# @return [::String,nil]
|
3947
|
+
# @!attribute [rw] credentials
|
3948
|
+
# Credentials to send with calls. You may provide any of the following types:
|
3949
|
+
# * (`String`) The path to a service account key file in JSON format
|
3950
|
+
# * (`Hash`) A service account key as a Hash
|
3951
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
3952
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
3953
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
3954
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
3955
|
+
# * (`nil`) indicating no credentials
|
3956
|
+
# @return [::Object]
|
3957
|
+
# @!attribute [rw] scope
|
3958
|
+
# The OAuth scopes
|
3959
|
+
# @return [::Array<::String>]
|
3960
|
+
# @!attribute [rw] lib_name
|
3961
|
+
# The library name as recorded in instrumentation and logging
|
3962
|
+
# @return [::String]
|
3963
|
+
# @!attribute [rw] lib_version
|
3964
|
+
# The library version as recorded in instrumentation and logging
|
3965
|
+
# @return [::String]
|
3966
|
+
# @!attribute [rw] timeout
|
3967
|
+
# The call timeout in seconds.
|
3968
|
+
# @return [::Numeric]
|
3969
|
+
# @!attribute [rw] metadata
|
3970
|
+
# Additional headers to be sent with the call.
|
3971
|
+
# @return [::Hash{::Symbol=>::String}]
|
3972
|
+
# @!attribute [rw] retry_policy
|
3973
|
+
# The retry policy. The value is a hash with the following keys:
|
3974
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
3975
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
3976
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
3977
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
3978
|
+
# trigger a retry.
|
3979
|
+
# @return [::Hash]
|
3980
|
+
# @!attribute [rw] quota_project
|
3981
|
+
# A separate project against which to charge quota.
|
3982
|
+
# @return [::String]
|
3983
|
+
# @!attribute [rw] universe_domain
|
3984
|
+
# The universe domain within which to make requests. This determines the
|
3985
|
+
# default endpoint URL. The default value of nil uses the environment
|
3986
|
+
# universe (usually the default "googleapis.com" universe).
|
3987
|
+
# @return [::String,nil]
|
3988
|
+
# @!attribute [rw] logger
|
3989
|
+
# A custom logger to use for request/response debug logging, or the value
|
3990
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
3991
|
+
# explicitly disable logging.
|
3992
|
+
# @return [::Logger,:default,nil]
|
3993
|
+
#
|
3994
|
+
class Configuration
|
3995
|
+
extend ::Gapic::Config
|
3996
|
+
|
3997
|
+
# @private
|
3998
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
3999
|
+
DEFAULT_ENDPOINT = "eventarc.googleapis.com"
|
4000
|
+
|
4001
|
+
config_attr :endpoint, nil, ::String, nil
|
4002
|
+
config_attr :credentials, nil do |value|
|
4003
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
4004
|
+
allowed.any? { |klass| klass === value }
|
4005
|
+
end
|
4006
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
4007
|
+
config_attr :lib_name, nil, ::String, nil
|
4008
|
+
config_attr :lib_version, nil, ::String, nil
|
4009
|
+
config_attr :timeout, nil, ::Numeric, nil
|
4010
|
+
config_attr :metadata, nil, ::Hash, nil
|
4011
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
4012
|
+
config_attr :quota_project, nil, ::String, nil
|
4013
|
+
config_attr :universe_domain, nil, ::String, nil
|
4014
|
+
|
4015
|
+
# @private
|
4016
|
+
# Overrides for http bindings for the RPCs of this service
|
4017
|
+
# are only used when this service is used as mixin, and only
|
4018
|
+
# by the host service.
|
4019
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
4020
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
4021
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
4022
|
+
|
4023
|
+
# @private
|
4024
|
+
def initialize parent_config = nil
|
4025
|
+
@parent_config = parent_config unless parent_config.nil?
|
4026
|
+
|
4027
|
+
yield self if block_given?
|
4028
|
+
end
|
4029
|
+
|
4030
|
+
##
|
4031
|
+
# Configurations for individual RPCs
|
4032
|
+
# @return [Rpcs]
|
4033
|
+
#
|
4034
|
+
def rpcs
|
4035
|
+
@rpcs ||= begin
|
4036
|
+
parent_rpcs = nil
|
4037
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
4038
|
+
Rpcs.new parent_rpcs
|
4039
|
+
end
|
4040
|
+
end
|
4041
|
+
|
4042
|
+
##
|
4043
|
+
# Configuration RPC class for the Eventarc API.
|
4044
|
+
#
|
4045
|
+
# Includes fields providing the configuration for each RPC in this service.
|
4046
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
4047
|
+
# the following configuration fields:
|
4048
|
+
#
|
4049
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
4050
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
4051
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
4052
|
+
# include the following keys:
|
4053
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
4054
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
4055
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
4056
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
4057
|
+
# trigger a retry.
|
4058
|
+
#
|
4059
|
+
class Rpcs
|
4060
|
+
##
|
4061
|
+
# RPC-specific configuration for `get_trigger`
|
4062
|
+
# @return [::Gapic::Config::Method]
|
4063
|
+
#
|
4064
|
+
attr_reader :get_trigger
|
4065
|
+
##
|
4066
|
+
# RPC-specific configuration for `list_triggers`
|
4067
|
+
# @return [::Gapic::Config::Method]
|
4068
|
+
#
|
4069
|
+
attr_reader :list_triggers
|
4070
|
+
##
|
4071
|
+
# RPC-specific configuration for `create_trigger`
|
4072
|
+
# @return [::Gapic::Config::Method]
|
4073
|
+
#
|
4074
|
+
attr_reader :create_trigger
|
4075
|
+
##
|
4076
|
+
# RPC-specific configuration for `update_trigger`
|
4077
|
+
# @return [::Gapic::Config::Method]
|
4078
|
+
#
|
4079
|
+
attr_reader :update_trigger
|
4080
|
+
##
|
4081
|
+
# RPC-specific configuration for `delete_trigger`
|
4082
|
+
# @return [::Gapic::Config::Method]
|
4083
|
+
#
|
4084
|
+
attr_reader :delete_trigger
|
4085
|
+
##
|
4086
|
+
# RPC-specific configuration for `get_channel`
|
4087
|
+
# @return [::Gapic::Config::Method]
|
4088
|
+
#
|
4089
|
+
attr_reader :get_channel
|
4090
|
+
##
|
4091
|
+
# RPC-specific configuration for `list_channels`
|
4092
|
+
# @return [::Gapic::Config::Method]
|
4093
|
+
#
|
4094
|
+
attr_reader :list_channels
|
4095
|
+
##
|
4096
|
+
# RPC-specific configuration for `create_channel`
|
4097
|
+
# @return [::Gapic::Config::Method]
|
4098
|
+
#
|
4099
|
+
attr_reader :create_channel
|
4100
|
+
##
|
4101
|
+
# RPC-specific configuration for `update_channel`
|
4102
|
+
# @return [::Gapic::Config::Method]
|
4103
|
+
#
|
2002
4104
|
attr_reader :update_channel
|
2003
4105
|
##
|
2004
4106
|
# RPC-specific configuration for `delete_channel`
|
@@ -2045,6 +4147,111 @@ module Google
|
|
2045
4147
|
# @return [::Gapic::Config::Method]
|
2046
4148
|
#
|
2047
4149
|
attr_reader :update_google_channel_config
|
4150
|
+
##
|
4151
|
+
# RPC-specific configuration for `get_message_bus`
|
4152
|
+
# @return [::Gapic::Config::Method]
|
4153
|
+
#
|
4154
|
+
attr_reader :get_message_bus
|
4155
|
+
##
|
4156
|
+
# RPC-specific configuration for `list_message_buses`
|
4157
|
+
# @return [::Gapic::Config::Method]
|
4158
|
+
#
|
4159
|
+
attr_reader :list_message_buses
|
4160
|
+
##
|
4161
|
+
# RPC-specific configuration for `list_message_bus_enrollments`
|
4162
|
+
# @return [::Gapic::Config::Method]
|
4163
|
+
#
|
4164
|
+
attr_reader :list_message_bus_enrollments
|
4165
|
+
##
|
4166
|
+
# RPC-specific configuration for `create_message_bus`
|
4167
|
+
# @return [::Gapic::Config::Method]
|
4168
|
+
#
|
4169
|
+
attr_reader :create_message_bus
|
4170
|
+
##
|
4171
|
+
# RPC-specific configuration for `update_message_bus`
|
4172
|
+
# @return [::Gapic::Config::Method]
|
4173
|
+
#
|
4174
|
+
attr_reader :update_message_bus
|
4175
|
+
##
|
4176
|
+
# RPC-specific configuration for `delete_message_bus`
|
4177
|
+
# @return [::Gapic::Config::Method]
|
4178
|
+
#
|
4179
|
+
attr_reader :delete_message_bus
|
4180
|
+
##
|
4181
|
+
# RPC-specific configuration for `get_enrollment`
|
4182
|
+
# @return [::Gapic::Config::Method]
|
4183
|
+
#
|
4184
|
+
attr_reader :get_enrollment
|
4185
|
+
##
|
4186
|
+
# RPC-specific configuration for `list_enrollments`
|
4187
|
+
# @return [::Gapic::Config::Method]
|
4188
|
+
#
|
4189
|
+
attr_reader :list_enrollments
|
4190
|
+
##
|
4191
|
+
# RPC-specific configuration for `create_enrollment`
|
4192
|
+
# @return [::Gapic::Config::Method]
|
4193
|
+
#
|
4194
|
+
attr_reader :create_enrollment
|
4195
|
+
##
|
4196
|
+
# RPC-specific configuration for `update_enrollment`
|
4197
|
+
# @return [::Gapic::Config::Method]
|
4198
|
+
#
|
4199
|
+
attr_reader :update_enrollment
|
4200
|
+
##
|
4201
|
+
# RPC-specific configuration for `delete_enrollment`
|
4202
|
+
# @return [::Gapic::Config::Method]
|
4203
|
+
#
|
4204
|
+
attr_reader :delete_enrollment
|
4205
|
+
##
|
4206
|
+
# RPC-specific configuration for `get_pipeline`
|
4207
|
+
# @return [::Gapic::Config::Method]
|
4208
|
+
#
|
4209
|
+
attr_reader :get_pipeline
|
4210
|
+
##
|
4211
|
+
# RPC-specific configuration for `list_pipelines`
|
4212
|
+
# @return [::Gapic::Config::Method]
|
4213
|
+
#
|
4214
|
+
attr_reader :list_pipelines
|
4215
|
+
##
|
4216
|
+
# RPC-specific configuration for `create_pipeline`
|
4217
|
+
# @return [::Gapic::Config::Method]
|
4218
|
+
#
|
4219
|
+
attr_reader :create_pipeline
|
4220
|
+
##
|
4221
|
+
# RPC-specific configuration for `update_pipeline`
|
4222
|
+
# @return [::Gapic::Config::Method]
|
4223
|
+
#
|
4224
|
+
attr_reader :update_pipeline
|
4225
|
+
##
|
4226
|
+
# RPC-specific configuration for `delete_pipeline`
|
4227
|
+
# @return [::Gapic::Config::Method]
|
4228
|
+
#
|
4229
|
+
attr_reader :delete_pipeline
|
4230
|
+
##
|
4231
|
+
# RPC-specific configuration for `get_google_api_source`
|
4232
|
+
# @return [::Gapic::Config::Method]
|
4233
|
+
#
|
4234
|
+
attr_reader :get_google_api_source
|
4235
|
+
##
|
4236
|
+
# RPC-specific configuration for `list_google_api_sources`
|
4237
|
+
# @return [::Gapic::Config::Method]
|
4238
|
+
#
|
4239
|
+
attr_reader :list_google_api_sources
|
4240
|
+
##
|
4241
|
+
# RPC-specific configuration for `create_google_api_source`
|
4242
|
+
# @return [::Gapic::Config::Method]
|
4243
|
+
#
|
4244
|
+
attr_reader :create_google_api_source
|
4245
|
+
##
|
4246
|
+
# RPC-specific configuration for `update_google_api_source`
|
4247
|
+
# @return [::Gapic::Config::Method]
|
4248
|
+
#
|
4249
|
+
attr_reader :update_google_api_source
|
4250
|
+
##
|
4251
|
+
# RPC-specific configuration for `delete_google_api_source`
|
4252
|
+
# @return [::Gapic::Config::Method]
|
4253
|
+
#
|
4254
|
+
attr_reader :delete_google_api_source
|
2048
4255
|
|
2049
4256
|
# @private
|
2050
4257
|
def initialize parent_rpcs = nil
|
@@ -2084,6 +4291,48 @@ module Google
|
|
2084
4291
|
@get_google_channel_config = ::Gapic::Config::Method.new get_google_channel_config_config
|
2085
4292
|
update_google_channel_config_config = parent_rpcs.update_google_channel_config if parent_rpcs.respond_to? :update_google_channel_config
|
2086
4293
|
@update_google_channel_config = ::Gapic::Config::Method.new update_google_channel_config_config
|
4294
|
+
get_message_bus_config = parent_rpcs.get_message_bus if parent_rpcs.respond_to? :get_message_bus
|
4295
|
+
@get_message_bus = ::Gapic::Config::Method.new get_message_bus_config
|
4296
|
+
list_message_buses_config = parent_rpcs.list_message_buses if parent_rpcs.respond_to? :list_message_buses
|
4297
|
+
@list_message_buses = ::Gapic::Config::Method.new list_message_buses_config
|
4298
|
+
list_message_bus_enrollments_config = parent_rpcs.list_message_bus_enrollments if parent_rpcs.respond_to? :list_message_bus_enrollments
|
4299
|
+
@list_message_bus_enrollments = ::Gapic::Config::Method.new list_message_bus_enrollments_config
|
4300
|
+
create_message_bus_config = parent_rpcs.create_message_bus if parent_rpcs.respond_to? :create_message_bus
|
4301
|
+
@create_message_bus = ::Gapic::Config::Method.new create_message_bus_config
|
4302
|
+
update_message_bus_config = parent_rpcs.update_message_bus if parent_rpcs.respond_to? :update_message_bus
|
4303
|
+
@update_message_bus = ::Gapic::Config::Method.new update_message_bus_config
|
4304
|
+
delete_message_bus_config = parent_rpcs.delete_message_bus if parent_rpcs.respond_to? :delete_message_bus
|
4305
|
+
@delete_message_bus = ::Gapic::Config::Method.new delete_message_bus_config
|
4306
|
+
get_enrollment_config = parent_rpcs.get_enrollment if parent_rpcs.respond_to? :get_enrollment
|
4307
|
+
@get_enrollment = ::Gapic::Config::Method.new get_enrollment_config
|
4308
|
+
list_enrollments_config = parent_rpcs.list_enrollments if parent_rpcs.respond_to? :list_enrollments
|
4309
|
+
@list_enrollments = ::Gapic::Config::Method.new list_enrollments_config
|
4310
|
+
create_enrollment_config = parent_rpcs.create_enrollment if parent_rpcs.respond_to? :create_enrollment
|
4311
|
+
@create_enrollment = ::Gapic::Config::Method.new create_enrollment_config
|
4312
|
+
update_enrollment_config = parent_rpcs.update_enrollment if parent_rpcs.respond_to? :update_enrollment
|
4313
|
+
@update_enrollment = ::Gapic::Config::Method.new update_enrollment_config
|
4314
|
+
delete_enrollment_config = parent_rpcs.delete_enrollment if parent_rpcs.respond_to? :delete_enrollment
|
4315
|
+
@delete_enrollment = ::Gapic::Config::Method.new delete_enrollment_config
|
4316
|
+
get_pipeline_config = parent_rpcs.get_pipeline if parent_rpcs.respond_to? :get_pipeline
|
4317
|
+
@get_pipeline = ::Gapic::Config::Method.new get_pipeline_config
|
4318
|
+
list_pipelines_config = parent_rpcs.list_pipelines if parent_rpcs.respond_to? :list_pipelines
|
4319
|
+
@list_pipelines = ::Gapic::Config::Method.new list_pipelines_config
|
4320
|
+
create_pipeline_config = parent_rpcs.create_pipeline if parent_rpcs.respond_to? :create_pipeline
|
4321
|
+
@create_pipeline = ::Gapic::Config::Method.new create_pipeline_config
|
4322
|
+
update_pipeline_config = parent_rpcs.update_pipeline if parent_rpcs.respond_to? :update_pipeline
|
4323
|
+
@update_pipeline = ::Gapic::Config::Method.new update_pipeline_config
|
4324
|
+
delete_pipeline_config = parent_rpcs.delete_pipeline if parent_rpcs.respond_to? :delete_pipeline
|
4325
|
+
@delete_pipeline = ::Gapic::Config::Method.new delete_pipeline_config
|
4326
|
+
get_google_api_source_config = parent_rpcs.get_google_api_source if parent_rpcs.respond_to? :get_google_api_source
|
4327
|
+
@get_google_api_source = ::Gapic::Config::Method.new get_google_api_source_config
|
4328
|
+
list_google_api_sources_config = parent_rpcs.list_google_api_sources if parent_rpcs.respond_to? :list_google_api_sources
|
4329
|
+
@list_google_api_sources = ::Gapic::Config::Method.new list_google_api_sources_config
|
4330
|
+
create_google_api_source_config = parent_rpcs.create_google_api_source if parent_rpcs.respond_to? :create_google_api_source
|
4331
|
+
@create_google_api_source = ::Gapic::Config::Method.new create_google_api_source_config
|
4332
|
+
update_google_api_source_config = parent_rpcs.update_google_api_source if parent_rpcs.respond_to? :update_google_api_source
|
4333
|
+
@update_google_api_source = ::Gapic::Config::Method.new update_google_api_source_config
|
4334
|
+
delete_google_api_source_config = parent_rpcs.delete_google_api_source if parent_rpcs.respond_to? :delete_google_api_source
|
4335
|
+
@delete_google_api_source = ::Gapic::Config::Method.new delete_google_api_source_config
|
2087
4336
|
|
2088
4337
|
yield self if block_given?
|
2089
4338
|
end
|