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.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb +30 -4
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/operations.rb +12 -15
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/client.rb +30 -4
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/operations.rb +43 -38
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/service_stub.rb +38 -20
- data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +63 -53
- data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +12 -15
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/client.rb +64 -53
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/operations.rb +43 -38
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/service_stub.rb +406 -296
- data/lib/google/cloud/channel/v1/service_pb.rb +1 -1
- data/lib/google/cloud/channel/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/channel/v1/service.rb +17 -1
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
@@ -203,8 +203,19 @@ module Google
|
|
203
203
|
endpoint: @config.endpoint,
|
204
204
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
205
205
|
universe_domain: @config.universe_domain,
|
206
|
-
credentials: credentials
|
206
|
+
credentials: credentials,
|
207
|
+
logger: @config.logger
|
207
208
|
)
|
209
|
+
|
210
|
+
@cloud_channel_service_stub.logger(stub: true)&.info do |entry|
|
211
|
+
entry.set_system_name
|
212
|
+
entry.set_service
|
213
|
+
entry.message = "Created client for #{entry.service}"
|
214
|
+
entry.set_credentials_fields credentials
|
215
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
216
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
217
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
218
|
+
end
|
208
219
|
end
|
209
220
|
|
210
221
|
##
|
@@ -214,6 +225,15 @@ module Google
|
|
214
225
|
#
|
215
226
|
attr_reader :operations_client
|
216
227
|
|
228
|
+
##
|
229
|
+
# The logger used for request/response debug logging.
|
230
|
+
#
|
231
|
+
# @return [Logger]
|
232
|
+
#
|
233
|
+
def logger
|
234
|
+
@cloud_channel_service_stub.logger
|
235
|
+
end
|
236
|
+
|
217
237
|
# Service calls
|
218
238
|
|
219
239
|
##
|
@@ -321,7 +341,7 @@ module Google
|
|
321
341
|
@cloud_channel_service_stub.list_customers request, options do |result, operation|
|
322
342
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_customers, "customers", request, result, options
|
323
343
|
yield result, operation if block_given?
|
324
|
-
|
344
|
+
throw :response, result
|
325
345
|
end
|
326
346
|
rescue ::Gapic::Rest::Error => e
|
327
347
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -413,7 +433,6 @@ module Google
|
|
413
433
|
|
414
434
|
@cloud_channel_service_stub.get_customer request, options do |result, operation|
|
415
435
|
yield result, operation if block_given?
|
416
|
-
return result
|
417
436
|
end
|
418
437
|
rescue ::Gapic::Rest::Error => e
|
419
438
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -450,7 +469,7 @@ module Google
|
|
450
469
|
# @param options [::Gapic::CallOptions, ::Hash]
|
451
470
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
452
471
|
#
|
453
|
-
# @overload check_cloud_identity_accounts_exist(parent: nil, domain: nil)
|
472
|
+
# @overload check_cloud_identity_accounts_exist(parent: nil, domain: nil, primary_admin_email: nil)
|
454
473
|
# Pass arguments to `check_cloud_identity_accounts_exist` via keyword arguments. Note that at
|
455
474
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
456
475
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -459,7 +478,12 @@ module Google
|
|
459
478
|
# Required. The reseller account's resource name.
|
460
479
|
# Parent uses the format: accounts/\\{account_id}
|
461
480
|
# @param domain [::String]
|
462
|
-
# Required. Domain to fetch for Cloud Identity account
|
481
|
+
# Required. Domain to fetch for Cloud Identity account customers, including
|
482
|
+
# domain and team customers. For team customers, please use the domain for
|
483
|
+
# their emails.
|
484
|
+
# @param primary_admin_email [::String]
|
485
|
+
# Optional. Primary admin email to fetch for Cloud Identity account team
|
486
|
+
# customer.
|
463
487
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
464
488
|
# @yieldparam result [::Google::Cloud::Channel::V1::CheckCloudIdentityAccountsExistResponse]
|
465
489
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -513,7 +537,6 @@ module Google
|
|
513
537
|
|
514
538
|
@cloud_channel_service_stub.check_cloud_identity_accounts_exist request, options do |result, operation|
|
515
539
|
yield result, operation if block_given?
|
516
|
-
return result
|
517
540
|
end
|
518
541
|
rescue ::Gapic::Rest::Error => e
|
519
542
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -610,7 +633,6 @@ module Google
|
|
610
633
|
|
611
634
|
@cloud_channel_service_stub.create_customer request, options do |result, operation|
|
612
635
|
yield result, operation if block_given?
|
613
|
-
return result
|
614
636
|
end
|
615
637
|
rescue ::Gapic::Rest::Error => e
|
616
638
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -704,7 +726,6 @@ module Google
|
|
704
726
|
|
705
727
|
@cloud_channel_service_stub.update_customer request, options do |result, operation|
|
706
728
|
yield result, operation if block_given?
|
707
|
-
return result
|
708
729
|
end
|
709
730
|
rescue ::Gapic::Rest::Error => e
|
710
731
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -792,7 +813,6 @@ module Google
|
|
792
813
|
|
793
814
|
@cloud_channel_service_stub.delete_customer request, options do |result, operation|
|
794
815
|
yield result, operation if block_given?
|
795
|
-
return result
|
796
816
|
end
|
797
817
|
rescue ::Gapic::Rest::Error => e
|
798
818
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -830,7 +850,7 @@ module Google
|
|
830
850
|
# @param options [::Gapic::CallOptions, ::Hash]
|
831
851
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
832
852
|
#
|
833
|
-
# @overload import_customer(domain: nil, cloud_identity_id: nil, parent: nil, auth_token: nil, overwrite_if_exists: nil, channel_partner_id: nil, customer: nil)
|
853
|
+
# @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)
|
834
854
|
# Pass arguments to `import_customer` via keyword arguments. Note that at
|
835
855
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
836
856
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -839,6 +859,8 @@ module Google
|
|
839
859
|
# Required. Customer domain.
|
840
860
|
# @param cloud_identity_id [::String]
|
841
861
|
# Required. Customer's Cloud Identity ID
|
862
|
+
# @param primary_admin_email [::String]
|
863
|
+
# Required. Customer's primary admin email.
|
842
864
|
# @param parent [::String]
|
843
865
|
# Required. The resource name of the reseller's account.
|
844
866
|
# Parent takes the format: accounts/\\{account_id} or
|
@@ -914,7 +936,6 @@ module Google
|
|
914
936
|
|
915
937
|
@cloud_channel_service_stub.import_customer request, options do |result, operation|
|
916
938
|
yield result, operation if block_given?
|
917
|
-
return result
|
918
939
|
end
|
919
940
|
rescue ::Gapic::Rest::Error => e
|
920
941
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1031,7 +1052,7 @@ module Google
|
|
1031
1052
|
@cloud_channel_service_stub.provision_cloud_identity request, options do |result, operation|
|
1032
1053
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1033
1054
|
yield result, operation if block_given?
|
1034
|
-
|
1055
|
+
throw :response, result
|
1035
1056
|
end
|
1036
1057
|
rescue ::Gapic::Rest::Error => e
|
1037
1058
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1138,7 +1159,7 @@ module Google
|
|
1138
1159
|
@cloud_channel_service_stub.list_entitlements request, options do |result, operation|
|
1139
1160
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_entitlements, "entitlements", request, result, options
|
1140
1161
|
yield result, operation if block_given?
|
1141
|
-
|
1162
|
+
throw :response, result
|
1142
1163
|
end
|
1143
1164
|
rescue ::Gapic::Rest::Error => e
|
1144
1165
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1270,7 +1291,7 @@ module Google
|
|
1270
1291
|
@cloud_channel_service_stub.list_transferable_skus request, options do |result, operation|
|
1271
1292
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_transferable_skus, "transferable_skus", request, result, options
|
1272
1293
|
yield result, operation if block_given?
|
1273
|
-
|
1294
|
+
throw :response, result
|
1274
1295
|
end
|
1275
1296
|
rescue ::Gapic::Rest::Error => e
|
1276
1297
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1403,7 +1424,7 @@ module Google
|
|
1403
1424
|
@cloud_channel_service_stub.list_transferable_offers request, options do |result, operation|
|
1404
1425
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_transferable_offers, "transferable_offers", request, result, options
|
1405
1426
|
yield result, operation if block_given?
|
1406
|
-
|
1427
|
+
throw :response, result
|
1407
1428
|
end
|
1408
1429
|
rescue ::Gapic::Rest::Error => e
|
1409
1430
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1494,7 +1515,6 @@ module Google
|
|
1494
1515
|
|
1495
1516
|
@cloud_channel_service_stub.get_entitlement request, options do |result, operation|
|
1496
1517
|
yield result, operation if block_given?
|
1497
|
-
return result
|
1498
1518
|
end
|
1499
1519
|
rescue ::Gapic::Rest::Error => e
|
1500
1520
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1636,7 +1656,7 @@ module Google
|
|
1636
1656
|
@cloud_channel_service_stub.create_entitlement request, options do |result, operation|
|
1637
1657
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1638
1658
|
yield result, operation if block_given?
|
1639
|
-
|
1659
|
+
throw :response, result
|
1640
1660
|
end
|
1641
1661
|
rescue ::Gapic::Rest::Error => e
|
1642
1662
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1769,7 +1789,7 @@ module Google
|
|
1769
1789
|
@cloud_channel_service_stub.change_parameters request, options do |result, operation|
|
1770
1790
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1771
1791
|
yield result, operation if block_given?
|
1772
|
-
|
1792
|
+
throw :response, result
|
1773
1793
|
end
|
1774
1794
|
rescue ::Gapic::Rest::Error => e
|
1775
1795
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1895,7 +1915,7 @@ module Google
|
|
1895
1915
|
@cloud_channel_service_stub.change_renewal_settings request, options do |result, operation|
|
1896
1916
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1897
1917
|
yield result, operation if block_given?
|
1898
|
-
|
1918
|
+
throw :response, result
|
1899
1919
|
end
|
1900
1920
|
rescue ::Gapic::Rest::Error => e
|
1901
1921
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2033,7 +2053,7 @@ module Google
|
|
2033
2053
|
@cloud_channel_service_stub.change_offer request, options do |result, operation|
|
2034
2054
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2035
2055
|
yield result, operation if block_given?
|
2036
|
-
|
2056
|
+
throw :response, result
|
2037
2057
|
end
|
2038
2058
|
rescue ::Gapic::Rest::Error => e
|
2039
2059
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2158,7 +2178,7 @@ module Google
|
|
2158
2178
|
@cloud_channel_service_stub.start_paid_service request, options do |result, operation|
|
2159
2179
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2160
2180
|
yield result, operation if block_given?
|
2161
|
-
|
2181
|
+
throw :response, result
|
2162
2182
|
end
|
2163
2183
|
rescue ::Gapic::Rest::Error => e
|
2164
2184
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2280,7 +2300,7 @@ module Google
|
|
2280
2300
|
@cloud_channel_service_stub.suspend_entitlement request, options do |result, operation|
|
2281
2301
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2282
2302
|
yield result, operation if block_given?
|
2283
|
-
|
2303
|
+
throw :response, result
|
2284
2304
|
end
|
2285
2305
|
rescue ::Gapic::Rest::Error => e
|
2286
2306
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2407,7 +2427,7 @@ module Google
|
|
2407
2427
|
@cloud_channel_service_stub.cancel_entitlement request, options do |result, operation|
|
2408
2428
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2409
2429
|
yield result, operation if block_given?
|
2410
|
-
|
2430
|
+
throw :response, result
|
2411
2431
|
end
|
2412
2432
|
rescue ::Gapic::Rest::Error => e
|
2413
2433
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2535,7 +2555,7 @@ module Google
|
|
2535
2555
|
@cloud_channel_service_stub.activate_entitlement request, options do |result, operation|
|
2536
2556
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2537
2557
|
yield result, operation if block_given?
|
2538
|
-
|
2558
|
+
throw :response, result
|
2539
2559
|
end
|
2540
2560
|
rescue ::Gapic::Rest::Error => e
|
2541
2561
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2675,7 +2695,7 @@ module Google
|
|
2675
2695
|
@cloud_channel_service_stub.transfer_entitlements request, options do |result, operation|
|
2676
2696
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2677
2697
|
yield result, operation if block_given?
|
2678
|
-
|
2698
|
+
throw :response, result
|
2679
2699
|
end
|
2680
2700
|
rescue ::Gapic::Rest::Error => e
|
2681
2701
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2807,7 +2827,7 @@ module Google
|
|
2807
2827
|
@cloud_channel_service_stub.transfer_entitlements_to_google request, options do |result, operation|
|
2808
2828
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2809
2829
|
yield result, operation if block_given?
|
2810
|
-
|
2830
|
+
throw :response, result
|
2811
2831
|
end
|
2812
2832
|
rescue ::Gapic::Rest::Error => e
|
2813
2833
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2916,7 +2936,7 @@ module Google
|
|
2916
2936
|
@cloud_channel_service_stub.list_channel_partner_links request, options do |result, operation|
|
2917
2937
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_channel_partner_links, "channel_partner_links", request, result, options
|
2918
2938
|
yield result, operation if block_given?
|
2919
|
-
|
2939
|
+
throw :response, result
|
2920
2940
|
end
|
2921
2941
|
rescue ::Gapic::Rest::Error => e
|
2922
2942
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3013,7 +3033,6 @@ module Google
|
|
3013
3033
|
|
3014
3034
|
@cloud_channel_service_stub.get_channel_partner_link request, options do |result, operation|
|
3015
3035
|
yield result, operation if block_given?
|
3016
|
-
return result
|
3017
3036
|
end
|
3018
3037
|
rescue ::Gapic::Rest::Error => e
|
3019
3038
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3120,7 +3139,6 @@ module Google
|
|
3120
3139
|
|
3121
3140
|
@cloud_channel_service_stub.create_channel_partner_link request, options do |result, operation|
|
3122
3141
|
yield result, operation if block_given?
|
3123
|
-
return result
|
3124
3142
|
end
|
3125
3143
|
rescue ::Gapic::Rest::Error => e
|
3126
3144
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3229,7 +3247,6 @@ module Google
|
|
3229
3247
|
|
3230
3248
|
@cloud_channel_service_stub.update_channel_partner_link request, options do |result, operation|
|
3231
3249
|
yield result, operation if block_given?
|
3232
|
-
return result
|
3233
3250
|
end
|
3234
3251
|
rescue ::Gapic::Rest::Error => e
|
3235
3252
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3326,7 +3343,6 @@ module Google
|
|
3326
3343
|
|
3327
3344
|
@cloud_channel_service_stub.get_customer_repricing_config request, options do |result, operation|
|
3328
3345
|
yield result, operation if block_given?
|
3329
|
-
return result
|
3330
3346
|
end
|
3331
3347
|
rescue ::Gapic::Rest::Error => e
|
3332
3348
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3456,7 +3472,7 @@ module Google
|
|
3456
3472
|
@cloud_channel_service_stub.list_customer_repricing_configs request, options do |result, operation|
|
3457
3473
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_customer_repricing_configs, "customer_repricing_configs", request, result, options
|
3458
3474
|
yield result, operation if block_given?
|
3459
|
-
|
3475
|
+
throw :response, result
|
3460
3476
|
end
|
3461
3477
|
rescue ::Gapic::Rest::Error => e
|
3462
3478
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3580,7 +3596,6 @@ module Google
|
|
3580
3596
|
|
3581
3597
|
@cloud_channel_service_stub.create_customer_repricing_config request, options do |result, operation|
|
3582
3598
|
yield result, operation if block_given?
|
3583
|
-
return result
|
3584
3599
|
end
|
3585
3600
|
rescue ::Gapic::Rest::Error => e
|
3586
3601
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3690,7 +3705,6 @@ module Google
|
|
3690
3705
|
|
3691
3706
|
@cloud_channel_service_stub.update_customer_repricing_config request, options do |result, operation|
|
3692
3707
|
yield result, operation if block_given?
|
3693
|
-
return result
|
3694
3708
|
end
|
3695
3709
|
rescue ::Gapic::Rest::Error => e
|
3696
3710
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3787,7 +3801,6 @@ module Google
|
|
3787
3801
|
|
3788
3802
|
@cloud_channel_service_stub.delete_customer_repricing_config request, options do |result, operation|
|
3789
3803
|
yield result, operation if block_given?
|
3790
|
-
return result
|
3791
3804
|
end
|
3792
3805
|
rescue ::Gapic::Rest::Error => e
|
3793
3806
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3884,7 +3897,6 @@ module Google
|
|
3884
3897
|
|
3885
3898
|
@cloud_channel_service_stub.get_channel_partner_repricing_config request, options do |result, operation|
|
3886
3899
|
yield result, operation if block_given?
|
3887
|
-
return result
|
3888
3900
|
end
|
3889
3901
|
rescue ::Gapic::Rest::Error => e
|
3890
3902
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4017,7 +4029,7 @@ module Google
|
|
4017
4029
|
@cloud_channel_service_stub.list_channel_partner_repricing_configs request, options do |result, operation|
|
4018
4030
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_channel_partner_repricing_configs, "channel_partner_repricing_configs", request, result, options
|
4019
4031
|
yield result, operation if block_given?
|
4020
|
-
|
4032
|
+
throw :response, result
|
4021
4033
|
end
|
4022
4034
|
rescue ::Gapic::Rest::Error => e
|
4023
4035
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4142,7 +4154,6 @@ module Google
|
|
4142
4154
|
|
4143
4155
|
@cloud_channel_service_stub.create_channel_partner_repricing_config request, options do |result, operation|
|
4144
4156
|
yield result, operation if block_given?
|
4145
|
-
return result
|
4146
4157
|
end
|
4147
4158
|
rescue ::Gapic::Rest::Error => e
|
4148
4159
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4252,7 +4263,6 @@ module Google
|
|
4252
4263
|
|
4253
4264
|
@cloud_channel_service_stub.update_channel_partner_repricing_config request, options do |result, operation|
|
4254
4265
|
yield result, operation if block_given?
|
4255
|
-
return result
|
4256
4266
|
end
|
4257
4267
|
rescue ::Gapic::Rest::Error => e
|
4258
4268
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4348,7 +4358,6 @@ module Google
|
|
4348
4358
|
|
4349
4359
|
@cloud_channel_service_stub.delete_channel_partner_repricing_config request, options do |result, operation|
|
4350
4360
|
yield result, operation if block_given?
|
4351
|
-
return result
|
4352
4361
|
end
|
4353
4362
|
rescue ::Gapic::Rest::Error => e
|
4354
4363
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4462,7 +4471,7 @@ module Google
|
|
4462
4471
|
@cloud_channel_service_stub.list_sku_groups request, options do |result, operation|
|
4463
4472
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_sku_groups, "sku_groups", request, result, options
|
4464
4473
|
yield result, operation if block_given?
|
4465
|
-
|
4474
|
+
throw :response, result
|
4466
4475
|
end
|
4467
4476
|
rescue ::Gapic::Rest::Error => e
|
4468
4477
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4575,7 +4584,7 @@ module Google
|
|
4575
4584
|
@cloud_channel_service_stub.list_sku_group_billable_skus request, options do |result, operation|
|
4576
4585
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_sku_group_billable_skus, "billable_skus", request, result, options
|
4577
4586
|
yield result, operation if block_given?
|
4578
|
-
|
4587
|
+
throw :response, result
|
4579
4588
|
end
|
4580
4589
|
rescue ::Gapic::Rest::Error => e
|
4581
4590
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4665,7 +4674,6 @@ module Google
|
|
4665
4674
|
|
4666
4675
|
@cloud_channel_service_stub.lookup_offer request, options do |result, operation|
|
4667
4676
|
yield result, operation if block_given?
|
4668
|
-
return result
|
4669
4677
|
end
|
4670
4678
|
rescue ::Gapic::Rest::Error => e
|
4671
4679
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4764,7 +4772,7 @@ module Google
|
|
4764
4772
|
@cloud_channel_service_stub.list_products request, options do |result, operation|
|
4765
4773
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_products, "products", request, result, options
|
4766
4774
|
yield result, operation if block_given?
|
4767
|
-
|
4775
|
+
throw :response, result
|
4768
4776
|
end
|
4769
4777
|
rescue ::Gapic::Rest::Error => e
|
4770
4778
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4868,7 +4876,7 @@ module Google
|
|
4868
4876
|
@cloud_channel_service_stub.list_skus request, options do |result, operation|
|
4869
4877
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_skus, "skus", request, result, options
|
4870
4878
|
yield result, operation if block_given?
|
4871
|
-
|
4879
|
+
throw :response, result
|
4872
4880
|
end
|
4873
4881
|
rescue ::Gapic::Rest::Error => e
|
4874
4882
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4978,7 +4986,7 @@ module Google
|
|
4978
4986
|
@cloud_channel_service_stub.list_offers request, options do |result, operation|
|
4979
4987
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_offers, "offers", request, result, options
|
4980
4988
|
yield result, operation if block_given?
|
4981
|
-
|
4989
|
+
throw :response, result
|
4982
4990
|
end
|
4983
4991
|
rescue ::Gapic::Rest::Error => e
|
4984
4992
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5085,7 +5093,7 @@ module Google
|
|
5085
5093
|
@cloud_channel_service_stub.list_purchasable_skus request, options do |result, operation|
|
5086
5094
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_purchasable_skus, "purchasable_skus", request, result, options
|
5087
5095
|
yield result, operation if block_given?
|
5088
|
-
|
5096
|
+
throw :response, result
|
5089
5097
|
end
|
5090
5098
|
rescue ::Gapic::Rest::Error => e
|
5091
5099
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5195,7 +5203,7 @@ module Google
|
|
5195
5203
|
@cloud_channel_service_stub.list_purchasable_offers request, options do |result, operation|
|
5196
5204
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_purchasable_offers, "purchasable_offers", request, result, options
|
5197
5205
|
yield result, operation if block_given?
|
5198
|
-
|
5206
|
+
throw :response, result
|
5199
5207
|
end
|
5200
5208
|
rescue ::Gapic::Rest::Error => e
|
5201
5209
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5289,7 +5297,6 @@ module Google
|
|
5289
5297
|
|
5290
5298
|
@cloud_channel_service_stub.query_eligible_billing_accounts request, options do |result, operation|
|
5291
5299
|
yield result, operation if block_given?
|
5292
|
-
return result
|
5293
5300
|
end
|
5294
5301
|
rescue ::Gapic::Rest::Error => e
|
5295
5302
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5388,7 +5395,6 @@ module Google
|
|
5388
5395
|
|
5389
5396
|
@cloud_channel_service_stub.register_subscriber request, options do |result, operation|
|
5390
5397
|
yield result, operation if block_given?
|
5391
|
-
return result
|
5392
5398
|
end
|
5393
5399
|
rescue ::Gapic::Rest::Error => e
|
5394
5400
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5490,7 +5496,6 @@ module Google
|
|
5490
5496
|
|
5491
5497
|
@cloud_channel_service_stub.unregister_subscriber request, options do |result, operation|
|
5492
5498
|
yield result, operation if block_given?
|
5493
|
-
return result
|
5494
5499
|
end
|
5495
5500
|
rescue ::Gapic::Rest::Error => e
|
5496
5501
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5597,7 +5602,7 @@ module Google
|
|
5597
5602
|
@cloud_channel_service_stub.list_subscribers request, options do |result, operation|
|
5598
5603
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_subscribers, "service_accounts", request, result, options
|
5599
5604
|
yield result, operation if block_given?
|
5600
|
-
|
5605
|
+
throw :response, result
|
5601
5606
|
end
|
5602
5607
|
rescue ::Gapic::Rest::Error => e
|
5603
5608
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5716,7 +5721,7 @@ module Google
|
|
5716
5721
|
@cloud_channel_service_stub.list_entitlement_changes request, options do |result, operation|
|
5717
5722
|
result = ::Gapic::Rest::PagedEnumerable.new @cloud_channel_service_stub, :list_entitlement_changes, "entitlement_changes", request, result, options
|
5718
5723
|
yield result, operation if block_given?
|
5719
|
-
|
5724
|
+
throw :response, result
|
5720
5725
|
end
|
5721
5726
|
rescue ::Gapic::Rest::Error => e
|
5722
5727
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5796,6 +5801,11 @@ module Google
|
|
5796
5801
|
# default endpoint URL. The default value of nil uses the environment
|
5797
5802
|
# universe (usually the default "googleapis.com" universe).
|
5798
5803
|
# @return [::String,nil]
|
5804
|
+
# @!attribute [rw] logger
|
5805
|
+
# A custom logger to use for request/response debug logging, or the value
|
5806
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
5807
|
+
# explicitly disable logging.
|
5808
|
+
# @return [::Logger,:default,nil]
|
5799
5809
|
#
|
5800
5810
|
class Configuration
|
5801
5811
|
extend ::Gapic::Config
|
@@ -5817,6 +5827,7 @@ module Google
|
|
5817
5827
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
5818
5828
|
config_attr :quota_project, nil, ::String, nil
|
5819
5829
|
config_attr :universe_domain, nil, ::String, nil
|
5830
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
5820
5831
|
|
5821
5832
|
# @private
|
5822
5833
|
def initialize parent_config = nil
|