google-cloud-eventarc-v1 1.1.0 → 1.3.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.
@@ -292,15 +292,27 @@ module Google
292
292
  endpoint: @config.endpoint,
293
293
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
294
294
  universe_domain: @config.universe_domain,
295
- credentials: credentials
295
+ credentials: credentials,
296
+ logger: @config.logger
296
297
  )
297
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
+
298
309
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
299
310
  config.credentials = credentials
300
311
  config.quota_project = @quota_project_id
301
312
  config.endpoint = @eventarc_stub.endpoint
302
313
  config.universe_domain = @eventarc_stub.universe_domain
303
314
  config.bindings_override = @config.bindings_override
315
+ config.logger = @eventarc_stub.logger if config.respond_to? :logger=
304
316
  end
305
317
 
306
318
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
@@ -309,6 +321,7 @@ module Google
309
321
  config.endpoint = @eventarc_stub.endpoint
310
322
  config.universe_domain = @eventarc_stub.universe_domain
311
323
  config.bindings_override = @config.bindings_override
324
+ config.logger = @eventarc_stub.logger if config.respond_to? :logger=
312
325
  end
313
326
  end
314
327
 
@@ -333,6 +346,15 @@ module Google
333
346
  #
334
347
  attr_reader :iam_policy_client
335
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
+
336
358
  # Service calls
337
359
 
338
360
  ##
@@ -408,7 +430,6 @@ module Google
408
430
 
409
431
  @eventarc_stub.get_trigger request, options do |result, operation|
410
432
  yield result, operation if block_given?
411
- return result
412
433
  end
413
434
  rescue ::Gapic::Rest::Error => e
414
435
  raise ::Google::Cloud::Error.from_error(e)
@@ -510,7 +531,6 @@ module Google
510
531
 
511
532
  @eventarc_stub.list_triggers request, options do |result, operation|
512
533
  yield result, operation if block_given?
513
- return result
514
534
  end
515
535
  rescue ::Gapic::Rest::Error => e
516
536
  raise ::Google::Cloud::Error.from_error(e)
@@ -604,7 +624,7 @@ module Google
604
624
  @eventarc_stub.create_trigger request, options do |result, operation|
605
625
  result = ::Gapic::Operation.new result, @operations_client, options: options
606
626
  yield result, operation if block_given?
607
- return result
627
+ throw :response, result
608
628
  end
609
629
  rescue ::Gapic::Rest::Error => e
610
630
  raise ::Google::Cloud::Error.from_error(e)
@@ -701,7 +721,7 @@ module Google
701
721
  @eventarc_stub.update_trigger request, options do |result, operation|
702
722
  result = ::Gapic::Operation.new result, @operations_client, options: options
703
723
  yield result, operation if block_given?
704
- return result
724
+ throw :response, result
705
725
  end
706
726
  rescue ::Gapic::Rest::Error => e
707
727
  raise ::Google::Cloud::Error.from_error(e)
@@ -797,7 +817,7 @@ module Google
797
817
  @eventarc_stub.delete_trigger request, options do |result, operation|
798
818
  result = ::Gapic::Operation.new result, @operations_client, options: options
799
819
  yield result, operation if block_given?
800
- return result
820
+ throw :response, result
801
821
  end
802
822
  rescue ::Gapic::Rest::Error => e
803
823
  raise ::Google::Cloud::Error.from_error(e)
@@ -876,7 +896,6 @@ module Google
876
896
 
877
897
  @eventarc_stub.get_channel request, options do |result, operation|
878
898
  yield result, operation if block_given?
879
- return result
880
899
  end
881
900
  rescue ::Gapic::Rest::Error => e
882
901
  raise ::Google::Cloud::Error.from_error(e)
@@ -974,7 +993,6 @@ module Google
974
993
 
975
994
  @eventarc_stub.list_channels request, options do |result, operation|
976
995
  yield result, operation if block_given?
977
- return result
978
996
  end
979
997
  rescue ::Gapic::Rest::Error => e
980
998
  raise ::Google::Cloud::Error.from_error(e)
@@ -1068,7 +1086,7 @@ module Google
1068
1086
  @eventarc_stub.create_channel request, options do |result, operation|
1069
1087
  result = ::Gapic::Operation.new result, @operations_client, options: options
1070
1088
  yield result, operation if block_given?
1071
- return result
1089
+ throw :response, result
1072
1090
  end
