google-cloud-channel-v1 0.7.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,13 +59,12 @@ module Google
59
59
  # See {::Google::Cloud::Channel::V1::CloudChannelService::Client::Configuration}
60
60
  # for a description of the configuration fields.
61
61
  #
62
- # ## Example
62
+ # @example
63
63
  #
64
- # To modify the configuration for all CloudChannelService clients:
65
- #
66
- # ::Google::Cloud::Channel::V1::CloudChannelService::Client.configure do |config|
67
- # config.timeout = 10.0
68
- # end
64
+ # # Modify the configuration for all CloudChannelService clients
65
+ # ::Google::Cloud::Channel::V1::CloudChannelService::Client.configure do |config|
66
+ # config.timeout = 10.0
67
+ # end
69
68
  #
70
69
  # @yield [config] Configure the Client client.
71
70
  # @yieldparam config [Client::Configuration]
@@ -85,10 +84,7 @@ module Google
85
84
 
86
85
  default_config.timeout = 60.0
87
86
  default_config.retry_policy = {
88
- initial_delay: 1.0,
89
- max_delay: 10.0,
90
- multiplier: 1.3,
91
- retry_codes: [14]
87
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
92
88
  }
93
89
 
94
90
  default_config.rpcs.provision_cloud_identity.timeout = 60.0
@@ -142,19 +138,15 @@ module Google
142
138
  ##
143
139
  # Create a new CloudChannelService client object.
144
140
  #
145
- # ## Examples
146
- #
147
- # To create a new CloudChannelService client with the default
148
- # configuration:
149
- #
150
- # client = ::Google::Cloud::Channel::V1::CloudChannelService::Client.new
141
+ # @example
151
142
  #
152
- # To create a new CloudChannelService client with a custom
153
- # configuration:
143
+ # # Create a client using the default configuration
144
+ # client = ::Google::Cloud::Channel::V1::CloudChannelService::Client.new
154
145
  #
155
- # client = ::Google::Cloud::Channel::V1::CloudChannelService::Client.new do |config|
156
- # config.timeout = 10.0
157
- # end
146
+ # # Create a client using a custom configuration
147
+ # client = ::Google::Cloud::Channel::V1::CloudChannelService::Client.new do |config|
148
+ # config.timeout = 10.0
149
+ # end
158
150
  #
159
151
  # @yield [config] Configure the CloudChannelService client.
160
152
  # @yieldparam config [Client::Configuration]
@@ -174,14 +166,13 @@ module Google
174
166
 
175
167
  # Create credentials
176
168
  credentials = @config.credentials
177
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
169
+ # Use self-signed JWT if the endpoint is unchanged from default,
178
170
  # but only if the default endpoint does not have a region prefix.
179
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
180
- @config.endpoint == Client.configure.endpoint &&
171
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
181
172
  !@config.endpoint.split(".").first.include?("-")
182
173
  credentials ||= Credentials.default scope: @config.scope,
183
174
  enable_self_signed_jwt: enable_self_signed_jwt
184
- if credentials.is_a?(String) || credentials.is_a?(Hash)
175
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
185
176
  credentials = Credentials.new credentials, scope: @config.scope
186
177
  end
187
178
  @quota_project_id = @config.quota_project
@@ -275,16 +266,20 @@ module Google
275
266
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
276
267
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
277
268
 
278
- header_params = {
279
- "parent" => request.parent
280
- }
269
+ header_params = {}
270
+ if request.parent
271
+ header_params["parent"] = request.parent
272
+ end
273
+
281
274
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
282
275
  metadata[:"x-goog-request-params"] ||= request_params_header
283
276
 
284
277
  options.apply_defaults timeout: @config.rpcs.list_customers.timeout,
285
278
  metadata: metadata,
286
279
  retry_policy: @config.rpcs.list_customers.retry_policy
287
- options.apply_defaults metadata: @config.metadata,
280
+
281
+ options.apply_defaults timeout: @config.timeout,
282
+ metadata: @config.metadata,
288
283
  retry_policy: @config.retry_policy
289
284
 
290
285
  @cloud_channel_service_stub.call_rpc :list_customers, request, options: options do |response, operation|
@@ -354,16 +349,20 @@ module Google
354
349
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
355
350
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
356
351
 
357
- header_params = {
358
- "name" => request.name
359
- }
352
+ header_params = {}
353
+ if request.name
354
+ header_params["name"] = request.name
355
+ end
356
+
360
357
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
361
358
  metadata[:"x-goog-request-params"] ||= request_params_header
362
359
 
363
360
  options.apply_defaults timeout: @config.rpcs.get_customer.timeout,
364
361
  metadata: metadata,
365
362
  retry_policy: @config.rpcs.get_customer.retry_policy
366
- options.apply_defaults metadata: @config.metadata,
363
+
364
+ options.apply_defaults timeout: @config.timeout,
365
+ metadata: @config.metadata,
367
366
  retry_policy: @config.retry_policy
368
367
 
369
368
  @cloud_channel_service_stub.call_rpc :get_customer, request, options: options do |response, operation|
@@ -438,16 +437,20 @@ module Google
438
437
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
439
438
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
440
439
 
441
- header_params = {
442
- "parent" => request.parent
443
- }
440
+ header_params = {}
441
+ if request.parent
442
+ header_params["parent"] = request.parent
443
+ end
444
+
444
445
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
445
446
  metadata[:"x-goog-request-params"] ||= request_params_header
446
447
 
447
448
  options.apply_defaults timeout: @config.rpcs.check_cloud_identity_accounts_exist.timeout,
448
449
  metadata: metadata,
449
450
  retry_policy: @config.rpcs.check_cloud_identity_accounts_exist.retry_policy
