google-cloud-eventarc-v1 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/eventarc/v1/eventarc/client.rb +57 -40
- data/lib/google/cloud/eventarc/v1/eventarc/operations.rb +12 -15
- data/lib/google/cloud/eventarc/v1/eventarc/rest/client.rb +49 -40
- data/lib/google/cloud/eventarc/v1/eventarc/rest/operations.rb +43 -38
- data/lib/google/cloud/eventarc/v1/eventarc/rest/service_stub.rb +326 -236
- data/lib/google/cloud/eventarc/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +19 -0
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86d93924ce883c8db4d6590366f3f5e431468cf21ad7dc9294adbc35064de493
|
4
|
+
data.tar.gz: c06c5631fd616f21f603b91fd6ebb628f22caee0da2e0b45ceff3b0953066023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f94a2eaff5761d4a283bcf3ab6928092f0f979fc03fe2a8d37fe7b45f317883cdd9ba03be3bc1d1ef5010325d62cef4e719ada5e5670c7a039008ae68a2ff14f
|
7
|
+
data.tar.gz: f26f117f0a3fc611ffedb7cfbaf85e8f522582a1d79adcfe9904babacf7d7cadef0c66bee4906603cde655a54c1de9782459442876d23c8b0cf2cebd1a9d8bd7
|
data/README.md
CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/eventarc/)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/cloud/eventarc/v1"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
@@ -299,14 +299,26 @@ module Google
|
|
299
299
|
universe_domain: @config.universe_domain,
|
300
300
|
channel_args: @config.channel_args,
|
301
301
|
interceptors: @config.interceptors,
|
302
|
-
channel_pool_config: @config.channel_pool
|
302
|
+
channel_pool_config: @config.channel_pool,
|
303
|
+
logger: @config.logger
|
303
304
|
)
|
304
305
|
|
306
|
+
@eventarc_stub.stub_logger&.info do |entry|
|
307
|
+
entry.set_system_name
|
308
|
+
entry.set_service
|
309
|
+
entry.message = "Created client for #{entry.service}"
|
310
|
+
entry.set_credentials_fields credentials
|
311
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
312
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
313
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
314
|
+
end
|
315
|
+
|
305
316
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
306
317
|
config.credentials = credentials
|
307
318
|
config.quota_project = @quota_project_id
|
308
319
|
config.endpoint = @eventarc_stub.endpoint
|
309
320
|
config.universe_domain = @eventarc_stub.universe_domain
|
321
|
+
config.logger = @eventarc_stub.logger if config.respond_to? :logger=
|
310
322
|
end
|
311
323
|
|
312
324
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
@@ -314,6 +326,7 @@ module Google
|
|
314
326
|
config.quota_project = @quota_project_id
|
315
327
|
config.endpoint = @eventarc_stub.endpoint
|
316
328
|
config.universe_domain = @eventarc_stub.universe_domain
|
329
|
+
config.logger = @eventarc_stub.logger if config.respond_to? :logger=
|
317
330
|
end
|
318
331
|
end
|
319
332
|
|
@@ -338,6 +351,15 @@ module Google
|
|
338
351
|
#
|
339
352
|
attr_reader :iam_policy_client
|
340
353
|
|
354
|
+
##
|
355
|
+
# The logger used for request/response debug logging.
|
356
|
+
#
|
357
|
+
# @return [Logger]
|
358
|
+
#
|
359
|
+
def logger
|
360
|
+
@eventarc_stub.logger
|
361
|
+
end
|
362
|
+
|
341
363
|
# Service calls
|
342
364
|
|
343
365
|
##
|
@@ -420,7 +442,6 @@ module Google
|
|
420
442
|
|
421
443
|
@eventarc_stub.call_rpc :get_trigger, request, options: options do |response, operation|
|
422
444
|
yield response, operation if block_given?
|
423
|
-
return response
|
424
445
|
end
|
425
446
|
rescue ::GRPC::BadStatus => e
|
426
447
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -530,7 +551,7 @@ module Google
|
|
530
551
|
@eventarc_stub.call_rpc :list_triggers, request, options: options do |response, operation|
|
531
552
|
response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_triggers, request, response, operation, options
|
532
553
|
yield response, operation if block_given?
|
533
|
-
|
554
|
+
throw :response, response
|
534
555
|
end
|
535
556
|
rescue ::GRPC::BadStatus => e
|
536
557
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -631,7 +652,7 @@ module Google
|
|
631
652
|
@eventarc_stub.call_rpc :create_trigger, request, options: options do |response, operation|
|
632
653
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
633
654
|
yield response, operation if block_given?
|
634
|
-
|
655
|
+
throw :response, response
|
635
656
|
end
|
636
657
|
rescue ::GRPC::BadStatus => e
|
637
658
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -735,7 +756,7 @@ module Google
|
|
735
756
|
@eventarc_stub.call_rpc :update_trigger, request, options: options do |response, operation|
|
736
757
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
737
758
|
yield response, operation if block_given?
|
738
|
-
|
759
|
+
throw :response, response
|
739
760
|
end
|
740
761
|
rescue ::GRPC::BadStatus => e
|
741
762
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -838,7 +859,7 @@ module Google
|
|
838
859
|
@eventarc_stub.call_rpc :delete_trigger, request, options: options do |response, operation|
|
839
860
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
840
861
|
yield response, operation if block_given?
|
841
|
-
|
862
|
+
throw :response, response
|
842
863
|
end
|
843
864
|
rescue ::GRPC::BadStatus => e
|
844
865
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -924,7 +945,6 @@ module Google
|
|
924
945
|
|
925
946
|
@eventarc_stub.call_rpc :get_channel, request, options: options do |response, operation|
|
926
947
|
yield response, operation if block_given?
|
927
|
-
return response
|
928
948
|
end
|
929
949
|
rescue ::GRPC::BadStatus => e
|
930
950
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1030,7 +1050,7 @@ module Google
|
|
1030
1050
|
@eventarc_stub.call_rpc :list_channels, request, options: options do |response, operation|
|
1031
1051
|
response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_channels, request, response, operation, options
|
1032
1052
|
yield response, operation if block_given?
|
1033
|
-
|
1053
|
+
throw :response, response
|
1034
1054
|
end
|
1035
1055
|
rescue ::GRPC::BadStatus => e
|
1036
1056
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1131,7 +1151,7 @@ module Google
|
|
1131
1151
|
@eventarc_stub.call_rpc :create_channel, request, options: options do |response, operation|
|
1132
1152
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1133
1153
|
yield response, operation if block_given?
|
1134
|
-
|
1154
|
+
throw :response, response
|
1135
1155
|
end
|
1136
1156
|
rescue ::GRPC::BadStatus => e
|
1137
1157
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1232,7 +1252,7 @@ module Google
|
|
1232
1252
|
@eventarc_stub.call_rpc :update_channel, request, options: options do |response, operation|
|
1233
1253
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1234
1254
|
yield response, operation if block_given?
|
1235
|
-
|
1255
|
+
throw :response, response
|
1236
1256
|
end
|
1237
1257
|
rescue ::GRPC::BadStatus => e
|
1238
1258
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1329,7 +1349,7 @@ module Google
|
|
1329
1349
|
@eventarc_stub.call_rpc :delete_channel, request, options: options do |response, operation|
|
1330
1350
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1331
1351
|
yield response, operation if block_given?
|
1332
|
-
|
1352
|
+
throw :response, response
|
1333
1353
|
end
|
1334
1354
|
rescue ::GRPC::BadStatus => e
|
1335
1355
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1415,7 +1435,6 @@ module Google
|
|
1415
1435
|
|
1416
1436
|
@eventarc_stub.call_rpc :get_provider, request, options: options do |response, operation|
|
1417
1437
|
yield response, operation if block_given?
|
1418
|
-
return response
|
1419
1438
|
end
|
1420
1439
|
rescue ::GRPC::BadStatus => e
|
1421
1440
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1521,7 +1540,7 @@ module Google
|
|
1521
1540
|
@eventarc_stub.call_rpc :list_providers, request, options: options do |response, operation|
|
1522
1541
|
response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_providers, request, response, operation, options
|
1523
1542
|
yield response, operation if block_given?
|
1524
|
-
|
1543
|
+
throw :response, response
|
1525
1544
|
end
|
1526
1545
|
rescue ::GRPC::BadStatus => e
|
1527
1546
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1607,7 +1626,6 @@ module Google
|
|
1607
1626
|
|
1608
1627
|
@eventarc_stub.call_rpc :get_channel_connection, request, options: options do |response, operation|
|
1609
1628
|
yield response, operation if block_given?
|
1610
|
-
return response
|
1611
1629
|
end
|
1612
1630
|
rescue ::GRPC::BadStatus => e
|
1613
1631
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1708,7 +1726,7 @@ module Google
|
|
1708
1726
|
@eventarc_stub.call_rpc :list_channel_connections, request, options: options do |response, operation|
|
1709
1727
|
response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_channel_connections, request, response, operation, options
|
1710
1728
|
yield response, operation if block_given?
|
1711
|
-
|
1729
|
+
throw :response, response
|
1712
1730
|
end
|
1713
1731
|
rescue ::GRPC::BadStatus => e
|
1714
1732
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1806,7 +1824,7 @@ module Google
|
|
1806
1824
|
@eventarc_stub.call_rpc :create_channel_connection, request, options: options do |response, operation|
|
1807
1825
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1808
1826
|
yield response, operation if block_given?
|
1809
|
-
|
1827
|
+
throw :response, response
|
1810
1828
|
end
|
1811
1829
|
rescue ::GRPC::BadStatus => e
|
1812
1830
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1900,7 +1918,7 @@ module Google
|
|
1900
1918
|
@eventarc_stub.call_rpc :delete_channel_connection, request, options: options do |response, operation|
|
1901
1919
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1902
1920
|
yield response, operation if block_given?
|
1903
|
-
|
1921
|
+
throw :response, response
|
1904
1922
|
end
|
1905
1923
|
rescue ::GRPC::BadStatus => e
|
1906
1924
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1986,7 +2004,6 @@ module Google
|
|
1986
2004
|
|
1987
2005
|
@eventarc_stub.call_rpc :get_google_channel_config, request, options: options do |response, operation|
|
1988
2006
|
yield response, operation if block_given?
|
1989
|
-
return response
|
1990
2007
|
end
|
1991
2008
|
rescue ::GRPC::BadStatus => e
|
1992
2009
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2076,7 +2093,6 @@ module Google
|
|
2076
2093
|
|
2077
2094
|
@eventarc_stub.call_rpc :update_google_channel_config, request, options: options do |response, operation|
|
2078
2095
|
yield response, operation if block_given?
|
2079
|
-
return response
|
2080
2096
|
end
|
2081
2097
|
rescue ::GRPC::BadStatus => e
|
2082
2098
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2162,7 +2178,6 @@ module Google
|
|
2162
2178
|
|
2163
2179
|
@eventarc_stub.call_rpc :get_message_bus, request, options: options do |response, operation|
|
2164
2180
|
yield response, operation if block_given?
|
2165
|
-
return response
|
2166
2181
|
end
|
2167
2182
|
rescue ::GRPC::BadStatus => e
|
2168
2183
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2271,7 +2286,7 @@ module Google
|
|
2271
2286
|
@eventarc_stub.call_rpc :list_message_buses, request, options: options do |response, operation|
|
2272
2287
|
response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_message_buses, request, response, operation, options
|
2273
2288
|
yield response, operation if block_given?
|
2274
|
-
|
2289
|
+
throw :response, response
|
2275
2290
|
end
|
2276
2291
|
rescue ::GRPC::BadStatus => e
|
2277
2292
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2367,7 +2382,6 @@ module Google
|
|
2367
2382
|
|
2368
2383
|
@eventarc_stub.call_rpc :list_message_bus_enrollments, request, options: options do |response, operation|
|
2369
2384
|
yield response, operation if block_given?
|
2370
|
-
return response
|
2371
2385
|
end
|
2372
2386
|
rescue ::GRPC::BadStatus => e
|
2373
2387
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2469,7 +2483,7 @@ module Google
|
|
2469
2483
|
@eventarc_stub.call_rpc :create_message_bus, request, options: options do |response, operation|
|
2470
2484
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2471
2485
|
yield response, operation if block_given?
|
2472
|
-
|
2486
|
+
throw :response, response
|
2473
2487
|
end
|
2474
2488
|
rescue ::GRPC::BadStatus => e
|
2475
2489
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2573,7 +2587,7 @@ module Google
|
|
2573
2587
|
@eventarc_stub.call_rpc :update_message_bus, request, options: options do |response, operation|
|
2574
2588
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2575
2589
|
yield response, operation if block_given?
|
2576
|
-
|
2590
|
+
throw :response, response
|
2577
2591
|
end
|
2578
2592
|
rescue ::GRPC::BadStatus => e
|
2579
2593
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2676,7 +2690,7 @@ module Google
|
|
2676
2690
|
@eventarc_stub.call_rpc :delete_message_bus, request, options: options do |response, operation|
|
2677
2691
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2678
2692
|
yield response, operation if block_given?
|
2679
|
-
|
2693
|
+
throw :response, response
|
2680
2694
|
end
|
2681
2695
|
rescue ::GRPC::BadStatus => e
|
2682
2696
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2762,7 +2776,6 @@ module Google
|
|
2762
2776
|
|
2763
2777
|
@eventarc_stub.call_rpc :get_enrollment, request, options: options do |response, operation|
|
2764
2778
|
yield response, operation if block_given?
|
2765
|
-
return response
|
2766
2779
|
end
|
2767
2780
|
rescue ::GRPC::BadStatus => e
|
2768
2781
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2871,7 +2884,7 @@ module Google
|
|
2871
2884
|
@eventarc_stub.call_rpc :list_enrollments, request, options: options do |response, operation|
|
2872
2885
|
response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_enrollments, request, response, operation, options
|
2873
2886
|
yield response, operation if block_given?
|
2874
|
-
|
2887
|
+
throw :response, response
|
2875
2888
|
end
|
2876
2889
|
rescue ::GRPC::BadStatus => e
|
2877
2890
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2973,7 +2986,7 @@ module Google
|
|
2973
2986
|
@eventarc_stub.call_rpc :create_enrollment, request, options: options do |response, operation|
|
2974
2987
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2975
2988
|
yield response, operation if block_given?
|
2976
|
-
|
2989
|
+
throw :response, response
|
2977
2990
|
end
|
2978
2991
|
rescue ::GRPC::BadStatus => e
|
2979
2992
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3077,7 +3090,7 @@ module Google
|
|
3077
3090
|
@eventarc_stub.call_rpc :update_enrollment, request, options: options do |response, operation|
|
3078
3091
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3079
3092
|
yield response, operation if block_given?
|
3080
|
-
|
3093
|
+
throw :response, response
|
3081
3094
|
end
|
3082
3095
|
rescue ::GRPC::BadStatus => e
|
3083
3096
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3180,7 +3193,7 @@ module Google
|
|
3180
3193
|
@eventarc_stub.call_rpc :delete_enrollment, request, options: options do |response, operation|
|
3181
3194
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3182
3195
|
yield response, operation if block_given?
|
3183
|
-
|
3196
|
+
throw :response, response
|
3184
3197
|
end
|
3185
3198
|
rescue ::GRPC::BadStatus => e
|
3186
3199
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3266,7 +3279,6 @@ module Google
|
|
3266
3279
|
|
3267
3280
|
@eventarc_stub.call_rpc :get_pipeline, request, options: options do |response, operation|
|
3268
3281
|
yield response, operation if block_given?
|
3269
|
-
return response
|
3270
3282
|
end
|
3271
3283
|
rescue ::GRPC::BadStatus => e
|
3272
3284
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3375,7 +3387,7 @@ module Google
|
|
3375
3387
|
@eventarc_stub.call_rpc :list_pipelines, request, options: options do |response, operation|
|
3376
3388
|
response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_pipelines, request, response, operation, options
|
3377
3389
|
yield response, operation if block_given?
|
3378
|
-
|
3390
|
+
throw :response, response
|
3379
3391
|
end
|
3380
3392
|
rescue ::GRPC::BadStatus => e
|
3381
3393
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3476,7 +3488,7 @@ module Google
|
|
3476
3488
|
@eventarc_stub.call_rpc :create_pipeline, request, options: options do |response, operation|
|
3477
3489
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3478
3490
|
yield response, operation if block_given?
|
3479
|
-
|
3491
|
+
throw :response, response
|
3480
3492
|
end
|
3481
3493
|
rescue ::GRPC::BadStatus => e
|
3482
3494
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3580,7 +3592,7 @@ module Google
|
|
3580
3592
|
@eventarc_stub.call_rpc :update_pipeline, request, options: options do |response, operation|
|
3581
3593
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3582
3594
|
yield response, operation if block_given?
|
3583
|
-
|
3595
|
+
throw :response, response
|
3584
3596
|
end
|
3585
3597
|
rescue ::GRPC::BadStatus => e
|
3586
3598
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3683,7 +3695,7 @@ module Google
|
|
3683
3695
|
@eventarc_stub.call_rpc :delete_pipeline, request, options: options do |response, operation|
|
3684
3696
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3685
3697
|
yield response, operation if block_given?
|
3686
|
-
|
3698
|
+
throw :response, response
|
3687
3699
|
end
|
3688
3700
|
rescue ::GRPC::BadStatus => e
|
3689
3701
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3769,7 +3781,6 @@ module Google
|
|
3769
3781
|
|
3770
3782
|
@eventarc_stub.call_rpc :get_google_api_source, request, options: options do |response, operation|
|
3771
3783
|
yield response, operation if block_given?
|
3772
|
-
return response
|
3773
3784
|
end
|
3774
3785
|
rescue ::GRPC::BadStatus => e
|
3775
3786
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3878,7 +3889,7 @@ module Google
|
|
3878
3889
|
@eventarc_stub.call_rpc :list_google_api_sources, request, options: options do |response, operation|
|
3879
3890
|
response = ::Gapic::PagedEnumerable.new @eventarc_stub, :list_google_api_sources, request, response, operation, options
|
3880
3891
|
yield response, operation if block_given?
|
3881
|
-
|
3892
|
+
throw :response, response
|
3882
3893
|
end
|
3883
3894
|
rescue ::GRPC::BadStatus => e
|
3884
3895
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3980,7 +3991,7 @@ module Google
|
|
3980
3991
|
@eventarc_stub.call_rpc :create_google_api_source, request, options: options do |response, operation|
|
3981
3992
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3982
3993
|
yield response, operation if block_given?
|
3983
|
-
|
3994
|
+
throw :response, response
|
3984
3995
|
end
|
3985
3996
|
rescue ::GRPC::BadStatus => e
|
3986
3997
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4085,7 +4096,7 @@ module Google
|
|
4085
4096
|
@eventarc_stub.call_rpc :update_google_api_source, request, options: options do |response, operation|
|
4086
4097
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4087
4098
|
yield response, operation if block_given?
|
4088
|
-
|
4099
|
+
throw :response, response
|
4089
4100
|
end
|
4090
4101
|
rescue ::GRPC::BadStatus => e
|
4091
4102
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4188,7 +4199,7 @@ module Google
|
|
4188
4199
|
@eventarc_stub.call_rpc :delete_google_api_source, request, options: options do |response, operation|
|
4189
4200
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4190
4201
|
yield response, operation if block_given?
|
4191
|
-
|
4202
|
+
throw :response, response
|
4192
4203
|
end
|
4193
4204
|
rescue ::GRPC::BadStatus => e
|
4194
4205
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4277,6 +4288,11 @@ module Google
|
|
4277
4288
|
# default endpoint URL. The default value of nil uses the environment
|
4278
4289
|
# universe (usually the default "googleapis.com" universe).
|
4279
4290
|
# @return [::String,nil]
|
4291
|
+
# @!attribute [rw] logger
|
4292
|
+
# A custom logger to use for request/response debug logging, or the value
|
4293
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
4294
|
+
# explicitly disable logging.
|
4295
|
+
# @return [::Logger,:default,nil]
|
4280
4296
|
#
|
4281
4297
|
class Configuration
|
4282
4298
|
extend ::Gapic::Config
|
@@ -4301,6 +4317,7 @@ module Google
|
|
4301
4317
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
4302
4318
|
config_attr :quota_project, nil, ::String, nil
|
4303
4319
|
config_attr :universe_domain, nil, ::String, nil
|
4320
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
4304
4321
|
|
4305
4322
|
# @private
|
4306
4323
|
def initialize parent_config = nil
|
@@ -124,14 +124,6 @@ module Google
|
|
124
124
|
# Lists operations that match the specified filter in the request. If the
|
125
125
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
126
126
|
#
|
127
|
-
# NOTE: the `name` binding allows API services to override the binding
|
128
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
129
|
-
# override the binding, API services can add a binding such as
|
130
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
131
|
-
# For backwards compatibility, the default name includes the operations
|
132
|
-
# collection id, however overriding users must ensure the name binding
|
133
|
-
# is the parent resource, without the operations collection id.
|
134
|
-
#
|
135
127
|
# @overload list_operations(request, options = nil)
|
136
128
|
# Pass arguments to `list_operations` via a request object, either of type
|
137
129
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -221,7 +213,7 @@ module Google
|
|
221
213
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
222
214
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
223
215
|
yield response, operation if block_given?
|
224
|
-
|
216
|
+
throw :response, response
|
225
217
|
end
|
226
218
|
rescue ::GRPC::BadStatus => e
|
227
219
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -317,7 +309,7 @@ module Google
|
|
317
309
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
318
310
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
319
311
|
yield response, operation if block_given?
|
320
|
-
|
312
|
+
throw :response, response
|
321
313
|
end
|
322
314
|
rescue ::GRPC::BadStatus => e
|
323
315
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -406,7 +398,6 @@ module Google
|
|
406
398
|
|
407
399
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
408
400
|
yield response, operation if block_given?
|
409
|
-
return response
|
410
401
|
end
|
411
402
|
rescue ::GRPC::BadStatus => e
|
412
403
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -421,8 +412,9 @@ module Google
|
|
421
412
|
# other methods to check whether the cancellation succeeded or whether the
|
422
413
|
# operation completed despite cancellation. On successful cancellation,
|
423
414
|
# the operation is not deleted; instead, it becomes an operation with
|
424
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
425
|
-
# corresponding to
|
415
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
416
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
417
|
+
# `Code.CANCELLED`.
|
426
418
|
#
|
427
419
|
# @overload cancel_operation(request, options = nil)
|
428
420
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -501,7 +493,6 @@ module Google
|
|
501
493
|
|
502
494
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
503
495
|
yield response, operation if block_given?
|
504
|
-
return response
|
505
496
|
end
|
506
497
|
rescue ::GRPC::BadStatus => e
|
507
498
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -599,7 +590,7 @@ module Google
|
|
599
590
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
600
591
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
601
592
|
yield response, operation if block_given?
|
602
|
-
|
593
|
+
throw :response, response
|
603
594
|
end
|
604
595
|
rescue ::GRPC::BadStatus => e
|
605
596
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -688,6 +679,11 @@ module Google
|
|
688
679
|
# default endpoint URL. The default value of nil uses the environment
|
689
680
|
# universe (usually the default "googleapis.com" universe).
|
690
681
|
# @return [::String,nil]
|
682
|
+
# @!attribute [rw] logger
|
683
|
+
# A custom logger to use for request/response debug logging, or the value
|
684
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
685
|
+
# explicitly disable logging.
|
686
|
+
# @return [::Logger,:default,nil]
|
691
687
|
#
|
692
688
|
class Configuration
|
693
689
|
extend ::Gapic::Config
|
@@ -712,6 +708,7 @@ module Google
|
|
712
708
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
713
709
|
config_attr :quota_project, nil, ::String, nil
|
714
710
|
config_attr :universe_domain, nil, ::String, nil
|
711
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
715
712
|
|
716
713
|
# @private
|
717
714
|
def initialize parent_config = nil
|