1073
1091
  rescue ::Gapic::Rest::Error => e
1074
1092
  raise ::Google::Cloud::Error.from_error(e)
@@ -1162,7 +1180,7 @@ module Google
1162
1180
  @eventarc_stub.update_channel request, options do |result, operation|
1163
1181
  result = ::Gapic::Operation.new result, @operations_client, options: options
1164
1182
  yield result, operation if block_given?
1165
- return result
1183
+ throw :response, result
1166
1184
  end
1167
1185
  rescue ::Gapic::Rest::Error => e
1168
1186
  raise ::Google::Cloud::Error.from_error(e)
@@ -1252,7 +1270,7 @@ module Google
1252
1270
  @eventarc_stub.delete_channel request, options do |result, operation|
1253
1271
  result = ::Gapic::Operation.new result, @operations_client, options: options
1254
1272
  yield result, operation if block_given?
1255
- return result
1273
+ throw :response, result
1256
1274
  end
1257
1275
  rescue ::Gapic::Rest::Error => e
1258
1276
  raise ::Google::Cloud::Error.from_error(e)
@@ -1331,7 +1349,6 @@ module Google
1331
1349
 
1332
1350
  @eventarc_stub.get_provider request, options do |result, operation|
1333
1351
  yield result, operation if block_given?
1334
- return result
1335
1352
  end
1336
1353
  rescue ::Gapic::Rest::Error => e
1337
1354
  raise ::Google::Cloud::Error.from_error(e)
@@ -1429,7 +1446,6 @@ module Google
1429
1446
 
1430
1447
  @eventarc_stub.list_providers request, options do |result, operation|
1431
1448
  yield result, operation if block_given?
1432
- return result
1433
1449
  end
1434
1450
  rescue ::Gapic::Rest::Error => e
1435
1451
  raise ::Google::Cloud::Error.from_error(e)
@@ -1508,7 +1524,6 @@ module Google
1508
1524
 
1509
1525
  @eventarc_stub.get_channel_connection request, options do |result, operation|
1510
1526
  yield result, operation if block_given?
1511
- return result
1512
1527
  end
1513
1528
  rescue ::Gapic::Rest::Error => e
1514
1529
  raise ::Google::Cloud::Error.from_error(e)
@@ -1601,7 +1616,6 @@ module Google
1601
1616
 
1602
1617
  @eventarc_stub.list_channel_connections request, options do |result, operation|
1603
1618
  yield result, operation if block_given?
1604
- return result
1605
1619
  end
1606
1620
  rescue ::Gapic::Rest::Error => e
1607
1621
  raise ::Google::Cloud::Error.from_error(e)
@@ -1692,7 +1706,7 @@ module Google
1692
1706
  @eventarc_stub.create_channel_connection request, options do |result, operation|
1693
1707
  result = ::Gapic::Operation.new result, @operations_client, options: options
1694
1708
  yield result, operation if block_given?
1695
- return result
1709
+ throw :response, result
1696
1710
  end
1697
1711
  rescue ::Gapic::Rest::Error => e
1698
1712
  raise ::Google::Cloud::Error.from_error(e)
@@ -1779,7 +1793,7 @@ module Google
1779
1793
  @eventarc_stub.delete_channel_connection request, options do |result, operation|
1780
1794
  result = ::Gapic::Operation.new result, @operations_client, options: options
1781
1795
  yield result, operation if block_given?
1782
- return result
1796
+ throw :response, result
1783
1797
  end
1784
1798
  rescue ::Gapic::Rest::Error => e
1785
1799
  raise ::Google::Cloud::Error.from_error(e)
@@ -1858,7 +1872,6 @@ module Google
1858
1872
 
1859
1873
  @eventarc_stub.get_google_channel_config request, options do |result, operation|
1860
1874
  yield result, operation if block_given?
1861
- return result
1862
1875
  end
1863
1876
  rescue ::Gapic::Rest::Error => e
1864
1877
  raise ::Google::Cloud::Error.from_error(e)
@@ -1941,7 +1954,6 @@ module Google
1941
1954
 
1942
1955
  @eventarc_stub.update_google_channel_config request, options do |result, operation|
1943
1956
  yield result, operation if block_given?
1944
- return result
1945
1957
  end
1946
1958
  rescue ::Gapic::Rest::Error => e