450
- options.apply_defaults metadata: @config.metadata,
451
+
452
+ options.apply_defaults timeout: @config.timeout,
453
+ metadata: @config.metadata,
451
454
  retry_policy: @config.retry_policy
452
455
 
453
456
  @cloud_channel_service_stub.call_rpc :check_cloud_identity_accounts_exist, request, options: options do |response, operation|
@@ -519,16 +522,20 @@ module Google
519
522
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
520
523
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
521
524
 
522
- header_params = {
523
- "parent" => request.parent
524
- }
525
+ header_params = {}
526
+ if request.parent
527
+ header_params["parent"] = request.parent
528
+ end
529
+
525
530
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
526
531
  metadata[:"x-goog-request-params"] ||= request_params_header
527
532
 
528
533
  options.apply_defaults timeout: @config.rpcs.create_customer.timeout,
529
534
  metadata: metadata,
530
535
  retry_policy: @config.rpcs.create_customer.retry_policy
531
- options.apply_defaults metadata: @config.metadata,
536
+
537
+ options.apply_defaults timeout: @config.timeout,
538
+ metadata: @config.metadata,
532
539
  retry_policy: @config.retry_policy
533
540
 
534
541
  @cloud_channel_service_stub.call_rpc :create_customer, request, options: options do |response, operation|
@@ -599,16 +606,20 @@ module Google
599
606
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
600
607
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
601
608
 
602
- header_params = {
603
- "customer.name" => request.customer.name
604
- }
609
+ header_params = {}
610
+ if request.customer&.name
611
+ header_params["customer.name"] = request.customer.name
612
+ end
613
+
605
614
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
606
615
  metadata[:"x-goog-request-params"] ||= request_params_header
607
616
 
608
617
  options.apply_defaults timeout: @config.rpcs.update_customer.timeout,
609
618
  metadata: metadata,
610
619
  retry_policy: @config.rpcs.update_customer.retry_policy
611
- options.apply_defaults metadata: @config.metadata,
620
+
621
+ options.apply_defaults timeout: @config.timeout,
622
+ metadata: @config.metadata,
612
623
  retry_policy: @config.retry_policy
613
624
 
614
625
  @cloud_channel_service_stub.call_rpc :update_customer, request, options: options do |response, operation|
@@ -673,16 +684,20 @@ module Google
673
684
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
674
685
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
675
686
 
676
- header_params = {
677
- "name" => request.name
678
- }
687
+ header_params = {}
688
+ if request.name
689
+ header_params["name"] = request.name
690
+ end
691
+
679
692
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
680
693
  metadata[:"x-goog-request-params"] ||= request_params_header
681
694
 
682
695
  options.apply_defaults timeout: @config.rpcs.delete_customer.timeout,
683
696
  metadata: metadata,
684
697
  retry_policy: @config.rpcs.delete_customer.retry_policy
685
- options.apply_defaults metadata: @config.metadata,
698
+
699
+ options.apply_defaults timeout: @config.timeout,
700
+ metadata: @config.metadata,
686
701
  retry_policy: @config.retry_policy
687
702
 
688
703
  @cloud_channel_service_stub.call_rpc :delete_customer, request, options: options do |response, operation|
@@ -693,6 +708,115 @@ module Google
693
708
  raise ::Google::Cloud::Error.from_error(e)
694
709
  end
695
710
 
