From b3f15a4395cd9b65d1777fc39ca5d64e8ed8a92e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 27 Oct 2024 09:51:38 +0000 Subject: [PATCH] feat: Automated regeneration of cloudchannel v1 client --- api_names_out.yaml | 7 + .../google-apis-cloudchannel_v1/CHANGELOG.md | 4 + .../google/apis/cloudchannel_v1/classes.rb | 48 ++++- .../apis/cloudchannel_v1/gem_version.rb | 4 +- .../apis/cloudchannel_v1/representations.rb | 5 + .../google/apis/cloudchannel_v1/service.rb | 182 ++++++++++++++++-- 6 files changed, 227 insertions(+), 23 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index e07d5525052..49ccf9ec19a 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -61688,6 +61688,7 @@ "/cloudchannel:v1/GoogleCloudChannelV1QueryEligibleBillingAccountsResponse/skuPurchaseGroups": sku_purchase_groups "/cloudchannel:v1/GoogleCloudChannelV1QueryEligibleBillingAccountsResponse/skuPurchaseGroups/sku_purchase_group": sku_purchase_group "/cloudchannel:v1/GoogleCloudChannelV1RegisterSubscriberRequest": google_cloud_channel_v1_register_subscriber_request +"/cloudchannel:v1/GoogleCloudChannelV1RegisterSubscriberRequest/account": account "/cloudchannel:v1/GoogleCloudChannelV1RegisterSubscriberRequest/integrator": integrator "/cloudchannel:v1/GoogleCloudChannelV1RegisterSubscriberRequest/serviceAccount": service_account "/cloudchannel:v1/GoogleCloudChannelV1RegisterSubscriberResponse": google_cloud_channel_v1_register_subscriber_response @@ -61795,6 +61796,7 @@ "/cloudchannel:v1/GoogleCloudChannelV1TrialSettings/endTime": end_time "/cloudchannel:v1/GoogleCloudChannelV1TrialSettings/trial": trial "/cloudchannel:v1/GoogleCloudChannelV1UnregisterSubscriberRequest": google_cloud_channel_v1_unregister_subscriber_request +"/cloudchannel:v1/GoogleCloudChannelV1UnregisterSubscriberRequest/account": account "/cloudchannel:v1/GoogleCloudChannelV1UnregisterSubscriberRequest/integrator": integrator "/cloudchannel:v1/GoogleCloudChannelV1UnregisterSubscriberRequest/serviceAccount": service_account "/cloudchannel:v1/GoogleCloudChannelV1UnregisterSubscriberResponse": google_cloud_channel_v1_unregister_subscriber_response @@ -61843,6 +61845,7 @@ "/cloudchannel:v1/GoogleCloudChannelV1alpha1Entitlement/offer": offer "/cloudchannel:v1/GoogleCloudChannelV1alpha1Entitlement/parameters": parameters "/cloudchannel:v1/GoogleCloudChannelV1alpha1Entitlement/parameters/parameter": parameter +"/cloudchannel:v1/GoogleCloudChannelV1alpha1Entitlement/priceReferenceId": price_reference_id "/cloudchannel:v1/GoogleCloudChannelV1alpha1Entitlement/provisionedService": provisioned_service "/cloudchannel:v1/GoogleCloudChannelV1alpha1Entitlement/provisioningState": provisioning_state "/cloudchannel:v1/GoogleCloudChannelV1alpha1Entitlement/purchaseOrderId": purchase_order_id @@ -62143,10 +62146,14 @@ "/cloudchannel:v1/cloudchannel.integrators.register/account": account "/cloudchannel:v1/cloudchannel.integrators.register/integrator": integrator "/cloudchannel:v1/cloudchannel.integrators.register/serviceAccount": service_account +"/cloudchannel:v1/cloudchannel.integrators.registerSubscriber": register_integrator_subscriber +"/cloudchannel:v1/cloudchannel.integrators.registerSubscriber/integrator": integrator "/cloudchannel:v1/cloudchannel.integrators.unregister": unregister_integrator "/cloudchannel:v1/cloudchannel.integrators.unregister/account": account "/cloudchannel:v1/cloudchannel.integrators.unregister/integrator": integrator "/cloudchannel:v1/cloudchannel.integrators.unregister/serviceAccount": service_account +"/cloudchannel:v1/cloudchannel.integrators.unregisterSubscriber": unregister_integrator_subscriber +"/cloudchannel:v1/cloudchannel.integrators.unregisterSubscriber/integrator": integrator "/cloudchannel:v1/cloudchannel.operations.cancel": cancel_operation "/cloudchannel:v1/cloudchannel.operations.cancel/name": name "/cloudchannel:v1/cloudchannel.operations.delete": delete_operation diff --git a/generated/google-apis-cloudchannel_v1/CHANGELOG.md b/generated/google-apis-cloudchannel_v1/CHANGELOG.md index 1a63587c75a..625784a023b 100644 --- a/generated/google-apis-cloudchannel_v1/CHANGELOG.md +++ b/generated/google-apis-cloudchannel_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-cloudchannel_v1 +### v0.54.0 (2024-10-27) + +* Regenerated from discovery document revision 20241024 + ### v0.53.0 (2024-09-15) * Regenerated from discovery document revision 20240913 diff --git a/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/classes.rb b/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/classes.rb index 353f402b29a..dba74aed15a 100644 --- a/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/classes.rb +++ b/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/classes.rb @@ -280,7 +280,7 @@ def update!(**args) end end - # Request message for CloudChannelService.ChangeParametersRequest. + # Request message for CloudChannelService.ChangeParameters. class GoogleCloudChannelV1ChangeParametersRequest include Google::Apis::Core::Hashable @@ -1779,8 +1779,8 @@ class GoogleCloudChannelV1ListSkuGroupBillableSkusResponse # @return [Array] attr_accessor :billable_skus - # A token to retrieve the next page of results. Pass to ListSkuGroupBillableSkus. - # page_token to obtain that page. + # A token to retrieve the next page of results. Pass to + # ListSkuGroupBillableSkusRequest.page_token to obtain that page. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -1800,8 +1800,8 @@ def update!(**args) class GoogleCloudChannelV1ListSkuGroupsResponse include Google::Apis::Core::Hashable - # A token to retrieve the next page of results. Pass to ListSkuGroups.page_token - # to obtain that page. + # A token to retrieve the next page of results. Pass to ListSkuGroupsRequest. + # page_token to obtain that page. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -2704,6 +2704,18 @@ def update!(**args) class GoogleCloudChannelV1RegisterSubscriberRequest include Google::Apis::Core::Hashable + # Optional. Resource name of the account. Required if integrator is not provided. + # Otherwise, leave this field empty/unset. + # Corresponds to the JSON property `account` + # @return [String] + attr_accessor :account + + # Optional. Resource name of the integrator. Required if account is not provided. + # Otherwise, leave this field empty/unset. + # Corresponds to the JSON property `integrator` + # @return [String] + attr_accessor :integrator + # Required. Service account that provides subscriber access to the registered # topic. # Corresponds to the JSON property `serviceAccount` @@ -2716,6 +2728,8 @@ def initialize(**args) # Update properties of this object def update!(**args) + @account = args[:account] if args.key?(:account) + @integrator = args[:integrator] if args.key?(:integrator) @service_account = args[:service_account] if args.key?(:service_account) end end @@ -3621,6 +3635,18 @@ def update!(**args) class GoogleCloudChannelV1UnregisterSubscriberRequest include Google::Apis::Core::Hashable + # Optional. Resource name of the account. Required if integrator is not provided. + # Otherwise, leave this field empty/unset. + # Corresponds to the JSON property `account` + # @return [String] + attr_accessor :account + + # Optional. Resource name of the integrator. Required if account is not provided. + # Otherwise, leave this field empty/unset. + # Corresponds to the JSON property `integrator` + # @return [String] + attr_accessor :integrator + # Required. Service account to unregister from subscriber access to the topic. # Corresponds to the JSON property `serviceAccount` # @return [String] @@ -3632,6 +3658,8 @@ def initialize(**args) # Update properties of this object def update!(**args) + @account = args[:account] if args.key?(:account) + @integrator = args[:integrator] if args.key?(:integrator) @service_account = args[:service_account] if args.key?(:service_account) end end @@ -4022,6 +4050,15 @@ class GoogleCloudChannelV1alpha1Entitlement # @return [Array] attr_accessor :parameters + # Optional. Price reference ID for the offer. Optional field only for offers + # that require additional price information. Used to guarantee that the pricing + # is consistent between quoting the offer and placing the order. Yet to be + # implemented: this field is currently not evaluated in the API if populated in + # a request. + # Corresponds to the JSON property `priceReferenceId` + # @return [String] + attr_accessor :price_reference_id + # Service provisioned for an entitlement. # Corresponds to the JSON property `provisionedService` # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ProvisionedService] @@ -4073,6 +4110,7 @@ def update!(**args) @num_units = args[:num_units] if args.key?(:num_units) @offer = args[:offer] if args.key?(:offer) @parameters = args[:parameters] if args.key?(:parameters) + @price_reference_id = args[:price_reference_id] if args.key?(:price_reference_id) @provisioned_service = args[:provisioned_service] if args.key?(:provisioned_service) @provisioning_state = args[:provisioning_state] if args.key?(:provisioning_state) @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id) diff --git a/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/gem_version.rb b/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/gem_version.rb index f9d7873f906..3402bfb3628 100644 --- a/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/gem_version.rb +++ b/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module CloudchannelV1 # Version of the google-apis-cloudchannel_v1 gem - GEM_VERSION = "0.53.0" + GEM_VERSION = "0.54.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.15.1" # Revision of the discovery document this client was generated from - REVISION = "20240913" + REVISION = "20241024" end end end diff --git a/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/representations.rb b/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/representations.rb index 6c2d8ceb6cd..5c4c249f48a 100644 --- a/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/representations.rb +++ b/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/representations.rb @@ -1612,6 +1612,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class GoogleCloudChannelV1RegisterSubscriberRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :account, as: 'account' + property :integrator, as: 'integrator' property :service_account, as: 'serviceAccount' end end @@ -1893,6 +1895,8 @@ class Representation < Google::Apis::Core::JsonRepresentation class GoogleCloudChannelV1UnregisterSubscriberRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :account, as: 'account' + property :integrator, as: 'integrator' property :service_account, as: 'serviceAccount' end end @@ -1997,6 +2001,7 @@ class Representation < Google::Apis::Core::JsonRepresentation property :offer, as: 'offer' collection :parameters, as: 'parameters', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Parameter, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Parameter::Representation + property :price_reference_id, as: 'priceReferenceId' property :provisioned_service, as: 'provisionedService', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ProvisionedService, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ProvisionedService::Representation property :provisioning_state, as: 'provisioningState' diff --git a/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/service.rb b/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/service.rb index 53197ea510a..cded9b09514 100644 --- a/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/service.rb +++ b/generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/service.rb @@ -95,8 +95,8 @@ def check_account_cloud_identity_accounts_exist(parent, google_cloud_channel_v1_ execute_or_queue_command(command, &block) end - # Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic - # created for this Channel Services account. Possible error codes: * + # Lists service accounts with subscriber privileges on the Pub/Sub topic created + # for this Channel Services account or integrator. Possible error codes: * # PERMISSION_DENIED: The reseller account making the request and the provided # reseller account are different, or the impersonated user is not a super admin. # * INVALID_ARGUMENT: Required request parameters are missing or invalid. * @@ -105,7 +105,11 @@ def check_account_cloud_identity_accounts_exist(parent, google_cloud_channel_v1_ # UNKNOWN: Any non-user error related to a technical issue in the backend. # Contact Cloud Channel support. Return value: A list of service email addresses. # @param [String] account - # Optional. Resource name of the account. + # Optional. Resource name of the account. Required if integrator is not provided. + # Otherwise, leave this field empty/unset. + # @param [String] integrator + # Optional. Resource name of the integrator. Required if account is not provided. + # Otherwise, leave this field empty/unset. # @param [Fixnum] page_size # Optional. The maximum number of service accounts to return. The service may # return fewer than this value. If unspecified, returns at most 100 service @@ -132,11 +136,12 @@ def check_account_cloud_identity_accounts_exist(parent, google_cloud_channel_v1_ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_account_subscribers(account, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_account_subscribers(account, integrator: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+account}:listSubscribers', options) command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse::Representation command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse command.params['account'] = account unless account.nil? + command.query['integrator'] = integrator unless integrator.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? @@ -228,9 +233,9 @@ def list_account_transferable_skus(parent, google_cloud_channel_v1_list_transfer execute_or_queue_command(command, &block) end - # Registers a service account with subscriber privileges on the Cloud Pub/Sub - # topic for this Channel Services account. After you create a subscriber, you - # get the events through SubscriberEvent Possible error codes: * + # Registers a service account with subscriber privileges on the Pub/Sub topic + # for this Channel Services account or integrator. After you create a subscriber, + # you get the events through SubscriberEvent Possible error codes: * # PERMISSION_DENIED: The reseller account making the request and the provided # reseller account are different, or the impersonated user is not a super admin. # * INVALID_ARGUMENT: Required request parameters are missing or invalid. * @@ -239,7 +244,8 @@ def list_account_transferable_skus(parent, google_cloud_channel_v1_list_transfer # technical issue in the backend. Contact Cloud Channel support. Return value: # The topic name with the registered service email address. # @param [String] account - # Optional. Resource name of the account. + # Optional. Resource name of the account. Required if integrator is not provided. + # Otherwise, leave this field empty/unset. # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberRequest] google_cloud_channel_v1_register_subscriber_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -270,10 +276,10 @@ def register_account(account, google_cloud_channel_v1_register_subscriber_reques execute_or_queue_command(command, &block) end - # Unregisters a service account with subscriber privileges on the Cloud Pub/Sub - # topic created for this Channel Services account. If there are no service - # accounts left with subscriber privileges, this deletes the topic. You can call - # ListSubscribers to check for these accounts. Possible error codes: * + # Unregisters a service account with subscriber privileges on the Pub/Sub topic + # created for this Channel Services account or integrator. If there are no + # service accounts left with subscriber privileges, this deletes the topic. You + # can call ListSubscribers to check for these accounts. Possible error codes: * # PERMISSION_DENIED: The reseller account making the request and the provided # reseller account are different, or the impersonated user is not a super admin. # * INVALID_ARGUMENT: Required request parameters are missing or invalid. * @@ -284,7 +290,8 @@ def register_account(account, google_cloud_channel_v1_register_subscriber_reques # the service email address. Returns a success response if the service email # address wasn't registered with the topic. # @param [String] account - # Optional. Resource name of the account. + # Optional. Resource name of the account. Required if integrator is not provided. + # Otherwise, leave this field empty/unset. # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberRequest] google_cloud_channel_v1_unregister_subscriber_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2554,7 +2561,7 @@ def run_account_report(name, google_cloud_channel_v1_run_report_job_request_obje # The maximum value is 1000; values above 1000 will be coerced to 1000. # @param [String] page_token # Optional. A token identifying a page of results beyond the first page. - # Obtained through ListSkuGroups.next_page_token of the previous + # Obtained through ListSkuGroupsResponse.next_page_token of the previous # CloudChannelService.ListSkuGroups call. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -2603,8 +2610,8 @@ def list_account_sku_groups(parent, page_size: nil, page_token: nil, fields: nil # value is 100000; values above 100000 will be coerced to 100000. # @param [String] page_token # Optional. A token identifying a page of results beyond the first page. - # Obtained through ListSkuGroupBillableSkus.next_page_token of the previous - # CloudChannelService.ListSkuGroupBillableSkus call. + # Obtained through ListSkuGroupBillableSkusResponse.next_page_token of the + # previous CloudChannelService.ListSkuGroupBillableSkus call. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2634,6 +2641,149 @@ def list_account_sku_group_billable_skus(parent, page_size: nil, page_token: nil execute_or_queue_command(command, &block) end + # Lists service accounts with subscriber privileges on the Pub/Sub topic created + # for this Channel Services account or integrator. Possible error codes: * + # PERMISSION_DENIED: The reseller account making the request and the provided + # reseller account are different, or the impersonated user is not a super admin. + # * INVALID_ARGUMENT: Required request parameters are missing or invalid. * + # NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error + # related to a technical issue in the backend. Contact Cloud Channel support. * + # UNKNOWN: Any non-user error related to a technical issue in the backend. + # Contact Cloud Channel support. Return value: A list of service email addresses. + # @param [String] integrator + # Optional. Resource name of the integrator. Required if account is not provided. + # Otherwise, leave this field empty/unset. + # @param [String] account + # Optional. Resource name of the account. Required if integrator is not provided. + # Otherwise, leave this field empty/unset. + # @param [Fixnum] page_size + # Optional. The maximum number of service accounts to return. The service may + # return fewer than this value. If unspecified, returns at most 100 service + # accounts. The maximum value is 1000; the server will coerce values above 1000. + # @param [String] page_token + # Optional. A page token, received from a previous `ListSubscribers` call. + # Provide this to retrieve the subsequent page. When paginating, all other + # parameters provided to `ListSubscribers` must match the call that provided the + # page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_integrator_subscribers(integrator, account: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+integrator}:listSubscribers', options) + command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse::Representation + command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse + command.params['integrator'] = integrator unless integrator.nil? + command.query['account'] = account unless account.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Registers a service account with subscriber privileges on the Pub/Sub topic + # for this Channel Services account or integrator. After you create a subscriber, + # you get the events through SubscriberEvent Possible error codes: * + # PERMISSION_DENIED: The reseller account making the request and the provided + # reseller account are different, or the impersonated user is not a super admin. + # * INVALID_ARGUMENT: Required request parameters are missing or invalid. * + # INTERNAL: Any non-user error related to a technical issue in the backend. + # Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a + # technical issue in the backend. Contact Cloud Channel support. Return value: + # The topic name with the registered service email address. + # @param [String] integrator + # Optional. Resource name of the integrator. Required if account is not provided. + # Otherwise, leave this field empty/unset. + # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberRequest] google_cloud_channel_v1_register_subscriber_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def register_integrator_subscriber(integrator, google_cloud_channel_v1_register_subscriber_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+integrator}:registerSubscriber', options) + command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberRequest::Representation + command.request_object = google_cloud_channel_v1_register_subscriber_request_object + command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberResponse::Representation + command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberResponse + command.params['integrator'] = integrator unless integrator.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Unregisters a service account with subscriber privileges on the Pub/Sub topic + # created for this Channel Services account or integrator. If there are no + # service accounts left with subscriber privileges, this deletes the topic. You + # can call ListSubscribers to check for these accounts. Possible error codes: * + # PERMISSION_DENIED: The reseller account making the request and the provided + # reseller account are different, or the impersonated user is not a super admin. + # * INVALID_ARGUMENT: Required request parameters are missing or invalid. * + # NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error + # related to a technical issue in the backend. Contact Cloud Channel support. * + # UNKNOWN: Any non-user error related to a technical issue in the backend. + # Contact Cloud Channel support. Return value: The topic name that unregistered + # the service email address. Returns a success response if the service email + # address wasn't registered with the topic. + # @param [String] integrator + # Optional. Resource name of the integrator. Required if account is not provided. + # Otherwise, leave this field empty/unset. + # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberRequest] google_cloud_channel_v1_unregister_subscriber_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def unregister_integrator_subscriber(integrator, google_cloud_channel_v1_unregister_subscriber_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+integrator}:unregisterSubscriber', options) + command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberRequest::Representation + command.request_object = google_cloud_channel_v1_unregister_subscriber_request_object + command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberResponse::Representation + command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberResponse + command.params['integrator'] = integrator unless integrator.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Starts asynchronous cancellation on a long-running operation. The server makes # a best effort to cancel the operation, but success is not guaranteed. If the # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.