1947
1959
  raise ::Google::Cloud::Error.from_error(e)
@@ -2020,7 +2032,6 @@ module Google
2020
2032
 
2021
2033
  @eventarc_stub.get_message_bus request, options do |result, operation|
2022
2034
  yield result, operation if block_given?
2023
- return result
2024
2035
  end
2025
2036
  rescue ::Gapic::Rest::Error => e
2026
2037
  raise ::Google::Cloud::Error.from_error(e)
@@ -2121,7 +2132,6 @@ module Google
2121
2132
 
2122
2133
  @eventarc_stub.list_message_buses request, options do |result, operation|
2123
2134
  yield result, operation if block_given?
2124
- return result
2125
2135
  end
2126
2136
  rescue ::Gapic::Rest::Error => e
2127
2137
  raise ::Google::Cloud::Error.from_error(e)
@@ -2210,7 +2220,6 @@ module Google
2210
2220
 
2211
2221
  @eventarc_stub.list_message_bus_enrollments request, options do |result, operation|
2212
2222
  yield result, operation if block_given?
2213
- return result
2214
2223
  end
2215
2224
  rescue ::Gapic::Rest::Error => e
2216
2225
  raise ::Google::Cloud::Error.from_error(e)
@@ -2305,7 +2314,7 @@ module Google
2305
2314
  @eventarc_stub.create_message_bus request, options do |result, operation|
2306
2315
  result = ::Gapic::Operation.new result, @operations_client, options: options
2307
2316
  yield result, operation if block_given?
2308
- return result
2317
+ throw :response, result
2309
2318
  end
2310
2319
  rescue ::Gapic::Rest::Error => e
2311
2320
  raise ::Google::Cloud::Error.from_error(e)
@@ -2402,7 +2411,7 @@ module Google
2402
2411
  @eventarc_stub.update_message_bus request, options do |result, operation|
2403
2412
  result = ::Gapic::Operation.new result, @operations_client, options: options
2404
2413
  yield result, operation if block_given?
2405
- return result
2414
+ throw :response, result
2406
2415
  end
2407
2416
  rescue ::Gapic::Rest::Error => e
2408
2417
  raise ::Google::Cloud::Error.from_error(e)
@@ -2498,7 +2507,7 @@ module Google
2498
2507
  @eventarc_stub.delete_message_bus request, options do |result, operation|
2499
2508
  result = ::Gapic::Operation.new result, @operations_client, options: options
2500
2509
  yield result, operation if block_given?
2501
- return result
2510
+ throw :response, result
2502
2511
  end
2503
2512
  rescue ::Gapic::Rest::Error => e
2504
2513
  raise ::Google::Cloud::Error.from_error(e)
@@ -2577,7 +2586,6 @@ module Google
2577
2586
 
2578
2587
  @eventarc_stub.get_enrollment request, options do |result, operation|
2579
2588
  yield result, operation if block_given?
2580
- return result
2581
2589
  end
2582
2590
  rescue ::Gapic::Rest::Error => e
2583
2591
  raise ::Google::Cloud::Error.from_error(e)
@@ -2678,7 +2686,6 @@ module Google
2678
2686
 
2679
2687
  @eventarc_stub.list_enrollments request, options do |result, operation|
2680
2688
  yield result, operation if block_given?
2681
- return result
2682
2689
  end
2683
2690
  rescue ::Gapic::Rest::Error => e
2684
2691
  raise ::Google::Cloud::Error.from_error(e)
@@ -2773,7 +2780,7 @@ module Google
2773
2780
  @eventarc_stub.create_enrollment request, options do |result, operation|
2774
2781
  result = ::Gapic::Operation.new result, @operations_client, options: options
2775
2782
  yield result, operation if block_given?
2776
- return result
2783
+ throw :response, result
2777
2784
  end
2778
2785
  rescue ::Gapic::Rest::Error => e
2779
2786
  raise ::Google::Cloud::Error.from_error(e)
@@ -2870,7 +2877,7 @@ module Google
2870
2877
  @eventarc_stub.update_enrollment request, options do |result, operation|
2871
2878
  result = ::Gapic::Operation.new result, @operations_client, options: options
2872
2879
  yield result, operation if block_given?
2873
- return result
2880
+ throw :response, result
2874
2881
  end
2875
2882
  rescue ::Gapic::Rest::Error => e