711
+ ##
712
+ # Imports a {::Google::Cloud::Channel::V1::Customer Customer} from the Cloud Identity associated with the provided
713
+ # Cloud Identity ID or domain before a TransferEntitlements call. If a
714
+ # linked Customer already exists and overwrite_if_exists is true, it will
715
+ # update that Customer's data.
716
+ #
717
+ # Possible error codes:
718
+ #
719
+ # * PERMISSION_DENIED: The reseller account making the request is different
720
+ # from the reseller account in the API request.
721
+ # * NOT_FOUND: Cloud Identity doesn't exist or was deleted.
722
+ # * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is
723
+ # expired or invalid.
724
+ # * ALREADY_EXISTS: A customer already exists and has conflicting critical
725
+ # fields. Requires an overwrite.
726
+ #
727
+ # Return value:
728
+ # The {::Google::Cloud::Channel::V1::Customer Customer}.
729
+ #
730
+ # @overload import_customer(request, options = nil)
731
+ # Pass arguments to `import_customer` via a request object, either of type
732
+ # {::Google::Cloud::Channel::V1::ImportCustomerRequest} or an equivalent Hash.
733
+ #
734
+ # @param request [::Google::Cloud::Channel::V1::ImportCustomerRequest, ::Hash]
735
+ # A request object representing the call parameters. Required. To specify no
736
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
737
+ # @param options [::Gapic::CallOptions, ::Hash]
738
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
739
+ #
740
+ # @overload import_customer(domain: nil, cloud_identity_id: nil, parent: nil, auth_token: nil, overwrite_if_exists: nil, channel_partner_id: nil, customer: nil)
741
+ # Pass arguments to `import_customer` via keyword arguments. Note that at
742
+ # least one keyword argument is required. To specify no parameters, or to keep all
743
+ # the default parameter values, pass an empty Hash as a request object (see above).
744
+ #
745
+ # @param domain [::String]
746
+ # Required. Customer domain.
747
+ # @param cloud_identity_id [::String]
748
+ # Required. Customer's Cloud Identity ID
749
+ # @param parent [::String]
750
+ # Required. The resource name of the reseller's account.
751
+ # Parent takes the format: accounts/\\{account_id} or
752
+ # accounts/\\{account_id}/channelPartnerLinks/\\{channel_partner_id}
753
+ # @param auth_token [::String]
754
+ # Optional. The super admin of the resold customer generates this token to
755
+ # authorize a reseller to access their Cloud Identity and purchase
756
+ # entitlements on their behalf. You can omit this token after authorization.
757
+ # See https://support.google.com/a/answer/7643790 for more details.
758
+ # @param overwrite_if_exists [::Boolean]
759
+ # Required. Choose to overwrite an existing customer if found.
760
+ # This must be set to true if there is an existing customer with a
761
+ # conflicting region code or domain.
762
+ # @param channel_partner_id [::String]
763
+ # Optional. Cloud Identity ID of a channel partner who will be the direct reseller for
764
+ # the customer's order. This field is required for 2-tier transfer scenarios
765
+ # and can be provided via the request Parent binding as well.
766
+ # @param customer [::String]
767
+ # Optional. Specifies the customer that will receive imported Cloud Identity
768
+ # information.
769
+ # Format: accounts/\\{account_id}/customers/\\{customer_id}
770
+ #
771
+ # @yield [response, operation] Access the result along with the RPC operation
772
+ # @yieldparam response [::Google::Cloud::Channel::V1::Customer]
773
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
774
+ #
775
+ # @return [::Google::Cloud::Channel::V1::Customer]
776
+ #
777
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
778
+ #
779
+ def import_customer request, options = nil
780
+ raise ::ArgumentError, "request must be provided" if request.nil?
781
+
782
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Channel::V1::ImportCustomerRequest
783
+
784
+ # Converts hash and nil to an options object
785
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
786
+
787
+ # Customize the options with defaults
788
+ metadata = @config.rpcs.import_customer.metadata.to_h
789
+
790
+ # Set x-goog-api-client and x-goog-user-project headers
791
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
792
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
793
+ gapic_version: ::Google::Cloud::Channel::V1::VERSION
794
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
795
+
796
+ header_params = {}
797
+ if request.parent
798
+ header_params["parent"] = request.parent
799
+ end
800
+
801
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
802
+ metadata[:"x-goog-request-params"] ||= request_params_header
803
+
804
+ options.apply_defaults timeout: @config.rpcs.import_customer.timeout,
805
+ metadata: metadata,
806
+ retry_policy: @config.rpcs.import_customer.retry_policy
807
+
808
+ options.apply_defaults timeout: @config.timeout,
809
+ metadata: @config.metadata,
810
+ retry_policy: @config.retry_policy
811
+
812
+ @cloud_channel_service_stub.call_rpc :import_customer, request, options: options do |response, operation|
813
+ yield response, operation if block_given?
814
+ return response
815
+ end
816
+ rescue ::GRPC::BadStatus => e
817
+ raise ::Google::Cloud::Error.from_error(e)
818
+ end
819
+
696
820
  ##
697
821
  # Creates a Cloud Identity for the given customer using the customer's
698
822
  # information, or the information provided here.
@@ -766,16 +890,20 @@ module Google
766
890
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
767
891
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
768
892
 
769
- header_params = {
770
- "customer" => request.customer
771
- }
893
+ header_params = {}
894
+ if request.customer
895
+ header_params["customer"] = request.customer
896
+ end
897
+
772
898
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
773
899
  metadata[:"x-goog-request-params"] ||= request_params_header
774
900
 
775
901
  options.apply_defaults timeout: @config.rpcs.provision_cloud_identity.timeout,
776
902
  metadata: metadata,
777
903
  retry_policy: @config.rpcs.provision_cloud_identity.retry_policy
778
- options.apply_defaults metadata: @config.metadata,
904
+
905
+ options.apply_defaults timeout: @config.timeout,
906
+ metadata: @config.metadata,
779
907
  retry_policy: @config.retry_policy
780
908
 
781
909
  @cloud_channel_service_stub.call_rpc :provision_cloud_identity, request, options: options do |response, operation|
@@ -852,16 +980,20 @@ module Google
852
980
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
853
981
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
854
982
 
855
- header_params = {
856
- "parent" => request.parent
857
- }
983
+ header_params = {}
984
+ if request.parent
985
+ header_params["parent"] = request.parent
986
+ end
987
+
858
988
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
859
989
  metadata[:"x-goog-request-params"] ||= request_params_header
860
990
 
861
991
  options.apply_defaults timeout: @config.rpcs.list_entitlements.timeout,
862
992
  metadata: metadata,
863
993
  retry_policy: @config.rpcs.list_entitlements.retry_policy
864
- options.apply_defaults metadata: @config.metadata,
994
+
995
+ options.apply_defaults timeout: @config.timeout,
996
+ metadata: @config.metadata,
865
997
  retry_policy: @config.retry_policy
866
998
 
867
999
  @cloud_channel_service_stub.call_rpc :list_entitlements, request, options: options do |response, operation|
@@ -965,16 +1097,20 @@ module Google
965
1097
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
966
1098
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
967
1099
 
968
- header_params = {
969
- "parent" => request.parent
970
- }
1100
+ header_params = {}
1101
+ if request.parent
1102
+ header_params["parent"] = request.parent
1103
+ end
1104
+
971
1105
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
972
1106
  metadata[:"x-goog-request-params"] ||= request_params_header
973
1107
 
974
1108
  options.apply_defaults timeout: @config.rpcs.list_transferable_skus.timeout,
975
1109
  metadata: metadata,
976
1110
  retry_policy: @config.rpcs.list_transferable_skus.retry_policy
977
- options.apply_defaults metadata: @config.metadata,
1111
+
1112
+ options.apply_defaults timeout: @config.timeout,
1113
+ metadata: @config.metadata,
978
1114
  retry_policy: @config.retry_policy
979
1115
 
