google-cloud-alloy_db-v1 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -206,15 +206,27 @@ module Google
206
206
  endpoint: @config.endpoint,
207
207
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
208
208
  universe_domain: @config.universe_domain,
209
- credentials: credentials
209
+ credentials: credentials,
210
+ logger: @config.logger
210
211
  )
211
212
 
213
+ @alloy_db_admin_stub.logger(stub: true)&.info do |entry|
214
+ entry.set_system_name
215
+ entry.set_service
216
+ entry.message = "Created client for #{entry.service}"
217
+ entry.set_credentials_fields credentials
218
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
219
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
220
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
221
+ end
222
+
212
223
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
213
224
  config.credentials = credentials
214
225
  config.quota_project = @quota_project_id
215
226
  config.endpoint = @alloy_db_admin_stub.endpoint
216
227
  config.universe_domain = @alloy_db_admin_stub.universe_domain
217
228
  config.bindings_override = @config.bindings_override
229
+ config.logger = @alloy_db_admin_stub.logger if config.respond_to? :logger=
218
230
  end
219
231
 
220
232
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
@@ -222,6 +234,7 @@ module Google
222
234
  config.quota_project = @quota_project_id
223
235
  config.endpoint = @alloy_db_admin_stub.endpoint
224
236
  config.universe_domain = @alloy_db_admin_stub.universe_domain
237
+ config.logger = @alloy_db_admin_stub.logger if config.respond_to? :logger=
225
238
  end
226
239
  end
227
240
 
@@ -246,6 +259,15 @@ module Google
246
259
  #
247
260
  attr_reader :iam_policy_client
248
261
 
262
+ ##
263
+ # The logger used for request/response debug logging.
264
+ #
265
+ # @return [Logger]
266
+ #
267
+ def logger
268
+ @alloy_db_admin_stub.logger
269
+ end
270
+
249
271
  # Service calls
250
272
 
251
273
  ##
@@ -337,7 +359,6 @@ module Google
337
359
 
338
360
  @alloy_db_admin_stub.list_clusters request, options do |result, operation|
339
361
  yield result, operation if block_given?
340
- return result
341
362
  end
342
363
  rescue ::Gapic::Rest::Error => e
343
364
  raise ::Google::Cloud::Error.from_error(e)
@@ -420,7 +441,6 @@ module Google
420
441
 
421
442
  @alloy_db_admin_stub.get_cluster request, options do |result, operation|
422
443
  yield result, operation if block_given?
423
- return result
424
444
  end
425
445
  rescue ::Gapic::Rest::Error => e
426
446
  raise ::Google::Cloud::Error.from_error(e)
@@ -530,7 +550,7 @@ module Google
530
550
  @alloy_db_admin_stub.create_cluster request, options do |result, operation|
531
551
  result = ::Gapic::Operation.new result, @operations_client, options: options
532
552
  yield result, operation if block_given?
533
- return result
553
+ throw :response, result
534
554
  end
535
555
  rescue ::Gapic::Rest::Error => e
536
556
  raise ::Google::Cloud::Error.from_error(e)
@@ -644,7 +664,7 @@ module Google
644
664
  @alloy_db_admin_stub.update_cluster request, options do |result, operation|
645
665
  result = ::Gapic::Operation.new result, @operations_client, options: options
646
666
  yield result, operation if block_given?
647
- return result
667
+ throw :response, result
648
668
  end
649
669
  rescue ::Gapic::Rest::Error => e
650
670
  raise ::Google::Cloud::Error.from_error(e)
@@ -756,7 +776,7 @@ module Google
756
776
  @alloy_db_admin_stub.delete_cluster request, options do |result, operation|
757
777
  result = ::Gapic::Operation.new result, @operations_client, options: options
758
778
  yield result, operation if block_given?
759
- return result
779
+ throw :response, result
760
780
  end
761
781
  rescue ::Gapic::Rest::Error => e
762
782
  raise ::Google::Cloud::Error.from_error(e)
@@ -869,7 +889,7 @@ module Google
869
889
  @alloy_db_admin_stub.promote_cluster request, options do |result, operation|
870
890
  result = ::Gapic::Operation.new result, @operations_client, options: options
871
891
  yield result, operation if block_given?
872
- return result
892
+ throw :response, result
873
893
  end