2876
2883
  raise ::Google::Cloud::Error.from_error(e)
@@ -2966,7 +2973,7 @@ module Google
2966
2973
  @eventarc_stub.delete_enrollment request, options do |result, operation|
2967
2974
  result = ::Gapic::Operation.new result, @operations_client, options: options
2968
2975
  yield result, operation if block_given?
2969
- return result
2976
+ throw :response, result
2970
2977
  end
2971
2978
  rescue ::Gapic::Rest::Error => e
2972
2979
  raise ::Google::Cloud::Error.from_error(e)
@@ -3045,7 +3052,6 @@ module Google
3045
3052
 
3046
3053
  @eventarc_stub.get_pipeline request, options do |result, operation|
3047
3054
  yield result, operation if block_given?
3048
- return result
3049
3055
  end
3050
3056
  rescue ::Gapic::Rest::Error => e
3051
3057
  raise ::Google::Cloud::Error.from_error(e)
@@ -3146,7 +3152,6 @@ module Google
3146
3152
 
3147
3153
  @eventarc_stub.list_pipelines request, options do |result, operation|
3148
3154
  yield result, operation if block_given?
3149
- return result
3150
3155
  end
3151
3156
  rescue ::Gapic::Rest::Error => e
3152
3157
  raise ::Google::Cloud::Error.from_error(e)
@@ -3240,7 +3245,7 @@ module Google
3240
3245
  @eventarc_stub.create_pipeline request, options do |result, operation|
3241
3246
  result = ::Gapic::Operation.new result, @operations_client, options: options
3242
3247
  yield result, operation if block_given?
3243
- return result
3248
+ throw :response, result
3244
3249
  end
3245
3250
  rescue ::Gapic::Rest::Error => e
3246
3251
  raise ::Google::Cloud::Error.from_error(e)
@@ -3337,7 +3342,7 @@ module Google
3337
3342
  @eventarc_stub.update_pipeline request, options do |result, operation|
3338
3343
  result = ::Gapic::Operation.new result, @operations_client, options: options
3339
3344
  yield result, operation if block_given?
3340
- return result
3345
+ throw :response, result
3341
3346
  end
3342
3347
  rescue ::Gapic::Rest::Error => e
3343
3348
  raise ::Google::Cloud::Error.from_error(e)
@@ -3433,7 +3438,7 @@ module Google
3433
3438
  @eventarc_stub.delete_pipeline request, options do |result, operation|
3434
3439
  result = ::Gapic::Operation.new result, @operations_client, options: options
3435
3440
  yield result, operation if block_given?
3436
- return result
3441
+ throw :response, result
3437
3442
  end
3438
3443
  rescue ::Gapic::Rest::Error => e
3439
3444
  raise ::Google::Cloud::Error.from_error(e)
@@ -3512,7 +3517,6 @@ module Google
3512
3517
 
3513
3518
  @eventarc_stub.get_google_api_source request, options do |result, operation|
3514
3519
  yield result, operation if block_given?
3515
- return result
3516
3520
  end
3517
3521
  rescue ::Gapic::Rest::Error => e
3518
3522
  raise ::Google::Cloud::Error.from_error(e)
@@ -3613,7 +3617,6 @@ module Google
3613
3617
 
3614
3618
  @eventarc_stub.list_google_api_sources request, options do |result, operation|
3615
3619
  yield result, operation if block_given?
3616
- return result
3617
3620
  end
3618
3621
  rescue ::Gapic::Rest::Error => e
3619
3622
  raise ::Google::Cloud::Error.from_error(e)
@@ -3708,7 +3711,7 @@ module Google
3708
3711
  @eventarc_stub.create_google_api_source request, options do |result, operation|
3709
3712
  result = ::Gapic::Operation.new result, @operations_client, options: options
3710
3713
  yield result, operation if block_given?
3711
- return result
3714
+ throw :response, result
3712
3715
  end
3713
3716
  rescue ::Gapic::Rest::Error => e
3714
3717
  raise ::Google::Cloud::Error.from_error(e)
@@ -3806,7 +3809,7 @@ module Google
3806
3809
  @eventarc_stub.update_google_api_source request, options do |result, operation|
3807
3810
  result = ::Gapic::Operation.new result, @operations_client, options: options
3808
3811
  yield result, operation if block_given?
3809
- return result
3812
+ throw :response, result
3810
3813
  end