980
1116
  @cloud_channel_service_stub.call_rpc :list_transferable_skus, request, options: options do |response, operation|
@@ -1069,16 +1205,20 @@ module Google
1069
1205
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1070
1206
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1071
1207
 
1072
- header_params = {
1073
- "parent" => request.parent
1074
- }
1208
+ header_params = {}
1209
+ if request.parent
1210
+ header_params["parent"] = request.parent
1211
+ end
1212
+
1075
1213
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1076
1214
  metadata[:"x-goog-request-params"] ||= request_params_header
1077
1215
 
1078
1216
  options.apply_defaults timeout: @config.rpcs.list_transferable_offers.timeout,
1079
1217
  metadata: metadata,
1080
1218
  retry_policy: @config.rpcs.list_transferable_offers.retry_policy
1081
- options.apply_defaults metadata: @config.metadata,
1219
+
1220
+ options.apply_defaults timeout: @config.timeout,
1221
+ metadata: @config.metadata,
1082
1222
  retry_policy: @config.retry_policy
1083
1223
 
1084
1224
  @cloud_channel_service_stub.call_rpc :list_transferable_offers, request, options: options do |response, operation|
@@ -1147,16 +1287,20 @@ module Google
1147
1287
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1148
1288
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1149
1289
 
1150
- header_params = {
1151
- "name" => request.name
1152
- }
1290
+ header_params = {}
1291
+ if request.name
1292
+ header_params["name"] = request.name
1293
+ end
1294
+
1153
1295
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1154
1296
  metadata[:"x-goog-request-params"] ||= request_params_header
1155
1297
 
1156
1298
  options.apply_defaults timeout: @config.rpcs.get_entitlement.timeout,
1157
1299
  metadata: metadata,
1158
1300
  retry_policy: @config.rpcs.get_entitlement.retry_policy
1159
- options.apply_defaults metadata: @config.metadata,
1301
+
1302
+ options.apply_defaults timeout: @config.timeout,
1303
+ metadata: @config.metadata,
1160
1304
  retry_policy: @config.retry_policy
1161
1305
 
1162
1306
  @cloud_channel_service_stub.call_rpc :get_entitlement, request, options: options do |response, operation|
@@ -1264,16 +1408,20 @@ module Google
1264
1408
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1265
1409
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1266
1410
 
1267
- header_params = {
1268
- "parent" => request.parent
1269
- }
1411
+ header_params = {}
1412
+ if request.parent
1413
+ header_params["parent"] = request.parent
1414
+ end
1415
+
1270
1416
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1271
1417
  metadata[:"x-goog-request-params"] ||= request_params_header
1272
1418
 
1273
1419
  options.apply_defaults timeout: @config.rpcs.create_entitlement.timeout,
1274
1420
  metadata: metadata,
1275
1421
  retry_policy: @config.rpcs.create_entitlement.retry_policy
1276
- options.apply_defaults metadata: @config.metadata,
1422
+
1423
+ options.apply_defaults timeout: @config.timeout,
1424
+ metadata: @config.metadata,
1277
1425
  retry_policy: @config.retry_policy
1278
1426
 
1279
1427
  @cloud_channel_service_stub.call_rpc :create_entitlement, request, options: options do |response, operation|
@@ -1371,16 +1519,20 @@ module Google
1371
1519
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1372
1520
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1373
1521
 
1374
- header_params = {
1375
- "name" => request.name
1376
- }
1522
+ header_params = {}
1523
+ if request.name
1524
+ header_params["name"] = request.name
1525
+ end
1526
+
1377
1527
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1378
1528
  metadata[:"x-goog-request-params"] ||= request_params_header
1379
1529
 
1380
1530
  options.apply_defaults timeout: @config.rpcs.change_parameters.timeout,
1381
1531
  metadata: metadata,
1382
1532
  retry_policy: @config.rpcs.change_parameters.retry_policy
1383
- options.apply_defaults metadata: @config.metadata,
1533
+
1534
+ options.apply_defaults timeout: @config.timeout,
1535
+ metadata: @config.metadata,
1384
1536
  retry_policy: @config.retry_policy
1385
1537
 
1386
1538
  @cloud_channel_service_stub.call_rpc :change_parameters, request, options: options do |response, operation|
@@ -1476,16 +1628,20 @@ module Google
1476
1628
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1477
1629
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1478
1630
 
1479
- header_params = {
1480
- "name" => request.name
1481
- }
1631
+ header_params = {}
1632
+ if request.name
1633
+ header_params["name"] = request.name
1634
+ end
1635
+
1482
1636
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1483
1637
  metadata[:"x-goog-request-params"] ||= request_params_header
1484
1638
 
1485
1639
  options.apply_defaults timeout: @config.rpcs.change_renewal_settings.timeout,
1486
1640
  metadata: metadata,
1487
1641
  retry_policy: @config.rpcs.change_renewal_settings.retry_policy
1488
- options.apply_defaults metadata: @config.metadata,
1642
+
1643
+ options.apply_defaults timeout: @config.timeout,
1644
+ metadata: @config.metadata,
1489
1645
  retry_policy: @config.retry_policy
1490
1646
 
1491
1647
  @cloud_channel_service_stub.call_rpc :change_renewal_settings, request, options: options do |response, operation|
@@ -1584,16 +1740,20 @@ module Google
1584
1740
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1585
1741
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1586
1742
 
1587
- header_params = {
1588
- "name" => request.name
1589
- }
1743
+ header_params = {}
1744
+ if request.name
1745
+ header_params["name"] = request.name
1746
+ end
1747
+
1590
1748
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1591
1749
  metadata[:"x-goog-request-params"] ||= request_params_header
1592
1750
 