874
894
  rescue ::Gapic::Rest::Error => e
875
895
  raise ::Google::Cloud::Error.from_error(e)
@@ -977,7 +997,7 @@ module Google
977
997
  @alloy_db_admin_stub.switchover_cluster request, options do |result, operation|
978
998
  result = ::Gapic::Operation.new result, @operations_client, options: options
979
999
  yield result, operation if block_given?
980
- return result
1000
+ throw :response, result
981
1001
  end
982
1002
  rescue ::Gapic::Rest::Error => e
983
1003
  raise ::Google::Cloud::Error.from_error(e)
@@ -1094,7 +1114,7 @@ module Google
1094
1114
  @alloy_db_admin_stub.restore_cluster request, options do |result, operation|
1095
1115
  result = ::Gapic::Operation.new result, @operations_client, options: options
1096
1116
  yield result, operation if block_given?
1097
- return result
1117
+ throw :response, result
1098
1118
  end
1099
1119
  rescue ::Gapic::Rest::Error => e
1100
1120
  raise ::Google::Cloud::Error.from_error(e)
@@ -1205,7 +1225,7 @@ module Google
1205
1225
  @alloy_db_admin_stub.create_secondary_cluster request, options do |result, operation|
1206
1226
  result = ::Gapic::Operation.new result, @operations_client, options: options
1207
1227
  yield result, operation if block_given?
1208
- return result
1228
+ throw :response, result
1209
1229
  end
1210
1230
  rescue ::Gapic::Rest::Error => e
1211
1231
  raise ::Google::Cloud::Error.from_error(e)
@@ -1302,7 +1322,6 @@ module Google
1302
1322
 
1303
1323
  @alloy_db_admin_stub.list_instances request, options do |result, operation|
1304
1324
  yield result, operation if block_given?
1305
- return result
1306
1325
  end
1307
1326
  rescue ::Gapic::Rest::Error => e
1308
1327
  raise ::Google::Cloud::Error.from_error(e)
@@ -1384,7 +1403,6 @@ module Google
1384
1403
 
1385
1404
  @alloy_db_admin_stub.get_instance request, options do |result, operation|
1386
1405
  yield result, operation if block_given?
1387
- return result
1388
1406
  end
1389
1407
  rescue ::Gapic::Rest::Error => e
1390
1408
  raise ::Google::Cloud::Error.from_error(e)
@@ -1494,7 +1512,7 @@ module Google
1494
1512
  @alloy_db_admin_stub.create_instance request, options do |result, operation|
1495
1513
  result = ::Gapic::Operation.new result, @operations_client, options: options
1496
1514
  yield result, operation if block_given?
1497
- return result
1515
+ throw :response, result
1498
1516
  end
1499
1517
  rescue ::Gapic::Rest::Error => e
1500
1518
  raise ::Google::Cloud::Error.from_error(e)
@@ -1604,7 +1622,7 @@ module Google
1604
1622
  @alloy_db_admin_stub.create_secondary_instance request, options do |result, operation|
1605
1623
  result = ::Gapic::Operation.new result, @operations_client, options: options
1606
1624
  yield result, operation if block_given?
1607
- return result
1625
+ throw :response, result
1608
1626
  end
1609
1627
  rescue ::Gapic::Rest::Error => e
1610
1628
  raise ::Google::Cloud::Error.from_error(e)
@@ -1716,7 +1734,7 @@ module Google
1716
1734
  @alloy_db_admin_stub.batch_create_instances request, options do |result, operation|
1717
1735
  result = ::Gapic::Operation.new result, @operations_client, options: options
1718
1736
  yield result, operation if block_given?
1719
- return result
1737
+ throw :response, result
1720
1738
  end
1721
1739
  rescue ::Gapic::Rest::Error => e
1722
1740
  raise ::Google::Cloud::Error.from_error(e)
@@ -1830,7 +1848,7 @@ module Google
1830
1848
  @alloy_db_admin_stub.update_instance request, options do |result, operation|
1831
1849
  result = ::Gapic::Operation.new result, @operations_client, options: options
1832
1850
  yield result, operation if block_given?
1833
- return result
1851
+ throw :response, result
1834
1852
  end
1835
1853
  rescue ::Gapic::Rest::Error => e
1836
1854
  raise ::Google::Cloud::Error.from_error(e)
