google-cloud-channel-v1 0.1.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,7 +78,7 @@ 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
@@ -88,9 +86,9 @@ module Google
88
86
  default_config.timeout = 60.0
89
87
  default_config.retry_policy = {
90
88
  initial_delay: 1.0,
91
- max_delay: 10.0,
92
- multiplier: 1.3,
93
- retry_codes: [14]
89
+ max_delay: 10.0,
90
+ multiplier: 1.3,
91
+ retry_codes: [14]
94
92
  }
95
93
 
96
94
  default_config.rpcs.provision_cloud_identity.timeout = 60.0
@@ -176,7 +174,13 @@ module Google
176
174
 
177
175
  # Create credentials
178
176
  credentials = @config.credentials
179
- credentials ||= Credentials.default scope: @config.scope
177
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
178
+ # but only if the default endpoint does not have a region prefix.
179
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
180
+ @config.endpoint == Client.configure.endpoint &&
181
+ !@config.endpoint.split(".").first.include?("-")
182
+ credentials ||= Credentials.default scope: @config.scope,
183
+ enable_self_signed_jwt: enable_self_signed_jwt
180
184
  if credentials.is_a?(String) || credentials.is_a?(Hash)
181
185
  credentials = Credentials.new credentials, scope: @config.scope
182
186
  end
@@ -207,18 +211,16 @@ module Google
207
211
  # Service calls
208
212
 
209
213
  ##
210
- # List downstream {::Google::Cloud::Channel::V1::Customer Customer}s.
214
+ # List {::Google::Cloud::Channel::V1::Customer Customer}s.
211
215
  #
212
- # Possible Error Codes:
216
+ # Possible error codes:
213
217
  #
214
- # * PERMISSION_DENIED: If the reseller account making the request and the
215
- # reseller account being queried for are different.
216
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
217
- # request.
218
+ # * PERMISSION_DENIED: The reseller account making the request is different
219
+ # from the reseller account in the API request.
220
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
218
221
  #
219
- # Return Value:
220
- # <br/> List of {::Google::Cloud::Channel::V1::Customer Customer}s pertaining to the reseller or empty list if
221
- # there are none.
222
+ # Return value:
223
+ # List of {::Google::Cloud::Channel::V1::Customer Customer}s, or an empty list if there are no customers.
222
224
  #
223
225
  # @overload list_customers(request, options = nil)
224
226
  # Pass arguments to `list_customers` via a request object, either of type
@@ -236,15 +238,15 @@ module Google
236
238
  # the default parameter values, pass an empty Hash as a request object (see above).
237
239
  #
238
240
  # @param parent [::String]
239
- # Required. The resource name of the reseller account from which to list customers.
240
- # The parent takes the format: accounts/\\{account_id}.
241
+ # Required. The resource name of the reseller account to list customers from.
242
+ # Parent uses the format: accounts/\\{account_id}.
241
243
  # @param page_size [::Integer]
242
244
  # Optional. The maximum number of customers to return. The service may return fewer
243
- # than this value. If unspecified, at most 10 customers will be returned. The
244
- # maximum value is 50; values about 50 will be coerced to 50.
245
+ # than this value. If unspecified, returns at most 10 customers. The
246
+ # maximum value is 50.
245
247
  # @param page_token [::String]
246
- # Optional. A token identifying a page of results, if other than the first one.
247
- # Typically obtained via
248
+ # Optional. A token identifying a page of results other than the first page.
249
+ # Obtained through
248
250
  # {::Google::Cloud::Channel::V1::ListCustomersResponse#next_page_token ListCustomersResponse.next_page_token} of the previous
249
251
  # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_customers CloudChannelService.ListCustomers} call.
250
252
  #
@@ -297,17 +299,16 @@ module Google
297
299
  ##
298
300
  # Returns a requested {::Google::Cloud::Channel::V1::Customer Customer} resource.
299
301
  #
300
- # Possible Error Codes:
302
+ # Possible error codes:
301
303
  #
302
- # * PERMISSION_DENIED: If the reseller account making the request and the
303
- # reseller account being queried for are different.
304
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
305
- # request.
306
- # * NOT_FOUND: If the customer resource doesn't exist. Usually
307
- # the result of an invalid name parameter.
304
+ # * PERMISSION_DENIED: The reseller account making the request is different
305
+ # from the reseller account in the API request.
306
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
307
+ # * NOT_FOUND: The customer resource doesn't exist. Usually the result of an
308
+ # invalid name parameter.
308
309
  #
309
- # Return Value:
310
- # <br/> {::Google::Cloud::Channel::V1::Customer Customer} resource if found, error otherwise.
310
+ # Return value:
311
+ # The {::Google::Cloud::Channel::V1::Customer Customer} resource.
311
312
  #
312
313
  # @overload get_customer(request, options = nil)
313
314
  # Pass arguments to `get_customer` via a request object, either of type
@@ -326,7 +327,7 @@ module Google
326
327
  #
327
328
  # @param name [::String]
328
329
  # Required. The resource name of the customer to retrieve.
329
- # The name takes the format: accounts/\\{account_id}/customers/\\{customer_id}
330
+ # Name uses the format: accounts/\\{account_id}/customers/\\{customer_id}
330
331
  #
331
332
  # @yield [response, operation] Access the result along with the RPC operation
332
333
  # @yieldparam response [::Google::Cloud::Channel::V1::Customer]
@@ -374,22 +375,22 @@ module Google
374
375
  end
375
376
 
376
377
  ##
377
- # Confirms the existence of Cloud Identity accounts, based on the domain and
378
- # whether the Cloud Identity accounts are owned by the reseller.
378
+ # Confirms the existence of Cloud Identity accounts based on the domain and
379
+ # if the Cloud Identity accounts are owned by the reseller.
379
380
  #
380
- # Possible Error Codes:
381
+ # Possible error codes:
381
382
  #
382
- # * PERMISSION_DENIED: If the reseller account making the request and the
383
- # reseller account being queried for are different.
384
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
385
- # request.
383
+ # * PERMISSION_DENIED: The reseller account making the request is different
384
+ # from the reseller account in the API request.
385
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
386
386
  # * INVALID_VALUE: Invalid domain value in the request.
387
- # * NOT_FOUND: If there is no {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} customer
388
- # for the domain specified in the request.
389
387
  #
390
- # Return Value:
391
- # <br/> List of {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} resources if any exist for
392
- # the domain, otherwise an error is returned.
388
+ # Return value:
389
+ # A list of {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} resources for the domain (may be
390
+ # empty)
391
+ #
392
+ # Note: in the v1alpha1 version of the API, a NOT_FOUND error returns if
393
+ # no {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} resources match the domain.
393
394
  #
394
395
  # @overload check_cloud_identity_accounts_exist(request, options = nil)
395
396
  # Pass arguments to `check_cloud_identity_accounts_exist` via a request object, either of type
@@ -407,10 +408,10 @@ module Google
407
408
  # the default parameter values, pass an empty Hash as a request object (see above).
408
409
  #
409
410
  # @param parent [::String]
410
- # Required. The resource name of the reseller account.
411
- # The parent takes the format: accounts/\\{account_id}
411
+ # Required. The reseller account's resource name.
412
+ # Parent uses the format: accounts/\\{account_id}
412
413
  # @param domain [::String]
413
- # Required. Domain for which the Cloud Identity account customer is fetched.
414
+ # Required. Domain to fetch for Cloud Identity account customer.
414
415
  #
415
416
  # @yield [response, operation] Access the result along with the RPC operation
416
417
  # @yieldparam response [::Google::Cloud::Channel::V1::CheckCloudIdentityAccountsExistResponse]
@@ -461,22 +462,16 @@ module Google
461
462
  # Creates a new {::Google::Cloud::Channel::V1::Customer Customer} resource under the reseller or distributor
462
463
  # account.
463
464
  #
464
- # Possible Error Codes:
465
- # <ul>
466
- # <li>PERMISSION_DENIED: If the reseller account making the request and the
467
- # reseller account being queried for are different.</li>
468
- # <li> INVALID_ARGUMENT:
469
- # <ul>
470
- # <li> Missing or invalid required parameters in the request. </li>
471
- # <li> Domain field value doesn't match the domain specified in primary
472
- # email.</li>
473
- # </ul>
474
- # </li>
475
- # </ul>
476
- #
477
- # Return Value:
478
- # <br/> If successful, the newly created {::Google::Cloud::Channel::V1::Customer Customer} resource, otherwise
479
- # returns an error.
465
+ # Possible error codes:
466
+ #
467
+ # * PERMISSION_DENIED: The reseller account making the request is different
468
+ # from the reseller account in the API request.
469
+ # * INVALID_ARGUMENT:
470
+ # * Required request parameters are missing or invalid.
471
+ # * Domain field value doesn't match the primary email domain.
472
+ #
473
+ # Return value:
474
+ # The newly created {::Google::Cloud::Channel::V1::Customer Customer} resource.
480
475
  #
481
476
  # @overload create_customer(request, options = nil)
482
477
  # Pass arguments to `create_customer` via a request object, either of type
@@ -495,7 +490,7 @@ module Google
495
490
  #
496
491
  # @param parent [::String]
497
492
  # Required. The resource name of reseller account in which to create the customer.
498
- # The parent takes the format: accounts/\\{account_id}
493
+ # Parent uses the format: accounts/\\{account_id}
499
494
  # @param customer [::Google::Cloud::Channel::V1::Customer, ::Hash]
500
495
  # Required. The customer to create.
501
496
  #
@@ -545,21 +540,18 @@ module Google
545
540
  end
546
541
 
547
542
  ##
548
- # Updates an existing {::Google::Cloud::Channel::V1::Customer Customer} resource belonging to the reseller or
543
+ # Updates an existing {::Google::Cloud::Channel::V1::Customer Customer} resource for the reseller or
549
544
  # distributor.
550
545
  #
551
- # Possible Error Codes:
546
+ # Possible error codes:
552
547
  #
553
- # * PERMISSION_DENIED: If the reseller account making the request and the
554
- # reseller account being queried for are different.
555
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
556
- # request.
557
- # * NOT_FOUND: No {::Google::Cloud::Channel::V1::Customer Customer} resource found for the name
558
- # specified in the request.
548
+ # * PERMISSION_DENIED: The reseller account making the request is different
549
+ # from the reseller account in the API request.
550
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
551
+ # * NOT_FOUND: No {::Google::Cloud::Channel::V1::Customer Customer} resource found for the name in the request.
559
552
  #
560
- # Return Value:
561
- # <br/> If successful, the updated {::Google::Cloud::Channel::V1::Customer Customer} resource, otherwise returns
562
- # an error.
553
+ # Return value:
554
+ # The updated {::Google::Cloud::Channel::V1::Customer Customer} resource.
563
555
  #
564
556
  # @overload update_customer(request, options = nil)
565
557
  # Pass arguments to `update_customer` via a request object, either of type
@@ -630,15 +622,13 @@ module Google
630
622
  ##
631
623
  # Deletes the given {::Google::Cloud::Channel::V1::Customer Customer} permanently and irreversibly.
632
624
  #
633
- # Possible Error Codes:
625
+ # Possible error codes:
634
626
  #
635
- # * PERMISSION_DENIED: If the account making the request does not own
627
+ # * PERMISSION_DENIED: The account making the request does not own
636
628
  # this customer.
637
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
638
- # request.
639
- # * FAILED_PRECONDITION: If the customer has existing entitlements.
640
- # * NOT_FOUND: No {::Google::Cloud::Channel::V1::Customer Customer} resource found for the name
641
- # specified in the request.
629
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
630
+ # * FAILED_PRECONDITION: The customer has existing entitlements.
631
+ # * NOT_FOUND: No {::Google::Cloud::Channel::V1::Customer Customer} resource found for the name in the request.
642
632
  #
643
633
  # @overload delete_customer(request, options = nil)
644
634
  # Pass arguments to `delete_customer` via a request object, either of type
@@ -705,25 +695,25 @@ module Google
705
695
 
706
696
  ##
707
697
  # Creates a Cloud Identity for the given customer using the customer's
708
- # information or the information provided here, if present.
698
+ # information, or the information provided here.
709
699
  #
710
- # Possible Error Codes:
700
+ # Possible error codes:
711
701
  #
712
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
713
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the request.
714
- # * NOT_FOUND: If the customer is not found for the reseller.
715
- # * ALREADY_EXISTS: If the customer's primary email already exists. In this
716
- # case, retry after changing the customer's primary contact email.
717
- # * INTERNAL: Any non-user error related to a technical issue in the
718
- # backend. Contact Cloud Channel support in this case.
719
- # * UNKNOWN: Any non-user error related to a technical issue in the backend.
720
- # Contact Cloud Channel support in this case.
702
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
703
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
704
+ # * NOT_FOUND: The customer was not found.
705
+ # * ALREADY_EXISTS: The customer's primary email already exists. Retry
706
+ # after changing the customer's primary contact email.
707
+ # * INTERNAL: Any non-user error related to a technical issue in the
708
+ # backend. Contact Cloud Channel support.
709
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
710
+ # Contact Cloud Channel support.
721
711
  #