1593
1751
  options.apply_defaults timeout: @config.rpcs.change_offer.timeout,
1594
1752
  metadata: metadata,
1595
1753
  retry_policy: @config.rpcs.change_offer.retry_policy
1596
- options.apply_defaults metadata: @config.metadata,
1754
+
1755
+ options.apply_defaults timeout: @config.timeout,
1756
+ metadata: @config.metadata,
1597
1757
  retry_policy: @config.retry_policy
1598
1758
 
1599
1759
  @cloud_channel_service_stub.call_rpc :change_offer, request, options: options do |response, operation|
@@ -1688,16 +1848,20 @@ module Google
1688
1848
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1689
1849
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1690
1850
 
1691
- header_params = {
1692
- "name" => request.name
1693
- }
1851
+ header_params = {}
1852
+ if request.name
1853
+ header_params["name"] = request.name
1854
+ end
1855
+
1694
1856
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1695
1857
  metadata[:"x-goog-request-params"] ||= request_params_header
1696
1858
 
1697
1859
  options.apply_defaults timeout: @config.rpcs.start_paid_service.timeout,
1698
1860
  metadata: metadata,
1699
1861
  retry_policy: @config.rpcs.start_paid_service.retry_policy
1700
- options.apply_defaults metadata: @config.metadata,
1862
+
1863
+ options.apply_defaults timeout: @config.timeout,
1864
+ metadata: @config.metadata,
1701
1865
  retry_policy: @config.retry_policy
1702
1866
 
1703
1867
  @cloud_channel_service_stub.call_rpc :start_paid_service, request, options: options do |response, operation|
@@ -1789,16 +1953,20 @@ module Google
1789
1953
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1790
1954
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1791
1955
 
1792
- header_params = {
1793
- "name" => request.name
1794
- }
1956
+ header_params = {}
1957
+ if request.name
1958
+ header_params["name"] = request.name
1959
+ end
1960
+
1795
1961
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1796
1962
  metadata[:"x-goog-request-params"] ||= request_params_header
1797
1963
 
1798
1964
  options.apply_defaults timeout: @config.rpcs.suspend_entitlement.timeout,
1799
1965
  metadata: metadata,
1800
1966
  retry_policy: @config.rpcs.suspend_entitlement.retry_policy
1801
- options.apply_defaults metadata: @config.metadata,
1967
+
1968
+ options.apply_defaults timeout: @config.timeout,
1969
+ metadata: @config.metadata,
1802
1970
  retry_policy: @config.retry_policy
1803
1971
 
1804
1972
  @cloud_channel_service_stub.call_rpc :suspend_entitlement, request, options: options do |response, operation|
@@ -1895,16 +2063,20 @@ module Google
1895
2063
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
1896
2064
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1897
2065
 
1898
- header_params = {
1899
- "name" => request.name
1900
- }
2066
+ header_params = {}
2067
+ if request.name
2068
+ header_params["name"] = request.name
2069
+ end
2070
+
1901
2071
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1902
2072
  metadata[:"x-goog-request-params"] ||= request_params_header
1903
2073
 
1904
2074
  options.apply_defaults timeout: @config.rpcs.cancel_entitlement.timeout,
1905
2075
  metadata: metadata,
1906
2076
  retry_policy: @config.rpcs.cancel_entitlement.retry_policy
1907
- options.apply_defaults metadata: @config.metadata,
2077
+
2078
+ options.apply_defaults timeout: @config.timeout,
2079
+ metadata: @config.metadata,
1908
2080
  retry_policy: @config.retry_policy
1909
2081
 
1910
2082
  @cloud_channel_service_stub.call_rpc :cancel_entitlement, request, options: options do |response, operation|
@@ -2002,16 +2174,20 @@ module Google
2002
2174
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2003
2175
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2004
2176
 
2005
- header_params = {
2006
- "name" => request.name
2007
- }
2177
+ header_params = {}
2178
+ if request.name
2179
+ header_params["name"] = request.name
2180
+ end
2181
+
2008
2182
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2009
2183
  metadata[:"x-goog-request-params"] ||= request_params_header
2010
2184
 
2011
2185
  options.apply_defaults timeout: @config.rpcs.activate_entitlement.timeout,
2012
2186
  metadata: metadata,
2013
2187
  retry_policy: @config.rpcs.activate_entitlement.retry_policy
2014
- options.apply_defaults metadata: @config.metadata,
2188
+
2189
+ options.apply_defaults timeout: @config.timeout,
2190
+ metadata: @config.metadata,
2015
2191
  retry_policy: @config.retry_policy
2016
2192
 
2017
2193
  @cloud_channel_service_stub.call_rpc :activate_entitlement, request, options: options do |response, operation|
@@ -2118,16 +2294,20 @@ module Google
2118
2294
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2119
2295
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2120
2296
 
2121
- header_params = {
2122
- "parent" => request.parent
2123
- }
2297
+ header_params = {}
2298
+ if request.parent
2299
+ header_params["parent"] = request.parent
2300
+ end
2301
+
2124
2302
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2125
2303
  metadata[:"x-goog-request-params"] ||= request_params_header
2126
2304
 
2127
2305
  options.apply_defaults timeout: @config.rpcs.transfer_entitlements.timeout,
2128
2306
  metadata: metadata,
2129
2307
  retry_policy: @config.rpcs.transfer_entitlements.retry_policy
2130
- options.apply_defaults metadata: @config.metadata,
2308
+
2309
+ options.apply_defaults timeout: @config.timeout,
2310
+ metadata: @config.metadata,
2131
2311
  retry_policy: @config.retry_policy
2132
2312
 
2133
2313
  @cloud_channel_service_stub.call_rpc :transfer_entitlements, request, options: options do |response, operation|
