Skip to content

Commit ac5c075

Browse files
feat: Automated regeneration of cloudchannel v1 client (googleapis#20229)
Auto-created at 2024-09-15 09:48:59 +0000 using the toys pull request generator.
1 parent 582c3ae commit ac5c075

File tree

5 files changed

+11
-169
lines changed

5 files changed

+11
-169
lines changed

generated/google-apis-cloudchannel_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-cloudchannel_v1
22

3+
### v0.53.0 (2024-09-15)
4+
5+
* Regenerated from discovery document revision 20240913
6+
37
### v0.52.0 (2024-09-01)
48

59
* Regenerated from discovery document revision 20240828

generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/classes.rb

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -457,12 +457,13 @@ class GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest
457457
include Google::Apis::Core::Hashable
458458

459459
# Required. Domain to fetch for Cloud Identity account customers, including
460-
# domained and domainless.
460+
# domain and team customers. For team customers, please use the domain for their
461+
# emails.
461462
# Corresponds to the JSON property `domain`
462463
# @return [String]
463464
attr_accessor :domain
464465

465-
# Optional. Primary admin email to fetch for Cloud Identity account domainless
466+
# Optional. Primary admin email to fetch for Cloud Identity account team
466467
# customer.
467468
# Corresponds to the JSON property `primaryAdminEmail`
468469
# @return [String]
@@ -1467,7 +1468,7 @@ class GoogleCloudChannelV1ImportCustomerRequest
14671468
attr_accessor :overwrite_if_exists
14681469
alias_method :overwrite_if_exists?, :overwrite_if_exists
14691470

1470-
# Optional. Customer's primary admin email.
1471+
# Required. Customer's primary admin email.
14711472
# Corresponds to the JSON property `primaryAdminEmail`
14721473
# @return [String]
14731474
attr_accessor :primary_admin_email
@@ -2703,11 +2704,6 @@ def update!(**args)
27032704
class GoogleCloudChannelV1RegisterSubscriberRequest
27042705
include Google::Apis::Core::Hashable
27052706

2706-
# Optional. Resource name of the integrator.
2707-
# Corresponds to the JSON property `integrator`
2708-
# @return [String]
2709-
attr_accessor :integrator
2710-
27112707
# Required. Service account that provides subscriber access to the registered
27122708
# topic.
27132709
# Corresponds to the JSON property `serviceAccount`
@@ -2720,7 +2716,6 @@ def initialize(**args)
27202716

27212717
# Update properties of this object
27222718
def update!(**args)
2723-
@integrator = args[:integrator] if args.key?(:integrator)
27242719
@service_account = args[:service_account] if args.key?(:service_account)
27252720
end
27262721
end
@@ -3626,11 +3621,6 @@ def update!(**args)
36263621
class GoogleCloudChannelV1UnregisterSubscriberRequest
36273622
include Google::Apis::Core::Hashable
36283623

3629-
# Optional. Resource name of the integrator.
3630-
# Corresponds to the JSON property `integrator`
3631-
# @return [String]
3632-
attr_accessor :integrator
3633-
36343624
# Required. Service account to unregister from subscriber access to the topic.
36353625
# Corresponds to the JSON property `serviceAccount`
36363626
# @return [String]
@@ -3642,7 +3632,6 @@ def initialize(**args)
36423632

36433633
# Update properties of this object
36443634
def update!(**args)
3645-
@integrator = args[:integrator] if args.key?(:integrator)
36463635
@service_account = args[:service_account] if args.key?(:service_account)
36473636
end
36483637
end

generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CloudchannelV1
1818
# Version of the google-apis-cloudchannel_v1 gem
19-
GEM_VERSION = "0.52.0"
19+
GEM_VERSION = "0.53.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240828"
25+
REVISION = "20240913"
2626
end
2727
end
2828
end

generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/representations.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
16121612
class GoogleCloudChannelV1RegisterSubscriberRequest
16131613
# @private
16141614
class Representation < Google::Apis::Core::JsonRepresentation
1615-
property :integrator, as: 'integrator'
16161615
property :service_account, as: 'serviceAccount'
16171616
end
16181617
end
@@ -1894,7 +1893,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
18941893
class GoogleCloudChannelV1UnregisterSubscriberRequest
18951894
# @private
18961895
class Representation < Google::Apis::Core::JsonRepresentation
1897-
property :integrator, as: 'integrator'
18981896
property :service_account, as: 'serviceAccount'
18991897
end
19001898
end

generated/google-apis-cloudchannel_v1/lib/google/apis/cloudchannel_v1/service.rb

Lines changed: 1 addition & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ def check_account_cloud_identity_accounts_exist(parent, google_cloud_channel_v1_
106106
# Contact Cloud Channel support. Return value: A list of service email addresses.
107107
# @param [String] account
108108
# Optional. Resource name of the account.
109-
# @param [String] integrator
110-
# Optional. Resource name of the integrator.
111109
# @param [Fixnum] page_size
112110
# Optional. The maximum number of service accounts to return. The service may
113111
# return fewer than this value. If unspecified, returns at most 100 service
@@ -134,12 +132,11 @@ def check_account_cloud_identity_accounts_exist(parent, google_cloud_channel_v1_
134132
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
135133
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
136134
# @raise [Google::Apis::AuthorizationError] Authorization is required
137-
def list_account_subscribers(account, integrator: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
135+
def list_account_subscribers(account, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
138136
command = make_simple_command(:get, 'v1/{+account}:listSubscribers', options)
139137
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse::Representation
140138
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse
141139
command.params['account'] = account unless account.nil?
142-
command.query['integrator'] = integrator unless integrator.nil?
143140
command.query['pageSize'] = page_size unless page_size.nil?
144141
command.query['pageToken'] = page_token unless page_token.nil?
145142
command.query['fields'] = fields unless fields.nil?
@@ -2637,152 +2634,6 @@ def list_account_sku_group_billable_skus(parent, page_size: nil, page_token: nil
26372634
execute_or_queue_command(command, &block)
26382635
end
26392636

2640-
# Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic
2641-
# created for this Channel Services account. Possible error codes: *
2642-
# PERMISSION_DENIED: The reseller account making the request and the provided
2643-
# reseller account are different, or the impersonated user is not a super admin.
2644-
# * INVALID_ARGUMENT: Required request parameters are missing or invalid. *
2645-
# NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error
2646-
# related to a technical issue in the backend. Contact Cloud Channel support. *
2647-
# UNKNOWN: Any non-user error related to a technical issue in the backend.
2648-
# Contact Cloud Channel support. Return value: A list of service email addresses.
2649-
# @param [String] integrator
2650-
# Optional. Resource name of the integrator.
2651-
# @param [String] account
2652-
# Optional. Resource name of the account.
2653-
# @param [Fixnum] page_size
2654-
# Optional. The maximum number of service accounts to return. The service may
2655-
# return fewer than this value. If unspecified, returns at most 100 service
2656-
# accounts. The maximum value is 1000; the server will coerce values above 1000.
2657-
# @param [String] page_token
2658-
# Optional. A page token, received from a previous `ListSubscribers` call.
2659-
# Provide this to retrieve the subsequent page. When paginating, all other
2660-
# parameters provided to `ListSubscribers` must match the call that provided the
2661-
# page token.
2662-
# @param [String] fields
2663-
# Selector specifying which fields to include in a partial response.
2664-
# @param [String] quota_user
2665-
# Available to use for quota purposes for server-side applications. Can be any
2666-
# arbitrary string assigned to a user, but should not exceed 40 characters.
2667-
# @param [Google::Apis::RequestOptions] options
2668-
# Request-specific options
2669-
#
2670-
# @yield [result, err] Result & error if block supplied
2671-
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse] parsed result object
2672-
# @yieldparam err [StandardError] error object if request failed
2673-
#
2674-
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse]
2675-
#
2676-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2677-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2678-
# @raise [Google::Apis::AuthorizationError] Authorization is required
2679-
def list_integrator_subscribers(integrator, account: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2680-
command = make_simple_command(:get, 'v1/{+integrator}:listSubscribers', options)
2681-
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse::Representation
2682-
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSubscribersResponse
2683-
command.params['integrator'] = integrator unless integrator.nil?
2684-
command.query['account'] = account unless account.nil?
2685-
command.query['pageSize'] = page_size unless page_size.nil?
2686-
command.query['pageToken'] = page_token unless page_token.nil?
2687-
command.query['fields'] = fields unless fields.nil?
2688-
command.query['quotaUser'] = quota_user unless quota_user.nil?
2689-
execute_or_queue_command(command, &block)
2690-
end
2691-
2692-
# Registers a service account with subscriber privileges on the Cloud Pub/Sub
2693-
# topic for this Channel Services account. After you create a subscriber, you
2694-
# get the events through SubscriberEvent Possible error codes: *
2695-
# PERMISSION_DENIED: The reseller account making the request and the provided
2696-
# reseller account are different, or the impersonated user is not a super admin.
2697-
# * INVALID_ARGUMENT: Required request parameters are missing or invalid. *
2698-
# INTERNAL: Any non-user error related to a technical issue in the backend.
2699-
# Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a
2700-
# technical issue in the backend. Contact Cloud Channel support. Return value:
2701-
# The topic name with the registered service email address.
2702-
# @param [String] integrator
2703-
# Optional. Resource name of the integrator.
2704-
# @param [String] account
2705-
# Optional. Resource name of the account.
2706-
# @param [String] service_account
2707-
# Required. Service account that provides subscriber access to the registered
2708-
# topic.
2709-
# @param [String] fields
2710-
# Selector specifying which fields to include in a partial response.
2711-
# @param [String] quota_user
2712-
# Available to use for quota purposes for server-side applications. Can be any
2713-
# arbitrary string assigned to a user, but should not exceed 40 characters.
2714-
# @param [Google::Apis::RequestOptions] options
2715-
# Request-specific options
2716-
#
2717-
# @yield [result, err] Result & error if block supplied
2718-
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberResponse] parsed result object
2719-
# @yieldparam err [StandardError] error object if request failed
2720-
#
2721-
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberResponse]
2722-
#
2723-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2724-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2725-
# @raise [Google::Apis::AuthorizationError] Authorization is required
2726-
def register_integrator(integrator, account: nil, service_account: nil, fields: nil, quota_user: nil, options: nil, &block)
2727-
command = make_simple_command(:post, 'v1/{+integrator}:register', options)
2728-
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberResponse::Representation
2729-
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberResponse
2730-
command.params['integrator'] = integrator unless integrator.nil?
2731-
command.query['account'] = account unless account.nil?
2732-
command.query['serviceAccount'] = service_account unless service_account.nil?
2733-
command.query['fields'] = fields unless fields.nil?
2734-
command.query['quotaUser'] = quota_user unless quota_user.nil?
2735-
execute_or_queue_command(command, &block)
2736-
end
2737-
2738-
# Unregisters a service account with subscriber privileges on the Cloud Pub/Sub
2739-
# topic created for this Channel Services account. If there are no service
2740-
# accounts left with subscriber privileges, this deletes the topic. You can call
2741-
# ListSubscribers to check for these accounts. Possible error codes: *
2742-
# PERMISSION_DENIED: The reseller account making the request and the provided
2743-
# reseller account are different, or the impersonated user is not a super admin.
2744-
# * INVALID_ARGUMENT: Required request parameters are missing or invalid. *
2745-
# NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error
2746-
# related to a technical issue in the backend. Contact Cloud Channel support. *
2747-
# UNKNOWN: Any non-user error related to a technical issue in the backend.
2748-
# Contact Cloud Channel support. Return value: The topic name that unregistered
2749-
# the service email address. Returns a success response if the service email
2750-
# address wasn't registered with the topic.
2751-
# @param [String] integrator
2752-
# Optional. Resource name of the integrator.
2753-
# @param [String] account
2754-
# Optional. Resource name of the account.
2755-
# @param [String] service_account
2756-
# Required. Service account to unregister from subscriber access to the topic.
2757-
# @param [String] fields
2758-
# Selector specifying which fields to include in a partial response.
2759-
# @param [String] quota_user
2760-
# Available to use for quota purposes for server-side applications. Can be any
2761-
# arbitrary string assigned to a user, but should not exceed 40 characters.
2762-
# @param [Google::Apis::RequestOptions] options
2763-
# Request-specific options
2764-
#
2765-
# @yield [result, err] Result & error if block supplied
2766-
# @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberResponse] parsed result object
2767-
# @yieldparam err [StandardError] error object if request failed
2768-
#
2769-
# @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberResponse]
2770-
#
2771-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2772-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2773-
# @raise [Google::Apis::AuthorizationError] Authorization is required
2774-
def unregister_integrator(integrator, account: nil, service_account: nil, fields: nil, quota_user: nil, options: nil, &block)
2775-
command = make_simple_command(:post, 'v1/{+integrator}:unregister', options)
2776-
command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberResponse::Representation
2777-
command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1UnregisterSubscriberResponse
2778-
command.params['integrator'] = integrator unless integrator.nil?
2779-
command.query['account'] = account unless account.nil?
2780-
command.query['serviceAccount'] = service_account unless service_account.nil?
2781-
command.query['fields'] = fields unless fields.nil?
2782-
command.query['quotaUser'] = quota_user unless quota_user.nil?
2783-
execute_or_queue_command(command, &block)
2784-
end
2785-
27862637
# Starts asynchronous cancellation on a long-running operation. The server makes
27872638
# a best effort to cancel the operation, but success is not guaranteed. If the
27882639
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

0 commit comments

Comments
 (0)