google-cloud-channel-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.
@@ -210,8 +210,19 @@ module Google
210
210
  universe_domain: @config.universe_domain,
211
211
  channel_args: @config.channel_args,
212
212
  interceptors: @config.interceptors,
213
- channel_pool_config: @config.channel_pool
213
+ channel_pool_config: @config.channel_pool,
214
+ logger: @config.logger
214
215
  )
216
+
217
+ @cloud_channel_service_stub.stub_logger&.info do |entry|
218
+ entry.set_system_name
219
+ entry.set_service
220
+ entry.message = "Created client for #{entry.service}"
221
+ entry.set_credentials_fields credentials
222
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
223
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
224
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
225
+ end
215
226
  end
216
227
 
217
228
  ##
@@ -221,6 +232,15 @@ module Google
221
232
  #
222
233
  attr_reader :operations_client
223
234
 
235
+ ##
236
+ # The logger used for request/response debug logging.
237
+ #
238
+ # @return [Logger]
239
+ #
240
+ def logger
241
+ @cloud_channel_service_stub.logger
242
+ end
243
+
224
244
  # Service calls
225
245
 
226
246
  ##
@@ -335,7 +355,7 @@ module Google
335
355
  @cloud_channel_service_stub.call_rpc :list_customers, request, options: options do |response, operation|
336
356
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_customers, request, response, operation, options
337
357
  yield response, operation if block_given?
338
- return response
358
+ throw :response, response
339
359
  end
340
360
  rescue ::GRPC::BadStatus => e
341
361
  raise ::Google::Cloud::Error.from_error(e)
@@ -434,7 +454,6 @@ module Google
434
454
 
435
455
  @cloud_channel_service_stub.call_rpc :get_customer, request, options: options do |response, operation|
436
456
  yield response, operation if block_given?
437
- return response
438
457
  end
439
458
  rescue ::GRPC::BadStatus => e
440
459
  raise ::Google::Cloud::Error.from_error(e)
@@ -471,7 +490,7 @@ module Google
471
490
  # @param options [::Gapic::CallOptions, ::Hash]
472
491
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
473
492
  #
474
- # @overload check_cloud_identity_accounts_exist(parent: nil, domain: nil)
493
+ # @overload check_cloud_identity_accounts_exist(parent: nil, domain: nil, primary_admin_email: nil)
475
494
  # Pass arguments to `check_cloud_identity_accounts_exist` via keyword arguments. Note that at
476
495
  # least one keyword argument is required. To specify no parameters, or to keep all
477
496
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -480,7 +499,12 @@ module Google
480
499
  # Required. The reseller account's resource name.
481
500
  # Parent uses the format: accounts/\\{account_id}
482
501
  # @param domain [::String]
483
- # Required. Domain to fetch for Cloud Identity account customer.
502
+ # Required. Domain to fetch for Cloud Identity account customers, including
503
+ # domain and team customers. For team customers, please use the domain for
504
+ # their emails.
505
+ # @param primary_admin_email [::String]
506
+ # Optional. Primary admin email to fetch for Cloud Identity account team
507
+ # customer.
484
508
  #
485
509
  # @yield [response, operation] Access the result along with the RPC operation
486
510
  # @yieldparam response [::Google::Cloud::Channel::V1::CheckCloudIdentityAccountsExistResponse]
@@ -541,7 +565,6 @@ module Google
541
565
 
542
566
  @cloud_channel_service_stub.call_rpc :check_cloud_identity_accounts_exist, request, options: options do |response, operation|
543
567
  yield response, operation if block_given?
544
- return response
545
568
  end
546
569
  rescue ::GRPC::BadStatus => e
547
570
  raise ::Google::Cloud::Error.from_error(e)
@@ -645,7 +668,6 @@ module Google
645
668
 
646
669
  @cloud_channel_service_stub.call_rpc :create_customer, request, options: options do |response, operation|
647
670
  yield response, operation if block_given?