@@ -2229,16 +2409,20 @@ module Google
2229
2409
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2230
2410
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2231
2411
 
2232
- header_params = {
2233
- "parent" => request.parent
2234
- }
2412
+ header_params = {}
2413
+ if request.parent
2414
+ header_params["parent"] = request.parent
2415
+ end
2416
+
2235
2417
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2236
2418
  metadata[:"x-goog-request-params"] ||= request_params_header
2237
2419
 
2238
2420
  options.apply_defaults timeout: @config.rpcs.transfer_entitlements_to_google.timeout,
2239
2421
  metadata: metadata,
2240
2422
  retry_policy: @config.rpcs.transfer_entitlements_to_google.retry_policy
2241
- options.apply_defaults metadata: @config.metadata,
2423
+
2424
+ options.apply_defaults timeout: @config.timeout,
2425
+ metadata: @config.metadata,
2242
2426
  retry_policy: @config.retry_policy
2243
2427
 
2244
2428
  @cloud_channel_service_stub.call_rpc :transfer_entitlements_to_google, request, options: options do |response, operation|
@@ -2319,16 +2503,20 @@ module Google
2319
2503
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2320
2504
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2321
2505
 
2322
- header_params = {
2323
- "parent" => request.parent
2324
- }
2506
+ header_params = {}
2507
+ if request.parent
2508
+ header_params["parent"] = request.parent
2509
+ end
2510
+
2325
2511
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2326
2512
  metadata[:"x-goog-request-params"] ||= request_params_header
2327
2513
 
2328
2514
  options.apply_defaults timeout: @config.rpcs.list_channel_partner_links.timeout,
2329
2515
  metadata: metadata,
2330
2516
  retry_policy: @config.rpcs.list_channel_partner_links.retry_policy
2331
- options.apply_defaults metadata: @config.metadata,
2517
+
2518
+ options.apply_defaults timeout: @config.timeout,
2519
+ metadata: @config.metadata,
2332
2520
  retry_policy: @config.retry_policy
2333
2521
 
2334
2522
  @cloud_channel_service_stub.call_rpc :list_channel_partner_links, request, options: options do |response, operation|
@@ -2402,16 +2590,20 @@ module Google
2402
2590
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2403
2591
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2404
2592
 
2405
- header_params = {
2406
- "name" => request.name
2407
- }
2593
+ header_params = {}
2594
+ if request.name
2595
+ header_params["name"] = request.name
2596
+ end
2597
+
2408
2598
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2409
2599
  metadata[:"x-goog-request-params"] ||= request_params_header
2410
2600
 
2411
2601
  options.apply_defaults timeout: @config.rpcs.get_channel_partner_link.timeout,
2412
2602
  metadata: metadata,
2413
2603
  retry_policy: @config.rpcs.get_channel_partner_link.retry_policy
2414
- options.apply_defaults metadata: @config.metadata,
2604
+
2605
+ options.apply_defaults timeout: @config.timeout,
2606
+ metadata: @config.metadata,
2415
2607
  retry_policy: @config.retry_policy
2416
2608
 
2417
2609
  @cloud_channel_service_stub.call_rpc :get_channel_partner_link, request, options: options do |response, operation|
@@ -2495,16 +2687,20 @@ module Google
2495
2687
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2496
2688
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2497
2689
 
2498
- header_params = {
2499
- "parent" => request.parent
2500
- }
2690
+ header_params = {}
2691
+ if request.parent
2692
+ header_params["parent"] = request.parent
2693
+ end
2694
+
2501
2695
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2502
2696
  metadata[:"x-goog-request-params"] ||= request_params_header
2503
2697
 
2504
2698
  options.apply_defaults timeout: @config.rpcs.create_channel_partner_link.timeout,
2505
2699
  metadata: metadata,
2506
2700
  retry_policy: @config.rpcs.create_channel_partner_link.retry_policy
2507
- options.apply_defaults metadata: @config.metadata,
2701
+
2702
+ options.apply_defaults timeout: @config.timeout,
2703
+ metadata: @config.metadata,
2508
2704
  retry_policy: @config.retry_policy
2509
2705
 
2510
2706
  @cloud_channel_service_stub.call_rpc :create_channel_partner_link, request, options: options do |response, operation|
@@ -2590,16 +2786,20 @@ module Google
2590
2786
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2591
2787
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2592
2788
 
2593
- header_params = {
2594
- "name" => request.name
2595
- }
2789
+ header_params = {}
2790
+ if request.name
2791
+ header_params["name"] = request.name
2792
+ end
2793
+
2596
2794
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2597
2795
  metadata[:"x-goog-request-params"] ||= request_params_header
2598
2796
 
2599
2797
  options.apply_defaults timeout: @config.rpcs.update_channel_partner_link.timeout,
2600
2798
  metadata: metadata,
2601
2799
  retry_policy: @config.rpcs.update_channel_partner_link.retry_policy
2602
- options.apply_defaults metadata: @config.metadata,
2800
+
2801
+ options.apply_defaults timeout: @config.timeout,
2802
+ metadata: @config.metadata,
2603
2803
  retry_policy: @config.retry_policy
2604
2804
 
2605
2805
  @cloud_channel_service_stub.call_rpc :update_channel_partner_link, request, options: options do |response, operation|
@@ -2667,16 +2867,20 @@ module Google
2667
2867
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2668
2868
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2669
2869
 
2670
- header_params = {
2671
- "entitlement" => request.entitlement
2672
- }
2870
+ header_params = {}
2871
+ if request.entitlement
2872
+ header_params["entitlement"] = request.entitlement
2873
+ end
2874
+
2673
2875
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2674
2876
  metadata[:"x-goog-request-params"] ||= request_params_header