@@ -1940,7 +1958,7 @@ module Google
1940
1958
  @alloy_db_admin_stub.delete_instance request, options do |result, operation|
1941
1959
  result = ::Gapic::Operation.new result, @operations_client, options: options
1942
1960
  yield result, operation if block_given?
1943
- return result
1961
+ throw :response, result
1944
1962
  end
1945
1963
  rescue ::Gapic::Rest::Error => e
1946
1964
  raise ::Google::Cloud::Error.from_error(e)
@@ -2048,7 +2066,7 @@ module Google
2048
2066
  @alloy_db_admin_stub.failover_instance request, options do |result, operation|
2049
2067
  result = ::Gapic::Operation.new result, @operations_client, options: options
2050
2068
  yield result, operation if block_given?
2051
- return result
2069
+ throw :response, result
2052
2070
  end
2053
2071
  rescue ::Gapic::Rest::Error => e
2054
2072
  raise ::Google::Cloud::Error.from_error(e)
@@ -2157,7 +2175,7 @@ module Google
2157
2175
  @alloy_db_admin_stub.inject_fault request, options do |result, operation|
2158
2176
  result = ::Gapic::Operation.new result, @operations_client, options: options
2159
2177
  yield result, operation if block_given?
2160
- return result
2178
+ throw :response, result
2161
2179
  end
2162
2180
  rescue ::Gapic::Rest::Error => e
2163
2181
  raise ::Google::Cloud::Error.from_error(e)
@@ -2267,7 +2285,7 @@ module Google
2267
2285
  @alloy_db_admin_stub.restart_instance request, options do |result, operation|
2268
2286
  result = ::Gapic::Operation.new result, @operations_client, options: options
2269
2287
  yield result, operation if block_given?
2270
- return result
2288
+ throw :response, result
2271
2289
  end
2272
2290
  rescue ::Gapic::Rest::Error => e
2273
2291
  raise ::Google::Cloud::Error.from_error(e)
@@ -2360,7 +2378,6 @@ module Google
2360
2378
 
2361
2379
  @alloy_db_admin_stub.execute_sql request, options do |result, operation|
2362
2380
  yield result, operation if block_given?
2363
- return result
2364
2381
  end
2365
2382
  rescue ::Gapic::Rest::Error => e
2366
2383
  raise ::Google::Cloud::Error.from_error(e)
@@ -2452,7 +2469,6 @@ module Google
2452
2469
 
2453
2470
  @alloy_db_admin_stub.list_backups request, options do |result, operation|
2454
2471
  yield result, operation if block_given?
2455
- return result
2456
2472
  end
2457
2473
  rescue ::Gapic::Rest::Error => e
2458
2474
  raise ::Google::Cloud::Error.from_error(e)
@@ -2531,7 +2547,6 @@ module Google
2531
2547
 
2532
2548
  @alloy_db_admin_stub.get_backup request, options do |result, operation|
2533
2549
  yield result, operation if block_given?
2534
- return result
2535
2550
  end
2536
2551
  rescue ::Gapic::Rest::Error => e
2537
2552
  raise ::Google::Cloud::Error.from_error(e)
@@ -2639,7 +2654,7 @@ module Google
2639
2654
  @alloy_db_admin_stub.create_backup request, options do |result, operation|
2640
2655
  result = ::Gapic::Operation.new result, @operations_client, options: options
2641
2656
  yield result, operation if block_given?
2642
- return result
2657
+ throw :response, result
2643
2658
  end
2644
2659
  rescue ::Gapic::Rest::Error => e
2645
2660
  raise ::Google::Cloud::Error.from_error(e)
@@ -2752,7 +2767,7 @@ module Google
2752
2767
  @alloy_db_admin_stub.update_backup request, options do |result, operation|
2753
2768
  result = ::Gapic::Operation.new result, @operations_client, options: options
2754
2769
  yield result, operation if block_given?
2755
- return result
2770
+ throw :response, result
2756
2771
  end
2757
2772
  rescue ::Gapic::Rest::Error => e
2758
2773
  raise ::Google::Cloud::Error.from_error(e)
@@ -2861,7 +2876,7 @@ module Google
2861
2876
  @alloy_db_admin_stub.delete_backup request, options do |result, operation|
2862
2877
  result = ::Gapic::Operation.new result, @operations_client, options: options