3811
3814
  rescue ::Gapic::Rest::Error => e
3812
3815
  raise ::Google::Cloud::Error.from_error(e)
@@ -3902,7 +3905,7 @@ module Google
3902
3905
  @eventarc_stub.delete_google_api_source request, options do |result, operation|
3903
3906
  result = ::Gapic::Operation.new result, @operations_client, options: options
3904
3907
  yield result, operation if block_given?
3905
- return result
3908
+ throw :response, result
3906
3909
  end
3907
3910
  rescue ::Gapic::Rest::Error => e
3908
3911
  raise ::Google::Cloud::Error.from_error(e)
@@ -3950,6 +3953,13 @@ module Google
3950
3953
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3951
3954
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3952
3955
  # * (`nil`) indicating no credentials
3956
+ #
3957
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
3958
+ # external source for authentication to Google Cloud, you must validate it before
3959
+ # providing it to a Google API client library. Providing an unvalidated credential
3960
+ # configuration to Google APIs can compromise the security of your systems and data.
3961
+ # For more information, refer to [Validate credential configurations from external
3962
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
3953
3963
  # @return [::Object]
3954
3964
  # @!attribute [rw] scope
3955
3965
  # The OAuth scopes
@@ -3982,6 +3992,11 @@ module Google
3982
3992
  # default endpoint URL. The default value of nil uses the environment
3983
3993
  # universe (usually the default "googleapis.com" universe).
3984
3994
  # @return [::String,nil]
3995
+ # @!attribute [rw] logger
3996
+ # A custom logger to use for request/response debug logging, or the value
3997
+ # `:default` (the default) to construct a default logger, or `nil` to
3998
+ # explicitly disable logging.
3999
+ # @return [::Logger,:default,nil]
3985
4000
  #
3986
4001
  class Configuration
3987
4002
  extend ::Gapic::Config
@@ -4010,6 +4025,7 @@ module Google
4010
4025
  # by the host service.
4011
4026
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
4012
4027
  config_attr :bindings_override, {}, ::Hash, nil
4028
+ config_attr :logger, :default, ::Logger, nil, :default
4013
4029
 
4014
4030
  # @private
4015
4031
  def initialize parent_config = nil
@@ -115,14 +115,6 @@ module Google
115
115
  # Lists operations that match the specified filter in the request. If the
116
116
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
117
117
  #
118
- # NOTE: the `name` binding allows API services to override the binding
119
- # to use different resource name schemes, such as `users/*/operations`. To
120
- # override the binding, API services can add a binding such as
121
- # `"/v1/{name=users/*}/operations"` to their service configuration.
122
- # For backwards compatibility, the default name includes the operations
123
- # collection id, however overriding users must ensure the name binding
124
- # is the parent resource, without the operations collection id.
125
- #
126
118
  # @overload list_operations(request, options = nil)
127
119
  # Pass arguments to `list_operations` via a request object, either of type
128
120
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -204,7 +196,7 @@ module Google
204
196
  @operations_stub.list_operations request, options do |result, operation|
205
197
  result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options
206
198
  yield result, operation if block_given?
207
- return result
199
+ throw :response, result
208
200
  end
209
201
  rescue ::Gapic::Rest::Error => e
210
202
  raise ::Google::Cloud::Error.from_error(e)
@@ -293,7 +285,7 @@ module Google
293
285
  @operations_stub.get_operation request, options do |result, operation|
294
286
  result = ::Gapic::Operation.new result, @operations_client, options: options
295
287
  yield result, operation if block_given?
296
- return result
288
+ throw :response, result
297
289
  end
298
290
  rescue ::Gapic::Rest::Error => e
299
291
  raise ::Google::Cloud::Error.from_error(e)
@@ -375,7 +367,6 @@ module Google
375
367
 
376
368
  @operations_stub.delete_operation request, options do |result, operation|
377
369
  yield result, operation if block_given?
378
- return result
379
370
  end
380
371
  rescue ::Gapic::Rest::Error => e
381
372
  raise ::Google::Cloud::Error.from_error(e)
@@ -390,8 +381,9 @@ module Google
390
381
  # other methods to check whether the cancellation succeeded or whether the
391
382
  # operation completed despite cancellation. On successful cancellation,
392
383
  # the operation is not deleted; instead, it becomes an operation with