722
- # Return Value:
723
- # <br/> Long Running Operation ID.
712
+ # Return value:
713
+ # The ID of a long-running operation.
724
714
  #
725
715
  # To get the results of the operation, call the GetOperation method of
726
- # CloudChannelOperationsService. The Operation metadata will contain an
716
+ # CloudChannelOperationsService. The Operation metadata contains an
727
717
  # instance of {::Google::Cloud::Channel::V1::OperationMetadata OperationMetadata}.
728
718
  #
729
719
  # @overload provision_cloud_identity(request, options = nil)
@@ -749,8 +739,7 @@ module Google
749
739
  # @param user [::Google::Cloud::Channel::V1::AdminUser, ::Hash]
750
740
  # Admin user information.
751
741
  # @param validate_only [::Boolean]
752
- # If set, validate the request and preview the review, but do not actually
753
- # post it.
742
+ # Validate the request and preview the review, but do not post it.
754
743
  #
755
744
  # @yield [response, operation] Access the result along with the RPC operation
756
745
  # @yieldparam response [::Gapic::Operation]
@@ -799,16 +788,15 @@ module Google
799
788
  end
800
789
 
801
790
  ##
802
- # List {::Google::Cloud::Channel::V1::Entitlement Entitlement}s belonging to a customer.
791
+ # Lists {::Google::Cloud::Channel::V1::Entitlement Entitlement}s belonging to a customer.
803
792
  #
804
- # Possible Error Codes:
793
+ # Possible error codes:
805
794
  #
806
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
807
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the request.
795
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
796
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
808
797
  #
809
- # Return Value:
810
- # <br/> List of {::Google::Cloud::Channel::V1::Entitlement Entitlement}s belonging to the customer, or empty list if
811
- # there are none.
798
+ # Return value:
799
+ # A list of the customer's {::Google::Cloud::Channel::V1::Entitlement Entitlement}s.
812
800
  #
813
801
  # @overload list_entitlements(request, options = nil)
814
802
  # Pass arguments to `list_entitlements` via a request object, either of type
@@ -826,16 +814,16 @@ module Google
826
814
  # the default parameter values, pass an empty Hash as a request object (see above).
827
815
  #
828
816
  # @param parent [::String]
829
- # Required. The resource name of the reseller's customer account for which to list
830
- # entitlements.
831
- # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
817
+ # Required. The resource name of the reseller's customer account to list
818
+ # entitlements for.
819
+ # Parent uses the format: accounts/\\{account_id}/customers/\\{customer_id}
832
820
  # @param page_size [::Integer]
833
821
  # Optional. Requested page size. Server might return fewer results than requested.
834
- # If unspecified, at most 50 entitlements will be returned.
835
- # The maximum value is 100; values above 100 will be coerced to 100.
822
+ # If unspecified, return at most 50 entitlements.
823
+ # The maximum value is 100; the server will coerce values above 100.
836
824
  # @param page_token [::String]
837
- # Optional. A token identifying a page of results, if other than the first one.
838
- # Typically obtained via
825
+ # Optional. A token for a page of results other than the first page.
826
+ # Obtained using
839
827
  # {::Google::Cloud::Channel::V1::ListEntitlementsResponse#next_page_token ListEntitlementsResponse.next_page_token} of the previous
840
828
  # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_entitlements CloudChannelService.ListEntitlements} call.
841
829
  #
@@ -886,29 +874,24 @@ module Google
886
874
  end
887
875
 
888
876
  ##
889
- # List {::Google::Cloud::Channel::V1::TransferableSku TransferableSku}s of a customer based on Cloud Identity ID or
877
+ # List {::Google::Cloud::Channel::V1::TransferableSku TransferableSku}s of a customer based on the Cloud Identity ID or
890
878
  # Customer Name in the request.
891
879
  #
892
- # This method is used when a reseller lists the entitlements
893
- # information of a customer that is not owned. The reseller should provide
894
- # the customer's Cloud Identity ID or Customer Name.
895
- #
896
- # Possible Error Codes:
897
- # <ul>
898
- # <li>PERMISSION_DENIED, due to one of the following reasons:
899
- # <ul>
900
- # <li> If the customer doesn't belong to the reseller and no auth token,
901
- # or an invalid auth token is supplied. </li> <li> If the reseller account
902
- # making the request and the reseller account being queried for are
903
- # different. </li>
904
- # </ul>
905
- # </li>
906
- # <li> INVALID_ARGUMENT: Missing or invalid required parameters in the
907
- # request.</li>
908
- # </ul>
909
- #
910
- # Return Value:
911
- # <br/> List of {::Google::Cloud::Channel::V1::TransferableSku TransferableSku} for the given customer.
880
+ # Use this method to list the entitlements information of an
881
+ # unowned customer. You should provide the customer's
882
+ # Cloud Identity ID or Customer Name.
883
+ #
884
+ # Possible error codes:
885
+ #
886
+ # * PERMISSION_DENIED:
887
+ # * The customer doesn't belong to the reseller and has no auth token.
888
+ # * The supplied auth token is invalid.
889
+ # * The reseller account making the request is different
890
+ # from the reseller account in the query.
891
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
892
+ #
893
+ # Return value:
894
+ # A list of the customer's {::Google::Cloud::Channel::V1::TransferableSku TransferableSku}.
912
895
  #
913
896
  # @overload list_transferable_skus(request, options = nil)
914
897
  # Pass arguments to `list_transferable_skus` via a request object, either of type
@@ -930,32 +913,31 @@ module Google
930
913
  # @param customer_name [::String]
931
914
  # A reseller is required to create a customer and use the resource name of
932
915
  # the created customer here.
933
- # The customer_name takes the format:
916
+ # Customer_name uses the format:
934
917
  # accounts/\\{account_id}/customers/\\{customer_id}
935
918
  # @param parent [::String]
936
- # Required. The resource name of the reseller's account.
937
- # The parent takes the format: accounts/\\{account_id}
919
+ # Required. The reseller account's resource name.
920
+ # Parent uses the format: accounts/\\{account_id}
938
921
  # @param page_size [::Integer]
939
- # Requested page size. Server might return fewer results than requested.
940
- # If unspecified, at most 100 SKUs will be returned.
941
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
922
+ # The requested page size. Server might return fewer results than requested.
923
+ # If unspecified, returns at most 100 SKUs.
924
+ # The maximum value is 1000; the server will coerce values above 1000.
942
925
  # Optional.
943
926
  # @param page_token [::String]
944
- # A token identifying a page of results, if other than the first one.
945
- # Typically obtained via
927
+ # A token for a page of results other than the first page.
928
+ # Obtained using
946
929
  # {::Google::Cloud::Channel::V1::ListTransferableSkusResponse#next_page_token ListTransferableSkusResponse.next_page_token} of the previous
947
930
  # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_transferable_skus CloudChannelService.ListTransferableSkus} call.
948
931
  # Optional.
949
932
  # @param auth_token [::String]
950
- # This token is generated by the Super Admin of the resold customer to
933
+ # The super admin of the resold customer generates this token to
951
934
  # authorize a reseller to access their Cloud Identity and purchase
952
- # entitlements on their behalf. This token can be omitted once the
953
- # authorization is generated. See https://support.google.com/a/answer/7643790
954
- # for more details.
935
+ # entitlements on their behalf. You can omit this token after authorization.
936
+ # See https://support.google.com/a/answer/7643790 for more details.
955
937
  # @param language_code [::String]
956
- # The BCP-47 language code, such as "en-US". If specified, the
957
- # response will be localized to the corresponding language code. Default is
958
- # "en-US".
938
+ # The BCP-47 language code. For example, "en-US". The
939
+ # response will localize in the corresponding language code, if specified.
940
+ # The default value is "en-US".
959
941
  # Optional.
960
942
  #
961
943
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1008,20 +990,20 @@ module Google
1008
990
  # List {::Google::Cloud::Channel::V1::TransferableOffer TransferableOffer}s of a customer based on Cloud Identity ID or
1009
991
  # Customer Name in the request.
1010
992
  #
1011
- # This method is used when a reseller gets the entitlement
1012
- # information of a customer that is not owned. The reseller should provide
1013
- # the customer's Cloud Identity ID or Customer Name.
993
+ # Use this method when a reseller gets the entitlement information of an
994
+ # unowned customer. The reseller should provide the customer's
995
+ # Cloud Identity ID or Customer Name.
1014
996
  #
1015
- # Possible Error Codes:
997
+ # Possible error codes:
1016
998
  #
1017
- # * PERMISSION_DENIED, due to one of the following reasons: (a) If the
1018
- # customer doesn't belong to the reseller and no auth token or invalid auth
1019
- # token is supplied. (b) If the reseller account making the request and the
1020
- # reseller account being queried for are different.
1021
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1022
- # request.
999
+ # * PERMISSION_DENIED:
1000
+ # * The customer doesn't belong to the reseller and has no auth token.
1001
+ # * The supplied auth token is invalid.
1002
+ # * The reseller account making the request is different
1003
+ # from the reseller account in the query.
1004
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1023
1005
  #
1024
- # Return Value:
1006
+ # Return value:
1025
1007
  # List of {::Google::Cloud::Channel::V1::TransferableOffer TransferableOffer} for the given customer and SKU.
1026
1008
  #
1027
1009
  # @overload list_transferable_offers(request, options = nil)
@@ -1043,24 +1025,24 @@ module Google
1043
1025
  # Customer's Cloud Identity ID
1044
1026
  # @param customer_name [::String]
1045
1027
  # A reseller should create a customer and use the resource name of
1046
- # the created customer here.
1028
+ # that customer here.
1047
1029
  # @param parent [::String]
1048
1030
  # Required. The resource name of the reseller's account.
1049
1031
  # @param page_size [::Integer]
1050
1032
  # Requested page size. Server might return fewer results than requested.
1051
- # If unspecified, at most 100 Offers will be returned.
1052
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
1033
+ # If unspecified, returns at most 100 offers.
1034
+ # The maximum value is 1000; the server will coerce values above 1000.
1053
1035
  # @param page_token [::String]
1054
- # A token identifying a page of results, if other than the first one.
1055
- # Typically obtained via
1036
+ # A token for a page of results other than the first page.
1037
+ # Obtained using
1056
1038
  # {::Google::Cloud::Channel::V1::ListTransferableOffersResponse#next_page_token ListTransferableOffersResponse.next_page_token} of the previous
1057
1039
  # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_transferable_offers CloudChannelService.ListTransferableOffers} call.
1058
1040
  # @param sku [::String]
1059
- # Required. SKU for which the Offers are being looked up.
1041
+ # Required. The SKU to look up Offers for.
1060
1042
  # @param language_code [::String]
1061
- # The BCP-47 language code, such as "en-US". If specified, the
1062
- # response will be localized to the corresponding language code. Default is
1063
- # "en-US".
1043
+ # The BCP-47 language code. For example, "en-US". The
1044
+ # response will localize in the corresponding language code, if specified.
1045
+ # The default value is "en-US".
1064
1046
  #
1065
1047
  # @yield [response, operation] Access the result along with the RPC operation
1066
1048
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::TransferableOffer>]
@@ -1111,16 +1093,14 @@ module Google
1111
1093
  ##
1112
1094
  # Returns a requested {::Google::Cloud::Channel::V1::Entitlement Entitlement} resource.
1113
1095
  #
1114
- # Possible Error Codes:
1096
+ # Possible error codes:
1115
1097
  #
1116
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1117
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1118
- # request.
1119
- # * NOT_FOUND: If the entitlement is not found for the customer.
1098
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1099
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1100
+ # * NOT_FOUND: The customer entitlement was not found.
1120
1101
  #
1121
- # Return Value:
1122
- # <br/> If found, the requested {::Google::Cloud::Channel::V1::Entitlement Entitlement} resource, otherwise returns
1123
- # an error.
1102
+ # Return value:
1103
+ # The requested {::Google::Cloud::Channel::V1::Entitlement Entitlement} resource.
1124
1104
  #
1125
1105
  # @overload get_entitlement(request, options = nil)
1126
1106
  # Pass arguments to `get_entitlement` via a request object, either of type
@@ -1139,8 +1119,8 @@ module Google
1139
1119
  #
1140
1120
  # @param name [::String]
1141
1121
  # Required. The resource name of the entitlement to retrieve.
1142
- # The name takes the format:
1143
- # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{id}
1122
+ # Name uses the format:
1123
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1144
1124
  #
1145
1125
  # @yield [response, operation] Access the result along with the RPC operation
1146
1126
  # @yieldparam response [::Google::Cloud::Channel::V1::Entitlement]
@@ -1190,52 +1170,36 @@ module Google
1190
1170
  ##
1191
1171
  # Creates an entitlement for a customer.
1192
1172
  #
1193
- # Possible Error Codes:
1194
- # <ul>
1195
- # <li> PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1196
- # </li> <li> INVALID_ARGUMENT: <ul>
1197
- # <li> Missing or invalid required parameters in the request. </li>
1198
- # <li> Cannot purchase an entitlement if there is already an
1199
- # entitlement for customer, for a SKU from the same product family. </li>
1200
- # <li> INVALID_VALUE: Offer passed in isn't valid. Make sure OfferId is
1201
- # valid. If it is valid, then contact Google Channel support for further
1202
- # troubleshooting. </li>
1203
- # </ul>
1204
- # </li>
1205
- # <li> NOT_FOUND: If the customer or offer resource is not found for the
1206
- # reseller. </li>
1207
- # <li> ALREADY_EXISTS: This failure can happen in the following cases:
1208
- # <ul>
1209
- # <li>If the SKU has been already purchased for the customer.</li>
1210
- # <li>If the customer's primary email already exists. In this case retry
1211
- # after changing the customer's primary contact email.
1212
- # </li>
1213
- # </ul>
1214
- # </li>
1215
- # <li> CONDITION_NOT_MET or FAILED_PRECONDITION: This
1216
- # failure can happen in the following cases:
1217
- # <ul>
1218
- # <li> Purchasing a SKU that requires domain verification and the
1219
- # domain has not been verified. </li>
1220
- # <li> Purchasing an Add-On SKU like Vault or Drive without purchasing
1221
- # the pre-requisite SKU, such as Google Workspace Business Starter. </li>
1222
- # <li> Applicable only for developer accounts: reseller and resold
1223
- # domain. Must meet the following domain naming requirements:
1224
- # <ul>
1225
- # <li> Domain names must start with goog-test. </li>
1226
- # <li> Resold domain names must include the reseller domain. </li>
1227
- # </ul>
1228
- # </li>
1229
- # </ul>
1230
- # </li>
1231
- # <li> INTERNAL: Any non-user error related to a technical issue in the
1232
- # backend. Contact Cloud Channel Support in this case. </li>
1233
- # <li> UNKNOWN: Any non-user error related to a technical issue in the
1234
- # backend. Contact Cloud Channel Support in this case. </li>
1235
- # </ul>
1236
- #
1237
- # Return Value:
1238
- # <br/> Long Running Operation ID.
1173
+ # Possible error codes:
1174
+ #
1175
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1176
+ # * INVALID_ARGUMENT:
1177
+ # * Required request parameters are missing or invalid.
1178
+ # * There is already a customer entitlement for a SKU from the same
1179
+ # product family.
1180
+ # * INVALID_VALUE: Make sure the OfferId is valid. If it is, contact
1181
+ # Google Channel support for further troubleshooting.
1182
+ # * NOT_FOUND: The customer or offer resource was not found.
1183
+ # * ALREADY_EXISTS:
1184
+ # * The SKU was already purchased for the customer.
1185
+ # * The customer's primary email already exists. Retry
1186
+ # after changing the customer's primary contact email.
1187
+ # * CONDITION_NOT_MET or FAILED_PRECONDITION:
1188
+ # * The domain required for purchasing a SKU has not been verified.
1189
+ # * A pre-requisite SKU required to purchase an Add-On SKU is missing.
1190
+ # For example, Google Workspace Business Starter is required to purchase
1191
+ # Vault or Drive.
1192
+ # * (Developer accounts only) Reseller and resold domain must meet the
1193
+ # following naming requirements:
1194
+ # * Domain names must start with goog-test.
1195
+ # * Domain names must include the reseller domain.
1196
+ # * INTERNAL: Any non-user error related to a technical issue in the
1197
+ # backend. Contact Cloud Channel support.
1198
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1199
+ # Contact Cloud Channel support.
1200
+ #
1201
+ # Return value:
1202
+ # The ID of a long-running operation.
1239
1203
  #
1240
1204
  # To get the results of the operation, call the GetOperation method of
1241
1205
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1257,20 +1221,19 @@ module Google
1257
1221
  # the default parameter values, pass an empty Hash as a request object (see above).
1258
1222
  #
1259
1223
  # @param parent [::String]
1260
- # Required. The resource name of reseller's customer account in which to create the
1224
+ # Required. The resource name of the reseller's customer account in which to create the
1261
1225
  # entitlement.
1262
- # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
1226
+ # Parent uses the format: accounts/\\{account_id}/customers/\\{customer_id}
1263
1227
  # @param entitlement [::Google::Cloud::Channel::V1::Entitlement, ::Hash]
1264
1228
  # Required. The entitlement to create.
1265
1229
  # @param request_id [::String]
1266
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1267
- # that if you must retry your request, the server will know to ignore the
1268
- # request if it has already been completed.
1230
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1231
+ # your request, the server will know to ignore the request if it's complete.
1269
1232
  #
1270
- # For example, consider a situation where you make an initial request and
1271
- # the request times out. If you make the request again with the same
1272
- # request ID, the server can check if the original operation with the same
1273
- # request ID was received, and if so, will ignore the second request.
1233
+ # For example, you make an initial request and the request times out. If you
1234
+ # make the request again with the same request ID, the server can check if
1235
+ # it received the original operation with the same request ID. If it did, it
1236
+ # will ignore the second request.
1274
1237
  #
1275
1238
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1276
1239
  # with the exception that zero UUID is not supported
@@ -1323,26 +1286,25 @@ module Google
1323
1286
  end
1324
1287
 
1325
1288
  ##
1326
- # Change parameters of the entitlement
1289
+ # Change parameters of the entitlement.
1327
1290
  #
1328
- # An entitlement parameters update is a long-running operation and results in
1329
- # updates to the entitlement as a result of fulfillment.
1291
+ # An entitlement update is a long-running operation and it updates the
1292
+ # entitlement as a result of fulfillment.
1330
1293
  #
1331
- # Possible Error Codes:
1294
+ # Possible error codes:
1332
1295
  #
1333
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1334
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1335
- # request. For example, if the number of seats being changed to is greater
1336
- # than the allowed number of max seats for the resource. Or decreasing seats
1337
- # for a commitment based plan.
1296
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1297
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1298
+ # For example, the number of seats being changed is greater than the allowed
1299
+ # number of max seats, or decreasing seats for a commitment based plan.
1338
1300
  # * NOT_FOUND: Entitlement resource not found.
1339
- # * INTERNAL: Any non-user error related to a technical issue
1340
- # in the backend. In this case, contact Cloud Channel support.
1301
+ # * INTERNAL: Any non-user error related to a technical issue in the
1302
+ # backend. Contact Cloud Channel support.
1341
1303
  # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1342
- # In this case, contact Cloud Channel support.
1304
+ # Contact Cloud Channel support.
1343
1305
  #
1344
- # Return Value:
1345
- # <br/> Long Running Operation ID.
1306
+ # Return value:
1307
+ # The ID of a long-running operation.
1346
1308
  #
1347
1309
  # To get the results of the operation, call the GetOperation method of
1348
1310
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1365,24 +1327,21 @@ module Google
1365
1327
  #
1366
1328
  # @param name [::String]
1367
1329
  # Required. The name of the entitlement to update.
1368
- # The name takes the format:
1330
+ # Name uses the format:
1369
1331
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1370
1332
  # @param parameters [::Array<::Google::Cloud::Channel::V1::Parameter, ::Hash>]
1371
- # Required. Entitlement parameters to update. Only editable parameters are allowed to
1372
- # be changed.
1333
+ # Required. Entitlement parameters to update. You can only change editable parameters.
1373
1334
  # @param request_id [::String]
1374
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1375
- # that if you must retry your request, the server will know to ignore the
1376
- # request if it has already been completed.
1377
- #
1378
- # For example, consider a situation where you make an initial request and
1379
- # the request times out. If you make the request again with the same
1380
- # request ID, the server can check if the original operation with the same
1381
- # request ID was received, and if so, will ignore the second request.
1382
- #
1383
- # The request ID must be
1384
- # a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that
1385
- # zero UUID is not supported
1335
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1336
+ # your request, the server will know to ignore the request if it's complete.
1337
+ #
1338
+ # For example, you make an initial request and the request times out. If you
1339
+ # make the request again with the same request ID, the server can check if
1340
+ # it received the original operation with the same request ID. If it did, it
1341
+ # will ignore the second request.
1342
+ #
1343
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1344
+ # with the exception that zero UUID is not supported
1386
1345
  # (`00000000-0000-0000-0000-000000000000`).
1387
1346
  # @param purchase_order_id [::String]
1388
1347
  # Optional. Purchase order ID provided by the reseller.
@@ -1436,24 +1395,23 @@ module Google
1436
1395
  ##
1437
1396
  # Updates the renewal settings for an existing customer entitlement.
1438
1397
  #
1439
- # An entitlement update is a long-running operation and results in updates to
1440
- # the entitlement as a result of fulfillment.
1398
+ # An entitlement update is a long-running operation and it updates the
1399
+ # entitlement as a result of fulfillment.
1441
1400
  #
1442
- # Possible Error Codes:
1401
+ # Possible error codes:
1443
1402
  #
1444
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1445
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1446
- # request.
1403
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1404
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1447
1405
  # * NOT_FOUND: Entitlement resource not found.
1448
1406
  # * NOT_COMMITMENT_PLAN: Renewal Settings are only applicable for a
1449
- # commitment plan. Can't enable or disable renewal for non-commitment plans.
1450
- # * INTERNAL: Any non user error related to a technical issue in the
1451
- # backend. In this case, contact Cloud Channel support.
1452
- # * UNKNOWN: Any non user error related to a technical issue in the backend.
1453
- # In this case, contact Cloud Channel support.
1407
+ # commitment plan. Can't enable or disable renewals for non-commitment plans.
1408
+ # * INTERNAL: Any non-user error related to a technical issue in the
1409
+ # backend. Contact Cloud Channel support.
1410
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1411
+ # Contact Cloud Channel support.
1454
1412
  #
1455
- # Return Value:
1456
- # <br/> Long Running Operation ID.
1413
+ # Return value:
1414
+ # The ID of a long-running operation.
1457
1415
  #
1458
1416
  # To get the results of the operation, call the GetOperation method of
1459
1417
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1476,19 +1434,18 @@ module Google
1476
1434
  #
1477
1435
  # @param name [::String]
1478
1436
  # Required. The name of the entitlement to update.
1479
- # The name takes the format:
1437
+ # Name uses the format:
1480
1438
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1481
1439
  # @param renewal_settings [::Google::Cloud::Channel::V1::RenewalSettings, ::Hash]
1482
1440
  # Required. New renewal settings.
1483
1441
  # @param request_id [::String]
1484
- # Optional. A request ID to identify requests. Specify a unique request ID so
1485
- # that if you must retry your request, the server will know to ignore the
1486
- # request if it has already been completed.
1442
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1443
+ # your request, the server will know to ignore the request if it's complete.
1487
1444
  #
1488
- # For example, consider a situation where you make an initial request and
1489
- # the request times out. If you make the request again with the same
1490
- # request ID, the server can check if the original operation with the same
1491
- # request ID was received, and if so, will ignore the second request.
1445
+ # For example, you make an initial request and the request times out. If you
1446
+ # make the request again with the same request ID, the server can check if
1447
+ # it received the original operation with the same request ID. If it did, it
1448
+ # will ignore the second request.
1492
1449
  #
1493
1450
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1494
1451
  # with the exception that zero UUID is not supported
@@ -1543,22 +1500,21 @@ module Google
1543
1500
  ##
1544
1501
  # Updates the Offer for an existing customer entitlement.
1545
1502
  #
1546
- # An entitlement update is a long-running operation and results in updates to
1547
- # the entitlement as a result of fulfillment.
1503
+ # An entitlement update is a long-running operation and it updates the
1504
+ # entitlement as a result of fulfillment.
1548
1505
  #
1549
- # Possible Error Codes:
1506
+ # Possible error codes:
1550
1507
  #
1551
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1552
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1553
- # request.
1508
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1509
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1554
1510
  # * NOT_FOUND: Offer or Entitlement resource not found.
1555
- # * INTERNAL: Any non-user error related to a technical issue in the backend.
1556
- # In this case, contact Cloud Channel support.
1511
+ # * INTERNAL: Any non-user error related to a technical issue in the
1512
+ # backend. Contact Cloud Channel support.
1557
1513
  # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1558
- # In this case, contact Cloud Channel support.
1514
+ # Contact Cloud Channel support.
1559
1515
  #
1560
- # Return Value:
1561
- # <br/> Long Running Operation ID.
1516
+ # Return value:
1517
+ # The ID of a long-running operation.
1562
1518
  #
1563
1519
  # To get the results of the operation, call the GetOperation method of
1564
1520
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1580,8 +1536,8 @@ module Google
1580
1536
  # the default parameter values, pass an empty Hash as a request object (see above).
1581
1537
  #
1582
1538
  # @param name [::String]
1583
- # Required. The name of the entitlement to update.
1584
- # Format:
1539
+ # Required. The resource name of the entitlement to update.
1540
+ # Name uses the format:
1585
1541
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1586
1542
  # @param offer [::String]
1587
1543
  # Required. New Offer.
@@ -1591,14 +1547,13 @@ module Google
1591
1547
  # @param purchase_order_id [::String]
1592
1548
  # Optional. Purchase order id provided by the reseller.
1593
1549
  # @param request_id [::String]
1594
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1595
- # that if you must retry your request, the server will know to ignore the
1596
- # request if it has already been completed.
1550
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1551
+ # your request, the server will know to ignore the request if it's complete.
1597
1552
  #
1598
- # For example, consider a situation where you make an initial request and
1599
- # the request times out. If you make the request again with the same
1600
- # request ID, the server can check if the original operation with the same
1601
- # request ID was received, and if so, will ignore the second request.
1553
+ # For example, you make an initial request and the request times out. If you
1554
+ # make the request again with the same request ID, the server can check if
1555
+ # it received the original operation with the same request ID. If it did, it
1556
+ # will ignore the second request.
1602
1557
  #
1603
1558
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1604
1559
  # with the exception that zero UUID is not supported
@@ -1654,24 +1609,23 @@ module Google
1654
1609
  # Starts paid service for a trial entitlement.
1655
1610
  #
1656
1611
  # Starts paid service for a trial entitlement immediately. This method is
1657
- # only applicable if a plan has already been set up for a trial entitlement
1658
- # but has some trial days remaining.
1612
+ # only applicable if a plan is set up for a trial entitlement but has some
1613
+ # trial days remaining.
1659
1614
  #
1660
- # Possible Error Codes:
1615
+ # Possible error codes:
1661
1616
  #
1662
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1663
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1664
- # request.
1617
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1618
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1665
1619
  # * NOT_FOUND: Entitlement resource not found.
1666
1620
  # * FAILED_PRECONDITION/NOT_IN_TRIAL: This method only works for
1667
1621
  # entitlement on trial plans.
1668
- # * INTERNAL: Any non-user error related to a technical issue in the backend.
1669
- # In this case, contact Cloud Channel support.
1670
- # * UNKNOWN: Any non-user error related to a technical issue
1671
- # in the backend. In this case, contact Cloud Channel support.
1622
+ # * INTERNAL: Any non-user error related to a technical issue in the
1623
+ # backend. Contact Cloud Channel support.
1624
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1625
+ # Contact Cloud Channel support.
1672
1626
  #
1673
- # Return Value:
1674
- # <br/> Long Running Operation ID.
1627
+ # Return value:
1628
+ # The ID of a long-running operation.
1675
1629
  #
1676
1630
  # To get the results of the operation, call the GetOperation method of
1677
1631
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1693,18 +1647,17 @@ module Google
1693
1647
  # the default parameter values, pass an empty Hash as a request object (see above).
1694
1648
  #
1695
1649
  # @param name [::String]
1696
- # Required. The name of the entitlement for which paid service is being started.
1697
- # The name takes the format:
1650
+ # Required. The name of the entitlement to start a paid service for.
1651
+ # Name uses the format:
1698
1652
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1699
1653
  # @param request_id [::String]
1700
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1701
- # that if you must retry your request, the server will know to ignore the
1702
- # request if it has already been completed.
1654
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1655
+ # your request, the server will know to ignore the request if it's complete.
1703
1656
  #
1704
- # For example, consider a situation where you make an initial request and
1705
- # the request times out. If you make the request again with the same
1706
- # request ID, the server can check if the original operation with the same
1707
- # request ID was received, and if so, will ignore the second request.
1657
+ # For example, you make an initial request and the request times out. If you
1658
+ # make the request again with the same request ID, the server can check if
1659
+ # it received the original operation with the same request ID. If it did, it
1660
+ # will ignore the second request.
1708
1661
  #
1709
1662
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1710
1663
  # with the exception that zero UUID is not supported
@@ -1758,22 +1711,22 @@ module Google
1758
1711
 
1759
1712
  ##
1760
1713
  # Suspends a previously fulfilled entitlement.
1714
+ #
1761
1715
  # An entitlement suspension is a long-running operation.
1762
1716
  #
1763
- # Possible Error Codes:
1717
+ # Possible error codes:
1764
1718
  #
1765
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
1766
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1767
- # request.
1719
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
1720
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1768
1721
  # * NOT_FOUND: Entitlement resource not found.
1769
1722
  # * NOT_ACTIVE: Entitlement is not active.
1770
- # * INTERNAL: Any non-user error related to a technical issue in the backend.
1771
- # In this case, contact Cloud Channel support.
1723
+ # * INTERNAL: Any non-user error related to a technical issue in the
1724
+ # backend. Contact Cloud Channel support.
1772
1725
  # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1773
- # In this case, contact Cloud Channel support.
1726
+ # Contact Cloud Channel support.
1774
1727
  #
1775
- # Return Value:
1776
- # <br/> Long Running Operation ID.
1728
+ # Return value:
1729
+ # The ID of a long-running operation.
1777
1730
  #
1778
1731
  # To get the results of the operation, call the GetOperation method of
1779
1732
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -1796,17 +1749,16 @@ module Google
1796
1749
  #
1797
1750
  # @param name [::String]
1798
1751
  # Required. The resource name of the entitlement to suspend.
1799
- # The name takes the format:
1752
+ # Name uses the format:
1800
1753
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1801
1754
  # @param request_id [::String]
1802
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1803
- # that if you must retry your request, the server will know to ignore the
1804
- # request if it has already been completed.
1755
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1756
+ # your request, the server will know to ignore the request if it's complete.
1805
1757
  #
1806
- # For example, consider a situation where you make an initial request and
1807
- # the request times out. If you make the request again with the same
1808
- # request ID, the server can check if the original operation with the same
1809
- # request ID was received, and if so, will ignore the second request.
1758
+ # For example, you make an initial request and the request times out. If you
1759
+ # make the request again with the same request ID, the server can check if
1760
+ # it received the original operation with the same request ID. If it did, it
1761
+ # will ignore the second request.
1810
1762
  #
1811
1763
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1812
1764
  # with the exception that zero UUID is not supported
@@ -1860,27 +1812,26 @@ module Google
1860
1812
 
1861
1813
  ##
1862
1814
  # Cancels a previously fulfilled entitlement.
1815
+ #
1863
1816
  # An entitlement cancellation is a long-running operation.
1864
1817
  #
1865
- # Possible Error Codes:
1818
+ # Possible error codes:
1866
1819
  #
1867
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller or
1868
- # if the reseller account making the request and reseller account being
1869
- # queried for are different.
1870
- # * FAILED_PRECONDITION: If there are any Google Cloud projects linked to the
1820
+ # * PERMISSION_DENIED: The reseller account making the request is different
1821
+ # from the reseller account in the API request.
1822
+ # * FAILED_PRECONDITION: There are Google Cloud projects linked to the
1871
1823
  # Google Cloud entitlement's Cloud Billing subaccount.
1872
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1873
- # request.
1824
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1874
1825
  # * NOT_FOUND: Entitlement resource not found.
1875
1826
  # * DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed for Google Workspace
1876
- # add-ons or entitlements for Google Cloud's development platform.
1827
+ # add-ons, or entitlements for Google Cloud's development platform.
1877
1828
  # * INTERNAL: Any non-user error related to a technical issue in the
1878
- # backend. In this case, contact Cloud Channel support.
1829
+ # backend. Contact Cloud Channel support.
1879
1830
  # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1880
- # In this case, contact Cloud Channel support.
1831
+ # Contact Cloud Channel support.
1881
1832
  #
1882
- # Return Value:
1883
- # <br/> Long Running Operation ID.
1833
+ # Return value:
1834
+ # The ID of a long-running operation.
1884
1835
  #
1885
1836
  # To get the results of the operation, call the GetOperation method of
1886
1837
  # CloudChannelOperationsService. The response will contain
@@ -1904,17 +1855,16 @@ module Google
1904
1855
  #
1905
1856
  # @param name [::String]
1906
1857
  # Required. The resource name of the entitlement to cancel.
1907
- # The name takes the format:
1858
+ # Name uses the format:
1908
1859
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1909
1860
  # @param request_id [::String]
1910
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
1911
- # that if you must retry your request, the server will know to ignore the
1912
- # request if it has already been completed.
1861
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1862
+ # your request, the server will know to ignore the request if it's complete.
1913
1863
  #
1914
- # For example, consider a situation where you make an initial request and
1915
- # the request times out. If you make the request again with the same
1916
- # request ID, the server can check if the original operation with the same
1917
- # request ID was received, and if so, will ignore the second request.
1864
+ # For example, you make an initial request and the request times out. If you
1865
+ # make the request again with the same request ID, the server can check if
1866
+ # it received the original operation with the same request ID. If it did, it
1867
+ # will ignore the second request.
1918
1868
  #
1919
1869
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1920
1870
  # with the exception that zero UUID is not supported
@@ -1967,32 +1917,29 @@ module Google
1967
1917
  end
1968
1918
 
1969
1919
  ##
1970
- # Activates a previously suspended entitlement. The entitlement must be in a
1971
- # suspended state for it to be activated. Entitlements suspended for pending
1972
- # ToS acceptance can't be activated using this method. An entitlement
1973
- # activation is a long-running operation and can result in updates to
1920
+ # Activates a previously suspended entitlement. Entitlements suspended for
1921
+ # pending ToS acceptance can't be activated using this method.
1922
+ #
1923
+ # An entitlement activation is a long-running operation and it updates
1974
1924
  # the state of the customer entitlement.
1975
1925
  #
1976
- # Possible Error Codes:
1926
+ # Possible error codes:
1977
1927
  #
1978
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller or
1979
- # if the reseller account making the request and reseller account being
1980
- # queried for are different.
1981
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
1982
- # request.
1928
+ # * PERMISSION_DENIED: The reseller account making the request is different
1929
+ # from the reseller account in the API request.
1930
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
1983
1931
  # * NOT_FOUND: Entitlement resource not found.
1984
- # * SUSPENSION_NOT_RESELLER_INITIATED: Can't activate an
1985
- # entitlement that is pending TOS acceptance. Only reseller initiated
1986
- # suspensions can be activated.
1987
- # * NOT_SUSPENDED: Can't activate entitlements that are already in ACTIVE
1988
- # state. Can only activate suspended entitlements.
1989
- # * INTERNAL: Any non-user error related to a technical issue
1990
- # in the backend. In this case, contact Cloud Channel support.
1932
+ # * SUSPENSION_NOT_RESELLER_INITIATED: Can only activate reseller-initiated
1933
+ # suspensions and entitlements that have accepted the TOS.
1934
+ # * NOT_SUSPENDED: Can only activate suspended entitlements not in an ACTIVE
1935
+ # state.
1936
+ # * INTERNAL: Any non-user error related to a technical issue in the
1937
+ # backend. Contact Cloud Channel support.
1991
1938
  # * UNKNOWN: Any non-user error related to a technical issue in the backend.
1992
- # In this case, contact Cloud Channel support.
1939
+ # Contact Cloud Channel support.
1993
1940
  #
1994
- # Return Value:
1995
- # <br/> Long Running Operation ID.
1941
+ # Return value:
1942
+ # The ID of a long-running operation.
1996
1943
  #
1997
1944
  # To get the results of the operation, call the GetOperation method of
1998
1945
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -2015,17 +1962,16 @@ module Google
2015
1962
  #
2016
1963
  # @param name [::String]
2017
1964
  # Required. The resource name of the entitlement to activate.
2018
- # The name takes the format:
1965
+ # Name uses the format:
2019
1966
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
2020
1967
  # @param request_id [::String]
2021
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
2022
- # that if you must retry your request, the server will know to ignore the
2023
- # request if it has already been completed.
1968
+ # Optional. You can specify an optional unique request ID, and if you need to retry
1969
+ # your request, the server will know to ignore the request if it's complete.
2024
1970
  #
2025
- # For example, consider a situation where you make an initial request and
2026
- # the request times out. If you make the request again with the same
2027
- # request ID, the server can check if the original operation with the same
2028
- # request ID was received, and if so, will ignore the second request.
1971
+ # For example, you make an initial request and the request times out. If you
1972
+ # make the request again with the same request ID, the server can check if
1973
+ # it received the original operation with the same request ID. If it did, it
1974
+ # will ignore the second request.
2029
1975
  #
2030
1976
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
2031
1977
  # with the exception that zero UUID is not supported
@@ -2080,37 +2026,29 @@ module Google
2080
2026
  ##
2081
2027
  # Transfers customer entitlements to new reseller.
2082
2028
  #
2083
- # Possible Error Codes:
2084
- # <ul>
2085
- # <li> PERMISSION_DENIED: If the customer doesn't belong to the
2086
- # reseller.</li> <li> INVALID_ARGUMENT: Missing or invalid required
2087
- # parameters in the request. </li> <li> NOT_FOUND: If the customer or offer
2088
- # resource is not found for the reseller. </li> <li> ALREADY_EXISTS: If the
2089
- # SKU has been already transferred for the customer. </li> <li>
2090
- # CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in the
2091
- # following cases: <ul>
2092
- # <li> Transferring a SKU that requires domain verification and the
2093
- # domain has not been verified. </li>
2094
- # <li> Transferring an Add-On SKU like Vault or Drive without transferring
2095
- # the pre-requisite SKU, such as G Suite Basic </li> <li> Applicable only for
2096
- # developer accounts: reseller and resold domain must follow the domain
2097
- # naming convention as follows:
2098
- # <ul>
2099
- # <li> Domain names must start with goog-test. </li>
2100
- # <li> Resold domain names must include the reseller domain. </li>
2101
- # </ul>
2102
- # </li>
2103
- # <li> All transferring entitlements must be specified. </li>
2104
- # </ul>
2105
- # </li>
2106
- # <li> INTERNAL: Any non-user error related to a technical issue in the
2107
- # backend. Please contact Cloud Channel Support in this case. </li>
2108
- # <li> UNKNOWN: Any non-user error related to a technical issue in the
2109
- # backend. Please contact Cloud Channel Support in this case. </li>
2110
- # </ul>
2111
- #
2112
- # Return Value:
2113
- # <br/> Long Running Operation ID.
2029
+ # Possible error codes:
2030
+ #
2031
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
2032
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2033
+ # * NOT_FOUND: The customer or offer resource was not found.
2034
+ # * ALREADY_EXISTS: The SKU was already transferred for the customer.
2035
+ # * CONDITION_NOT_MET or FAILED_PRECONDITION:
2036
+ # * The SKU requires domain verification to transfer, but the domain is
2037
+ # not verified.
2038
+ # * An Add-On SKU (example, Vault or Drive) is missing the
2039
+ # pre-requisite SKU (example, G Suite Basic).
2040
+ # * (Developer accounts only) Reseller and resold domain must meet the
2041
+ # following naming requirements:
2042
+ # * Domain names must start with goog-test.
2043
+ # * Domain names must include the reseller domain.
2044
+ # * Specify all transferring entitlements.
2045
+ # * INTERNAL: Any non-user error related to a technical issue in the
2046
+ # backend. Contact Cloud Channel support.
2047
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
2048
+ # Contact Cloud Channel support.
2049
+ #
2050
+ # Return value:
2051
+ # The ID of a long-running operation.
2114
2052
  #
2115
2053
  # To get the results of the operation, call the GetOperation method of
2116
2054
  # CloudChannelOperationsService. The Operation metadata will contain an
@@ -2132,26 +2070,24 @@ module Google
2132
2070
  # the default parameter values, pass an empty Hash as a request object (see above).
2133
2071
  #
2134
2072
  # @param parent [::String]
2135
- # Required. The resource name of reseller's customer account where the entitlements
2136
- # transfer to.
2137
- # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
2073
+ # Required. The resource name of the reseller's customer account that will receive
2074
+ # transferred entitlements.
2075
+ # Parent uses the format: accounts/\\{account_id}/customers/\\{customer_id}
2138
2076
  # @param entitlements [::Array<::Google::Cloud::Channel::V1::Entitlement, ::Hash>]
2139
- # Required. The new entitlements to be created or transferred.
2077
+ # Required. The new entitlements to create or transfer.
2140
2078
  # @param auth_token [::String]
2141
- # This token is generated by the Super Admin of the resold customer to
2079
+ # The super admin of the resold customer generates this token to
2142
2080
  # authorize a reseller to access their Cloud Identity and purchase
2143
- # entitlements on their behalf. This token can be omitted once the
2144
- # authorization is generated. See https://support.google.com/a/answer/7643790
2145
- # for more details.
2081
+ # entitlements on their behalf. You can omit this token after authorization.
2082
+ # See https://support.google.com/a/answer/7643790 for more details.
2146
2083
  # @param request_id [::String]
2147
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
2148
- # that if you must retry your request, the server will know to ignore the
2149
- # request if it has already been completed.
2084
+ # Optional. You can specify an optional unique request ID, and if you need to retry
2085
+ # your request, the server will know to ignore the request if it's complete.
2150
2086
  #
2151
- # For example, consider a situation where you make an initial request and
2152
- # the request times out. If you make the request again with the same
2153
- # request ID, the server can check if the original operation with the same
2154
- # request ID was received, and if so, will ignore the second request.
2087
+ # For example, you make an initial request and the request times out. If you
2088
+ # make the request again with the same request ID, the server can check if
2089
+ # it received the original operation with the same request ID. If it did, it
2090
+ # will ignore the second request.
2155
2091
  #
2156
2092
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
2157
2093
  # with the exception that zero UUID is not supported
@@ -2204,41 +2140,30 @@ module Google
2204
2140
  end
2205
2141
 
2206
2142
  ##
2207
- # Transfers customer entitlements from current reseller to Google.
2208
- #
2209
- # Possible Error Codes:
2210
- # <ul>
2211
- # <li> PERMISSION_DENIED: If the customer doesn't belong to the reseller.
2212
- # </li> <li> INVALID_ARGUMENT: Missing or invalid required parameters in the
2213
- # request. </li>
2214
- # <li> NOT_FOUND: If the customer or offer resource is not found
2215
- # for the reseller. </li>
2216
- # <li> ALREADY_EXISTS: If the SKU has been already
2217
- # transferred for the customer. </li>
2218
- # <li> CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in
2219
- # the following cases:
2220
- # <ul>
2221
- # <li> Transferring a SKU that requires domain verification and the
2222
- # domain has not been verified. </li>
2223
- # <li> Transferring an Add-On SKU like Vault or Drive without purchasing
2224
- # the pre-requisite SKU, such as G Suite Basic </li> <li> Applicable only for
2225
- # developer accounts: reseller and resold domain must follow the domain
2226
- # naming convention as follows:
2227
- # <ul>
2228
- # <li> Domain names must start with goog-test. </li>
2229
- # <li> Resold domain names must include the reseller domain. </li>
2230
- # </ul>
2231
- # </li>
2232
- # </ul>
2233
- # </li>
2234
- # <li> INTERNAL: Any non-user error related to a technical issue in the
2235
- # backend. Please contact Cloud Channel Support in this case. </li>
2236
- # <li> UNKNOWN: Any non-user error related to a technical issue in the
2237
- # backend. Please contact Cloud Channel Support in this case.</li>
2238
- # </ul>
2239
- #
2240
- # Return Value:
2241
- # <br/> Long Running Operation ID.
2143
+ # Transfers customer entitlements from their current reseller to Google.
2144
+ #
2145
+ # Possible error codes:
2146
+ #
2147
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
2148
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2149
+ # * NOT_FOUND: The customer or offer resource was not found.
2150
+ # * ALREADY_EXISTS: The SKU was already transferred for the customer.
2151
+ # * CONDITION_NOT_MET or FAILED_PRECONDITION:
2152
+ # * The SKU requires domain verification to transfer, but the domain is
2153
+ # not verified.
2154
+ # * An Add-On SKU (example, Vault or Drive) is missing the
2155
+ # pre-requisite SKU (example, G Suite Basic).
2156
+ # * (Developer accounts only) Reseller and resold domain must meet the
2157
+ # following naming requirements:
2158
+ # * Domain names must start with goog-test.
2159
+ # * Domain names must include the reseller domain.
2160
+ # * INTERNAL: Any non-user error related to a technical issue in the
2161
+ # backend. Contact Cloud Channel support.
2162
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
2163
+ # Contact Cloud Channel support.
2164
+ #
2165
+ # Return value:
2166
+ # The ID of a long-running operation.
2242
2167
  #
2243
2168
  # To get the results of the operation, call the GetOperation method of
2244
2169
  # CloudChannelOperationsService. The response will contain
@@ -2261,20 +2186,19 @@ module Google
2261
2186
  # the default parameter values, pass an empty Hash as a request object (see above).
2262
2187
  #
2263
2188
  # @param parent [::String]
2264
- # Required. The resource name of reseller's customer account where the entitlements
2189
+ # Required. The resource name of the reseller's customer account where the entitlements
2265
2190
  # transfer from.
2266
- # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
2191
+ # Parent uses the format: accounts/\\{account_id}/customers/\\{customer_id}
2267
2192
  # @param entitlements [::Array<::Google::Cloud::Channel::V1::Entitlement, ::Hash>]
2268
- # Required. The entitlements to be transferred to Google.
2193
+ # Required. The entitlements to transfer to Google.
2269
2194
  # @param request_id [::String]
2270
- # Optional. An optional request ID to identify requests. Specify a unique request ID so
2271
- # that if you must retry your request, the server will know to ignore the
2272
- # request if it has already been completed.
2195
+ # Optional. You can specify an optional unique request ID, and if you need to retry
2196
+ # your request, the server will know to ignore the request if it's complete.
2273
2197
  #
2274
- # For example, consider a situation where you make an initial request and
2275
- # the request times out. If you make the request again with the same
2276
- # request ID, the server can check if the original operation with the same
2277
- # request ID was received, and if so, will ignore the second request.
2198
+ # For example, you make an initial request and the request times out. If you
2199
+ # make the request again with the same request ID, the server can check if
2200
+ # it received the original operation with the same request ID. If it did, it
2201
+ # will ignore the second request.
2278
2202
  #
2279
2203
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
2280
2204
  # with the exception that zero UUID is not supported
@@ -2328,18 +2252,16 @@ module Google
2328
2252
 
2329
2253
  ##
2330
2254
  # List {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink}s belonging to a distributor.
2331
- # To call this method, you must be a distributor.
2255
+ # You must be a distributor to call this method.
2332
2256
  #
2333
- # Possible Error Codes:
2257
+ # Possible error codes:
2334
2258
  #
2335
- # * PERMISSION_DENIED: If the reseller account making the request and the
2336
- # reseller account being queried for are different.
2337
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2338
- # request.
2259
+ # * PERMISSION_DENIED: The reseller account making the request is different
2260
+ # from the reseller account in the API request.
2261
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2339
2262
  #
2340
- # Return Value:
2341
- # <br/> If successful, returns the list of {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resources
2342
- # for the distributor account, otherwise returns an error.
2263
+ # Return value:
2264
+ # The list of the distributor account's {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resources.
2343
2265
  #
2344
2266
  # @overload list_channel_partner_links(request, options = nil)
2345
2267
  # Pass arguments to `list_channel_partner_links` via a request object, either of type
@@ -2359,14 +2281,14 @@ module Google
2359
2281
  # @param parent [::String]
2360
2282
  # Required. The resource name of the reseller account for listing channel partner
2361
2283
  # links.
2362
- # The parent takes the format: accounts/\\{account_id}
2284
+ # Parent uses the format: accounts/\\{account_id}
2363
2285
  # @param page_size [::Integer]
2364
2286
  # Optional. Requested page size. Server might return fewer results than requested.
2365
2287
  # If unspecified, server will pick a default size (25).
2366
- # The maximum value is 200, values above 200 will be coerced to 200.
2288
+ # The maximum value is 200; the server will coerce values above 200.
2367
2289
  # @param page_token [::String]
2368
- # Optional. A token identifying a page of results, if other than the first one.
2369
- # Typically obtained via
2290
+ # Optional. A token for a page of results other than the first page.
2291
+ # Obtained using
2370
2292
  # {::Google::Cloud::Channel::V1::ListChannelPartnerLinksResponse#next_page_token ListChannelPartnerLinksResponse.next_page_token} of the previous
2371
2293
  # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_channel_partner_links CloudChannelService.ListChannelPartnerLinks} call.
2372
2294
  # @param view [::Google::Cloud::Channel::V1::ChannelPartnerLinkView]
@@ -2420,19 +2342,18 @@ module Google
2420
2342
 
2421
2343
  ##
2422
2344
  # Returns a requested {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
2423
- # To call this method, you must be a distributor.
2345
+ # You must be a distributor to call this method.
2424
2346
  #
2425
- # Possible Error Codes:
2347
+ # Possible error codes:
2426
2348
  #
2427
- # * PERMISSION_DENIED: If the reseller account making the request and the
2428
- # reseller account being queried for are different.
2429
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2430
- # request.
2431
- # * NOT_FOUND: ChannelPartnerLink resource not found. Results
2432
- # due invalid channel partner link name.
2349
+ # * PERMISSION_DENIED: The reseller account making the request is different
2350
+ # from the reseller account in the API request.
2351
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2352
+ # * NOT_FOUND: ChannelPartnerLink resource not found because of an
2353
+ # invalid channel partner link name.
2433
2354
  #
2434
- # Return Value:
2435
- # <br/> {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource if found, otherwise returns an error.
2355
+ # Return value:
2356
+ # The {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
2436
2357
  #
2437
2358
  # @overload get_channel_partner_link(request, options = nil)
2438
2359
  # Pass arguments to `get_channel_partner_link` via a request object, either of type
@@ -2451,7 +2372,7 @@ module Google
2451
2372
  #
2452
2373
  # @param name [::String]
2453
2374
  # Required. The resource name of the channel partner link to retrieve.
2454
- # The name takes the format: accounts/\\{account_id}/channelPartnerLinks/\\{id}
2375
+ # Name uses the format: accounts/\\{account_id}/channelPartnerLinks/\\{id}
2455
2376
  # where \\{id} is the Cloud Identity ID of the partner.
2456
2377
  # @param view [::Google::Cloud::Channel::V1::ChannelPartnerLinkView]
2457
2378
  # Optional. The level of granularity the ChannelPartnerLink will display.
@@ -2502,30 +2423,28 @@ module Google
2502
2423
  end
2503
2424
 
2504
2425
  ##
2505
- # Initiates a channel partner link between a distributor and a reseller or
2426
+ # Initiates a channel partner link between a distributor and a reseller, or
2506
2427
  # between resellers in an n-tier reseller channel.
2507
- # To accept the invite, the invited partner should follow the invite_link_uri
2508
- # provided in the response. If the link creation is accepted, a valid link is
2509
- # set up between the two involved parties.
2510
- # To call this method, you must be a distributor.
2511
- #
2512
- # Possible Error Codes:
2513
- #
2514
- # * PERMISSION_DENIED: If the reseller account making the request and the
2515
- # reseller account being queried for are different.
2516
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2517
- # request.
2518
- # * ALREADY_EXISTS: If the ChannelPartnerLink sent in the request already
2428
+ # Invited partners need to follow the invite_link_uri provided in the
2429
+ # response to accept. After accepting the invitation, a link is set up
2430
+ # between the two parties.
2431
+ # You must be a distributor to call this method.
2432
+ #
2433
+ # Possible error codes:
2434
+ #
2435
+ # * PERMISSION_DENIED: The reseller account making the request is different
2436
+ # from the reseller account in the API request.
2437
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2438
+ # * ALREADY_EXISTS: The ChannelPartnerLink sent in the request already
2519
2439
  # exists.
2520
- # * NOT_FOUND: If no Cloud Identity customer exists for domain provided.
2440
+ # * NOT_FOUND: No Cloud Identity customer exists for provided domain.
2521
2441
  # * INTERNAL: Any non-user error related to a technical issue in the
2522
- # backend. In this case, contact Cloud Channel support.
2523
- # * UNKNOWN: Any non-user error related to a technical issue in
2524
- # the backend. In this case, contact Cloud Channel support.
2442
+ # backend. Contact Cloud Channel support.
2443
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
2444
+ # Contact Cloud Channel support.
2525
2445
  #
2526
- # Return Value:
2527
- # <br/> Newly created {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource if successful,
2528
- # otherwise error is returned.
2446
+ # Return value:
2447
+ # The new {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
2529
2448
  #
2530
2449
  # @overload create_channel_partner_link(request, options = nil)
2531
2450
  # Pass arguments to `create_channel_partner_link` via a request object, either of type
@@ -2537,23 +2456,19 @@ module Google
2537
2456
  # @param options [::Gapic::CallOptions, ::Hash]
2538
2457
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2539
2458
  #
2540
- # @overload create_channel_partner_link(parent: nil, channel_partner_link: nil, domain: nil)
2459
+ # @overload create_channel_partner_link(parent: nil, channel_partner_link: nil)
2541
2460
  # Pass arguments to `create_channel_partner_link` via keyword arguments. Note that at
2542
2461
  # least one keyword argument is required. To specify no parameters, or to keep all
2543
2462
  # the default parameter values, pass an empty Hash as a request object (see above).
2544
2463
  #
2545
2464
  # @param parent [::String]
2546
- # Required. The resource name of reseller's account for which to create a channel
2547
- # partner link.
2548
- # The parent takes the format: accounts/\\{account_id}
2465
+ # Required. Create a channel partner link for the provided reseller account's
2466
+ # resource name.
2467
+ # Parent uses the format: accounts/\\{account_id}
2549
2468
  # @param channel_partner_link [::Google::Cloud::Channel::V1::ChannelPartnerLink, ::Hash]
2550
2469
  # Required. The channel partner link to create.
2551
2470
  # Either channel_partner_link.reseller_cloud_identity_id or domain can be
2552
2471
  # used to create a link.
2553
- # @param domain [::String]
2554
- # Optional. The invited partner's domain. Either domain or
2555
- # channel_partner_link.reseller_cloud_identity_id can be used to create a
2556
- # link.
2557
2472
  #
2558
2473
  # @yield [response, operation] Access the result along with the RPC operation
2559
2474
  # @yieldparam response [::Google::Cloud::Channel::V1::ChannelPartnerLink]
@@ -2601,32 +2516,27 @@ module Google
2601
2516
  end
2602
2517
 
2603
2518
  ##
2604
- # Updates a channel partner link. A distributor calls this method to change a
2605
- # link's status. For example, suspend a partner link.
2606
- # To call this method, you must be a distributor.
2607
- #
2608
- # Possible Error Codes:
2609
- # <ul>
2610
- # <li> PERMISSION_DENIED: If the reseller account making the request and the
2611
- # reseller account being queried for are different. </li>
2612
- # <li> INVALID_ARGUMENT:
2613
- # <ul>
2614
- # <li> Missing or invalid required parameters in the request. </li>
2615
- # <li> Updating link state from invited to active or suspended. </li>
2616
- # <li> Sending reseller_cloud_identity_id, invite_url or name in update
2617
- # mask. </li>
2618
- # </ul>
2619
- # </li>
2620
- # <li> NOT_FOUND: ChannelPartnerLink resource not found.</li>
2621
- # <li> INTERNAL: Any non-user error related to a technical issue in the
2622
- # backend. In this case, contact Cloud Channel support. </li>
2623
- # <li> UNKNOWN: Any non-user error related to a technical issue in the
2624
- # backend. In this case, contact Cloud Channel support.</li>
2625
- # </ul>
2626
- #
2627
- # Return Value:
2628
- # <br/> If successful, the updated {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource, otherwise
2629
- # returns an error.
2519
+ # Updates a channel partner link. Distributors call this method to change a
2520
+ # link's status. For example, to suspend a partner link.
2521
+ # You must be a distributor to call this method.
2522
+ #
2523
+ # Possible error codes:
2524
+ #
2525
+ # * PERMISSION_DENIED: The reseller account making the request is different
2526
+ # from the reseller account in the API request.
2527
+ # * INVALID_ARGUMENT:
2528
+ # * Required request parameters are missing or invalid.
2529
+ # * Link state cannot change from invited to active or suspended.
2530
+ # * Cannot send reseller_cloud_identity_id, invite_url, or name in update
2531
+ # mask.
2532
+ # * NOT_FOUND: ChannelPartnerLink resource not found.
2533
+ # * INTERNAL: Any non-user error related to a technical issue in the
2534
+ # backend. Contact Cloud Channel support.
2535
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
2536
+ # Contact Cloud Channel support.
2537
+ #
2538
+ # Return value:
2539
+ # The updated {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
2630
2540
  #
2631
2541
  # @overload update_channel_partner_link(request, options = nil)
2632
2542
  # Pass arguments to `update_channel_partner_link` via a request object, either of type
@@ -2645,14 +2555,14 @@ module Google
2645
2555
  #
2646
2556
  # @param name [::String]
2647
2557
  # Required. The resource name of the channel partner link to cancel.
2648
- # The name takes the format: accounts/\\{account_id}/channelPartnerLinks/\\{id}
2558
+ # Name uses the format: accounts/\\{account_id}/channelPartnerLinks/\\{id}
2649
2559
  # where \\{id} is the Cloud Identity ID of the partner.
2650
2560
  # @param channel_partner_link [::Google::Cloud::Channel::V1::ChannelPartnerLink, ::Hash]
2651
- # Required. The channel partner link to update. Only field
2652
- # channel_partner_link.link_state is allowed to be updated.
2561
+ # Required. The channel partner link to update. Only channel_partner_link.link_state
2562
+ # is allowed for updates.
2653
2563
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2654
2564
  # Required. The update mask that applies to the resource.
2655
- # The only allowable value for update mask is
2565
+ # The only allowable value for an update mask is
2656
2566
  # channel_partner_link.link_state.
2657
2567
  #
2658
2568
  # @yield [response, operation] Access the result along with the RPC operation
@@ -2703,10 +2613,9 @@ module Google
2703
2613
  ##
2704
2614
  # Lists the Products the reseller is authorized to sell.
2705
2615
  #
2706
- # Possible Error Codes:
2616
+ # Possible error codes:
2707
2617
  #
2708
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2709
- # request.
2618
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2710
2619
  #
2711
2620
  # @overload list_products(request, options = nil)
2712
2621
  # Pass arguments to `list_products` via a request object, either of type
@@ -2728,14 +2637,14 @@ module Google
2728
2637
  # Format: accounts/\\{account_id}.
2729
2638
  # @param page_size [::Integer]
2730
2639
  # Optional. Requested page size. Server might return fewer results than requested.
2731
- # If unspecified, at most 100 Products will be returned.
2732
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
2640
+ # If unspecified, returns at most 100 Products.
2641
+ # The maximum value is 1000; the server will coerce values above 1000.
2733
2642
  # @param page_token [::String]
2734
- # Optional. A token identifying a page of results, if other than the first one.
2643
+ # Optional. A token for a page of results other than the first page.
2735
2644
  # @param language_code [::String]
2736
- # Optional. The BCP-47 language code, such as "en-US". If specified, the
2737
- # response will be localized to the corresponding language code. Default is
2738
- # "en-US".
2645
+ # Optional. The BCP-47 language code. For example, "en-US". The
2646
+ # response will localize in the corresponding language code, if specified.
2647
+ # The default value is "en-US".
2739
2648
  #
2740
2649
  # @yield [response, operation] Access the result along with the RPC operation
2741
2650
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::Product>]
@@ -2780,10 +2689,9 @@ module Google
2780
2689
  ##
2781
2690
  # Lists the SKUs for a product the reseller is authorized to sell.
2782
2691
  #
2783
- # Possible Error Codes:
2692
+ # Possible error codes:
2784
2693
  #
2785
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2786
- # request.
2694
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2787
2695
  #
2788
2696
  # @overload list_skus(request, options = nil)
2789
2697
  # Pass arguments to `list_skus` via a request object, either of type
@@ -2801,23 +2709,23 @@ module Google
2801
2709
  # the default parameter values, pass an empty Hash as a request object (see above).
2802
2710
  #
2803
2711
  # @param parent [::String]
2804
- # Required. The resource name of the Product for which to list SKUs.
2805
- # The parent takes the format: products/\\{product_id}.
2712
+ # Required. The resource name of the Product to list SKUs for.
2713
+ # Parent uses the format: products/\\{product_id}.
2806
2714
  # Supports products/- to retrieve SKUs for all products.
2807
2715
  # @param account [::String]
2808
2716
  # Required. Resource name of the reseller.
2809
2717
  # Format: accounts/\\{account_id}.
2810
2718
  # @param page_size [::Integer]
2811
2719
  # Optional. Requested page size. Server might return fewer results than requested.
2812
- # If unspecified, at most 100 SKUs will be returned.
2813
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
2720
+ # If unspecified, returns at most 100 SKUs.
2721
+ # The maximum value is 1000; the server will coerce values above 1000.
2814
2722
  # @param page_token [::String]
2815
- # Optional. A token identifying a page of results, if other than the first one.
2723
+ # Optional. A token for a page of results other than the first page.
2816
2724
  # Optional.
2817
2725
  # @param language_code [::String]
2818
- # Optional. The BCP-47 language code, such as "en-US". If specified, the
2819
- # response will be localized to the corresponding language code. Default is
2820
- # "en-US".
2726
+ # Optional. The BCP-47 language code. For example, "en-US". The
2727
+ # response will localize in the corresponding language code, if specified.
2728
+ # The default value is "en-US".
2821
2729
  #
2822
2730
  # @yield [response, operation] Access the result along with the RPC operation
2823
2731
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::Sku>]
@@ -2868,10 +2776,9 @@ module Google
2868
2776
  ##
2869
2777
  # Lists the Offers the reseller can sell.
2870
2778
  #
2871
- # Possible Error Codes:
2779
+ # Possible error codes:
2872
2780
  #
2873
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2874
- # request.
2781
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2875
2782
  #
2876
2783
  # @overload list_offers(request, options = nil)
2877
2784
  # Pass arguments to `list_offers` via a request object, either of type
@@ -2890,23 +2797,23 @@ module Google
2890
2797
  #
2891
2798
  # @param parent [::String]
2892
2799
  # Required. The resource name of the reseller account from which to list Offers.
2893
- # The parent takes the format: accounts/\\{account_id}.
2800
+ # Parent uses the format: accounts/\\{account_id}.
2894
2801
  # @param page_size [::Integer]
2895
2802
  # Optional. Requested page size. Server might return fewer results than requested.
2896
- # If unspecified, at most 500 Offers will be returned.
2897
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
2803
+ # If unspecified, returns at most 500 Offers.
2804
+ # The maximum value is 1000; the server will coerce values above 1000.
2898
2805
  # @param page_token [::String]
2899
- # Optional. A token identifying a page of results, if other than the first one.
2806
+ # Optional. A token for a page of results other than the first page.
2900
2807
  # @param filter [::String]
2901
2808
  # Optional. The expression to filter results by name (name of
2902
- # the Offer), sku.name (name of the SKU) or sku.product.name (name of the
2809
+ # the Offer), sku.name (name of the SKU), or sku.product.name (name of the
2903
2810
  # Product).
2904
2811
  # Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1
2905
2812
  # Example 2: name=accounts/a1/offers/o1
2906
2813
  # @param language_code [::String]
2907
- # Optional. The BCP-47 language code, such as "en-US". If specified, the
2908
- # response will be localized to the corresponding language code. Default is
2909
- # "en-US".
2814
+ # Optional. The BCP-47 language code. For example, "en-US". The
2815
+ # response will localize in the corresponding language code, if specified.
2816
+ # The default value is "en-US".
2910
2817
  #
2911
2818
  # @yield [response, operation] Access the result along with the RPC operation
2912
2819
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::Offer>]
@@ -2955,16 +2862,15 @@ module Google
2955
2862
  end
2956
2863
 
2957
2864
  ##
2958
- # Lists the Purchasable SKUs for following cases:
2865
+ # Lists the following:
2959
2866
  #
2960
- # * SKUs that can be newly purchased for a customer
2961
- # * SKUs that can be upgraded/downgraded to, for an entitlement.
2867
+ # * SKUs that you can purchase for a customer
2868
+ # * SKUs that you can upgrade or downgrade for an entitlement.
2962
2869
  #
2963
- # Possible Error Codes:
2870
+ # Possible error codes:
2964
2871
  #
2965
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller
2966
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
2967
- # request.
2872
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller.
2873
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2968
2874
  #
2969
2875
  # @overload list_purchasable_skus(request, options = nil)
2970
2876
  # Pass arguments to `list_purchasable_skus` via a request object, either of type
@@ -2986,18 +2892,18 @@ module Google
2986
2892
  # @param change_offer_purchase [::Google::Cloud::Channel::V1::ListPurchasableSkusRequest::ChangeOfferPurchase, ::Hash]
2987
2893
  # List SKUs for ChangeOffer purchase with a new SKU.
2988
2894
  # @param customer [::String]
2989
- # Required. The resource name of the customer for which to list SKUs.
2895
+ # Required. The resource name of the customer to list SKUs for.
2990
2896
  # Format: accounts/\\{account_id}/customers/\\{customer_id}.
2991
2897
  # @param page_size [::Integer]
2992
2898
  # Optional. Requested page size. Server might return fewer results than requested.
2993
- # If unspecified, at most 100 SKUs will be returned.
2994
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
2899
+ # If unspecified, returns at most 100 SKUs.
2900
+ # The maximum value is 1000; the server will coerce values above 1000.
2995
2901
  # @param page_token [::String]
2996
- # Optional. A token identifying a page of results, if other than the first one.
2902
+ # Optional. A token for a page of results other than the first page.
2997
2903
  # @param language_code [::String]
2998
- # Optional. The BCP-47 language code, such as "en-US". If specified, the
2999
- # response will be localized to the corresponding language code. Default is
3000
- # "en-US".
2904
+ # Optional. The BCP-47 language code. For example, "en-US". The
2905
+ # response will localize in the corresponding language code, if specified.
2906
+ # The default value is "en-US".
3001
2907
  #
3002
2908
  # @yield [response, operation] Access the result along with the RPC operation
3003
2909
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::PurchasableSku>]
@@ -3046,16 +2952,15 @@ module Google
3046
2952
  end
3047
2953
 
3048
2954
  ##
3049
- # Lists the Purchasable Offers for the following cases:
2955
+ # Lists the following:
3050
2956
  #
3051
- # * Offers that can be newly purchased for a customer
3052
- # * Offers that can be changed to, for an entitlement.
2957
+ # * Offers that you can purchase for a customer.
2958
+ # * Offers that you can change for an entitlement.
3053
2959
  #
3054
- # Possible Error Codes:
2960
+ # Possible error codes:
3055
2961
  #
3056
- # * PERMISSION_DENIED: If the customer doesn't belong to the reseller
3057
- # * INVALID_ARGUMENT: Missing or invalid required parameters in the
3058
- # request.
2962
+ # * PERMISSION_DENIED: The customer doesn't belong to the reseller
2963
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
3059
2964
  #
3060
2965
  # @overload list_purchasable_offers(request, options = nil)
3061
2966
  # Pass arguments to `list_purchasable_offers` via a request object, either of type
@@ -3077,18 +2982,18 @@ module Google
3077
2982
  # @param change_offer_purchase [::Google::Cloud::Channel::V1::ListPurchasableOffersRequest::ChangeOfferPurchase, ::Hash]
3078
2983
  # List Offers for ChangeOffer purchase.
3079
2984
  # @param customer [::String]
3080
- # Required. The resource name of the customer for which to list Offers.
2985
+ # Required. The resource name of the customer to list Offers for.
3081
2986
  # Format: accounts/\\{account_id}/customers/\\{customer_id}.
3082
2987
  # @param page_size [::Integer]
3083
2988
  # Optional. Requested page size. Server might return fewer results than requested.
3084
- # If unspecified, at most 100 Offers will be returned.
3085
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
2989
+ # If unspecified, returns at most 100 Offers.
2990
+ # The maximum value is 1000; the server will coerce values above 1000.
3086
2991
  # @param page_token [::String]
3087
- # Optional. A token identifying a page of results, if other than the first one.
2992
+ # Optional. A token for a page of results other than the first page.
3088
2993
  # @param language_code [::String]
3089
- # Optional. The BCP-47 language code, such as "en-US". If specified, the
3090
- # response will be localized to the corresponding language code. Default is
3091
- # "en-US".
2994
+ # Optional. The BCP-47 language code. For example, "en-US". The
2995
+ # response will localize in the corresponding language code, if specified.
2996
+ # The default value is "en-US".
3092
2997
  #
3093
2998
  # @yield [response, operation] Access the result along with the RPC operation
3094
2999
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Channel::V1::PurchasableOffer>]
@@ -3136,6 +3041,271 @@ module Google
3136
3041
  raise ::Google::Cloud::Error.from_error(e)
3137
3042
  end
3138
3043
 
3044
+ ##
3045
+ # Registers a service account with subscriber privileges on the Cloud Pub/Sub
3046
+ # topic for this Channel Services account. After you create a
3047
+ # subscriber, you get the events through {::Google::Cloud::Channel::V1::SubscriberEvent SubscriberEvent}
3048
+ #
3049
+ # Possible error codes:
3050
+ #
3051
+ # * PERMISSION_DENIED: The reseller account making the request and the
3052
+ # provided reseller account are different, or the impersonated user
3053
+ # is not a super admin.
3054
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
3055
+ # * INTERNAL: Any non-user error related to a technical issue in the
3056
+ # backend. Contact Cloud Channel support.
3057
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
3058
+ # Contact Cloud Channel support.
3059
+ #
3060
+ # Return value:
3061
+ # The topic name with the registered service email address.
3062
+ #
3063
+ # @overload register_subscriber(request, options = nil)
3064
+ # Pass arguments to `register_subscriber` via a request object, either of type
3065
+ # {::Google::Cloud::Channel::V1::RegisterSubscriberRequest} or an equivalent Hash.
3066
+ #
3067
+ # @param request [::Google::Cloud::Channel::V1::RegisterSubscriberRequest, ::Hash]
3068
+ # A request object representing the call parameters. Required. To specify no
3069
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3070
+ # @param options [::Gapic::CallOptions, ::Hash]
3071
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3072
+ #
3073
+ # @overload register_subscriber(account: nil, service_account: nil)
3074
+ # Pass arguments to `register_subscriber` via keyword arguments. Note that at
3075
+ # least one keyword argument is required. To specify no parameters, or to keep all
3076
+ # the default parameter values, pass an empty Hash as a request object (see above).
3077
+ #
3078
+ # @param account [::String]
3079
+ # Required. Resource name of the account.
3080
+ # @param service_account [::String]
3081
+ # Required. Service account that provides subscriber access to the registered topic.
3082
+ #
3083
+ # @yield [response, operation] Access the result along with the RPC operation
3084
+ # @yieldparam response [::Google::Cloud::Channel::V1::RegisterSubscriberResponse]
3085
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3086
+ #
3087
+ # @return [::Google::Cloud::Channel::V1::RegisterSubscriberResponse]
3088
+ #
3089
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3090
+ #
3091
+ def register_subscriber request, options = nil
3092
+ raise ::ArgumentError, "request must be provided" if request.nil?
3093
+
3094
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Channel::V1::RegisterSubscriberRequest
3095
+
3096
+ # Converts hash and nil to an options object
3097
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3098
+
3099
+ # Customize the options with defaults
3100
+ metadata = @config.rpcs.register_subscriber.metadata.to_h
3101
+
3102
+ # Set x-goog-api-client and x-goog-user-project headers
3103
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3104
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3105
+ gapic_version: ::Google::Cloud::Channel::V1::VERSION
3106
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3107
+
3108
+ header_params = {
3109
+ "account" => request.account
3110
+ }
3111
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3112
+ metadata[:"x-goog-request-params"] ||= request_params_header
3113
+
3114
+ options.apply_defaults timeout: @config.rpcs.register_subscriber.timeout,
3115
+ metadata: metadata,
3116
+ retry_policy: @config.rpcs.register_subscriber.retry_policy
3117
+ options.apply_defaults metadata: @config.metadata,
3118
+ retry_policy: @config.retry_policy
3119
+
3120
+ @cloud_channel_service_stub.call_rpc :register_subscriber, request, options: options do |response, operation|
3121
+ yield response, operation if block_given?
3122
+ return response
3123
+ end
3124
+ rescue ::GRPC::BadStatus => e
3125
+ raise ::Google::Cloud::Error.from_error(e)
3126
+ end
3127
+
3128
+ ##
3129
+ # Unregisters a service account with subscriber privileges on the Cloud
3130
+ # Pub/Sub topic created for this Channel Services account. If there are no
3131
+ # service accounts left with subscriber privileges, this deletes the topic.
3132
+ # You can call ListSubscribers to check for these accounts.
3133
+ #
3134
+ # Possible error codes:
3135
+ #
3136
+ # * PERMISSION_DENIED: The reseller account making the request and the
3137
+ # provided reseller account are different, or the impersonated user
3138
+ # is not a super admin.
3139
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
3140
+ # * NOT_FOUND: The topic resource doesn't exist.
3141
+ # * INTERNAL: Any non-user error related to a technical issue in the
3142
+ # backend. Contact Cloud Channel support.
3143
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
3144
+ # Contact Cloud Channel support.
3145
+ #
3146
+ # Return value:
3147
+ # The topic name that unregistered the service email address.
3148
+ # Returns a success response if the service email address wasn't registered
3149
+ # with the topic.
3150
+ #
3151
+ # @overload unregister_subscriber(request, options = nil)
3152
+ # Pass arguments to `unregister_subscriber` via a request object, either of type
3153
+ # {::Google::Cloud::Channel::V1::UnregisterSubscriberRequest} or an equivalent Hash.
3154
+ #
3155
+ # @param request [::Google::Cloud::Channel::V1::UnregisterSubscriberRequest, ::Hash]
3156
+ # A request object representing the call parameters. Required. To specify no
3157
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3158
+ # @param options [::Gapic::CallOptions, ::Hash]
3159
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3160
+ #
3161
+ # @overload unregister_subscriber(account: nil, service_account: nil)
3162
+ # Pass arguments to `unregister_subscriber` via keyword arguments. Note that at
3163
+ # least one keyword argument is required. To specify no parameters, or to keep all
3164
+ # the default parameter values, pass an empty Hash as a request object (see above).
3165
+ #
3166
+ # @param account [::String]
3167
+ # Required. Resource name of the account.
3168
+ # @param service_account [::String]
3169
+ # Required. Service account to unregister from subscriber access to the topic.
3170
+ #
3171
+ # @yield [response, operation] Access the result along with the RPC operation
3172
+ # @yieldparam response [::Google::Cloud::Channel::V1::UnregisterSubscriberResponse]
3173
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3174
+ #
3175
+ # @return [::Google::Cloud::Channel::V1::UnregisterSubscriberResponse]
3176
+ #
3177
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3178
+ #
3179
+ def unregister_subscriber request, options = nil
3180
+ raise ::ArgumentError, "request must be provided" if request.nil?
3181
+
3182
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Channel::V1::UnregisterSubscriberRequest
3183
+
3184
+ # Converts hash and nil to an options object
3185
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3186
+
3187
+ # Customize the options with defaults
3188
+ metadata = @config.rpcs.unregister_subscriber.metadata.to_h
3189
+
3190
+ # Set x-goog-api-client and x-goog-user-project headers
3191
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3192
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3193
+ gapic_version: ::Google::Cloud::Channel::V1::VERSION
3194
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3195
+
3196
+ header_params = {
3197
+ "account" => request.account
3198
+ }
3199
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3200
+ metadata[:"x-goog-request-params"] ||= request_params_header
3201
+
3202
+ options.apply_defaults timeout: @config.rpcs.unregister_subscriber.timeout,
3203
+ metadata: metadata,
3204
+ retry_policy: @config.rpcs.unregister_subscriber.retry_policy
3205
+ options.apply_defaults metadata: @config.metadata,
3206
+ retry_policy: @config.retry_policy
3207
+
3208
+ @cloud_channel_service_stub.call_rpc :unregister_subscriber, request, options: options do |response, operation|
3209
+ yield response, operation if block_given?
3210
+ return response
3211
+ end
3212
+ rescue ::GRPC::BadStatus => e
3213
+ raise ::Google::Cloud::Error.from_error(e)
3214
+ end
3215
+
3216
+ ##
3217
+ # Lists service accounts with subscriber privileges on the Cloud Pub/Sub
3218
+ # topic created for this Channel Services account.
3219
+ #
3220
+ # Possible error codes:
3221
+ #
3222
+ # * PERMISSION_DENIED: The reseller account making the request and the
3223
+ # provided reseller account are different, or the impersonated user
3224
+ # is not a super admin.
3225
+ # * INVALID_ARGUMENT: Required request parameters are missing or invalid.
3226
+ # * NOT_FOUND: The topic resource doesn't exist.
3227
+ # * INTERNAL: Any non-user error related to a technical issue in the
3228
+ # backend. Contact Cloud Channel support.
3229
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
3230
+ # Contact Cloud Channel support.
3231
+ #
3232
+ # Return value:
3233
+ # A list of service email addresses.
3234
+ #
3235
+ # @overload list_subscribers(request, options = nil)
3236
+ # Pass arguments to `list_subscribers` via a request object, either of type
3237
+ # {::Google::Cloud::Channel::V1::ListSubscribersRequest} or an equivalent Hash.
3238
+ #
3239
+ # @param request [::Google::Cloud::Channel::V1::ListSubscribersRequest, ::Hash]
3240
+ # A request object representing the call parameters. Required. To specify no
3241
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3242
+ # @param options [::Gapic::CallOptions, ::Hash]
3243
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3244
+ #
3245
+ # @overload list_subscribers(account: nil, page_size: nil, page_token: nil)
3246
+ # Pass arguments to `list_subscribers` via keyword arguments. Note that at
3247
+ # least one keyword argument is required. To specify no parameters, or to keep all
3248
+ # the default parameter values, pass an empty Hash as a request object (see above).
3249
+ #
3250
+ # @param account [::String]
3251
+ # Required. Resource name of the account.
3252
+ # @param page_size [::Integer]
3253
+ # Optional. The maximum number of service accounts to return. The service may return
3254
+ # fewer than this value.
3255
+ # If unspecified, returns at most 100 service accounts.
3256
+ # The maximum value is 1000; the server will coerce values above 1000.
3257
+ # @param page_token [::String]
3258
+ # Optional. A page token, received from a previous `ListSubscribers` call.
3259
+ # Provide this to retrieve the subsequent page.
3260
+ #
3261
+ # When paginating, all other parameters provided to `ListSubscribers` must
3262
+ # match the call that provided the page token.
3263
+ #
3264
+ # @yield [response, operation] Access the result along with the RPC operation
3265
+ # @yieldparam response [::Google::Cloud::Channel::V1::ListSubscribersResponse]
3266
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3267
+ #
3268
+ # @return [::Google::Cloud::Channel::V1::ListSubscribersResponse]
3269
+ #
3270
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3271
+ #
3272
+ def list_subscribers request, options = nil
3273
+ raise ::ArgumentError, "request must be provided" if request.nil?
3274
+
3275
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Channel::V1::ListSubscribersRequest
3276
+
3277
+ # Converts hash and nil to an options object
3278
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3279
+
3280
+ # Customize the options with defaults
3281
+ metadata = @config.rpcs.list_subscribers.metadata.to_h
3282
+
3283
+ # Set x-goog-api-client and x-goog-user-project headers
3284
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3285
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3286
+ gapic_version: ::Google::Cloud::Channel::V1::VERSION
3287
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3288
+
3289
+ header_params = {
3290
+ "account" => request.account
3291
+ }
3292
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3293
+ metadata[:"x-goog-request-params"] ||= request_params_header
3294
+
3295
+ options.apply_defaults timeout: @config.rpcs.list_subscribers.timeout,
3296
+ metadata: metadata,
3297
+ retry_policy: @config.rpcs.list_subscribers.retry_policy
3298
+ options.apply_defaults metadata: @config.metadata,
3299
+ retry_policy: @config.retry_policy
3300
+
3301
+ @cloud_channel_service_stub.call_rpc :list_subscribers, request, options: options do |response, operation|
3302
+ yield response, operation if block_given?
3303
+ return response
3304
+ end
3305
+ rescue ::GRPC::BadStatus => e
3306
+ raise ::Google::Cloud::Error.from_error(e)
3307
+ end
3308
+
3139
3309
  ##
3140
3310
  # Configuration class for the CloudChannelService API.
3141
3311
  #
@@ -3228,7 +3398,7 @@ module Google
3228
3398
  config_attr :scope, nil, ::String, ::Array, nil
3229
3399
  config_attr :lib_name, nil, ::String, nil
3230
3400
  config_attr :lib_version, nil, ::String, nil
3231
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
3401
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
3232
3402
  config_attr :interceptors, nil, ::Array, nil
3233
3403
  config_attr :timeout, nil, ::Numeric, nil
3234
3404
  config_attr :metadata, nil, ::Hash, nil
@@ -3249,7 +3419,7 @@ module Google
3249
3419
  def rpcs
3250
3420
  @rpcs ||= begin
3251
3421
  parent_rpcs = nil
3252
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
3422
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
3253
3423
  Rpcs.new parent_rpcs
3254
3424
  end
3255
3425
  end
@@ -3422,69 +3592,90 @@ module Google
3422
3592
  # @return [::Gapic::Config::Method]
3423
3593
  #
3424
3594
  attr_reader :list_purchasable_offers
3595
+ ##
3596
+ # RPC-specific configuration for `register_subscriber`
3597
+ # @return [::Gapic::Config::Method]
3598
+ #
3599
+ attr_reader :register_subscriber
3600
+ ##
3601
+ # RPC-specific configuration for `unregister_subscriber`
3602
+ # @return [::Gapic::Config::Method]
3603
+ #
3604
+ attr_reader :unregister_subscriber
3605
+ ##
3606
+ # RPC-specific configuration for `list_subscribers`
3607
+ # @return [::Gapic::Config::Method]
3608
+ #
3609
+ attr_reader :list_subscribers
3425
3610
 
3426
3611
  # @private
3427
3612
  def initialize parent_rpcs = nil
3428
- list_customers_config = parent_rpcs&.list_customers if parent_rpcs&.respond_to? :list_customers
3613
+ list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers
3429
3614
  @list_customers = ::Gapic::Config::Method.new list_customers_config
3430
- get_customer_config = parent_rpcs&.get_customer if parent_rpcs&.respond_to? :get_customer
3615
+ get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer
3431
3616
  @get_customer = ::Gapic::Config::Method.new get_customer_config
3432
- check_cloud_identity_accounts_exist_config = parent_rpcs&.check_cloud_identity_accounts_exist if parent_rpcs&.respond_to? :check_cloud_identity_accounts_exist
3617
+ check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist
3433
3618
  @check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config
3434
- create_customer_config = parent_rpcs&.create_customer if parent_rpcs&.respond_to? :create_customer
3619
+ create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer
3435
3620
  @create_customer = ::Gapic::Config::Method.new create_customer_config
3436
- update_customer_config = parent_rpcs&.update_customer if parent_rpcs&.respond_to? :update_customer
3621
+ update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer
3437
3622
  @update_customer = ::Gapic::Config::Method.new update_customer_config
3438
- delete_customer_config = parent_rpcs&.delete_customer if parent_rpcs&.respond_to? :delete_customer
3623
+ delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer
3439
3624
  @delete_customer = ::Gapic::Config::Method.new delete_customer_config
3440
- provision_cloud_identity_config = parent_rpcs&.provision_cloud_identity if parent_rpcs&.respond_to? :provision_cloud_identity
3625
+ provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity
3441
3626
  @provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config
3442
- list_entitlements_config = parent_rpcs&.list_entitlements if parent_rpcs&.respond_to? :list_entitlements
3627
+ list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements
3443
3628
  @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config
3444
- list_transferable_skus_config = parent_rpcs&.list_transferable_skus if parent_rpcs&.respond_to? :list_transferable_skus
3629
+ list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus
3445
3630
  @list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config
3446
- list_transferable_offers_config = parent_rpcs&.list_transferable_offers if parent_rpcs&.respond_to? :list_transferable_offers
3631
+ list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers
3447
3632
  @list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config
3448
- get_entitlement_config = parent_rpcs&.get_entitlement if parent_rpcs&.respond_to? :get_entitlement
3633
+ get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement
3449
3634
  @get_entitlement = ::Gapic::Config::Method.new get_entitlement_config
3450
- create_entitlement_config = parent_rpcs&.create_entitlement if parent_rpcs&.respond_to? :create_entitlement
3635
+ create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement
3451
3636
  @create_entitlement = ::Gapic::Config::Method.new create_entitlement_config
3452
- change_parameters_config = parent_rpcs&.change_parameters if parent_rpcs&.respond_to? :change_parameters
3637
+ change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters
3453
3638
  @change_parameters = ::Gapic::Config::Method.new change_parameters_config
3454
- change_renewal_settings_config = parent_rpcs&.change_renewal_settings if parent_rpcs&.respond_to? :change_renewal_settings
3639
+ change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings
3455
3640
  @change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config
3456
- change_offer_config = parent_rpcs&.change_offer if parent_rpcs&.respond_to? :change_offer
3641
+ change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer
3457
3642
  @change_offer = ::Gapic::Config::Method.new change_offer_config
3458
- start_paid_service_config = parent_rpcs&.start_paid_service if parent_rpcs&.respond_to? :start_paid_service
3643
+ start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service
3459
3644
  @start_paid_service = ::Gapic::Config::Method.new start_paid_service_config
3460
- suspend_entitlement_config = parent_rpcs&.suspend_entitlement if parent_rpcs&.respond_to? :suspend_entitlement
3645
+ suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement
3461
3646
  @suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config
3462
- cancel_entitlement_config = parent_rpcs&.cancel_entitlement if parent_rpcs&.respond_to? :cancel_entitlement
3647
+ cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement
3463
3648
  @cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config
3464
- activate_entitlement_config = parent_rpcs&.activate_entitlement if parent_rpcs&.respond_to? :activate_entitlement
3649
+ activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement
3465
3650
  @activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config
3466
- transfer_entitlements_config = parent_rpcs&.transfer_entitlements if parent_rpcs&.respond_to? :transfer_entitlements
3651
+ transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements
3467
3652
  @transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config
3468
- transfer_entitlements_to_google_config = parent_rpcs&.transfer_entitlements_to_google if parent_rpcs&.respond_to? :transfer_entitlements_to_google
3653
+ transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google
3469
3654
  @transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config
3470
- list_channel_partner_links_config = parent_rpcs&.list_channel_partner_links if parent_rpcs&.respond_to? :list_channel_partner_links
3655
+ list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links
3471
3656
  @list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config
3472
- get_channel_partner_link_config = parent_rpcs&.get_channel_partner_link if parent_rpcs&.respond_to? :get_channel_partner_link
3657
+ get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link
3473
3658
  @get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config
3474
- create_channel_partner_link_config = parent_rpcs&.create_channel_partner_link if parent_rpcs&.respond_to? :create_channel_partner_link
3659
+ create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link
3475
3660
  @create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config
3476
- update_channel_partner_link_config = parent_rpcs&.update_channel_partner_link if parent_rpcs&.respond_to? :update_channel_partner_link
3661
+ update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link
3477
3662
  @update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config
3478
- list_products_config = parent_rpcs&.list_products if parent_rpcs&.respond_to? :list_products
3663
+ list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products
3479
3664
  @list_products = ::Gapic::Config::Method.new list_products_config
3480
- list_skus_config = parent_rpcs&.list_skus if parent_rpcs&.respond_to? :list_skus
3665
+ list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus
3481
3666
  @list_skus = ::Gapic::Config::Method.new list_skus_config
3482
- list_offers_config = parent_rpcs&.list_offers if parent_rpcs&.respond_to? :list_offers
3667
+ list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers
3483
3668
  @list_offers = ::Gapic::Config::Method.new list_offers_config
3484
- list_purchasable_skus_config = parent_rpcs&.list_purchasable_skus if parent_rpcs&.respond_to? :list_purchasable_skus
3669
+ list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus
3485
3670
  @list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config
3486
- list_purchasable_offers_config = parent_rpcs&.list_purchasable_offers if parent_rpcs&.respond_to? :list_purchasable_offers
3671
+ list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers
3487
3672
  @list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config
3673
+ register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber
3674
+ @register_subscriber = ::Gapic::Config::Method.new register_subscriber_config
3675
+ unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber
3676
+ @unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config
3677
+ list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers
3678
+ @list_subscribers = ::Gapic::Config::Method.new list_subscribers_config
3488
3679
 
3489
3680
  yield self if block_given?
3490
3681
  end