648
- return response
649
671
  end
650
672
  rescue ::GRPC::BadStatus => e
651
673
  raise ::Google::Cloud::Error.from_error(e)
@@ -746,7 +768,6 @@ module Google
746
768
 
747
769
  @cloud_channel_service_stub.call_rpc :update_customer, request, options: options do |response, operation|
748
770
  yield response, operation if block_given?
749
- return response
750
771
  end
751
772
  rescue ::GRPC::BadStatus => e
752
773
  raise ::Google::Cloud::Error.from_error(e)
@@ -841,7 +862,6 @@ module Google
841
862
 
842
863
  @cloud_channel_service_stub.call_rpc :delete_customer, request, options: options do |response, operation|
843
864
  yield response, operation if block_given?
844
- return response
845
865
  end
846
866
  rescue ::GRPC::BadStatus => e
847
867
  raise ::Google::Cloud::Error.from_error(e)
@@ -879,7 +899,7 @@ module Google
879
899
  # @param options [::Gapic::CallOptions, ::Hash]
880
900
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
881
901
  #
882
- # @overload import_customer(domain: nil, cloud_identity_id: nil, parent: nil, auth_token: nil, overwrite_if_exists: nil, channel_partner_id: nil, customer: nil)
902
+ # @overload import_customer(domain: nil, cloud_identity_id: nil, primary_admin_email: nil, parent: nil, auth_token: nil, overwrite_if_exists: nil, channel_partner_id: nil, customer: nil)
883
903
  # Pass arguments to `import_customer` via keyword arguments. Note that at
884
904
  # least one keyword argument is required. To specify no parameters, or to keep all
885
905
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -888,6 +908,8 @@ module Google
888
908
  # Required. Customer domain.
889
909
  # @param cloud_identity_id [::String]
890
910
  # Required. Customer's Cloud Identity ID
911
+ # @param primary_admin_email [::String]
912
+ # Required. Customer's primary admin email.
891
913
  # @param parent [::String]
892
914
  # Required. The resource name of the reseller's account.
893
915
  # Parent takes the format: accounts/\\{account_id} or
@@ -970,7 +992,6 @@ module Google
970
992
 
971
993
  @cloud_channel_service_stub.call_rpc :import_customer, request, options: options do |response, operation|
972
994
  yield response, operation if block_given?
973
- return response
974
995
  end
975
996
  rescue ::GRPC::BadStatus => e
976
997
  raise ::Google::Cloud::Error.from_error(e)
@@ -1094,7 +1115,7 @@ module Google
1094
1115
  @cloud_channel_service_stub.call_rpc :provision_cloud_identity, request, options: options do |response, operation|
1095
1116
  response = ::Gapic::Operation.new response, @operations_client, options: options
1096
1117
  yield response, operation if block_given?
1097
- return response
1118
+ throw :response, response
1098
1119
  end
1099
1120
  rescue ::GRPC::BadStatus => e
1100
1121
  raise ::Google::Cloud::Error.from_error(e)
@@ -1208,7 +1229,7 @@ module Google
1208
1229
  @cloud_channel_service_stub.call_rpc :list_entitlements, request, options: options do |response, operation|
1209
1230
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_entitlements, request, response, operation, options
1210
1231
  yield response, operation if block_given?
1211
- return response
1232
+ throw :response, response
1212
1233
  end
1213
1234
  rescue ::GRPC::BadStatus => e
1214
1235
  raise ::Google::Cloud::Error.from_error(e)
@@ -1347,7 +1368,7 @@ module Google
1347
1368
  @cloud_channel_service_stub.call_rpc :list_transferable_skus, request, options: options do |response, operation|
1348
1369
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_transferable_skus, request, response, operation, options
1349
1370
  yield response, operation if block_given?
1350
- return response
1371
+ throw :response, response
1351
1372
  end
1352
1373
  rescue ::GRPC::BadStatus => e