2675
2877
 
2676
2878
  options.apply_defaults timeout: @config.rpcs.lookup_offer.timeout,
2677
2879
  metadata: metadata,
2678
2880
  retry_policy: @config.rpcs.lookup_offer.retry_policy
2679
- options.apply_defaults metadata: @config.metadata,
2881
+
2882
+ options.apply_defaults timeout: @config.timeout,
2883
+ metadata: @config.metadata,
2680
2884
  retry_policy: @config.retry_policy
2681
2885
 
2682
2886
  @cloud_channel_service_stub.call_rpc :lookup_offer, request, options: options do |response, operation|
@@ -2751,7 +2955,9 @@ module Google
2751
2955
  options.apply_defaults timeout: @config.rpcs.list_products.timeout,
2752
2956
  metadata: metadata,
2753
2957
  retry_policy: @config.rpcs.list_products.retry_policy
2754
- options.apply_defaults metadata: @config.metadata,
2958
+
2959
+ options.apply_defaults timeout: @config.timeout,
2960
+ metadata: @config.metadata,
2755
2961
  retry_policy: @config.retry_policy
2756
2962
 
2757
2963
  @cloud_channel_service_stub.call_rpc :list_products, request, options: options do |response, operation|
@@ -2829,16 +3035,20 @@ module Google
2829
3035
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2830
3036
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2831
3037
 
2832
- header_params = {
2833
- "parent" => request.parent
2834
- }
3038
+ header_params = {}
3039
+ if request.parent
3040
+ header_params["parent"] = request.parent
3041
+ end
3042
+
2835
3043
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2836
3044
  metadata[:"x-goog-request-params"] ||= request_params_header
2837
3045
 
2838
3046
  options.apply_defaults timeout: @config.rpcs.list_skus.timeout,
2839
3047
  metadata: metadata,
2840
3048
  retry_policy: @config.rpcs.list_skus.retry_policy
2841
- options.apply_defaults metadata: @config.metadata,
3049
+
3050
+ options.apply_defaults timeout: @config.timeout,
3051
+ metadata: @config.metadata,
2842
3052
  retry_policy: @config.retry_policy
2843
3053
 
2844
3054
  @cloud_channel_service_stub.call_rpc :list_skus, request, options: options do |response, operation|
@@ -2917,16 +3127,20 @@ module Google
2917
3127
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
2918
3128
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2919
3129
 
2920
- header_params = {
2921
- "parent" => request.parent
2922
- }
3130
+ header_params = {}
3131
+ if request.parent
3132
+ header_params["parent"] = request.parent
3133
+ end
3134
+
2923
3135
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2924
3136
  metadata[:"x-goog-request-params"] ||= request_params_header
2925
3137
 
2926
3138
  options.apply_defaults timeout: @config.rpcs.list_offers.timeout,
2927
3139
  metadata: metadata,
2928
3140
  retry_policy: @config.rpcs.list_offers.retry_policy
2929
- options.apply_defaults metadata: @config.metadata,
3141
+
3142
+ options.apply_defaults timeout: @config.timeout,
3143
+ metadata: @config.metadata,
2930
3144
  retry_policy: @config.retry_policy
2931
3145
 
2932
3146
  @cloud_channel_service_stub.call_rpc :list_offers, request, options: options do |response, operation|
@@ -3007,16 +3221,20 @@ module Google
3007
3221
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3008
3222
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3009
3223
 
3010
- header_params = {
3011
- "customer" => request.customer
3012
- }
3224
+ header_params = {}
3225
+ if request.customer
3226
+ header_params["customer"] = request.customer
3227
+ end
3228
+
3013
3229
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3014
3230
  metadata[:"x-goog-request-params"] ||= request_params_header
3015
3231
 
3016
3232
  options.apply_defaults timeout: @config.rpcs.list_purchasable_skus.timeout,
3017
3233
  metadata: metadata,
3018
3234
  retry_policy: @config.rpcs.list_purchasable_skus.retry_policy
3019
- options.apply_defaults metadata: @config.metadata,
3235
+
3236
+ options.apply_defaults timeout: @config.timeout,
3237
+ metadata: @config.metadata,
3020
3238
  retry_policy: @config.retry_policy
3021
3239
 
3022
3240
  @cloud_channel_service_stub.call_rpc :list_purchasable_skus, request, options: options do |response, operation|
@@ -3097,16 +3315,20 @@ module Google
3097
3315
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3098
3316
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3099
3317
 
3100
- header_params = {
3101
- "customer" => request.customer
3102
- }
3318
+ header_params = {}
3319
+ if request.customer
3320
+ header_params["customer"] = request.customer
3321
+ end
3322
+
3103
3323
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3104
3324
  metadata[:"x-goog-request-params"] ||= request_params_header
3105
3325
 
3106
3326
  options.apply_defaults timeout: @config.rpcs.list_purchasable_offers.timeout,
3107
3327
  metadata: metadata,
3108
3328
  retry_policy: @config.rpcs.list_purchasable_offers.retry_policy
3109
- options.apply_defaults metadata: @config.metadata,
3329
+
3330
+ options.apply_defaults timeout: @config.timeout,
3331
+ metadata: @config.metadata,
3110
3332
  retry_policy: @config.retry_policy
3111
3333
 
3112
3334
  @cloud_channel_service_stub.call_rpc :list_purchasable_offers, request, options: options do |response, operation|
@@ -3182,16 +3404,20 @@ module Google
3182
3404
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3183
3405
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3184
3406
 
3185
- header_params = {
3186
- "account" => request.account
3187
- }
3407
+ header_params = {}
3408
+ if request.account
3409
+ header_params["account"] = request.account
3410
+ end
3411
+
3188
3412
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3189
3413
  metadata[:"x-goog-request-params"] ||= request_params_header
