google-cloud-channel-v1 0.3.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,27 +32,25 @@ module Google
32
32
  module Channel
33
33
  module V1
34
34
  ##
35
- # CloudChannelService enables Google cloud resellers and distributors to manage
36
- # their customers, channel partners, entitlements and reports.
35
+ # CloudChannelService lets Google cloud resellers and distributors manage
36
+ # their customers, channel partners, entitlements, and reports.
37
37
  #
38
38
  # Using this service:
39
- # 1. Resellers or distributors can manage a customer entity.
40
- # 2. Distributors can register an authorized reseller in their channel and then
41
- # enable delegated admin access for the reseller.
42
- # 3. Resellers or distributors can manage entitlements for their customers.
39
+ # 1. Resellers and distributors can manage a customer entity.
40
+ # 2. Distributors can register an authorized reseller in their channel and
41
+ # provide them with delegated admin access.
42
+ # 3. Resellers and distributors can manage customer entitlements.
43
43
  #
44
- # The service primarily exposes the following resources:
45
- # - {::Google::Cloud::Channel::V1::Customer Customer}s: A Customer represents an entity managed by a reseller or
46
- # distributor. A customer typically represents an enterprise. In an n-tier
47
- # resale channel hierarchy, customers are generally represented as leaf nodes.
48
- # Customers primarily have an Entitlement sub-resource discussed below.
44
+ # CloudChannelService exposes the following resources:
45
+ # - {::Google::Cloud::Channel::V1::Customer Customer}s: An entity—usually an enterprise—managed by a reseller or
46
+ # distributor.
49
47
  #
50
- # - {::Google::Cloud::Channel::V1::Entitlement Entitlement}s: An Entitlement represents an entity which provides a
51
- # customer means to start using a service. Entitlements are created or updated
52
- # as a result of a successful fulfillment.
48
+ # - {::Google::Cloud::Channel::V1::Entitlement Entitlement}s: An entity that provides a customer with the means to use
49
+ # a service. Entitlements are created or updated as a result of a successful
50
+ # fulfillment.
53
51
  #
54
- # - {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink}s: A ChannelPartnerLink is an entity that identifies
55
- # links between distributors and their indirect resellers in a channel.
52
+ # - {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink}s: An entity that identifies links between
53
+ # distributors and their indirect resellers in a channel.
56
54
  #
57
55
  # To load this service and instantiate a client:
58
56
  #
@@ -27,27 +27,25 @@ module Google
27
27
  ##
28
28
  # Client for the CloudChannelService service.
29
29
  #
30
- # CloudChannelService enables Google cloud resellers and distributors to manage
31
- # their customers, channel partners, entitlements and reports.
30
+ # CloudChannelService lets Google cloud resellers and distributors manage
31
+ # their customers, channel partners, entitlements, and reports.
32
32
  #
33
33
  # Using this service:
34
- # 1. Resellers or distributors can manage a customer entity.
35
- # 2. Distributors can register an authorized reseller in their channel and then
36
- # enable delegated admin access for the reseller.
37
- # 3. Resellers or distributors can manage entitlements for their customers.
34
+ # 1. Resellers and distributors can manage a customer entity.
35
+ # 2. Distributors can register an authorized reseller in their channel and
36
+ # provide them with delegated admin access.
37
+ # 3. Resellers and distributors can manage customer entitlements.
38
38
  #
39
- # The service primarily exposes the following resources:
40
- # - {::Google::Cloud::Channel::V1::Customer Customer}s: A Customer represents an entity managed by a reseller or
41
- # distributor. A customer typically represents an enterprise. In an n-tier
42
- # resale channel hierarchy, customers are generally represented as leaf nodes.
43
- # Customers primarily have an Entitlement sub-resource discussed below.
39
+ # CloudChannelService exposes the following resources:
40
+ # - {::Google::Cloud::Channel::V1::Customer Customer}s: An entity—usually an enterprise—managed by a reseller or
41
+ # distributor.
44
42
  #
45
- # - {::Google::Cloud::Channel::V1::Entitlement Entitlement}s: An Entitlement represents an entity which provides a
46
- # customer means to start using a service. Entitlements are created or updated
47
- # as a result of a successful fulfillment.
43
+ # - {::Google::Cloud::Channel::V1::Entitlement Entitlement}s: An entity that provides a customer with the means to use
44
+ # a service. Entitlements are created or updated as a result of a successful
45
+ # fulfillment.
48
46
  #
49
- # - {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink}s: A ChannelPartnerLink is an entity that identifies
50
- # links between distributors and their indirect resellers in a channel.
47
+ # - {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink}s: An entity that identifies links between
48
+ # distributors and their indirect resellers in a channel.
51
49
  #
52
50
  class Client
53
51
  include Paths
@@ -80,17 +78,14 @@ module Google
80
78
  parent_config = while namespace.any?
81
79
  parent_name = namespace.join "::"
82
80
  parent_const = const_get parent_name
83
- break parent_const.configure if parent_const&.respond_to? :configure
81
+ break parent_const.configure if parent_const.respond_to? :configure
84
82
  namespace.pop
85
83
  end
86
84
  default_config = Client::Configuration.new parent_config
87
85
 
88
86
  default_config.timeout = 60.0
89
87
  default_config.retry_policy = {
90
- initial_delay: 1.0,
91
- max_delay: 10.0,
92
- multiplier: 1.3,
93
- retry_codes: [14]
88
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
94
89
  }
95
90
 
96
91
  default_config.rpcs.provision_cloud_identity.timeout = 60.0
@@ -181,9 +176,9 @@ module Google
181
176
  enable_self_signed_jwt = @config.scope == Client.configure.scope &&
182
177
  @config.endpoint == Client.configure.endpoint &&
183
178
  !@config.endpoint.split(".").first.include?("-")
184
- credentials ||= Credentials.default scope: @config.scope,
179
+ credentials ||= Credentials.default scope: @config.scope,
185
180
  enable_self_signed_jwt: enable_self_signed_jwt
186
- if credentials.is_a?(String) || credentials.is_a?(Hash)
181
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
187
182
  credentials = Credentials.new credentials, scope: @config.scope
188
183
  end
189
184
  @quota_project_id = @config.quota_project
@@ -213,18 +208,16 @@ module Google
213
208
  # Service calls
214
209
 
215
210
  ##
216
- # List downstream {::Google::Cloud::Channel::V1::Customer Customer}s.
211
+ # List {::Google::Cloud::Channel::V1::Customer Customer}s.
217
212
  #
218
- # Possible Error Codes:
213
+ # Possible error codes:
219
214
  #
220
- # * PERMISSION_DENIED: If the reseller account making the request and the
221
- # reseller account being queried for are different.
222
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
223
- # request.
215
+ # * PERMISSION_DENIED: The reseller account making the request is different
216
+ # from the reseller account in the API request.
217
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
224
218
  #
225
- # Return Value:
226
- # <br/> List of {::Google::Cloud::Channel::V1::Customer Customer}s pertaining to the reseller or empty list if
227
- # there are none.
219
+ # Return value:
220
+ # List of {::Google::Cloud::Channel::V1::Customer Customer}s, or an empty list if there are no customers.
228
221
  #
229
222
  # @overload list_customers(request, options = nil)
230
223
  # Pass arguments to `list_customers` via a request object, either of type
@@ -242,15 +235,15 @@ module Google
242
235
  # the default parameter values, pass an empty Hash as a request object (see above).
243
236
  #
244
237
  # @param parent [::String]
245
- # Required. The resource name of the reseller account from which to list customers.
246
- # The parent takes the format: accounts/\\{account_id}.
238
+ # Required. The resource name of the reseller account to list customers from.
239
+ # Parent uses the format: accounts/\\{account_id}.
247
240
  # @param page_size [::Integer]
248
241
  # Optional. The maximum number of customers to return. The service may return fewer
249
- # than this value. If unspecified, at most 10 customers will be returned. The
250
- # maximum value is 50; values about 50 will be coerced to 50.
242
+ # than this value. If unspecified, returns at most 10 customers. The
243
+ # maximum value is 50.
251
244
  # @param page_token [::String]
252
- # Optional. A token identifying a page of results, if other than the first one.
253
- # Typically obtained via
245
+ # Optional. A token identifying a page of results other than the first page.
246
+ # Obtained through
254
247
  # {::Google::Cloud::Channel::V1::ListCustomersResponse#next_page_token ListCustomersResponse.next_page_token} of the previous
255
248
  # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_customers CloudChannelService.ListCustomers} call.
256
249
  #
@@ -301,19 +294,18 @@ module Google
301
294
  end
302
295
 
303
296
  ##
304
- # Returns a requested {::Google::Cloud::Channel::V1::Customer Customer} resource.
297
+ # Returns the requested {::Google::Cloud::Channel::V1::Customer Customer} resource.
305
298
  #
306
- # Possible Error Codes:
299
+ # Possible error codes:
307
300
  #
308
- # * PERMISSION_DENIED: If the reseller account making the request and the
309
- # reseller account being queried for are different.
310
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
311
- # request.
312
- # * NOT_FOUND: If the customer resource doesn't exist. Usually
313
- # the result of an invalid name parameter.
301
+ # * PERMISSION_DENIED: The reseller account making the request is different
302
+ # from the reseller account in the API request.
303
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
304
+ # * NOT_FOUND: The customer resource doesn't exist. Usually the result of an
305
+ # invalid name parameter.
314
306
  #
315
- # Return Value:
316
- # <br/> {::Google::Cloud::Channel::V1::Customer Customer} resource if found, error otherwise.
307
+ # Return value:
308
+ # The {::Google::Cloud::Channel::V1::Customer Customer} resource.
317
309
  #
318
310
  # @overload get_customer(request, options = nil)
319
311
  # Pass arguments to `get_customer` via a request object, either of type
@@ -332,7 +324,7 @@ module Google
332
324
  #
333
325
  # @param name [::String]
334
326
  # Required. The resource name of the customer to retrieve.
335
- # The name takes the format: accounts/\\{account_id}/customers/\\{customer_id}
327
+ # Name uses the format: accounts/\\{account_id}/customers/\\{customer_id}
336
328
  #
337
329
  # @yield [response, operation] Access the result along with the RPC operation
338
330
  # @yieldparam response [::Google::Cloud::Channel::V1::Customer]
@@ -380,22 +372,22 @@ module Google
380
372
  end
381
373
 
382
374
  ##
383
- # Confirms the existence of Cloud Identity accounts, based on the domain and
384
- # whether the Cloud Identity accounts are owned by the reseller.
375
+ # Confirms the existence of Cloud Identity accounts based on the domain and
376
+ # if the Cloud Identity accounts are owned by the reseller.
385
377
  #
386
- # Possible Error Codes:
378
+ # Possible error codes:
387
379
  #
388
- # * PERMISSION_DENIED: If the reseller account making the request and the
389
- # reseller account being queried for are different.
390
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
391
- # request.
380
+ # * PERMISSION_DENIED: The reseller account making the request is different
381
+ # from the reseller account in the API request.
382
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
392
383
  # * INVALID_VALUE: Invalid domain value in the request.
393
- # * NOT_FOUND: If there is no {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} customer
394
- # for the domain specified in the request.
395
384
  #
396
- # Return Value:
397
- # <br/> List of {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} resources if any exist for
398
- # the domain, otherwise an error is returned.
385
+ # Return value:
386
+ # A list of {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} resources for the domain (may be
387
+ # empty)
388
+ #
389
+ # Note: in the v1alpha1 version of the API, a NOT_FOUND error returns if
390
+ # no {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} resources match the domain.
399
391
  #
400
392
  # @overload check_cloud_identity_accounts_exist(request, options = nil)
401
393
  # Pass arguments to `check_cloud_identity_accounts_exist` via a request object, either of type
@@ -413,10 +405,10 @@ module Google
413
405
  # the default parameter values, pass an empty Hash as a request object (see above).
414
406
  #
415
407
  # @param parent [::String]
416
- # Required. The resource name of the reseller account.
417
- # The parent takes the format: accounts/\\{account_id}
408
+ # Required. The reseller account's resource name.
409
+ # Parent uses the format: accounts/\\{account_id}
418
410
  # @param domain [::String]
419
- # Required. Domain for which the Cloud Identity account customer is fetched.
411
+ # Required. Domain to fetch for Cloud Identity account customer.
420
412
  #
421
413
  # @yield [response, operation] Access the result along with the RPC operation
422
414
  # @yieldparam response [::Google::Cloud::Channel::V1::CheckCloudIdentityAccountsExistResponse]
@@ -467,22 +459,16 @@ module Google
467
459
  # Creates a new {::Google::Cloud::Channel::V1::Customer Customer} resource under the reseller or distributor
468
460
  # account.
469
461
  #
470
- # Possible Error Codes:
471
- # <ul>
472
- # <li>PERMISSION_DENIED: If the reseller account making the request and the
473
- # reseller account being queried for are different.</li>
474
- # <li> INVALID_ARGUMENT:
475
- # <ul>
476
- # <li> Missing or invalid required parameters in the request. </li>
477
- # <li> Domain field value doesn't match the domain specified in primary
478
- # email.</li>
479
- # </ul>
480
- # </li>
481
- # </ul>
482
- #
483
- # Return Value:
484
- # <br/> If successful, the newly created {::Google::Cloud::Channel::V1::Customer Customer} resource, otherwise
485
- # returns an error.
462
+ # Possible error codes:
463
+ #
464
+ # * PERMISSION_DENIED: The reseller account making the request is different
465
+ # from the reseller account in the API request.
466
+ # * INVALID_ARGUMENT:
467
+ # * Required request parameters are missing or invalid.
468
+ # * Domain field value doesn't match the primary email domain.
469
+ #
470
+ # Return value:
471
+ # The newly created {::Google::Cloud::Channel::V1::Customer Customer} resource.
486
472
  #
487
473
  # @overload create_customer(request, options = nil)
488
474
  # Pass arguments to `create_customer` via a request object, either of type
@@ -501,7 +487,7 @@ module Google
501
487
  #
502
488
  # @param parent [::String]
503
489
  # Required. The resource name of reseller account in which to create the customer.
504
- # The parent takes the format: accounts/\\{account_id}
490
+ # Parent uses the format: accounts/\\{account_id}
505
491
  # @param customer [::Google::Cloud::Channel::V1::Customer, ::Hash]
506
492
  # Required. The customer to create.
507
493
  #
@@ -551,21 +537,18 @@ module Google
551
537
  end
552
538
 
553
539
  ##
554
- # Updates an existing {::Google::Cloud::Channel::V1::Customer Customer} resource belonging to the reseller or
540
+ # Updates an existing {::Google::Cloud::Channel::V1::Customer Customer} resource for the reseller or
555
541
  # distributor.
556
542
  #
557
- # Possible Error Codes:
543
+ # Possible error codes:
558
544
  #
559
- # * PERMISSION_DENIED: If the reseller account making the request and the
560
- # reseller account being queried for are different.
561
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
562
- # request.
563
- # * NOT_FOUND: No {::Google::Cloud::Channel::V1::Customer Customer} resource found for the name
564
- # specified in the request.
545
+ # * PERMISSION_DENIED: The reseller account making the request is different
546
+ # from the reseller account in the API request.
547
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
548
+ # * NOT_FOUND: No {::Google::Cloud::Channel::V1::Customer Customer} resource found for the name in the request.
565
549
  #
566
- # Return Value:
567
- # <br/> If successful, the updated {::Google::Cloud::Channel::V1::Customer Customer} resource, otherwise returns
568
- # an error.
550
+ # Return value:
551
+ # The updated {::Google::Cloud::Channel::V1::Customer Customer} resource.
569
552
  #
570
553
  # @overload update_customer(request, options = nil)
571
554
  # Pass arguments to `update_customer` via a request object, either of type
@@ -634,17 +617,15 @@ module Google
634
617
  end
635
618
 
636
619
  ##
637
- # Deletes the given {::Google::Cloud::Channel::V1::Customer Customer} permanently and irreversibly.
620
+ # Deletes the given {::Google::Cloud::Channel::V1::Customer Customer} permanently.
638
621
  #
639
- # Possible Error Codes:
622
+ # Possible error codes:
640
623
  #
641
- # * PERMISSION_DENIED: If the account making the request does not own
624
+ # * PERMISSION_DENIED: The account making the request does not own
642
625
  # this customer.
643
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
644
- # request.
645
- # * FAILED_PRECONDITION: If the customer has existing entitlements.
646
- # * NOT_FOUND: No {::Google::Cloud::Channel::V1::Customer Customer} resource found for the name
647
- # specified in the request.
626
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
627
+ # * FAILED_PRECONDITION: The customer has existing entitlements.
628
+ # * NOT_FOUND: No {::Google::Cloud::Channel::V1::Customer Customer} resource found for the name in the request.
648
629
  #
649
630
  # @overload delete_customer(request, options = nil)
650
631
  # Pass arguments to `delete_customer` via a request object, either of type
@@ -711,25 +692,25 @@ module Google
711
692
 
712
693
  ##
713
694
  # Creates a Cloud Identity for the given customer using the customer's
714
- # information or the information provided here, if present.
695
+ # information, or the information provided here.
715
696
  #
716
- # Possible Error Codes:
697
+ # Possible error codes:
717
698
  #
718
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
719
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the request.
720
- # * NOT_FOUND: If the customer is not found for the reseller.
721
- # * ALREADY_EXISTS: If the customer's primary email already exists. In this
722
- # case, retry after changing the customer's primary contact email.
723
- # * INTERNAL: Any non-user error related to a technical issue in the
724
- # backend. Contact Cloud Channel support in this case.
725
- # * UNKNOWN: Any non-user error related to a technical issue in the backend.
726
- # Contact Cloud Channel support in this case.
699
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
700
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
701
+ # * NOT_FOUND: The customer was not found.
702
+ # * ALREADY_EXISTS: The customer's primary email already exists. Retry
703
+ # after changing the customer's primary contact email.
704
+ # * INTERNAL: Any non-user error related to a technical issue in the
705
+ # backend. Contact Cloud Channel support.
706
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
707
+ # Contact Cloud Channel support.
727
708
  #
728
- # Return Value:
729
- # <br/> Long Running Operation ID.
709
+ # Return value:
710
+ # The ID of a long-running operation.
730
711
  #
731
712
  # To get the results of the operation, call the GetOperation method of
732
- # CloudChannelOperationsService. The Operation metadata will contain an
713
+ # CloudChannelOperationsService. The Operation metadata contains an
733
714
  # instance of {::Google::Cloud::Channel::V1::OperationMetadata OperationMetadata}.
734
715
  #
735
716
  # @overload provision_cloud_identity(request, options = nil)
@@ -755,8 +736,7 @@ module Google
755
736
  # @param user [::Google::Cloud::Channel::V1::AdminUser, ::Hash]
756
737
  # Admin user information.
757
738
  # @param validate_only [::Boolean]
758
- # If set, validate the request and preview the review, but do not actually
759
- # post it.
739
+ # Validate the request and preview the review, but do not post it.
760
740
  #
761
741
  # @yield [response, operation] Access the result along with the RPC operation
762
742
  # @yieldparam response [::Gapic::Operation]
@@ -805,16 +785,15 @@ module Google
805
785
  end
806
786
 
807
787
  ##
808
- # List {::Google::Cloud::Channel::V1::Entitlement Entitlement}s belonging to a customer.
788
+ # Lists {::Google::Cloud::Channel::V1::Entitlement Entitlement}s belonging to a customer.
809
789
  #
810
- # Possible Error Codes:
790
+ # Possible error codes:
811
791
  #
812
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
813
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the request.
792
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
793
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
814
794
  #
815
- # Return Value:
816
- # <br/> List of {::Google::Cloud::Channel::V1::Entitlement Entitlement}s belonging to the customer, or empty list if
817
- # there are none.
795
+ # Return value:
796
+ # A list of the customer's {::Google::Cloud::Channel::V1::Entitlement Entitlement}s.
818
797
  #
819
798
  # @overload list_entitlements(request, options = nil)
820
799
  # Pass arguments to `list_entitlements` via a request object, either of type
@@ -832,16 +811,16 @@ module Google
832
811
  # the default parameter values, pass an empty Hash as a request object (see above).
833
812
  #
834
813
  # @param parent [::String]
835
- # Required. The resource name of the reseller's customer account for which to list
836
- # entitlements.
837
- # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
814
+ # Required. The resource name of the reseller's customer account to list
815
+ # entitlements for.
816
+ # Parent uses the format: accounts/\\{account_id}/customers/\\{customer_id}
838
817
  # @param page_size [::Integer]
839
818
  # Optional. Requested page size. Server might return fewer results than requested.
840
- # If unspecified, at most 50 entitlements will be returned.
841
- # The maximum value is 100; values above 100 will be coerced to 100.
819
+ # If unspecified, return at most 50 entitlements.
820
+ # The maximum value is 100; the server will coerce values above 100.
842
821
  # @param page_token [::String]
843
- # Optional. A token identifying a page of results, if other than the first one.
844
- # Typically obtained via
822
+ # Optional. A token for a page of results other than the first page.
823
+ # Obtained using
845
824
  # {::Google::Cloud::Channel::V1::ListEntitlementsResponse#next_page_token ListEntitlementsResponse.next_page_token} of the previous
846
825
  # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_entitlements CloudChannelService.ListEntitlements} call.
847
826
  #
@@ -892,29 +871,24 @@ module Google
892
871
  end
893
872
 
894
873
  ##
895
- # List {::Google::Cloud::Channel::V1::TransferableSku TransferableSku}s of a customer based on Cloud Identity ID or
874
+ # List {::Google::Cloud::Channel::V1::TransferableSku TransferableSku}s of a customer based on the Cloud Identity ID or
896
875
  # Customer Name in the request.
897
876
  #
898
- # This method is used when a reseller lists the entitlements
899
- # information of a customer that is not owned. The reseller should provide
900
- # the customer's Cloud Identity ID or Customer Name.
901
- #
902
- # Possible Error Codes:
903
- # <ul>
904
- # <li>PERMISSION_DENIED, due to one of the following reasons:
905
- # <ul>
906
- # <li> If the customer doesn't belong to the reseller and no auth token,
907
- # or an invalid auth token is supplied. </li> <li> If the reseller account
908
- # making the request and the reseller account being queried for are
909
- # different. </li>
910
- # </ul>
911
- # </li>
912
- # <li> INVALID_ARGUMENT: Missing or invalid required parameters in the
913
- # request.</li>
914
- # </ul>
915
- #
916
- # Return Value:
917
- # <br/> List of {::Google::Cloud::Channel::V1::TransferableSku TransferableSku} for the given customer.
877
+ # Use this method to list the entitlements information of an
878
+ # unowned customer. You should provide the customer's
879
+ # Cloud Identity ID or Customer Name.
880
+ #
881
+ # Possible error codes:
882
+ #
883
+ # * PERMISSION_DENIED:
884
+ # * The customer doesn't belong to the reseller and has no auth token.
885
+ # * The supplied auth token is invalid.
886
+ # * The reseller account making the request is different
887
+ # from the reseller account in the query.
888
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
889
+ #
890
+ # Return value:
891
+ # A list of the customer's {::Google::Cloud::Channel::V1::TransferableSku TransferableSku}.
918
892
  #
919
893
  # @overload list_transferable_skus(request, options = nil)
920
894
  # Pass arguments to `list_transferable_skus` via a request object, either of type
@@ -936,32 +910,31 @@ module Google
936
910
  # @param customer_name [::String]
937
911
  # A reseller is required to create a customer and use the resource name of
938
912
  # the created customer here.
939
- # The customer_name takes the format:
913
+ # Customer_name uses the format:
940
914
  # accounts/\\{account_id}/customers/\\{customer_id}
941
915
  # @param parent [::String]
942
- # Required. The resource name of the reseller's account.
943
- # The parent takes the format: accounts/\\{account_id}
916
+ # Required. The reseller account's resource name.
917
+ # Parent uses the format: accounts/\\{account_id}
944
918
  # @param page_size [::Integer]
945
- # Requested page size. Server might return fewer results than requested.
946
- # If unspecified, at most 100 SKUs will be returned.
947
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
919
+ # The requested page size. Server might return fewer results than requested.
920
+ # If unspecified, returns at most 100 SKUs.
921
+ # The maximum value is 1000; the server will coerce values above 1000.
948
922
  # Optional.
949
923
  # @param page_token [::String]
950
- # A token identifying a page of results, if other than the first one.
951
- # Typically obtained via
924
+ # A token for a page of results other than the first page.
925
+ # Obtained using
952
926
  # {::Google::Cloud::Channel::V1::ListTransferableSkusResponse#next_page_token ListTransferableSkusResponse.next_page_token} of the previous
953
927
  # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_transferable_skus CloudChannelService.ListTransferableSkus} call.
954
928
  # Optional.
955
929
  # @param auth_token [::String]
956
- # This token is generated by the Super Admin of the resold customer to
930
+ # The super admin of the resold customer generates this token to
957
931
  # authorize a reseller to access their Cloud Identity and purchase
958
- # entitlements on their behalf. This token can be omitted once the
959
- # authorization is generated. See https://support.google.com/a/answer/7643790
960
- # for more details.
932
+ # entitlements on their behalf. You can omit this token after authorization.
933
+ # See https://support.google.com/a/answer/7643790 for more details.
961
934
  # @param language_code [::String]
962
- # The BCP-47 language code, such as "en-US". If specified, the
963
- # response will be localized to the corresponding language code. Default is
964
- # "en-US".
935
+ # The BCP-47 language code. For example, "en-US". The
936
+ # response will localize in the corresponding language code, if specified.
937
+ # The default value is "en-US".
965
938
  # Optional.
966
939
  #
967
940
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1014,20 +987,20 @@ module Google
1014
987
  # List {::Google::Cloud::Channel::V1::TransferableOffer TransferableOffer}s of a customer based on Cloud Identity ID or
1015
988
  # Customer Name in the request.
1016
989
  #
1017
- # This method is used when a reseller gets the entitlement
1018
- # information of a customer that is not owned. The reseller should provide
1019
- # the customer's Cloud Identity ID or Customer Name.
990
+ # Use this method when a reseller gets the entitlement information of an
991
+ # unowned customer. The reseller should provide the customer's
992
+ # Cloud Identity ID or Customer Name.
1020
993
  #
1021
- # Possible Error Codes:
994
+ # Possible error codes:
1022
995
  #
1023
- # * PERMISSION_DENIED, due to one of the following reasons: (a) If the
1024
- # customer doesn't belong to the reseller and no auth token or invalid auth
1025
- # token is supplied. (b) If the reseller account making the request and the
1026
- # reseller account being queried for are different.
1027
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1028
- # request.
996
+ # * PERMISSION_DENIED:
997
+ # * The customer doesn't belong to the reseller and has no auth token.
998
+ # * The supplied auth token is invalid.
999
+ # * The reseller account making the request is different
1000
+ # from the reseller account in the query.
1001
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1029
1002
  #
1030
- # Return Value:
1003
+ # Return value:
1031
1004
  # List of {::Google::Cloud::Channel::V1::TransferableOffer TransferableOffer} for the given customer and SKU.
1032
1005
  #
1033
1006
  # @overload list_transferable_offers(request, options = nil)
@@ -1049,24 +1022,24 @@ module Google
1049
1022
  # Customer's Cloud Identity ID
1050
1023
  # @param customer_name [::String]
1051
1024
  # A reseller should create a customer and use the resource name of
1052
- # the created customer here.
1025
+ # that customer here.
1053
1026
  # @param parent [::String]
1054
1027
  # Required. The resource name of the reseller's account.
1055
1028
  # @param page_size [::Integer]
1056
1029
  # Requested page size. Server might return fewer results than requested.
1057
- # If unspecified, at most 100 Offers will be returned.
1058
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
1030
+ # If unspecified, returns at most 100 offers.
1031
+ # The maximum value is 1000; the server will coerce values above 1000.
1059
1032
  # @param page_token [::String]
1060
- # A token identifying a page of results, if other than the first one.
1061
- # Typically obtained via
1033
+ # A token for a page of results other than the first page.
1034
+ # Obtained using
1062
1035
  # {::Google::Cloud::Channel::V1::ListTransferableOffersResponse#next_page_token ListTransferableOffersResponse.next_page_token} of the previous
1063
1036
  # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_transferable_offers CloudChannelService.ListTransferableOffers} call.
1064
1037
  # @param sku [::String]
1065
- # Required. SKU for which the Offers are being looked up.
1038
+ # Required. The SKU to look up Offers for.
1066
1039
  # @param language_code [::String]
1067
- # The BCP-47 language code, such as "en-US". If specified, the
1068
- # response will be localized to the corresponding language code. Default is
1069
- # "en-US".
1040
+ # The BCP-47 language code. For example, "en-US". The
1041
+ # response will localize in the corresponding language code, if specified.
1042
+ # The default value is "en-US".
1070
1043
  #
1071
1044
  # @yield [response, operation] Access the result along with the RPC operation
1072
1045
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::TransferableOffer>]
@@ -1115,18 +1088,16 @@ module Google
1115
1088
  end
1116
1089
 
1117
1090
  ##
1118
- # Returns a requested {::Google::Cloud::Channel::V1::Entitlement Entitlement} resource.
1091
+ # Returns the requested {::Google::Cloud::Channel::V1::Entitlement Entitlement} resource.
1119
1092
  #
1120
- # Possible Error Codes:
1093
+ # Possible error codes:
1121
1094
  #
1122
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1123
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1124
- # request.
1125
- # * NOT_FOUND: If the entitlement is not found for the customer.
1095
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1096
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1097
+ # * NOT_FOUND: The customer entitlement was not found.
1126
1098
  #
1127
- # Return Value:
1128
- # <br/> If found, the requested {::Google::Cloud::Channel::V1::Entitlement Entitlement} resource, otherwise returns
1129
- # an error.
1099
+ # Return value:
1100
+ # The requested {::Google::Cloud::Channel::V1::Entitlement Entitlement} resource.
1130
1101
  #
1131
1102
  # @overload get_entitlement(request, options = nil)
1132
1103
  # Pass arguments to `get_entitlement` via a request object, either of type
@@ -1145,8 +1116,8 @@ module Google
1145
1116
  #
1146
1117
  # @param name [::String]
1147
1118
  # Required. The resource name of the entitlement to retrieve.
1148
- # The name takes the format:
1149
- # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{id}
1119
+ # Name uses the format:
1120
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1150
1121
  #
1151
1122
  # @yield [response, operation] Access the result along with the RPC operation
1152
1123
  # @yieldparam response [::Google::Cloud::Channel::V1::Entitlement]
@@ -1196,52 +1167,36 @@ module Google
1196
1167
  ##
1197
1168
  # Creates an entitlement for a customer.
1198
1169
  #
1199
- # Possible Error Codes:
1200
- # <ul>
1201
- # <li> PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1202
- # </li> <li> INVALID_ARGUMENT: <ul>
1203
- # <li> Missing or invalid required parameters in the request. </li>
1204
- # <li> Cannot purchase an entitlement if there is already an
1205
- # entitlement for customer, for a SKU from the same product family. </li>
1206
- # <li> INVALID_VALUE: Offer passed in isn't valid. Make sure OfferId is
1207
- # valid. If it is valid, then contact Google Channel support for further
1208
- # troubleshooting. </li>
1209
- # </ul>
1210
- # </li>
1211
- # <li> NOT_FOUND: If the customer or offer resource is not found for the
1212
- # reseller. </li>
1213
- # <li> ALREADY_EXISTS: This failure can happen in the following cases:
1214
- # <ul>
1215
- # <li>If the SKU has been already purchased for the customer.</li>
1216
- # <li>If the customer's primary email already exists. In this case retry
1217
- # after changing the customer's primary contact email.
1218
- # </li>
1219
- # </ul>
1220
- # </li>
1221
- # <li> CONDITION_NOT_MET or FAILED_PRECONDITION: This
1222
- # failure can happen in the following cases:
1223
- # <ul>
1224
- # <li> Purchasing a SKU that requires domain verification and the
1225
- # domain has not been verified. </li>
1226
- # <li> Purchasing an Add-On SKU like Vault or Drive without purchasing
1227
- # the pre-requisite SKU, such as Google Workspace Business Starter. </li>
1228
- # <li> Applicable only for developer accounts: reseller and resold
1229
- # domain. Must meet the following domain naming requirements:
1230
- # <ul>
1231
- # <li> Domain names must start with goog-test. </li>
1232
- # <li> Resold domain names must include the reseller domain. </li>
1233
- # </ul>
1234
- # </li>
1235
- # </ul>
1236
- # </li>
1237
- # <li> INTERNAL: Any non-user error related to a technical issue in the
1238
- # backend. Contact Cloud Channel Support in this case. </li>
1239
- # <li> UNKNOWN: Any non-user error related to a technical issue in the
1240
- # backend. Contact Cloud Channel Support in this case. </li>
1241
- # </ul>
1242
- #
1243
- # Return Value:
1244
- # <br/> Long Running Operation ID.
1170
+ # Possible error codes:
1171
+ #
1172
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1173
+ # * INVALID_ARGUMENT:
1174
+ # * Required request parameters are missing or invalid.
1175
+ # * There is already a customer entitlement for a SKU from the same
1176
+ # product family.
1177
+ # * INVALID_VALUE: Make sure the OfferId is valid. If it is, contact
1178
+ # Google Channel support for further troubleshooting.
1179
+ # * NOT_FOUND: The customer or offer resource was not found.
1180
+ # * ALREADY_EXISTS:
1181
+ # * The SKU was already purchased for the customer.
1182
+ # * The customer's primary email already exists. Retry
1183
+ # after changing the customer's primary contact email.
1184
+ # * CONDITION_NOT_MET or FAILED_PRECONDITION:
1185
+ # * The domain required for purchasing a SKU has not been verified.
1186
+ # * A pre-requisite SKU required to purchase an Add-On SKU is missing.
1187
+ # For example, Google Workspace Business Starter is required to purchase
1188
+ # Vault or Drive.
1189
+ # * (Developer accounts only) Reseller and resold domain must meet the
1190
+ # following naming requirements:
1191
+ # * Domain names must start with goog-test.
1192
+ # * Domain names must include the reseller domain.
1193
+ # * INTERNAL: Any non-user error related to a technical issue in the
1194
+ # backend. Contact Cloud Channel support.
1195
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1196
+ # Contact Cloud Channel support.
1197
+ #
1198
+ # Return value:
1199
+ # The ID of a long-running operation.
1245
1200
  #
1246
1201
  # To get the results of the operation, call the GetOperation method of
1247
1202
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1263,20 +1218,19 @@ module Google
1263
1218
  # the default parameter values, pass an empty Hash as a request object (see above).
1264
1219
  #
1265
1220
  # @param parent [::String]
1266
- # Required. The resource name of reseller's customer account in which to create the
1221
+ # Required. The resource name of the reseller's customer account in which to create the
1267
1222
  # entitlement.
1268
- # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
1223
+ # Parent uses the format: accounts/\\{account_id}/customers/\\{customer_id}
1269
1224
  # @param entitlement [::Google::Cloud::Channel::V1::Entitlement, ::Hash]
1270
1225
  # Required. The entitlement to create.
1271
1226
  # @param request_id [::String]
1272
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1273
- # that if you must retry your request, the server will know to ignore the
1274
- # request if it has already been completed.
1227
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1228
+ # your request, the server will know to ignore the request if it's complete.
1275
1229
  #
1276
- # For example, consider a situation where you make an initial request and
1277
- # the request times out. If you make the request again with the same
1278
- # request ID, the server can check if the original operation with the same
1279
- # request ID was received, and if so, will ignore the second request.
1230
+ # For example, you make an initial request and the request times out. If you
1231
+ # make the request again with the same request ID, the server can check if
1232
+ # it received the original operation with the same request ID. If it did, it
1233
+ # will ignore the second request.
1280
1234
  #
1281
1235
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1282
1236
  # with the exception that zero UUID is not supported
@@ -1329,26 +1283,25 @@ module Google
1329
1283
  end
1330
1284
 
1331
1285
  ##
1332
- # Change parameters of the entitlement
1286
+ # Change parameters of the entitlement.
1333
1287
  #
1334
- # An entitlement parameters update is a long-running operation and results in
1335
- # updates to the entitlement as a result of fulfillment.
1288
+ # An entitlement update is a long-running operation and it updates the
1289
+ # entitlement as a result of fulfillment.
1336
1290
  #
1337
- # Possible Error Codes:
1291
+ # Possible error codes:
1338
1292
  #
1339
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1340
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1341
- # request. For example, if the number of seats being changed to is greater
1342
- # than the allowed number of max seats for the resource. Or decreasing seats
1343
- # for a commitment based plan.
1293
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1294
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1295
+ # For example, the number of seats being changed is greater than the allowed
1296
+ # number of max seats, or decreasing seats for a commitment based plan.
1344
1297
  # * NOT_FOUND: Entitlement resource not found.
1345
- # * INTERNAL: Any non-user error related to a technical issue
1346
- # in the backend. In this case, contact Cloud Channel support.
1298
+ # * INTERNAL: Any non-user error related to a technical issue in the
1299
+ # backend. Contact Cloud Channel support.
1347
1300
  # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1348
- # In this case, contact Cloud Channel support.
1301
+ # Contact Cloud Channel support.
1349
1302
  #
1350
- # Return Value:
1351
- # <br/> Long Running Operation ID.
1303
+ # Return value:
1304
+ # The ID of a long-running operation.
1352
1305
  #
1353
1306
  # To get the results of the operation, call the GetOperation method of
1354
1307
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1371,24 +1324,21 @@ module Google
1371
1324
  #
1372
1325
  # @param name [::String]
1373
1326
  # Required. The name of the entitlement to update.
1374
- # The name takes the format:
1327
+ # Name uses the format:
1375
1328
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1376
1329
  # @param parameters [::Array<::Google::Cloud::Channel::V1::Parameter, ::Hash>]
1377
- # Required. Entitlement parameters to update. Only editable parameters are allowed to
1378
- # be changed.
1330
+ # Required. Entitlement parameters to update. You can only change editable parameters.
1379
1331
  # @param request_id [::String]
1380
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1381
- # that if you must retry your request, the server will know to ignore the
1382
- # request if it has already been completed.
1383
- #
1384
- # For example, consider a situation where you make an initial request and
1385
- # the request times out. If you make the request again with the same
1386
- # request ID, the server can check if the original operation with the same
1387
- # request ID was received, and if so, will ignore the second request.
1388
- #
1389
- # The request ID must be
1390
- # a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that
1391
- # zero UUID is not supported
1332
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1333
+ # your request, the server will know to ignore the request if it's complete.
1334
+ #
1335
+ # For example, you make an initial request and the request times out. If you
1336
+ # make the request again with the same request ID, the server can check if
1337
+ # it received the original operation with the same request ID. If it did, it
1338
+ # will ignore the second request.
1339
+ #
1340
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1341
+ # with the exception that zero UUID is not supported
1392
1342
  # (`00000000-0000-0000-0000-000000000000`).
1393
1343
  # @param purchase_order_id [::String]
1394
1344
  # Optional. Purchase order ID provided by the reseller.
@@ -1442,24 +1392,23 @@ module Google
1442
1392
  ##
1443
1393
  # Updates the renewal settings for an existing customer entitlement.
1444
1394
  #
1445
- # An entitlement update is a long-running operation and results in updates to
1446
- # the entitlement as a result of fulfillment.
1395
+ # An entitlement update is a long-running operation and it updates the
1396
+ # entitlement as a result of fulfillment.
1447
1397
  #
1448
- # Possible Error Codes:
1398
+ # Possible error codes:
1449
1399
  #
1450
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1451
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1452
- # request.
1400
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1401
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1453
1402
  # * NOT_FOUND: Entitlement resource not found.
1454
1403
  # * NOT_COMMITMENT_PLAN: Renewal Settings are only applicable for a
1455
- # commitment plan. Can't enable or disable renewal for non-commitment plans.
1456
- # * INTERNAL: Any non user error related to a technical issue in the
1457
- # backend. In this case, contact Cloud Channel support.
1458
- # * UNKNOWN: Any non user error related to a technical issue in the backend.
1459
- # In this case, contact Cloud Channel support.
1404
+ # commitment plan. Can't enable or disable renewals for non-commitment plans.
1405
+ # * INTERNAL: Any non-user error related to a technical issue in the
1406
+ # backend. Contact Cloud Channel support.
1407
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1408
+ # Contact Cloud Channel support.
1460
1409
  #
1461
- # Return Value:
1462
- # <br/> Long Running Operation ID.
1410
+ # Return value:
1411
+ # The ID of a long-running operation.
1463
1412
  #
1464
1413
  # To get the results of the operation, call the GetOperation method of
1465
1414
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1482,19 +1431,18 @@ module Google
1482
1431
  #
1483
1432
  # @param name [::String]
1484
1433
  # Required. The name of the entitlement to update.
1485
- # The name takes the format:
1434
+ # Name uses the format:
1486
1435
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1487
1436
  # @param renewal_settings [::Google::Cloud::Channel::V1::RenewalSettings, ::Hash]
1488
1437
  # Required. New renewal settings.
1489
1438
  # @param request_id [::String]
1490
- # Optional. A request ID to identify requests. Specify a unique request ID so
1491
- # that if you must retry your request, the server will know to ignore the
1492
- # request if it has already been completed.
1439
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1440
+ # your request, the server will know to ignore the request if it's complete.
1493
1441
  #
1494
- # For example, consider a situation where you make an initial request and
1495
- # the request times out. If you make the request again with the same
1496
- # request ID, the server can check if the original operation with the same
1497
- # request ID was received, and if so, will ignore the second request.
1442
+ # For example, you make an initial request and the request times out. If you
1443
+ # make the request again with the same request ID, the server can check if
1444
+ # it received the original operation with the same request ID. If it did, it
1445
+ # will ignore the second request.
1498
1446
  #
1499
1447
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1500
1448
  # with the exception that zero UUID is not supported
@@ -1549,22 +1497,21 @@ module Google
1549
1497
  ##
1550
1498
  # Updates the Offer for an existing customer entitlement.
1551
1499
  #
1552
- # An entitlement update is a long-running operation and results in updates to
1553
- # the entitlement as a result of fulfillment.
1500
+ # An entitlement update is a long-running operation and it updates the
1501
+ # entitlement as a result of fulfillment.
1554
1502
  #
1555
- # Possible Error Codes:
1503
+ # Possible error codes:
1556
1504
  #
1557
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1558
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1559
- # request.
1505
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1506
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1560
1507
  # * NOT_FOUND: Offer or Entitlement resource not found.
1561
- # * INTERNAL: Any non-user error related to a technical issue in the backend.
1562
- # In this case, contact Cloud Channel support.
1508
+ # * INTERNAL: Any non-user error related to a technical issue in the
1509
+ # backend. Contact Cloud Channel support.
1563
1510
  # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1564
- # In this case, contact Cloud Channel support.
1511
+ # Contact Cloud Channel support.
1565
1512
  #
1566
- # Return Value:
1567
- # <br/> Long Running Operation ID.
1513
+ # Return value:
1514
+ # The ID of a long-running operation.
1568
1515
  #
1569
1516
  # To get the results of the operation, call the GetOperation method of
1570
1517
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1586,8 +1533,8 @@ module Google
1586
1533
  # the default parameter values, pass an empty Hash as a request object (see above).
1587
1534
  #
1588
1535
  # @param name [::String]
1589
- # Required. The name of the entitlement to update.
1590
- # Format:
1536
+ # Required. The resource name of the entitlement to update.
1537
+ # Name uses the format:
1591
1538
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1592
1539
  # @param offer [::String]
1593
1540
  # Required. New Offer.
@@ -1597,14 +1544,13 @@ module Google
1597
1544
  # @param purchase_order_id [::String]
1598
1545
  # Optional. Purchase order id provided by the reseller.
1599
1546
  # @param request_id [::String]
1600
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1601
- # that if you must retry your request, the server will know to ignore the
1602
- # request if it has already been completed.
1547
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1548
+ # your request, the server will know to ignore the request if it's complete.
1603
1549
  #
1604
- # For example, consider a situation where you make an initial request and
1605
- # the request times out. If you make the request again with the same
1606
- # request ID, the server can check if the original operation with the same
1607
- # request ID was received, and if so, will ignore the second request.
1550
+ # For example, you make an initial request and the request times out. If you
1551
+ # make the request again with the same request ID, the server can check if
1552
+ # it received the original operation with the same request ID. If it did, it
1553
+ # will ignore the second request.
1608
1554
  #
1609
1555
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1610
1556
  # with the exception that zero UUID is not supported
@@ -1660,24 +1606,23 @@ module Google
1660
1606
  # Starts paid service for a trial entitlement.
1661
1607
  #
1662
1608
  # Starts paid service for a trial entitlement immediately. This method is
1663
- # only applicable if a plan has already been set up for a trial entitlement
1664
- # but has some trial days remaining.
1609
+ # only applicable if a plan is set up for a trial entitlement but has some
1610
+ # trial days remaining.
1665
1611
  #
1666
- # Possible Error Codes:
1612
+ # Possible error codes:
1667
1613
  #
1668
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1669
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1670
- # request.
1614
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1615
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1671
1616
  # * NOT_FOUND: Entitlement resource not found.
1672
1617
  # * FAILED_PRECONDITION/NOT_IN_TRIAL: This method only works for
1673
1618
  # entitlement on trial plans.
1674
- # * INTERNAL: Any non-user error related to a technical issue in the backend.
1675
- # In this case, contact Cloud Channel support.
1676
- # * UNKNOWN: Any non-user error related to a technical issue
1677
- # in the backend. In this case, contact Cloud Channel support.
1619
+ # * INTERNAL: Any non-user error related to a technical issue in the
1620
+ # backend. Contact Cloud Channel support.
1621
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1622
+ # Contact Cloud Channel support.
1678
1623
  #
1679
- # Return Value:
1680
- # <br/> Long Running Operation ID.
1624
+ # Return value:
1625
+ # The ID of a long-running operation.
1681
1626
  #
1682
1627
  # To get the results of the operation, call the GetOperation method of
1683
1628
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1699,18 +1644,17 @@ module Google
1699
1644
  # the default parameter values, pass an empty Hash as a request object (see above).
1700
1645
  #
1701
1646
  # @param name [::String]
1702
- # Required. The name of the entitlement for which paid service is being started.
1703
- # The name takes the format:
1647
+ # Required. The name of the entitlement to start a paid service for.
1648
+ # Name uses the format:
1704
1649
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1705
1650
  # @param request_id [::String]
1706
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1707
- # that if you must retry your request, the server will know to ignore the
1708
- # request if it has already been completed.
1651
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1652
+ # your request, the server will know to ignore the request if it's complete.
1709
1653
  #
1710
- # For example, consider a situation where you make an initial request and
1711
- # the request times out. If you make the request again with the same
1712
- # request ID, the server can check if the original operation with the same
1713
- # request ID was received, and if so, will ignore the second request.
1654
+ # For example, you make an initial request and the request times out. If you
1655
+ # make the request again with the same request ID, the server can check if
1656
+ # it received the original operation with the same request ID. If it did, it
1657
+ # will ignore the second request.
1714
1658
  #
1715
1659
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1716
1660
  # with the exception that zero UUID is not supported
@@ -1764,22 +1708,22 @@ module Google
1764
1708
 
1765
1709
  ##
1766
1710
  # Suspends a previously fulfilled entitlement.
1711
+ #
1767
1712
  # An entitlement suspension is a long-running operation.
1768
1713
  #
1769
- # Possible Error Codes:
1714
+ # Possible error codes:
1770
1715
  #
1771
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1772
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1773
- # request.
1716
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1717
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1774
1718
  # * NOT_FOUND: Entitlement resource not found.
1775
1719
  # * NOT_ACTIVE: Entitlement is not active.
1776
- # * INTERNAL: Any non-user error related to a technical issue in the backend.
1777
- # In this case, contact Cloud Channel support.
1720
+ # * INTERNAL: Any non-user error related to a technical issue in the
1721
+ # backend. Contact Cloud Channel support.
1778
1722
  # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1779
- # In this case, contact Cloud Channel support.
1723
+ # Contact Cloud Channel support.
1780
1724
  #
1781
- # Return Value:
1782
- # <br/> Long Running Operation ID.
1725
+ # Return value:
1726
+ # The ID of a long-running operation.
1783
1727
  #
1784
1728
  # To get the results of the operation, call the GetOperation method of
1785
1729
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1802,17 +1746,16 @@ module Google
1802
1746
  #
1803
1747
  # @param name [::String]
1804
1748
  # Required. The resource name of the entitlement to suspend.
1805
- # The name takes the format:
1749
+ # Name uses the format:
1806
1750
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1807
1751
  # @param request_id [::String]
1808
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1809
- # that if you must retry your request, the server will know to ignore the
1810
- # request if it has already been completed.
1752
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1753
+ # your request, the server will know to ignore the request if it's complete.
1811
1754
  #
1812
- # For example, consider a situation where you make an initial request and
1813
- # the request times out. If you make the request again with the same
1814
- # request ID, the server can check if the original operation with the same
1815
- # request ID was received, and if so, will ignore the second request.
1755
+ # For example, you make an initial request and the request times out. If you
1756
+ # make the request again with the same request ID, the server can check if
1757
+ # it received the original operation with the same request ID. If it did, it
1758
+ # will ignore the second request.
1816
1759
  #
1817
1760
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1818
1761
  # with the exception that zero UUID is not supported
@@ -1866,27 +1809,26 @@ module Google
1866
1809
 
1867
1810
  ##
1868
1811
  # Cancels a previously fulfilled entitlement.
1812
+ #
1869
1813
  # An entitlement cancellation is a long-running operation.
1870
1814
  #
1871
- # Possible Error Codes:
1815
+ # Possible error codes:
1872
1816
  #
1873
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller or
1874
- # if the reseller account making the request and reseller account being
1875
- # queried for are different.
1876
- # * FAILED_PRECONDITION: If there are any Google Cloud projects linked to the
1817
+ # * PERMISSION_DENIED: The reseller account making the request is different
1818
+ # from the reseller account in the API request.
1819
+ # * FAILED_PRECONDITION: There are Google Cloud projects linked to the
1877
1820
  # Google Cloud entitlement's Cloud Billing subaccount.
1878
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1879
- # request.
1821
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1880
1822
  # * NOT_FOUND: Entitlement resource not found.
1881
1823
  # * DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed for Google Workspace
1882
- # add-ons or entitlements for Google Cloud's development platform.
1824
+ # add-ons, or entitlements for Google Cloud's development platform.
1883
1825
  # * INTERNAL: Any non-user error related to a technical issue in the
1884
- # backend. In this case, contact Cloud Channel support.
1826
+ # backend. Contact Cloud Channel support.
1885
1827
  # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1886
- # In this case, contact Cloud Channel support.
1828
+ # Contact Cloud Channel support.
1887
1829
  #
1888
- # Return Value:
1889
- # <br/> Long Running Operation ID.
1830
+ # Return value:
1831
+ # The ID of a long-running operation.
1890
1832
  #
1891
1833
  # To get the results of the operation, call the GetOperation method of
1892
1834
  # CloudChannelOperationsService. The response will contain
@@ -1910,17 +1852,16 @@ module Google
1910
1852
  #
1911
1853
  # @param name [::String]
1912
1854
  # Required. The resource name of the entitlement to cancel.
1913
- # The name takes the format:
1855
+ # Name uses the format:
1914
1856
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1915
1857
  # @param request_id [::String]
1916
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1917
- # that if you must retry your request, the server will know to ignore the
1918
- # request if it has already been completed.
1858
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1859
+ # your request, the server will know to ignore the request if it's complete.
1919
1860
  #
1920
- # For example, consider a situation where you make an initial request and
1921
- # the request times out. If you make the request again with the same
1922
- # request ID, the server can check if the original operation with the same
1923
- # request ID was received, and if so, will ignore the second request.
1861
+ # For example, you make an initial request and the request times out. If you
1862
+ # make the request again with the same request ID, the server can check if
1863
+ # it received the original operation with the same request ID. If it did, it
1864
+ # will ignore the second request.
1924
1865
  #
1925
1866
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1926
1867
  # with the exception that zero UUID is not supported
@@ -1973,32 +1914,29 @@ module Google
1973
1914
  end
1974
1915
 
1975
1916
  ##
1976
- # Activates a previously suspended entitlement. The entitlement must be in a
1977
- # suspended state for it to be activated. Entitlements suspended for pending
1978
- # ToS acceptance can't be activated using this method. An entitlement
1979
- # activation is a long-running operation and can result in updates to
1917
+ # Activates a previously suspended entitlement. Entitlements suspended for
1918
+ # pending ToS acceptance can't be activated using this method.
1919
+ #
1920
+ # An entitlement activation is a long-running operation and it updates
1980
1921
  # the state of the customer entitlement.
1981
1922
  #
1982
- # Possible Error Codes:
1923
+ # Possible error codes:
1983
1924
  #
1984
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller or
1985
- # if the reseller account making the request and reseller account being
1986
- # queried for are different.
1987
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1988
- # request.
1925
+ # * PERMISSION_DENIED: The reseller account making the request is different
1926
+ # from the reseller account in the API request.
1927
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1989
1928
  # * NOT_FOUND: Entitlement resource not found.
1990
- # * SUSPENSION_NOT_RESELLER_INITIATED: Can't activate an
1991
- # entitlement that is pending TOS acceptance. Only reseller initiated
1992
- # suspensions can be activated.
1993
- # * NOT_SUSPENDED: Can't activate entitlements that are already in ACTIVE
1994
- # state. Can only activate suspended entitlements.
1995
- # * INTERNAL: Any non-user error related to a technical issue
1996
- # in the backend. In this case, contact Cloud Channel support.
1929
+ # * SUSPENSION_NOT_RESELLER_INITIATED: Can only activate reseller-initiated
1930
+ # suspensions and entitlements that have accepted the TOS.
1931
+ # * NOT_SUSPENDED: Can only activate suspended entitlements not in an ACTIVE
1932
+ # state.
1933
+ # * INTERNAL: Any non-user error related to a technical issue in the
1934
+ # backend. Contact Cloud Channel support.
1997
1935
  # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1998
- # In this case, contact Cloud Channel support.
1936
+ # Contact Cloud Channel support.
1999
1937
  #
2000
- # Return Value:
2001
- # <br/> Long Running Operation ID.
1938
+ # Return value:
1939
+ # The ID of a long-running operation.
2002
1940
  #
2003
1941
  # To get the results of the operation, call the GetOperation method of
2004
1942
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -2021,17 +1959,16 @@ module Google
2021
1959
  #
2022
1960
  # @param name [::String]
2023
1961
  # Required. The resource name of the entitlement to activate.
2024
- # The name takes the format:
1962
+ # Name uses the format:
2025
1963
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
2026
1964
  # @param request_id [::String]
2027
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
2028
- # that if you must retry your request, the server will know to ignore the
2029
- # request if it has already been completed.
1965
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1966
+ # your request, the server will know to ignore the request if it's complete.
2030
1967
  #
2031
- # For example, consider a situation where you make an initial request and
2032
- # the request times out. If you make the request again with the same
2033
- # request ID, the server can check if the original operation with the same
2034
- # request ID was received, and if so, will ignore the second request.
1968
+ # For example, you make an initial request and the request times out. If you
1969
+ # make the request again with the same request ID, the server can check if
1970
+ # it received the original operation with the same request ID. If it did, it
1971
+ # will ignore the second request.
2035
1972
  #
2036
1973
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
2037
1974
  # with the exception that zero UUID is not supported
@@ -2086,37 +2023,29 @@ module Google
2086
2023
  ##
2087
2024
  # Transfers customer entitlements to new reseller.
2088
2025
  #
2089
- # Possible Error Codes:
2090
- # <ul>
2091
- # <li> PERMISSION_DENIED: If the customer doesn't belong to the
2092
- # reseller.</li> <li> INVALID_ARGUMENT: Missing or invalid required
2093
- # parameters in the request. </li> <li> NOT_FOUND: If the customer or offer
2094
- # resource is not found for the reseller. </li> <li> ALREADY_EXISTS: If the
2095
- # SKU has been already transferred for the customer. </li> <li>
2096
- # CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in the
2097
- # following cases: <ul>
2098
- # <li> Transferring a SKU that requires domain verification and the
2099
- # domain has not been verified. </li>
2100
- # <li> Transferring an Add-On SKU like Vault or Drive without transferring
2101
- # the pre-requisite SKU, such as G Suite Basic </li> <li> Applicable only for
2102
- # developer accounts: reseller and resold domain must follow the domain
2103
- # naming convention as follows:
2104
- # <ul>
2105
- # <li> Domain names must start with goog-test. </li>
2106
- # <li> Resold domain names must include the reseller domain. </li>
2107
- # </ul>
2108
- # </li>
2109
- # <li> All transferring entitlements must be specified. </li>
2110
- # </ul>
2111
- # </li>
2112
- # <li> INTERNAL: Any non-user error related to a technical issue in the
2113
- # backend. Please contact Cloud Channel Support in this case. </li>
2114
- # <li> UNKNOWN: Any non-user error related to a technical issue in the
2115
- # backend. Please contact Cloud Channel Support in this case. </li>
2116
- # </ul>
2117
- #
2118
- # Return Value:
2119
- # <br/> Long Running Operation ID.
2026
+ # Possible error codes:
2027
+ #
2028
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
2029
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2030
+ # * NOT_FOUND: The customer or offer resource was not found.
2031
+ # * ALREADY_EXISTS: The SKU was already transferred for the customer.
2032
+ # * CONDITION_NOT_MET or FAILED_PRECONDITION:
2033
+ # * The SKU requires domain verification to transfer, but the domain is
2034
+ # not verified.
2035
+ # * An Add-On SKU (example, Vault or Drive) is missing the
2036
+ # pre-requisite SKU (example, G Suite Basic).
2037
+ # * (Developer accounts only) Reseller and resold domain must meet the
2038
+ # following naming requirements:
2039
+ # * Domain names must start with goog-test.
2040
+ # * Domain names must include the reseller domain.
2041
+ # * Specify all transferring entitlements.
2042
+ # * INTERNAL: Any non-user error related to a technical issue in the
2043
+ # backend. Contact Cloud Channel support.
2044
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
2045
+ # Contact Cloud Channel support.
2046
+ #
2047
+ # Return value:
2048
+ # The ID of a long-running operation.
2120
2049
  #
2121
2050
  # To get the results of the operation, call the GetOperation method of
2122
2051
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -2138,26 +2067,24 @@ module Google
2138
2067
  # the default parameter values, pass an empty Hash as a request object (see above).
2139
2068
  #
2140
2069
  # @param parent [::String]
2141
- # Required. The resource name of reseller's customer account where the entitlements
2142
- # transfer to.
2143
- # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
2070
+ # Required. The resource name of the reseller's customer account that will receive
2071
+ # transferred entitlements.
2072
+ # Parent uses the format: accounts/\\{account_id}/customers/\\{customer_id}
2144
2073
  # @param entitlements [::Array<::Google::Cloud::Channel::V1::Entitlement, ::Hash>]
2145
- # Required. The new entitlements to be created or transferred.
2074
+ # Required. The new entitlements to create or transfer.
2146
2075
  # @param auth_token [::String]
2147
- # This token is generated by the Super Admin of the resold customer to
2076
+ # The super admin of the resold customer generates this token to
2148
2077
  # authorize a reseller to access their Cloud Identity and purchase
2149
- # entitlements on their behalf. This token can be omitted once the
2150
- # authorization is generated. See https://support.google.com/a/answer/7643790
2151
- # for more details.
2078
+ # entitlements on their behalf. You can omit this token after authorization.
2079
+ # See https://support.google.com/a/answer/7643790 for more details.
2152
2080
  # @param request_id [::String]
2153
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
2154
- # that if you must retry your request, the server will know to ignore the
2155
- # request if it has already been completed.
2081
+ # Optional. You can specify an optional unique request ID, and if you need to retry
2082
+ # your request, the server will know to ignore the request if it's complete.
2156
2083
  #
2157
- # For example, consider a situation where you make an initial request and
2158
- # the request times out. If you make the request again with the same
2159
- # request ID, the server can check if the original operation with the same
2160
- # request ID was received, and if so, will ignore the second request.
2084
+ # For example, you make an initial request and the request times out. If you
2085
+ # make the request again with the same request ID, the server can check if
2086
+ # it received the original operation with the same request ID. If it did, it
2087
+ # will ignore the second request.
2161
2088
  #
2162
2089
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
2163
2090
  # with the exception that zero UUID is not supported
@@ -2210,41 +2137,30 @@ module Google
2210
2137
  end
2211
2138
 
2212
2139
  ##
2213
- # Transfers customer entitlements from current reseller to Google.
2214
- #
2215
- # Possible Error Codes:
2216
- # <ul>
2217
- # <li> PERMISSION_DENIED: If the customer doesn't belong to the reseller.
2218
- # </li> <li> INVALID_ARGUMENT: Missing or invalid required parameters in the
2219
- # request. </li>
2220
- # <li> NOT_FOUND: If the customer or offer resource is not found
2221
- # for the reseller. </li>
2222
- # <li> ALREADY_EXISTS: If the SKU has been already
2223
- # transferred for the customer. </li>
2224
- # <li> CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in
2225
- # the following cases:
2226
- # <ul>
2227
- # <li> Transferring a SKU that requires domain verification and the
2228
- # domain has not been verified. </li>
2229
- # <li> Transferring an Add-On SKU like Vault or Drive without purchasing
2230
- # the pre-requisite SKU, such as G Suite Basic </li> <li> Applicable only for
2231
- # developer accounts: reseller and resold domain must follow the domain
2232
- # naming convention as follows:
2233
- # <ul>
2234
- # <li> Domain names must start with goog-test. </li>
2235
- # <li> Resold domain names must include the reseller domain. </li>
2236
- # </ul>
2237
- # </li>
2238
- # </ul>
2239
- # </li>
2240
- # <li> INTERNAL: Any non-user error related to a technical issue in the
2241
- # backend. Please contact Cloud Channel Support in this case. </li>
2242
- # <li> UNKNOWN: Any non-user error related to a technical issue in the
2243
- # backend. Please contact Cloud Channel Support in this case.</li>
2244
- # </ul>
2245
- #
2246
- # Return Value:
2247
- # <br/> Long Running Operation ID.
2140
+ # Transfers customer entitlements from their current reseller to Google.
2141
+ #
2142
+ # Possible error codes:
2143
+ #
2144
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
2145
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2146
+ # * NOT_FOUND: The customer or offer resource was not found.
2147
+ # * ALREADY_EXISTS: The SKU was already transferred for the customer.
2148
+ # * CONDITION_NOT_MET or FAILED_PRECONDITION:
2149
+ # * The SKU requires domain verification to transfer, but the domain is
2150
+ # not verified.
2151
+ # * An Add-On SKU (example, Vault or Drive) is missing the
2152
+ # pre-requisite SKU (example, G Suite Basic).
2153
+ # * (Developer accounts only) Reseller and resold domain must meet the
2154
+ # following naming requirements:
2155
+ # * Domain names must start with goog-test.
2156
+ # * Domain names must include the reseller domain.
2157
+ # * INTERNAL: Any non-user error related to a technical issue in the
2158
+ # backend. Contact Cloud Channel support.
2159
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
2160
+ # Contact Cloud Channel support.
2161
+ #
2162
+ # Return value:
2163
+ # The ID of a long-running operation.
2248
2164
  #
2249
2165
  # To get the results of the operation, call the GetOperation method of
2250
2166
  # CloudChannelOperationsService. The response will contain
@@ -2267,20 +2183,19 @@ module Google
2267
2183
  # the default parameter values, pass an empty Hash as a request object (see above).
2268
2184
  #
2269
2185
  # @param parent [::String]
2270
- # Required. The resource name of reseller's customer account where the entitlements
2186
+ # Required. The resource name of the reseller's customer account where the entitlements
2271
2187
  # transfer from.
2272
- # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
2188
+ # Parent uses the format: accounts/\\{account_id}/customers/\\{customer_id}
2273
2189
  # @param entitlements [::Array<::Google::Cloud::Channel::V1::Entitlement, ::Hash>]
2274
- # Required. The entitlements to be transferred to Google.
2190
+ # Required. The entitlements to transfer to Google.
2275
2191
  # @param request_id [::String]
2276
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
2277
- # that if you must retry your request, the server will know to ignore the
2278
- # request if it has already been completed.
2192
+ # Optional. You can specify an optional unique request ID, and if you need to retry
2193
+ # your request, the server will know to ignore the request if it's complete.
2279
2194
  #
2280
- # For example, consider a situation where you make an initial request and
2281
- # the request times out. If you make the request again with the same
2282
- # request ID, the server can check if the original operation with the same
2283
- # request ID was received, and if so, will ignore the second request.
2195
+ # For example, you make an initial request and the request times out. If you
2196
+ # make the request again with the same request ID, the server can check if
2197
+ # it received the original operation with the same request ID. If it did, it
2198
+ # will ignore the second request.
2284
2199
  #
2285
2200
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
2286
2201
  # with the exception that zero UUID is not supported
@@ -2334,18 +2249,16 @@ module Google
2334
2249
 
2335
2250
  ##
2336
2251
  # List {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink}s belonging to a distributor.
2337
- # To call this method, you must be a distributor.
2252
+ # You must be a distributor to call this method.
2338
2253
  #
2339
- # Possible Error Codes:
2254
+ # Possible error codes:
2340
2255
  #
2341
- # * PERMISSION_DENIED: If the reseller account making the request and the
2342
- # reseller account being queried for are different.
2343
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2344
- # request.
2256
+ # * PERMISSION_DENIED: The reseller account making the request is different
2257
+ # from the reseller account in the API request.
2258
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2345
2259
  #
2346
- # Return Value:
2347
- # <br/> If successful, returns the list of {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resources
2348
- # for the distributor account, otherwise returns an error.
2260
+ # Return value:
2261
+ # The list of the distributor account's {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resources.
2349
2262
  #
2350
2263
  # @overload list_channel_partner_links(request, options = nil)
2351
2264
  # Pass arguments to `list_channel_partner_links` via a request object, either of type
@@ -2365,14 +2278,14 @@ module Google
2365
2278
  # @param parent [::String]
2366
2279
  # Required. The resource name of the reseller account for listing channel partner
2367
2280
  # links.
2368
- # The parent takes the format: accounts/\\{account_id}
2281
+ # Parent uses the format: accounts/\\{account_id}
2369
2282
  # @param page_size [::Integer]
2370
2283
  # Optional. Requested page size. Server might return fewer results than requested.
2371
2284
  # If unspecified, server will pick a default size (25).
2372
- # The maximum value is 200, values above 200 will be coerced to 200.
2285
+ # The maximum value is 200; the server will coerce values above 200.
2373
2286
  # @param page_token [::String]
2374
- # Optional. A token identifying a page of results, if other than the first one.
2375
- # Typically obtained via
2287
+ # Optional. A token for a page of results other than the first page.
2288
+ # Obtained using
2376
2289
  # {::Google::Cloud::Channel::V1::ListChannelPartnerLinksResponse#next_page_token ListChannelPartnerLinksResponse.next_page_token} of the previous
2377
2290
  # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_channel_partner_links CloudChannelService.ListChannelPartnerLinks} call.
2378
2291
  # @param view [::Google::Cloud::Channel::V1::ChannelPartnerLinkView]
@@ -2425,20 +2338,19 @@ module Google
2425
2338
  end
2426
2339
 
2427
2340
  ##
2428
- # Returns a requested {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
2429
- # To call this method, you must be a distributor.
2341
+ # Returns the requested {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
2342
+ # You must be a distributor to call this method.
2430
2343
  #
2431
- # Possible Error Codes:
2344
+ # Possible error codes:
2432
2345
  #
2433
- # * PERMISSION_DENIED: If the reseller account making the request and the
2434
- # reseller account being queried for are different.
2435
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2436
- # request.
2437
- # * NOT_FOUND: ChannelPartnerLink resource not found. Results
2438
- # due invalid channel partner link name.
2346
+ # * PERMISSION_DENIED: The reseller account making the request is different
2347
+ # from the reseller account in the API request.
2348
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2349
+ # * NOT_FOUND: ChannelPartnerLink resource not found because of an
2350
+ # invalid channel partner link name.
2439
2351
  #
2440
- # Return Value:
2441
- # <br/> {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource if found, otherwise returns an error.
2352
+ # Return value:
2353
+ # The {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
2442
2354
  #
2443
2355
  # @overload get_channel_partner_link(request, options = nil)
2444
2356
  # Pass arguments to `get_channel_partner_link` via a request object, either of type
@@ -2457,7 +2369,7 @@ module Google
2457
2369
  #
2458
2370
  # @param name [::String]
2459
2371
  # Required. The resource name of the channel partner link to retrieve.
2460
- # The name takes the format: accounts/\\{account_id}/channelPartnerLinks/\\{id}
2372
+ # Name uses the format: accounts/\\{account_id}/channelPartnerLinks/\\{id}
2461
2373
  # where \\{id} is the Cloud Identity ID of the partner.
2462
2374
  # @param view [::Google::Cloud::Channel::V1::ChannelPartnerLinkView]
2463
2375
  # Optional. The level of granularity the ChannelPartnerLink will display.
@@ -2508,30 +2420,28 @@ module Google
2508
2420
  end
2509
2421
 
2510
2422
  ##
2511
- # Initiates a channel partner link between a distributor and a reseller or
2423
+ # Initiates a channel partner link between a distributor and a reseller, or
2512
2424
  # between resellers in an n-tier reseller channel.
2513
- # To accept the invite, the invited partner should follow the invite_link_uri
2514
- # provided in the response. If the link creation is accepted, a valid link is
2515
- # set up between the two involved parties.
2516
- # To call this method, you must be a distributor.
2517
- #
2518
- # Possible Error Codes:
2519
- #
2520
- # * PERMISSION_DENIED: If the reseller account making the request and the
2521
- # reseller account being queried for are different.
2522
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2523
- # request.
2524
- # * ALREADY_EXISTS: If the ChannelPartnerLink sent in the request already
2425
+ # Invited partners need to follow the invite_link_uri provided in the
2426
+ # response to accept. After accepting the invitation, a link is set up
2427
+ # between the two parties.
2428
+ # You must be a distributor to call this method.
2429
+ #
2430
+ # Possible error codes:
2431
+ #
2432
+ # * PERMISSION_DENIED: The reseller account making the request is different
2433
+ # from the reseller account in the API request.
2434
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2435
+ # * ALREADY_EXISTS: The ChannelPartnerLink sent in the request already
2525
2436
  # exists.
2526
- # * NOT_FOUND: If no Cloud Identity customer exists for domain provided.
2437
+ # * NOT_FOUND: No Cloud Identity customer exists for provided domain.
2527
2438
  # * INTERNAL: Any non-user error related to a technical issue in the
2528
- # backend. In this case, contact Cloud Channel support.
2529
- # * UNKNOWN: Any non-user error related to a technical issue in
2530
- # the backend. In this case, contact Cloud Channel support.
2439
+ # backend. Contact Cloud Channel support.
2440
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
2441
+ # Contact Cloud Channel support.
2531
2442
  #
2532
- # Return Value:
2533
- # <br/> Newly created {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource if successful,
2534
- # otherwise error is returned.
2443
+ # Return value:
2444
+ # The new {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
2535
2445
  #
2536
2446
  # @overload create_channel_partner_link(request, options = nil)
2537
2447
  # Pass arguments to `create_channel_partner_link` via a request object, either of type
@@ -2543,23 +2453,19 @@ module Google
2543
2453
  # @param options [::Gapic::CallOptions, ::Hash]
2544
2454
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2545
2455
  #
2546
- # @overload create_channel_partner_link(parent: nil, channel_partner_link: nil, domain: nil)
2456
+ # @overload create_channel_partner_link(parent: nil, channel_partner_link: nil)
2547
2457
  # Pass arguments to `create_channel_partner_link` via keyword arguments. Note that at
2548
2458
  # least one keyword argument is required. To specify no parameters, or to keep all
2549
2459
  # the default parameter values, pass an empty Hash as a request object (see above).
2550
2460
  #
2551
2461
  # @param parent [::String]
2552
- # Required. The resource name of reseller's account for which to create a channel
2553
- # partner link.
2554
- # The parent takes the format: accounts/\\{account_id}
2462
+ # Required. Create a channel partner link for the provided reseller account's
2463
+ # resource name.
2464
+ # Parent uses the format: accounts/\\{account_id}
2555
2465
  # @param channel_partner_link [::Google::Cloud::Channel::V1::ChannelPartnerLink, ::Hash]
2556
2466
  # Required. The channel partner link to create.
2557
2467
  # Either channel_partner_link.reseller_cloud_identity_id or domain can be
2558
2468
  # used to create a link.
2559
- # @param domain [::String]
2560
- # Optional. The invited partner's domain. Either domain or
2561
- # channel_partner_link.reseller_cloud_identity_id can be used to create a
2562
- # link.
2563
2469
  #
2564
2470
  # @yield [response, operation] Access the result along with the RPC operation
2565
2471
  # @yieldparam response [::Google::Cloud::Channel::V1::ChannelPartnerLink]
@@ -2607,32 +2513,27 @@ module Google
2607
2513
  end
2608
2514
 
2609
2515
  ##
2610
- # Updates a channel partner link. A distributor calls this method to change a
2611
- # link's status. For example, suspend a partner link.
2612
- # To call this method, you must be a distributor.
2613
- #
2614
- # Possible Error Codes:
2615
- # <ul>
2616
- # <li> PERMISSION_DENIED: If the reseller account making the request and the
2617
- # reseller account being queried for are different. </li>
2618
- # <li> INVALID_ARGUMENT:
2619
- # <ul>
2620
- # <li> Missing or invalid required parameters in the request. </li>
2621
- # <li> Updating link state from invited to active or suspended. </li>
2622
- # <li> Sending reseller_cloud_identity_id, invite_url or name in update
2623
- # mask. </li>
2624
- # </ul>
2625
- # </li>
2626
- # <li> NOT_FOUND: ChannelPartnerLink resource not found.</li>
2627
- # <li> INTERNAL: Any non-user error related to a technical issue in the
2628
- # backend. In this case, contact Cloud Channel support. </li>
2629
- # <li> UNKNOWN: Any non-user error related to a technical issue in the
2630
- # backend. In this case, contact Cloud Channel support.</li>
2631
- # </ul>
2632
- #
2633
- # Return Value:
2634
- # <br/> If successful, the updated {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource, otherwise
2635
- # returns an error.
2516
+ # Updates a channel partner link. Distributors call this method to change a
2517
+ # link's status. For example, to suspend a partner link.
2518
+ # You must be a distributor to call this method.
2519
+ #
2520
+ # Possible error codes:
2521
+ #
2522
+ # * PERMISSION_DENIED: The reseller account making the request is different
2523
+ # from the reseller account in the API request.
2524
+ # * INVALID_ARGUMENT:
2525
+ # * Required request parameters are missing or invalid.
2526
+ # * Link state cannot change from invited to active or suspended.
2527
+ # * Cannot send reseller_cloud_identity_id, invite_url, or name in update
2528
+ # mask.
2529
+ # * NOT_FOUND: ChannelPartnerLink resource not found.
2530
+ # * INTERNAL: Any non-user error related to a technical issue in the
2531
+ # backend. Contact Cloud Channel support.
2532
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
2533
+ # Contact Cloud Channel support.
2534
+ #
2535
+ # Return value:
2536
+ # The updated {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
2636
2537
  #
2637
2538
  # @overload update_channel_partner_link(request, options = nil)
2638
2539
  # Pass arguments to `update_channel_partner_link` via a request object, either of type
@@ -2651,14 +2552,14 @@ module Google
2651
2552
  #
2652
2553
  # @param name [::String]
2653
2554
  # Required. The resource name of the channel partner link to cancel.
2654
- # The name takes the format: accounts/\\{account_id}/channelPartnerLinks/\\{id}
2555
+ # Name uses the format: accounts/\\{account_id}/channelPartnerLinks/\\{id}
2655
2556
  # where \\{id} is the Cloud Identity ID of the partner.
2656
2557
  # @param channel_partner_link [::Google::Cloud::Channel::V1::ChannelPartnerLink, ::Hash]
2657
- # Required. The channel partner link to update. Only field
2658
- # channel_partner_link.link_state is allowed to be updated.
2558
+ # Required. The channel partner link to update. Only channel_partner_link.link_state
2559
+ # is allowed for updates.
2659
2560
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2660
2561
  # Required. The update mask that applies to the resource.
2661
- # The only allowable value for update mask is
2562
+ # The only allowable value for an update mask is
2662
2563
  # channel_partner_link.link_state.
2663
2564
  #
2664
2565
  # @yield [response, operation] Access the result along with the RPC operation
@@ -2706,13 +2607,89 @@ module Google
2706
2607
  raise ::Google::Cloud::Error.from_error(e)
2707
2608
  end
2708
2609
 
2610
+ ##
2611
+ # Returns the requested {::Google::Cloud::Channel::V1::Offer Offer} resource.
2612
+ #
2613
+ # Possible error codes:
2614
+ #
2615
+ # * PERMISSION_DENIED: The entitlement doesn't belong to the reseller.
2616
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2617
+ # * NOT_FOUND: Entitlement or offer was not found.
2618
+ #
2619
+ # Return value:
2620
+ # The {::Google::Cloud::Channel::V1::Offer Offer} resource.
2621
+ #
2622
+ # @overload lookup_offer(request, options = nil)
2623
+ # Pass arguments to `lookup_offer` via a request object, either of type
2624
+ # {::Google::Cloud::Channel::V1::LookupOfferRequest} or an equivalent Hash.
2625
+ #
2626
+ # @param request [::Google::Cloud::Channel::V1::LookupOfferRequest, ::Hash]
2627
+ # A request object representing the call parameters. Required. To specify no
2628
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2629
+ # @param options [::Gapic::CallOptions, ::Hash]
2630
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2631
+ #
2632
+ # @overload lookup_offer(entitlement: nil)
2633
+ # Pass arguments to `lookup_offer` via keyword arguments. Note that at
2634
+ # least one keyword argument is required. To specify no parameters, or to keep all
2635
+ # the default parameter values, pass an empty Hash as a request object (see above).
2636
+ #
2637
+ # @param entitlement [::String]
2638
+ # Required. The resource name of the entitlement to retrieve the Offer.
2639
+ # Entitlement uses the format:
2640
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
2641
+ #
2642
+ # @yield [response, operation] Access the result along with the RPC operation
2643
+ # @yieldparam response [::Google::Cloud::Channel::V1::Offer]
2644
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2645
+ #
2646
+ # @return [::Google::Cloud::Channel::V1::Offer]
2647
+ #
2648
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2649
+ #
2650
+ def lookup_offer request, options = nil
2651
+ raise ::ArgumentError, "request must be provided" if request.nil?
2652
+
2653
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Channel::V1::LookupOfferRequest
2654
+
2655
+ # Converts hash and nil to an options object
2656
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2657
+
2658
+ # Customize the options with defaults
2659
+ metadata = @config.rpcs.lookup_offer.metadata.to_h
2660
+
2661
+ # Set x-goog-api-client and x-goog-user-project headers
2662
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2663
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2664
+ gapic_version: ::Google::Cloud::Channel::V1::VERSION
2665
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2666
+
2667
+ header_params = {
2668
+ "entitlement" => request.entitlement
2669
+ }
2670
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2671
+ metadata[:"x-goog-request-params"] ||= request_params_header
2672
+
2673
+ options.apply_defaults timeout: @config.rpcs.lookup_offer.timeout,
2674
+ metadata: metadata,
2675
+ retry_policy: @config.rpcs.lookup_offer.retry_policy
2676
+ options.apply_defaults metadata: @config.metadata,
2677
+ retry_policy: @config.retry_policy
2678
+
2679
+ @cloud_channel_service_stub.call_rpc :lookup_offer, request, options: options do |response, operation|
2680
+ yield response, operation if block_given?
2681
+ return response
2682
+ end
2683
+ rescue ::GRPC::BadStatus => e
2684
+ raise ::Google::Cloud::Error.from_error(e)
2685
+ end
2686
+
2709
2687
  ##
2710
2688
  # Lists the Products the reseller is authorized to sell.
2711
2689
  #
2712
- # Possible Error Codes:
2690
+ # Possible error codes:
2713
2691
  #
2714
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2715
- # request.
2692
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2716
2693
  #
2717
2694
  # @overload list_products(request, options = nil)
2718
2695
  # Pass arguments to `list_products` via a request object, either of type
@@ -2734,14 +2711,14 @@ module Google
2734
2711
  # Format: accounts/\\{account_id}.
2735
2712
  # @param page_size [::Integer]
2736
2713
  # Optional. Requested page size. Server might return fewer results than requested.
2737
- # If unspecified, at most 100 Products will be returned.
2738
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
2714
+ # If unspecified, returns at most 100 Products.
2715
+ # The maximum value is 1000; the server will coerce values above 1000.
2739
2716
  # @param page_token [::String]
2740
- # Optional. A token identifying a page of results, if other than the first one.
2717
+ # Optional. A token for a page of results other than the first page.
2741
2718
  # @param language_code [::String]
2742
- # Optional. The BCP-47 language code, such as "en-US". If specified, the
2743
- # response will be localized to the corresponding language code. Default is
2744
- # "en-US".
2719
+ # Optional. The BCP-47 language code. For example, "en-US". The
2720
+ # response will localize in the corresponding language code, if specified.
2721
+ # The default value is "en-US".
2745
2722
  #
2746
2723
  # @yield [response, operation] Access the result along with the RPC operation
2747
2724
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::Product>]
@@ -2786,10 +2763,9 @@ module Google
2786
2763
  ##
2787
2764
  # Lists the SKUs for a product the reseller is authorized to sell.
2788
2765
  #
2789
- # Possible Error Codes:
2766
+ # Possible error codes:
2790
2767
  #
2791
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2792
- # request.
2768
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2793
2769
  #
2794
2770
  # @overload list_skus(request, options = nil)
2795
2771
  # Pass arguments to `list_skus` via a request object, either of type
@@ -2807,23 +2783,23 @@ module Google
2807
2783
  # the default parameter values, pass an empty Hash as a request object (see above).
2808
2784
  #
2809
2785
  # @param parent [::String]
2810
- # Required. The resource name of the Product for which to list SKUs.
2811
- # The parent takes the format: products/\\{product_id}.
2786
+ # Required. The resource name of the Product to list SKUs for.
2787
+ # Parent uses the format: products/\\{product_id}.
2812
2788
  # Supports products/- to retrieve SKUs for all products.
2813
2789
  # @param account [::String]
2814
2790
  # Required. Resource name of the reseller.
2815
2791
  # Format: accounts/\\{account_id}.
2816
2792
  # @param page_size [::Integer]
2817
2793
  # Optional. Requested page size. Server might return fewer results than requested.
2818
- # If unspecified, at most 100 SKUs will be returned.
2819
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
2794
+ # If unspecified, returns at most 100 SKUs.
2795
+ # The maximum value is 1000; the server will coerce values above 1000.
2820
2796
  # @param page_token [::String]
2821
- # Optional. A token identifying a page of results, if other than the first one.
2797
+ # Optional. A token for a page of results other than the first page.
2822
2798
  # Optional.
2823
2799
  # @param language_code [::String]
2824
- # Optional. The BCP-47 language code, such as "en-US". If specified, the
2825
- # response will be localized to the corresponding language code. Default is
2826
- # "en-US".
2800
+ # Optional. The BCP-47 language code. For example, "en-US". The
2801
+ # response will localize in the corresponding language code, if specified.
2802
+ # The default value is "en-US".
2827
2803
  #
2828
2804
  # @yield [response, operation] Access the result along with the RPC operation
2829
2805
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::Sku>]
@@ -2874,10 +2850,9 @@ module Google
2874
2850
  ##
2875
2851
  # Lists the Offers the reseller can sell.
2876
2852
  #
2877
- # Possible Error Codes:
2853
+ # Possible error codes:
2878
2854
  #
2879
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2880
- # request.
2855
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2881
2856
  #
2882
2857
  # @overload list_offers(request, options = nil)
2883
2858
  # Pass arguments to `list_offers` via a request object, either of type
@@ -2896,23 +2871,23 @@ module Google
2896
2871
  #
2897
2872
  # @param parent [::String]
2898
2873
  # Required. The resource name of the reseller account from which to list Offers.
2899
- # The parent takes the format: accounts/\\{account_id}.
2874
+ # Parent uses the format: accounts/\\{account_id}.
2900
2875
  # @param page_size [::Integer]
2901
2876
  # Optional. Requested page size. Server might return fewer results than requested.
2902
- # If unspecified, at most 500 Offers will be returned.
2903
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
2877
+ # If unspecified, returns at most 500 Offers.
2878
+ # The maximum value is 1000; the server will coerce values above 1000.
2904
2879
  # @param page_token [::String]
2905
- # Optional. A token identifying a page of results, if other than the first one.
2880
+ # Optional. A token for a page of results other than the first page.
2906
2881
  # @param filter [::String]
2907
2882
  # Optional. The expression to filter results by name (name of
2908
- # the Offer), sku.name (name of the SKU) or sku.product.name (name of the
2883
+ # the Offer), sku.name (name of the SKU), or sku.product.name (name of the
2909
2884
  # Product).
2910
2885
  # Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1
2911
2886
  # Example 2: name=accounts/a1/offers/o1
2912
2887
  # @param language_code [::String]
2913
- # Optional. The BCP-47 language code, such as "en-US". If specified, the
2914
- # response will be localized to the corresponding language code. Default is
2915
- # "en-US".
2888
+ # Optional. The BCP-47 language code. For example, "en-US". The
2889
+ # response will localize in the corresponding language code, if specified.
2890
+ # The default value is "en-US".
2916
2891
  #
2917
2892
  # @yield [response, operation] Access the result along with the RPC operation
2918
2893
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::Offer>]
@@ -2961,16 +2936,15 @@ module Google
2961
2936
  end
2962
2937
 
2963
2938
  ##
2964
- # Lists the Purchasable SKUs for following cases:
2939
+ # Lists the following:
2965
2940
  #
2966
- # * SKUs that can be newly purchased for a customer
2967
- # * SKUs that can be upgraded/downgraded to, for an entitlement.
2941
+ # * SKUs that you can purchase for a customer
2942
+ # * SKUs that you can upgrade or downgrade for an entitlement.
2968
2943
  #
2969
- # Possible Error Codes:
2944
+ # Possible error codes:
2970
2945
  #
2971
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller
2972
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2973
- # request.
2946
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
2947
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2974
2948
  #
2975
2949
  # @overload list_purchasable_skus(request, options = nil)
2976
2950
  # Pass arguments to `list_purchasable_skus` via a request object, either of type
@@ -2992,18 +2966,18 @@ module Google
2992
2966
  # @param change_offer_purchase [::Google::Cloud::Channel::V1::ListPurchasableSkusRequest::ChangeOfferPurchase, ::Hash]
2993
2967
  # List SKUs for ChangeOffer purchase with a new SKU.
2994
2968
  # @param customer [::String]
2995
- # Required. The resource name of the customer for which to list SKUs.
2969
+ # Required. The resource name of the customer to list SKUs for.
2996
2970
  # Format: accounts/\\{account_id}/customers/\\{customer_id}.
2997
2971
  # @param page_size [::Integer]
2998
2972
  # Optional. Requested page size. Server might return fewer results than requested.
2999
- # If unspecified, at most 100 SKUs will be returned.
3000
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
2973
+ # If unspecified, returns at most 100 SKUs.
2974
+ # The maximum value is 1000; the server will coerce values above 1000.
3001
2975
  # @param page_token [::String]
3002
- # Optional. A token identifying a page of results, if other than the first one.
2976
+ # Optional. A token for a page of results other than the first page.
3003
2977
  # @param language_code [::String]
3004
- # Optional. The BCP-47 language code, such as "en-US". If specified, the
3005
- # response will be localized to the corresponding language code. Default is
3006
- # "en-US".
2978
+ # Optional. The BCP-47 language code. For example, "en-US". The
2979
+ # response will localize in the corresponding language code, if specified.
2980
+ # The default value is "en-US".
3007
2981
  #
3008
2982
  # @yield [response, operation] Access the result along with the RPC operation
3009
2983
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::PurchasableSku>]
@@ -3052,16 +3026,15 @@ module Google
3052
3026
  end
3053
3027
 
3054
3028
  ##
3055
- # Lists the Purchasable Offers for the following cases:
3029
+ # Lists the following:
3056
3030
  #
3057
- # * Offers that can be newly purchased for a customer
3058
- # * Offers that can be changed to, for an entitlement.
3031
+ # * Offers that you can purchase for a customer.
3032
+ # * Offers that you can change for an entitlement.
3059
3033
  #
3060
- # Possible Error Codes:
3034
+ # Possible error codes:
3061
3035
  #
3062
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller
3063
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
3064
- # request.
3036
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller
3037
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
3065
3038
  #
3066
3039
  # @overload list_purchasable_offers(request, options = nil)
3067
3040
  # Pass arguments to `list_purchasable_offers` via a request object, either of type
@@ -3083,18 +3056,18 @@ module Google
3083
3056
  # @param change_offer_purchase [::Google::Cloud::Channel::V1::ListPurchasableOffersRequest::ChangeOfferPurchase, ::Hash]
3084
3057
  # List Offers for ChangeOffer purchase.
3085
3058
  # @param customer [::String]
3086
- # Required. The resource name of the customer for which to list Offers.
3059
+ # Required. The resource name of the customer to list Offers for.
3087
3060
  # Format: accounts/\\{account_id}/customers/\\{customer_id}.
3088
3061
  # @param page_size [::Integer]
3089
3062
  # Optional. Requested page size. Server might return fewer results than requested.
3090
- # If unspecified, at most 100 Offers will be returned.
3091
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
3063
+ # If unspecified, returns at most 100 Offers.
3064
+ # The maximum value is 1000; the server will coerce values above 1000.
3092
3065
  # @param page_token [::String]
3093
- # Optional. A token identifying a page of results, if other than the first one.
3066
+ # Optional. A token for a page of results other than the first page.
3094
3067
  # @param language_code [::String]
3095
- # Optional. The BCP-47 language code, such as "en-US". If specified, the
3096
- # response will be localized to the corresponding language code. Default is
3097
- # "en-US".
3068
+ # Optional. The BCP-47 language code. For example, "en-US". The
3069
+ # response will localize in the corresponding language code, if specified.
3070
+ # The default value is "en-US".
3098
3071
  #
3099
3072
  # @yield [response, operation] Access the result along with the RPC operation
3100
3073
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::PurchasableOffer>]
@@ -3144,24 +3117,22 @@ module Google
3144
3117
 
3145
3118
  ##
3146
3119
  # Registers a service account with subscriber privileges on the Cloud Pub/Sub
3147
- # topic created for this Channel Services account. Once you create a
3148
- # subscriber, you will get the events as per {::Google::Cloud::Channel::V1::SubscriberEvent SubscriberEvent}
3120
+ # topic for this Channel Services account. After you create a
3121
+ # subscriber, you get the events through {::Google::Cloud::Channel::V1::SubscriberEvent SubscriberEvent}
3149
3122
  #
3150
- # Possible Error Codes:
3123
+ # Possible error codes:
3151
3124
  #
3152
- # * PERMISSION_DENIED: If the reseller account making the request and the
3153
- # reseller account being provided are different, or if the impersonated user
3125
+ # * PERMISSION_DENIED: The reseller account making the request and the
3126
+ # provided reseller account are different, or the impersonated user
3154
3127
  # is not a super admin.
3155
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
3156
- # request.
3128
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
3157
3129
  # * INTERNAL: Any non-user error related to a technical issue in the
3158
- # backend. In this case, contact Cloud Channel support.
3159
- # * UNKNOWN: Any non-user error related to a technical issue in
3160
- # the backend. In this case, contact Cloud Channel support.
3130
+ # backend. Contact Cloud Channel support.
3131
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
3132
+ # Contact Cloud Channel support.
3161
3133
  #
3162
- # Return Value:
3163
- # Topic name with service email address registered if successful,
3164
- # otherwise error is returned.
3134
+ # Return value:
3135
+ # The topic name with the registered service email address.
3165
3136
  #
3166
3137
  # @overload register_subscriber(request, options = nil)
3167
3138
  # Pass arguments to `register_subscriber` via a request object, either of type
@@ -3181,8 +3152,7 @@ module Google
3181
3152
  # @param account [::String]
3182
3153
  # Required. Resource name of the account.
3183
3154
  # @param service_account [::String]
3184
- # Required. Service account which will provide subscriber access to the
3185
- # registered topic.
3155
+ # Required. Service account that provides subscriber access to the registered topic.
3186
3156
  #
3187
3157
  # @yield [response, operation] Access the result along with the RPC operation
3188
3158
  # @yieldparam response [::Google::Cloud::Channel::V1::RegisterSubscriberResponse]
@@ -3232,26 +3202,25 @@ module Google
3232
3202
  ##
3233
3203
  # Unregisters a service account with subscriber privileges on the Cloud
3234
3204
  # Pub/Sub topic created for this Channel Services account. If there are no
3235
- # more service account left with sunbscriber privileges, the topic will be
3236
- # deleted. You can check this by calling ListSubscribers api.
3205
+ # service accounts left with subscriber privileges, this deletes the topic.
3206
+ # You can call ListSubscribers to check for these accounts.
3237
3207
  #
3238
- # Possible Error Codes:
3208
+ # Possible error codes:
3239
3209
  #
3240
- # * PERMISSION_DENIED: If the reseller account making the request and the
3241
- # reseller account being provided are different, or if the impersonated user
3210
+ # * PERMISSION_DENIED: The reseller account making the request and the
3211
+ # provided reseller account are different, or the impersonated user
3242
3212
  # is not a super admin.
3243
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
3244
- # request.
3245
- # * NOT_FOUND: If the topic resource doesn't exist.
3213
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
3214
+ # * NOT_FOUND: The topic resource doesn't exist.
3246
3215
  # * INTERNAL: Any non-user error related to a technical issue in the
3247
- # backend. In this case, contact Cloud Channel support.
3248
- # * UNKNOWN: Any non-user error related to a technical issue in
3249
- # the backend. In this case, contact Cloud Channel support.
3216
+ # backend. Contact Cloud Channel support.
3217
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
3218
+ # Contact Cloud Channel support.
3250
3219
  #
3251
- # Return Value:
3252
- # Topic name from which service email address has been unregistered if
3253
- # successful, otherwise error is returned. If the service email was already
3254
- # not associated with the topic, the success response will be returned.
3220
+ # Return value:
3221
+ # The topic name that unregistered the service email address.
3222
+ # Returns a success response if the service email address wasn't registered
3223
+ # with the topic.
3255
3224
  #
3256
3225
  # @overload unregister_subscriber(request, options = nil)
3257
3226
  # Pass arguments to `unregister_subscriber` via a request object, either of type
@@ -3271,8 +3240,7 @@ module Google
3271
3240
  # @param account [::String]
3272
3241
  # Required. Resource name of the account.
3273
3242
  # @param service_account [::String]
3274
- # Required. Service account which will be unregistered from getting subscriber access
3275
- # to the topic.
3243
+ # Required. Service account to unregister from subscriber access to the topic.
3276
3244
  #
3277
3245
  # @yield [response, operation] Access the result along with the RPC operation
3278
3246
  # @yieldparam response [::Google::Cloud::Channel::V1::UnregisterSubscriberResponse]
@@ -3323,22 +3291,20 @@ module Google
3323
3291
  # Lists service accounts with subscriber privileges on the Cloud Pub/Sub
3324
3292
  # topic created for this Channel Services account.
3325
3293
  #
3326
- # Possible Error Codes:
3294
+ # Possible error codes:
3327
3295
  #
3328
- # * PERMISSION_DENIED: If the reseller account making the request and the
3329
- # reseller account being provided are different, or if the account is not
3330
- # a super admin.
3331
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
3332
- # request.
3333
- # * NOT_FOUND: If the topic resource doesn't exist.
3296
+ # * PERMISSION_DENIED: The reseller account making the request and the
3297
+ # provided reseller account are different, or the impersonated user
3298
+ # is not a super admin.
3299
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
3300
+ # * NOT_FOUND: The topic resource doesn't exist.
3334
3301
  # * INTERNAL: Any non-user error related to a technical issue in the
3335
- # backend. In this case, contact Cloud Channel support.
3336
- # * UNKNOWN: Any non-user error related to a technical issue in
3337
- # the backend. In this case, contact Cloud Channel support.
3302
+ # backend. Contact Cloud Channel support.
3303
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
3304
+ # Contact Cloud Channel support.
3338
3305
  #
3339
- # Return Value:
3340
- # List of service email addresses if successful, otherwise error is
3341
- # returned.
3306
+ # Return value:
3307
+ # A list of service email addresses.
3342
3308
  #
3343
3309
  # @overload list_subscribers(request, options = nil)
3344
3310
  # Pass arguments to `list_subscribers` via a request object, either of type
@@ -3360,14 +3326,14 @@ module Google
3360
3326
  # @param page_size [::Integer]
3361
3327
  # Optional. The maximum number of service accounts to return. The service may return
3362
3328
  # fewer than this value.
3363
- # If unspecified, at most 100 service accounts will be returned.
3364
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
3329
+ # If unspecified, returns at most 100 service accounts.
3330
+ # The maximum value is 1000; the server will coerce values above 1000.
3365
3331
  # @param page_token [::String]
3366
3332
  # Optional. A page token, received from a previous `ListSubscribers` call.
3367
3333
  # Provide this to retrieve the subsequent page.
3368
3334
  #
3369
3335
  # When paginating, all other parameters provided to `ListSubscribers` must
3370
- # match the call that provided the page token.
3336
+ # match the call that provided the page token.
3371
3337
  #
3372
3338
  # @yield [response, operation] Access the result along with the RPC operation
3373
3339
  # @yieldparam response [::Google::Cloud::Channel::V1::ListSubscribersResponse]
@@ -3506,7 +3472,7 @@ module Google
3506
3472
  config_attr :scope, nil, ::String, ::Array, nil
3507
3473
  config_attr :lib_name, nil, ::String, nil
3508
3474
  config_attr :lib_version, nil, ::String, nil
3509
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
3475
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
3510
3476
  config_attr :interceptors, nil, ::Array, nil
3511
3477
  config_attr :timeout, nil, ::Numeric, nil
3512
3478
  config_attr :metadata, nil, ::Hash, nil
@@ -3527,7 +3493,7 @@ module Google
3527
3493
  def rpcs
3528
3494
  @rpcs ||= begin
3529
3495
  parent_rpcs = nil
3530
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
3496
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
3531
3497
  Rpcs.new parent_rpcs
3532
3498
  end
3533
3499
  end
@@ -3676,6 +3642,11 @@ module Google
3676
3642
  #
3677
3643
  attr_reader :update_channel_partner_link
3678
3644
  ##
3645
+ # RPC-specific configuration for `lookup_offer`
3646
+ # @return [::Gapic::Config::Method]
3647
+ #
3648
+ attr_reader :lookup_offer
3649
+ ##
3679
3650
  # RPC-specific configuration for `list_products`
3680
3651
  # @return [::Gapic::Config::Method]
3681
3652
  #
@@ -3718,71 +3689,73 @@ module Google
3718
3689
 
3719
3690
  # @private
3720
3691
  def initialize parent_rpcs = nil
3721
- list_customers_config = parent_rpcs&.list_customers if parent_rpcs&.respond_to? :list_customers
3692
+ list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers
3722
3693
  @list_customers = ::Gapic::Config::Method.new list_customers_config
3723
- get_customer_config = parent_rpcs&.get_customer if parent_rpcs&.respond_to? :get_customer
3694
+ get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer
3724
3695
  @get_customer = ::Gapic::Config::Method.new get_customer_config
3725
- check_cloud_identity_accounts_exist_config = parent_rpcs&.check_cloud_identity_accounts_exist if parent_rpcs&.respond_to? :check_cloud_identity_accounts_exist
3696
+ check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist
3726
3697
  @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config
3727
- create_customer_config = parent_rpcs&.create_customer if parent_rpcs&.respond_to? :create_customer
3698
+ create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer
3728
3699
  @create_customer = ::Gapic::Config::Method.new create_customer_config
3729
- update_customer_config = parent_rpcs&.update_customer if parent_rpcs&.respond_to? :update_customer
3700
+ update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer
3730
3701
  @update_customer = ::Gapic::Config::Method.new update_customer_config
3731
- delete_customer_config = parent_rpcs&.delete_customer if parent_rpcs&.respond_to? :delete_customer
3702
+ delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer
3732
3703
  @delete_customer = ::Gapic::Config::Method.new delete_customer_config
3733
- provision_cloud_identity_config = parent_rpcs&.provision_cloud_identity if parent_rpcs&.respond_to? :provision_cloud_identity
3704
+ provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity
3734
3705
  @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config
3735
- list_entitlements_config = parent_rpcs&.list_entitlements if parent_rpcs&.respond_to? :list_entitlements
3706
+ list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements
3736
3707
  @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config
3737
- list_transferable_skus_config = parent_rpcs&.list_transferable_skus if parent_rpcs&.respond_to? :list_transferable_skus
3708
+ list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus
3738
3709
  @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config
3739
- list_transferable_offers_config = parent_rpcs&.list_transferable_offers if parent_rpcs&.respond_to? :list_transferable_offers
3710
+ list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers
3740
3711
  @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config
3741
- get_entitlement_config = parent_rpcs&.get_entitlement if parent_rpcs&.respond_to? :get_entitlement
3712
+ get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement
3742
3713
  @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config
3743
- create_entitlement_config = parent_rpcs&.create_entitlement if parent_rpcs&.respond_to? :create_entitlement
3714
+ create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement
3744
3715
  @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config
3745
- change_parameters_config = parent_rpcs&.change_parameters if parent_rpcs&.respond_to? :change_parameters
3716
+ change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters
3746
3717
  @change_parameters = ::Gapic::Config::Method.new change_parameters_config
3747
- change_renewal_settings_config = parent_rpcs&.change_renewal_settings if parent_rpcs&.respond_to? :change_renewal_settings
3718
+ change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings
3748
3719
  @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config
3749
- change_offer_config = parent_rpcs&.change_offer if parent_rpcs&.respond_to? :change_offer
3720
+ change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer
3750
3721
  @change_offer = ::Gapic::Config::Method.new change_offer_config
3751
- start_paid_service_config = parent_rpcs&.start_paid_service if parent_rpcs&.respond_to? :start_paid_service
3722
+ start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service
3752
3723
  @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config
3753
- suspend_entitlement_config = parent_rpcs&.suspend_entitlement if parent_rpcs&.respond_to? :suspend_entitlement
3724
+ suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement
3754
3725
  @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config
3755
- cancel_entitlement_config = parent_rpcs&.cancel_entitlement if parent_rpcs&.respond_to? :cancel_entitlement
3726
+ cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement
3756
3727
  @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config
3757
- activate_entitlement_config = parent_rpcs&.activate_entitlement if parent_rpcs&.respond_to? :activate_entitlement
3728
+ activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement
3758
3729
  @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config
3759
- transfer_entitlements_config = parent_rpcs&.transfer_entitlements if parent_rpcs&.respond_to? :transfer_entitlements
3730
+ transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements
3760
3731
  @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config
3761
- transfer_entitlements_to_google_config = parent_rpcs&.transfer_entitlements_to_google if parent_rpcs&.respond_to? :transfer_entitlements_to_google
3732
+ transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google
3762
3733
  @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config
3763
- list_channel_partner_links_config = parent_rpcs&.list_channel_partner_links if parent_rpcs&.respond_to? :list_channel_partner_links
3734
+ list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links
3764
3735
  @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config
3765
- get_channel_partner_link_config = parent_rpcs&.get_channel_partner_link if parent_rpcs&.respond_to? :get_channel_partner_link
3736
+ get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link
3766
3737
  @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config
3767
- create_channel_partner_link_config = parent_rpcs&.create_channel_partner_link if parent_rpcs&.respond_to? :create_channel_partner_link
3738
+ create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link
3768
3739
  @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config
3769
- update_channel_partner_link_config = parent_rpcs&.update_channel_partner_link if parent_rpcs&.respond_to? :update_channel_partner_link
3740
+ update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link
3770
3741
  @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config
3771
- list_products_config = parent_rpcs&.list_products if parent_rpcs&.respond_to? :list_products
3742
+ lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer
3743
+ @lookup_offer = ::Gapic::Config::Method.new lookup_offer_config
3744
+ list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products
3772
3745
  @list_products = ::Gapic::Config::Method.new list_products_config
3773
- list_skus_config = parent_rpcs&.list_skus if parent_rpcs&.respond_to? :list_skus
3746
+ list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus
3774
3747
  @list_skus = ::Gapic::Config::Method.new list_skus_config
3775
- list_offers_config = parent_rpcs&.list_offers if parent_rpcs&.respond_to? :list_offers
3748
+ list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers
3776
3749
  @list_offers = ::Gapic::Config::Method.new list_offers_config
3777
- list_purchasable_skus_config = parent_rpcs&.list_purchasable_skus if parent_rpcs&.respond_to? :list_purchasable_skus
3750
+ list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus
3778
3751
  @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config
3779
- list_purchasable_offers_config = parent_rpcs&.list_purchasable_offers if parent_rpcs&.respond_to? :list_purchasable_offers
3752
+ list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers
3780
3753
  @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config
3781
- register_subscriber_config = parent_rpcs&.register_subscriber if parent_rpcs&.respond_to? :register_subscriber
3754
+ register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber
3782
3755
  @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config
3783
- unregister_subscriber_config = parent_rpcs&.unregister_subscriber if parent_rpcs&.respond_to? :unregister_subscriber
3756
+ unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber
3784
3757
  @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config
3785
- list_subscribers_config = parent_rpcs&.list_subscribers if parent_rpcs&.respond_to? :list_subscribers
3758
+ list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers
3786
3759
  @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config
3787
3760
 
3788
3761
  yield self if block_given?