1353
1374
  raise ::Google::Cloud::Error.from_error(e)
@@ -1487,7 +1508,7 @@ module Google
1487
1508
  @cloud_channel_service_stub.call_rpc :list_transferable_offers, request, options: options do |response, operation|
1488
1509
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_transferable_offers, request, response, operation, options
1489
1510
  yield response, operation if block_given?
1490
- return response
1511
+ throw :response, response
1491
1512
  end
1492
1513
  rescue ::GRPC::BadStatus => e
1493
1514
  raise ::Google::Cloud::Error.from_error(e)
@@ -1585,7 +1606,6 @@ module Google
1585
1606
 
1586
1607
  @cloud_channel_service_stub.call_rpc :get_entitlement, request, options: options do |response, operation|
1587
1608
  yield response, operation if block_given?
1588
- return response
1589
1609
  end
1590
1610
  rescue ::GRPC::BadStatus => e
1591
1611
  raise ::Google::Cloud::Error.from_error(e)
@@ -1734,7 +1754,7 @@ module Google
1734
1754
  @cloud_channel_service_stub.call_rpc :create_entitlement, request, options: options do |response, operation|
1735
1755
  response = ::Gapic::Operation.new response, @operations_client, options: options
1736
1756
  yield response, operation if block_given?
1737
- return response
1757
+ throw :response, response
1738
1758
  end
1739
1759
  rescue ::GRPC::BadStatus => e
1740
1760
  raise ::Google::Cloud::Error.from_error(e)
@@ -1874,7 +1894,7 @@ module Google
1874
1894
  @cloud_channel_service_stub.call_rpc :change_parameters, request, options: options do |response, operation|
1875
1895
  response = ::Gapic::Operation.new response, @operations_client, options: options
1876
1896
  yield response, operation if block_given?
1877
- return response
1897
+ throw :response, response
1878
1898
  end
1879
1899
  rescue ::GRPC::BadStatus => e
1880
1900
  raise ::Google::Cloud::Error.from_error(e)
@@ -2007,7 +2027,7 @@ module Google
2007
2027
  @cloud_channel_service_stub.call_rpc :change_renewal_settings, request, options: options do |response, operation|
2008
2028
  response = ::Gapic::Operation.new response, @operations_client, options: options
2009
2029
  yield response, operation if block_given?
2010
- return response
2030
+ throw :response, response
2011
2031
  end
2012
2032
  rescue ::GRPC::BadStatus => e
2013
2033
  raise ::Google::Cloud::Error.from_error(e)
@@ -2152,7 +2172,7 @@ module Google
2152
2172
  @cloud_channel_service_stub.call_rpc :change_offer, request, options: options do |response, operation|
2153
2173
  response = ::Gapic::Operation.new response, @operations_client, options: options
2154
2174
  yield response, operation if block_given?
2155
- return response
2175
+ throw :response, response
2156
2176
  end
2157
2177
  rescue ::GRPC::BadStatus => e
2158
2178
  raise ::Google::Cloud::Error.from_error(e)
@@ -2284,7 +2304,7 @@ module Google
2284
2304
  @cloud_channel_service_stub.call_rpc :start_paid_service, request, options: options do |response, operation|
2285
2305
  response = ::Gapic::Operation.new response, @operations_client, options: options
2286
2306
  yield response, operation if block_given?
2287
- return response
2307
+ throw :response, response
2288
2308
  end
2289
2309
  rescue ::GRPC::BadStatus => e
2290
2310
  raise ::Google::Cloud::Error.from_error(e)
@@ -2413,7 +2433,7 @@ module Google
2413
2433
  @cloud_channel_service_stub.call_rpc :suspend_entitlement, request, options: options do |response, operation|
2414
2434
  response = ::Gapic::Operation.new response, @operations_client, options: options
2415
2435
  yield response, operation if block_given?
2416
- return response
2436
+ throw :response, response
2417
2437
  end
2418
2438
  rescue ::GRPC::BadStatus => e
2419
2439
  raise ::Google::Cloud::Error.from_error(e)
@@ -2547,7 +2567,7 @@ module Google
2547
2567
  @cloud_channel_service_stub.call_rpc :cancel_entitlement, request, options: options do |response, operation|
2548
2568
  response = ::Gapic::Operation.new response, @operations_client, options: options
2549
2569
  yield response, operation if block_given?
2550
- return response
2570
+ throw :response, response
2551
2571
  end
2552
2572
  rescue ::GRPC::BadStatus => e
2553
2573
  raise ::Google::Cloud::Error.from_error(e)
@@ -2682,7 +2702,7 @@ module Google
2682
2702
  @cloud_channel_service_stub.call_rpc :activate_entitlement, request, options: options do |response, operation|
2683
2703
  response = ::Gapic::Operation.new response, @operations_client, options: options
2684
2704
  yield response, operation if block_given?
2685
- return response
2705
+ throw :response, response
2686
2706
  end
2687
2707
  rescue ::GRPC::BadStatus => e
2688
2708
  raise ::Google::Cloud::Error.from_error(e)
@@ -2829,7 +2849,7 @@ module Google
2829
2849
  @cloud_channel_service_stub.call_rpc :transfer_entitlements, request, options: options do |response, operation|
2830
2850
  response = ::Gapic::Operation.new response, @operations_client, options: options
2831
2851
  yield response, operation if block_given?
2832
- return response
2852
+ throw :response, response
2833
2853
  end
2834
2854
  rescue ::GRPC::BadStatus => e
2835
2855
  raise ::Google::Cloud::Error.from_error(e)
@@ -2968,7 +2988,7 @@ module Google
2968
2988
  @cloud_channel_service_stub.call_rpc :transfer_entitlements_to_google, request, options: options do |response, operation|
2969
2989
  response = ::Gapic::Operation.new response, @operations_client, options: options
2970
2990
  yield response, operation if block_given?
2971
- return response
2991
+ throw :response, response
2972
2992
  end
2973
2993
  rescue ::GRPC::BadStatus => e
2974
2994
  raise ::Google::Cloud::Error.from_error(e)
@@ -3084,7 +3104,7 @@ module Google
3084
3104
  @cloud_channel_service_stub.call_rpc :list_channel_partner_links, request, options: options do |response, operation|
3085
3105
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_channel_partner_links, request, response, operation, options
3086
3106
  yield response, operation if block_given?
3087
- return response
3107
+ throw :response, response
3088
3108
  end
3089
3109
  rescue ::GRPC::BadStatus => e
3090
3110
  raise ::Google::Cloud::Error.from_error(e)
@@ -3188,7 +3208,6 @@ module Google
3188
3208
 
3189
3209
  @cloud_channel_service_stub.call_rpc :get_channel_partner_link, request, options: options do |response, operation|
3190
3210
  yield response, operation if block_given?
3191
- return response
3192
3211
  end
3193
3212
  rescue ::GRPC::BadStatus => e
3194
3213
  raise ::Google::Cloud::Error.from_error(e)
@@ -3302,7 +3321,6 @@ module Google
3302
3321
 
3303
3322
  @cloud_channel_service_stub.call_rpc :create_channel_partner_link, request, options: options do |response, operation|
3304
3323
  yield response, operation if block_given?
3305
- return response
3306
3324
  end
3307
3325
  rescue ::GRPC::BadStatus => e
3308
3326
  raise ::Google::Cloud::Error.from_error(e)
@@ -3418,7 +3436,6 @@ module Google
3418
3436
 
3419
3437
  @cloud_channel_service_stub.call_rpc :update_channel_partner_link, request, options: options do |response, operation|
3420
3438
  yield response, operation if block_given?
3421
- return response
3422
3439
  end
3423
3440
  rescue ::GRPC::BadStatus => e
