Skip to content

Commit beefb18

Browse files
feat: Automated regeneration of adsenseplatform v1alpha client (googleapis#23627)
Auto-created at 2025-07-06 10:22:26 +0000 using the toys pull request generator.
1 parent 4a67669 commit beefb18

File tree

4 files changed

+47
-2
lines changed

4 files changed

+47
-2
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6602,6 +6602,9 @@
66026602
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.list/pageSize": page_size
66036603
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.list/pageToken": page_token
66046604
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.list/parent": parent
6605+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.patch": patch_account_platform_group
6606+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.patch/name": name
6607+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.patch/updateMask": update_mask
66056608
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.list": list_account_platforms
66066609
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.list/pageSize": page_size
66076610
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.list/pageToken": page_token

generated/google-apis-adsenseplatform_v1alpha/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-adsenseplatform_v1alpha
22

3+
### v0.8.0 (2025-07-06)
4+
5+
* Regenerated from discovery document revision 20250703
6+
37
### v0.7.0 (2025-06-29)
48

59
* Regenerated from discovery document revision 20250623

generated/google-apis-adsenseplatform_v1alpha/lib/google/apis/adsenseplatform_v1alpha/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 AdsenseplatformV1alpha
1818
# Version of the google-apis-adsenseplatform_v1alpha gem
19-
GEM_VERSION = "0.7.0"
19+
GEM_VERSION = "0.8.0"
2020

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

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

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,44 @@ def list_account_platform_groups(parent, page_size: nil, page_token: nil, fields
308308
execute_or_queue_command(command, &block)
309309
end
310310

311+
# Update a Platform Group.
312+
# @param [String] name
313+
# Identifier. Format: accounts/`account`/platforms/`platform`/groups/`
314+
# platform_group`
315+
# @param [Google::Apis::AdsenseplatformV1alpha::PlatformGroup] platform_group_object
316+
# @param [String] update_mask
317+
# Optional. The list of fields to update - currently only supports updating the `
318+
# description` field.
319+
# @param [String] fields
320+
# Selector specifying which fields to include in a partial response.
321+
# @param [String] quota_user
322+
# Available to use for quota purposes for server-side applications. Can be any
323+
# arbitrary string assigned to a user, but should not exceed 40 characters.
324+
# @param [Google::Apis::RequestOptions] options
325+
# Request-specific options
326+
#
327+
# @yield [result, err] Result & error if block supplied
328+
# @yieldparam result [Google::Apis::AdsenseplatformV1alpha::PlatformGroup] parsed result object
329+
# @yieldparam err [StandardError] error object if request failed
330+
#
331+
# @return [Google::Apis::AdsenseplatformV1alpha::PlatformGroup]
332+
#
333+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335+
# @raise [Google::Apis::AuthorizationError] Authorization is required
336+
def patch_account_platform_group(name, platform_group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
337+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
338+
command.request_representation = Google::Apis::AdsenseplatformV1alpha::PlatformGroup::Representation
339+
command.request_object = platform_group_object
340+
command.response_representation = Google::Apis::AdsenseplatformV1alpha::PlatformGroup::Representation
341+
command.response_class = Google::Apis::AdsenseplatformV1alpha::PlatformGroup
342+
command.params['name'] = name unless name.nil?
343+
command.query['updateMask'] = update_mask unless update_mask.nil?
344+
command.query['fields'] = fields unless fields.nil?
345+
command.query['quotaUser'] = quota_user unless quota_user.nil?
346+
execute_or_queue_command(command, &block)
347+
end
348+
311349
# Closes a sub-account.
312350
# @param [String] name
313351
# Required. Account to close. Format: platforms/`platform`/accounts/`account_id`

0 commit comments

Comments
 (0)