2863
2878
  yield result, operation if block_given?
2864
- return result
2879
+ throw :response, result
2865
2880
  end
2866
2881
  rescue ::Gapic::Rest::Error => e
2867
2882
  raise ::Google::Cloud::Error.from_error(e)
@@ -2956,7 +2971,7 @@ module Google
2956
2971
  @alloy_db_admin_stub.list_supported_database_flags request, options do |result, operation|
2957
2972
  result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_supported_database_flags, "supported_database_flags", request, result, options
2958
2973
  yield result, operation if block_given?
2959
- return result
2974
+ throw :response, result
2960
2975
  end
2961
2976
  rescue ::Gapic::Rest::Error => e
2962
2977
  raise ::Google::Cloud::Error.from_error(e)
@@ -3066,7 +3081,6 @@ module Google
3066
3081
 
3067
3082
  @alloy_db_admin_stub.generate_client_certificate request, options do |result, operation|
3068
3083
  yield result, operation if block_given?
3069
- return result
3070
3084
  end
3071
3085
  rescue ::Gapic::Rest::Error => e
3072
3086
  raise ::Google::Cloud::Error.from_error(e)
@@ -3160,7 +3174,6 @@ module Google
3160
3174
 
3161
3175
  @alloy_db_admin_stub.get_connection_info request, options do |result, operation|
3162
3176
  yield result, operation if block_given?
3163
- return result
3164
3177
  end
3165
3178
  rescue ::Gapic::Rest::Error => e
3166
3179
  raise ::Google::Cloud::Error.from_error(e)
@@ -3252,7 +3265,6 @@ module Google
3252
3265
 
3253
3266
  @alloy_db_admin_stub.list_users request, options do |result, operation|
3254
3267
  yield result, operation if block_given?
3255
- return result
3256
3268
  end
3257
3269
  rescue ::Gapic::Rest::Error => e
3258
3270
  raise ::Google::Cloud::Error.from_error(e)
@@ -3332,7 +3344,6 @@ module Google
3332
3344
 
3333
3345
  @alloy_db_admin_stub.get_user request, options do |result, operation|
3334
3346
  yield result, operation if block_given?
3335
- return result
3336
3347
  end
3337
3348
  rescue ::Gapic::Rest::Error => e
3338
3349
  raise ::Google::Cloud::Error.from_error(e)
@@ -3432,7 +3443,6 @@ module Google
3432
3443
 
3433
3444
  @alloy_db_admin_stub.create_user request, options do |result, operation|
3434
3445
  yield result, operation if block_given?
3435
- return result
3436
3446
  end
3437
3447
  rescue ::Gapic::Rest::Error => e
3438
3448
  raise ::Google::Cloud::Error.from_error(e)
@@ -3536,7 +3546,6 @@ module Google
3536
3546
 
3537
3547
  @alloy_db_admin_stub.update_user request, options do |result, operation|
3538
3548
  yield result, operation if block_given?
3539
- return result
3540
3549
  end
3541
3550
  rescue ::Gapic::Rest::Error => e
3542
3551
  raise ::Google::Cloud::Error.from_error(e)
@@ -3633,7 +3642,6 @@ module Google
3633
3642
 
3634
3643
  @alloy_db_admin_stub.delete_user request, options do |result, operation|
3635
3644
  yield result, operation if block_given?
3636
- return result
3637
3645
  end
3638
3646
  rescue ::Gapic::Rest::Error => e
3639
3647
  raise ::Google::Cloud::Error.from_error(e)
@@ -3729,7 +3737,7 @@ module Google
3729
3737
  @alloy_db_admin_stub.list_databases request, options do |result, operation|
3730
3738
  result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_databases, "databases", request, result, options
3731
3739
  yield result, operation if block_given?
3732
- return result
3740
+ throw :response, result
3733
3741
  end
3734
3742
  rescue ::Gapic::Rest::Error => e
3735
3743
  raise ::Google::Cloud::Error.from_error(e)
@@ -3809,6 +3817,11 @@ module Google
3809
3817
  # default endpoint URL. The default value of nil uses the environment
3810
3818
  # universe (usually the default "googleapis.com" universe).
3811
3819
  # @return [::String,nil]