3424
3441
  raise ::Google::Cloud::Error.from_error(e)
@@ -3522,7 +3539,6 @@ module Google
3522
3539
 
3523
3540
  @cloud_channel_service_stub.call_rpc :get_customer_repricing_config, request, options: options do |response, operation|
3524
3541
  yield response, operation if block_given?
3525
- return response
3526
3542
  end
3527
3543
  rescue ::GRPC::BadStatus => e
3528
3544
  raise ::Google::Cloud::Error.from_error(e)
@@ -3659,7 +3675,7 @@ module Google
3659
3675
  @cloud_channel_service_stub.call_rpc :list_customer_repricing_configs, request, options: options do |response, operation|
3660
3676
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_customer_repricing_configs, request, response, operation, options
3661
3677
  yield response, operation if block_given?
3662
- return response
3678
+ throw :response, response
3663
3679
  end
3664
3680
  rescue ::GRPC::BadStatus => e
3665
3681
  raise ::Google::Cloud::Error.from_error(e)
@@ -3790,7 +3806,6 @@ module Google
3790
3806
 
3791
3807
  @cloud_channel_service_stub.call_rpc :create_customer_repricing_config, request, options: options do |response, operation|
3792
3808
  yield response, operation if block_given?
3793
- return response
3794
3809
  end
3795
3810
  rescue ::GRPC::BadStatus => e
3796
3811
  raise ::Google::Cloud::Error.from_error(e)
@@ -3907,7 +3922,6 @@ module Google
3907
3922
 
3908
3923
  @cloud_channel_service_stub.call_rpc :update_customer_repricing_config, request, options: options do |response, operation|
3909
3924
  yield response, operation if block_given?
3910
- return response
3911
3925
  end
3912
3926
  rescue ::GRPC::BadStatus => e
3913
3927
  raise ::Google::Cloud::Error.from_error(e)
@@ -4011,7 +4025,6 @@ module Google
4011
4025
 
4012
4026
  @cloud_channel_service_stub.call_rpc :delete_customer_repricing_config, request, options: options do |response, operation|
4013
4027
  yield response, operation if block_given?
4014
- return response
4015
4028
  end
4016
4029
  rescue ::GRPC::BadStatus => e
4017
4030
  raise ::Google::Cloud::Error.from_error(e)
@@ -4115,7 +4128,6 @@ module Google
4115
4128
 
4116
4129
  @cloud_channel_service_stub.call_rpc :get_channel_partner_repricing_config, request, options: options do |response, operation|
4117
4130
  yield response, operation if block_given?
4118
- return response
4119
4131
  end
4120
4132
  rescue ::GRPC::BadStatus => e
4121
4133
  raise ::Google::Cloud::Error.from_error(e)
@@ -4255,7 +4267,7 @@ module Google
4255
4267
  @cloud_channel_service_stub.call_rpc :list_channel_partner_repricing_configs, request, options: options do |response, operation|
4256
4268
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_channel_partner_repricing_configs, request, response, operation, options
4257
4269
  yield response, operation if block_given?
4258
- return response
4270
+ throw :response, response
4259
4271
  end
4260
4272
  rescue ::GRPC::BadStatus => e
4261
4273
  raise ::Google::Cloud::Error.from_error(e)
@@ -4387,7 +4399,6 @@ module Google
4387
4399
 
4388
4400
  @cloud_channel_service_stub.call_rpc :create_channel_partner_repricing_config, request, options: options do |response, operation|
4389
4401
  yield response, operation if block_given?
4390
- return response
4391
4402
  end
4392
4403
  rescue ::GRPC::BadStatus => e
4393
4404
  raise ::Google::Cloud::Error.from_error(e)
@@ -4504,7 +4515,6 @@ module Google
4504
4515
 
4505
4516
  @cloud_channel_service_stub.call_rpc :update_channel_partner_repricing_config, request, options: options do |response, operation|
4506
4517
  yield response, operation if block_given?
4507
- return response
4508
4518
  end
4509
4519
  rescue ::GRPC::BadStatus => e
4510
4520
  raise ::Google::Cloud::Error.from_error(e)
@@ -4607,7 +4617,6 @@ module Google
4607
4617
 
4608
4618
  @cloud_channel_service_stub.call_rpc :delete_channel_partner_repricing_config, request, options: options do |response, operation|
4609
4619
  yield response, operation if block_given?
4610
- return response
4611
4620
  end
4612
4621
  rescue ::GRPC::BadStatus => e
4613
4622
  raise ::Google::Cloud::Error.from_error(e)
@@ -4728,7 +4737,7 @@ module Google
4728
4737
  @cloud_channel_service_stub.call_rpc :list_sku_groups, request, options: options do |response, operation|
4729
4738
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_sku_groups, request, response, operation, options
4730
4739
  yield response, operation if block_given?
4731
- return response
4740
+ throw :response, response
4732
4741
  end
4733
4742
  rescue ::GRPC::BadStatus => e
4734
4743
  raise ::Google::Cloud::Error.from_error(e)
@@ -4848,7 +4857,7 @@ module Google
4848
4857
  @cloud_channel_service_stub.call_rpc :list_sku_group_billable_skus, request, options: options do |response, operation|
4849
4858
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_sku_group_billable_skus, request, response, operation, options
4850
4859
  yield response, operation if block_given?
4851
- return response
4860
+ throw :response, response
4852
4861
  end
4853
4862
  rescue ::GRPC::BadStatus => e
4854
4863
  raise ::Google::Cloud::Error.from_error(e)
@@ -4945,7 +4954,6 @@ module Google
4945
4954
 
4946
4955
  @cloud_channel_service_stub.call_rpc :lookup_offer, request, options: options do |response, operation|
4947
4956
  yield response, operation if block_given?
4948
- return response
4949
4957
  end
4950
4958
  rescue ::GRPC::BadStatus => e
4951
4959
  raise ::Google::Cloud::Error.from_error(e)
@@ -5043,7 +5051,7 @@ module Google
5043
5051
  @cloud_channel_service_stub.call_rpc :list_products, request, options: options do |response, operation|
5044
5052
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_products, request, response, operation, options
5045
5053
  yield response, operation if block_given?
5046
- return response
5054
+ throw :response, response
5047
5055
  end
5048
5056
  rescue ::GRPC::BadStatus => e
5049
5057
  raise ::Google::Cloud::Error.from_error(e)
@@ -5154,7 +5162,7 @@ module Google
5154
5162
  @cloud_channel_service_stub.call_rpc :list_skus, request, options: options do |response, operation|
5155
5163
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_skus, request, response, operation, options
5156
5164
  yield response, operation if block_given?
5157
- return response
5165
+ throw :response, response
5158
5166
  end
5159
5167
  rescue ::GRPC::BadStatus => e
5160
5168
  raise ::Google::Cloud::Error.from_error(e)
@@ -5271,7 +5279,7 @@ module Google
5271
5279
  @cloud_channel_service_stub.call_rpc :list_offers, request, options: options do |response, operation|
5272
5280
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_offers, request, response, operation, options
5273
5281
  yield response, operation if block_given?
5274
- return response
5282
+ throw :response, response
5275
5283
  end
5276
5284
  rescue ::GRPC::BadStatus => e
5277
5285
  raise ::Google::Cloud::Error.from_error(e)
@@ -5385,7 +5393,7 @@ module Google
5385
5393
  @cloud_channel_service_stub.call_rpc :list_purchasable_skus, request, options: options do |response, operation|
5386
5394
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_purchasable_skus, request, response, operation, options
5387
5395
  yield response, operation if block_given?
5388
- return response
5396
+ throw :response, response
5389
5397
  end
5390
5398
  rescue ::GRPC::BadStatus => e
5391
5399
  raise ::Google::Cloud::Error.from_error(e)
@@ -5502,7 +5510,7 @@ module Google
5502
5510
  @cloud_channel_service_stub.call_rpc :list_purchasable_offers, request, options: options do |response, operation|
5503
5511
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_purchasable_offers, request, response, operation, options
5504
5512
  yield response, operation if block_given?
5505
- return response
5513
+ throw :response, response
5506
5514
  end
5507
5515
  rescue ::GRPC::BadStatus => e
5508
5516
  raise ::Google::Cloud::Error.from_error(e)
@@ -5603,7 +5611,6 @@ module Google
5603
5611
 
5604
5612
  @cloud_channel_service_stub.call_rpc :query_eligible_billing_accounts, request, options: options do |response, operation|
5605
5613
  yield response, operation if block_given?
5606
- return response
5607
5614
  end
5608
5615
  rescue ::GRPC::BadStatus => e
5609
5616
  raise ::Google::Cloud::Error.from_error(e)
@@ -5709,7 +5716,6 @@ module Google
5709
5716
 
5710
5717
  @cloud_channel_service_stub.call_rpc :register_subscriber, request, options: options do |response, operation|
5711
5718
  yield response, operation if block_given?
5712
- return response
5713
5719
  end
5714
5720
  rescue ::GRPC::BadStatus => e
5715
5721
  raise ::Google::Cloud::Error.from_error(e)
@@ -5818,7 +5824,6 @@ module Google
5818
5824
 
5819
5825
  @cloud_channel_service_stub.call_rpc :unregister_subscriber, request, options: options do |response, operation|
5820
5826
  yield response, operation if block_given?
5821
- return response
5822
5827
  end
5823
5828
  rescue ::GRPC::BadStatus => e
5824
5829
  raise ::Google::Cloud::Error.from_error(e)
@@ -5931,7 +5936,6 @@ module Google
5931
5936
 
5932
5937
  @cloud_channel_service_stub.call_rpc :list_subscribers, request, options: options do |response, operation|
5933
5938
  yield response, operation if block_given?
5934
- return response
5935
5939
  end
5936
5940
  rescue ::GRPC::BadStatus => e
5937
5941
  raise ::Google::Cloud::Error.from_error(e)
@@ -6057,7 +6061,7 @@ module Google
6057
6061
  @cloud_channel_service_stub.call_rpc :list_entitlement_changes, request, options: options do |response, operation|
6058
6062
  response = ::Gapic::PagedEnumerable.new @cloud_channel_service_stub, :list_entitlement_changes, request, response, operation, options
6059
6063
  yield response, operation if block_given?
6060
- return response
6064
+ throw :response, response
6061
6065
  end
6062
6066
  rescue ::GRPC::BadStatus => e
6063
6067
  raise ::Google::Cloud::Error.from_error(e)
@@ -6146,6 +6150,11 @@ module Google
6146
6150
  # default endpoint URL. The default value of nil uses the environment
6147
6151
  # universe (usually the default "googleapis.com" universe).
6148
6152
  # @return [::String,nil]
6153
+ # @!attribute [rw] logger
6154
+ # A custom logger to use for request/response debug logging, or the value
6155
+ # `:default` (the default) to construct a default logger, or `nil` to
6156
+ # explicitly disable logging.
6157
+ # @return [::Logger,:default,nil]
6149
6158
  #
6150
6159
  class Configuration
6151
6160
  extend ::Gapic::Config
@@ -6170,6 +6179,7 @@ module Google
6170
6179
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
6171
6180
  config_attr :quota_project, nil, ::String, nil
6172
6181
  config_attr :universe_domain, nil, ::String, nil
6182
+ config_attr :logger, :default, ::Logger, nil, :default
6173
6183
 
6174
6184
  # @private
6175
6185
  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
- return response
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
- return response
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 {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
425
- # corresponding to `Code.CANCELLED`.
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
- return response
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