393
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
394
- # corresponding to `Code.CANCELLED`.
384
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
385
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
386
+ # `Code.CANCELLED`.
395
387
  #
396
388
  # @overload cancel_operation(request, options = nil)
397
389
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -463,7 +455,6 @@ module Google
463
455
 
464
456
  @operations_stub.cancel_operation request, options do |result, operation|
465
457
  yield result, operation if block_given?
466
- return result
467
458
  end
468
459
  rescue ::Gapic::Rest::Error => e
469
460
  raise ::Google::Cloud::Error.from_error(e)
@@ -511,6 +502,13 @@ module Google
511
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
512
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
513
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
514
512
  # @return [::Object]
515
513
  # @!attribute [rw] scope
516
514
  # The OAuth scopes
@@ -543,6 +541,11 @@ module Google
543
541
  # default endpoint URL. The default value of nil uses the environment
544
542
  # universe (usually the default "googleapis.com" universe).
545
543
  # @return [::String,nil]
544
+ # @!attribute [rw] logger
545
+ # A custom logger to use for request/response debug logging, or the value
546
+ # `:default` (the default) to construct a default logger, or `nil` to
547
+ # explicitly disable logging.
548
+ # @return [::Logger,:default,nil]
546
549
  #
547
550
  class Configuration
548
551
  extend ::Gapic::Config
@@ -564,6 +567,7 @@ module Google
564
567
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
565
568
  config_attr :quota_project, nil, ::String, nil
566
569
  config_attr :universe_domain, nil, ::String, nil
570
+ config_attr :logger, :default, ::Logger, nil, :default
567
571
 
568
572
  # @private
569
573
  def initialize parent_config = nil
@@ -683,16 +687,18 @@ module Google
683
687
 
684
688
  response = @client_stub.make_http_request(
685
689
  verb,
686
- uri: uri,
687
- body: body || "",
688
- params: query_string_params,
690
+ uri: uri,
691
+ body: body || "",
692
+ params: query_string_params,
693
+ method_name: "list_operations",
689
694
  options: options
690
695
  )
691
696
  operation = ::Gapic::Rest::TransportOperation.new response
692
697
  result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true
693
-
694
- yield result, operation if block_given?
695
- result
698
+ catch :response do
699
+ yield result, operation if block_given?
700
+ result
701
+ end
696
702
  end
697
703
 
698
704
  ##
@@ -721,16 +727,18 @@ module Google
721
727
 
722
728
  response = @client_stub.make_http_request(
723
729
  verb,
724
- uri: uri,
725
- body: body || "",
726
- params: query_string_params,
730
+ uri: uri,
731
+ body: body || "",
732
+ params: query_string_params,
733
+ method_name: "get_operation",
727
734
  options: options
728
735
  )
729
736
  operation = ::Gapic::Rest::TransportOperation.new response
730
737
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
731
-
732
- yield result, operation if block_given?
733
- result
738
+ catch :response do
739
+ yield result, operation if block_given?
740
+ result
741
+ end
734
742
  end
735
743
 
736
744
  ##
@@ -759,16 +767,18 @@ module Google
759
767
 
760
768
  response = @client_stub.make_http_request(
761
769
  verb,
762
- uri: uri,
763
- body: body || "",
764
- params: query_string_params,
770
+ uri: uri,
771
+ body: body || "",
772
+ params: query_string_params,
773
+ method_name: "delete_operation",
765
774
  options: options
766
775
  )
767
776
  operation = ::Gapic::Rest::TransportOperation.new response
768
777
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
769
-
770
- yield result, operation if block_given?
771
- result
778
+ catch :response do
779
+ yield result, operation if block_given?
780
+ result
781
+ end
772
782
  end
773
783
 
774
784
  ##
@@ -797,16 +807,18 @@ module Google
797
807
 
798
808
  response = @client_stub.make_http_request(
799
809
  verb,
800
- uri: uri,
801
- body: body || "",
802
- params: query_string_params,
810
+ uri: uri,
811
+ body: body || "",
812
+ params: query_string_params,
813
+ method_name: "cancel_operation",
803
814
  options: options
804
815
  )
805
816
  operation = ::Gapic::Rest::TransportOperation.new response
806
817
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
807
-
808
- yield result, operation if block_given?
809
- result
818
+ catch :response do
819
+ yield result, operation if block_given?
820
+ result
821
+ end
810
822
  end
811
823
 
812
824
  ##