3820
+ # @!attribute [rw] logger
3821
+ # A custom logger to use for request/response debug logging, or the value
3822
+ # `:default` (the default) to construct a default logger, or `nil` to
3823
+ # explicitly disable logging.
3824
+ # @return [::Logger,:default,nil]
3812
3825
  #
3813
3826
  class Configuration
3814
3827
  extend ::Gapic::Config
@@ -3837,6 +3850,7 @@ module Google
3837
3850
  # by the host service.
3838
3851
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
3839
3852
  config_attr :bindings_override, {}, ::Hash, nil
3853
+ config_attr :logger, :default, ::Logger, nil, :default
3840
3854
 
3841
3855
  # @private
3842
3856
  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)
@@ -543,6 +534,11 @@ module Google
543
534
  # default endpoint URL. The default value of nil uses the environment
544
535
  # universe (usually the default "googleapis.com" universe).
545
536
  # @return [::String,nil]
537
+ # @!attribute [rw] logger
538
+ # A custom logger to use for request/response debug logging, or the value
539
+ # `:default` (the default) to construct a default logger, or `nil` to
540
+ # explicitly disable logging.
541
+ # @return [::Logger,:default,nil]
546
542
  #
547
543
  class Configuration
548
544
  extend ::Gapic::Config
@@ -564,6 +560,7 @@ module Google
564
560
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
565
561
  config_attr :quota_project, nil, ::String, nil
566
562
  config_attr :universe_domain, nil, ::String, nil
563
+ config_attr :logger, :default, ::Logger, nil, :default
567
564
 
568
565
  # @private
569
566
  def initialize parent_config = nil
@@ -683,16 +680,18 @@ module Google
683
680
 
684
681
  response = @client_stub.make_http_request(
685
682
  verb,
686
- uri: uri,
687
- body: body || "",
688
- params: query_string_params,
683
+ uri: uri,
684
+ body: body || "",
685
+ params: query_string_params,
686
+ method_name: "list_operations",
689
687
  options: options
690
688
  )
691
689
  operation = ::Gapic::Rest::TransportOperation.new response
692
690
  result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true
693
-
694
- yield result, operation if block_given?
695
- result
691
+ catch :response do
692
+ yield result, operation if block_given?
693
+ result
694
+ end
696
695
  end
697
696
 
698
697
  ##
@@ -721,16 +720,18 @@ module Google
721
720
 
722
721
  response = @client_stub.make_http_request(
723
722
  verb,
724
- uri: uri,
725
- body: body || "",
726
- params: query_string_params,
723
+ uri: uri,
724
+ body: body || "",
725
+ params: query_string_params,
726
+ method_name: "get_operation",
727
727
  options: options
728
728
  )
729
729
  operation = ::Gapic::Rest::TransportOperation.new response
730
730
  result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
731
-
732
- yield result, operation if block_given?
733
- result
731
+ catch :response do
732
+ yield result, operation if block_given?
733
+ result
734
+ end
734
735
  end
735
736
 
736
737
  ##
@@ -759,16 +760,18 @@ module Google
759
760
 
760
761
  response = @client_stub.make_http_request(
761
762
  verb,
762
- uri: uri,
763
- body: body || "",
764
- params: query_string_params,
763
+ uri: uri,
764
+ body: body || "",
765
+ params: query_string_params,
766
+ method_name: "delete_operation",
765
767
  options: options
766
768
  )
767
769
  operation = ::Gapic::Rest::TransportOperation.new response
768
770
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
769
-
770
- yield result, operation if block_given?
771
- result
771
+ catch :response do
772
+ yield result, operation if block_given?
773
+ result
774
+ end
772
775
  end
773
776
 
774
777
  ##
@@ -797,16 +800,18 @@ module Google
797
800
 
798
801
  response = @client_stub.make_http_request(
799
802
  verb,
800
- uri: uri,
801
- body: body || "",
802
- params: query_string_params,
803
+ uri: uri,
804
+ body: body || "",
805
+ params: query_string_params,
806
+ method_name: "cancel_operation",
803
807
  options: options
804
808
  )
805
809
  operation = ::Gapic::Rest::TransportOperation.new response
806
810
  result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
807
-
808
- yield result, operation if block_given?
809
- result
811
+ catch :response do
812
+ yield result, operation if block_given?
813
+ result
814
+ end
810
815
  end
811
816
 
812
817
  ##