3190
3414
 
3191
3415
  options.apply_defaults timeout: @config.rpcs.register_subscriber.timeout,
3192
3416
  metadata: metadata,
3193
3417
  retry_policy: @config.rpcs.register_subscriber.retry_policy
3194
- options.apply_defaults metadata: @config.metadata,
3418
+
3419
+ options.apply_defaults timeout: @config.timeout,
3420
+ metadata: @config.metadata,
3195
3421
  retry_policy: @config.retry_policy
3196
3422
 
3197
3423
  @cloud_channel_service_stub.call_rpc :register_subscriber, request, options: options do |response, operation|
@@ -3270,16 +3496,20 @@ module Google
3270
3496
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3271
3497
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3272
3498
 
3273
- header_params = {
3274
- "account" => request.account
3275
- }
3499
+ header_params = {}
3500
+ if request.account
3501
+ header_params["account"] = request.account
3502
+ end
3503
+
3276
3504
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3277
3505
  metadata[:"x-goog-request-params"] ||= request_params_header
3278
3506
 
3279
3507
  options.apply_defaults timeout: @config.rpcs.unregister_subscriber.timeout,
3280
3508
  metadata: metadata,
3281
3509
  retry_policy: @config.rpcs.unregister_subscriber.retry_policy
3282
- options.apply_defaults metadata: @config.metadata,
3510
+
3511
+ options.apply_defaults timeout: @config.timeout,
3512
+ metadata: @config.metadata,
3283
3513
  retry_policy: @config.retry_policy
3284
3514
 
3285
3515
  @cloud_channel_service_stub.call_rpc :unregister_subscriber, request, options: options do |response, operation|
@@ -3363,16 +3593,20 @@ module Google
3363
3593
  gapic_version: ::Google::Cloud::Channel::V1::VERSION
3364
3594
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3365
3595
 
3366
- header_params = {
3367
- "account" => request.account
3368
- }
3596
+ header_params = {}
3597
+ if request.account
3598
+ header_params["account"] = request.account
3599
+ end
3600
+
3369
3601
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3370
3602
  metadata[:"x-goog-request-params"] ||= request_params_header
3371
3603
 
3372
3604
  options.apply_defaults timeout: @config.rpcs.list_subscribers.timeout,
3373
3605
  metadata: metadata,
3374
3606
  retry_policy: @config.rpcs.list_subscribers.retry_policy
3375
- options.apply_defaults metadata: @config.metadata,
3607
+
3608
+ options.apply_defaults timeout: @config.timeout,
3609
+ metadata: @config.metadata,
3376
3610
  retry_policy: @config.retry_policy
3377
3611
 
3378
3612
  @cloud_channel_service_stub.call_rpc :list_subscribers, request, options: options do |response, operation|
@@ -3396,22 +3630,21 @@ module Google
3396
3630
  # Configuration can be applied globally to all clients, or to a single client
3397
3631
  # on construction.
3398
3632
  #
3399
- # # Examples
3633
+ # @example
3400
3634
  #
3401
- # To modify the global config, setting the timeout for list_customers
3402
- # to 20 seconds, and all remaining timeouts to 10 seconds:
3635
+ # # Modify the global config, setting the timeout for
3636
+ # # list_customers to 20 seconds,
3637
+ # # and all remaining timeouts to 10 seconds.
3638
+ # ::Google::Cloud::Channel::V1::CloudChannelService::Client.configure do |config|
3639
+ # config.timeout = 10.0
3640
+ # config.rpcs.list_customers.timeout = 20.0
3641
+ # end
3403
3642
  #
3404
- # ::Google::Cloud::Channel::V1::CloudChannelService::Client.configure do |config|
3405
- # config.timeout = 10.0
3406
- # config.rpcs.list_customers.timeout = 20.0
3407
- # end
3408
- #
3409
- # To apply the above configuration only to a new client:
3410
- #
3411
- # client = ::Google::Cloud::Channel::V1::CloudChannelService::Client.new do |config|
3412
- # config.timeout = 10.0
3413
- # config.rpcs.list_customers.timeout = 20.0
3414
- # end
3643
+ # # Apply the above configuration only to a new client.
3644
+ # client = ::Google::Cloud::Channel::V1::CloudChannelService::Client.new do |config|
3645
+ # config.timeout = 10.0
3646
+ # config.rpcs.list_customers.timeout = 20.0
3647
+ # end
3415
3648
  #
3416
3649
  # @!attribute [rw] endpoint
3417
3650
  # The hostname or hostname:port of the service endpoint.
@@ -3550,6 +3783,11 @@ module Google
3550
3783
  #
3551
3784
  attr_reader :delete_customer
3552
3785
  ##
3786
+ # RPC-specific configuration for `import_customer`
3787
+ # @return [::Gapic::Config::Method]
3788
+ #
3789
+ attr_reader :import_customer
3790
+ ##
3553
3791
  # RPC-specific configuration for `provision_cloud_identity`
3554
3792
  # @return [::Gapic::Config::Method]
3555
3793
  #
@@ -3704,6 +3942,8 @@ module Google
3704
3942
  @update_customer = ::Gapic::Config::Method.new update_customer_config
3705
3943
  delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer
3706
3944
  @delete_customer = ::Gapic::Config::Method.new delete_customer_config
3945
+ import_customer_config = parent_rpcs.import_customer if parent_rpcs.respond_to? :import_customer
3946
+ @import_customer = ::Gapic::Config::Method.new import_customer_config
3707
3947
  provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity
3708
3948
  @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config
3709
3949
  list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements