Skip to content

Commit a95ac5b

Browse files
feat: Automated regeneration of adsenseplatform v1alpha client (googleapis#21500)
Auto-created at 2025-01-26 10:34:06 +0000 using the toys pull request generator.
1 parent 9fb18fe commit a95ac5b

File tree

5 files changed

+48
-6
lines changed

5 files changed

+48
-6
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6518,6 +6518,9 @@
65186518
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.childAccounts.sites.list/pageSize": page_size
65196519
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.childAccounts.sites.list/pageToken": page_token
65206520
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.childAccounts.sites.list/parent": parent
6521+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.childAccounts.sites.patch": patch_account_platform_child_account_site
6522+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.childAccounts.sites.patch/name": name
6523+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.childAccounts.sites.patch/updateMask": update_mask
65216524
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.get": get_account_platform
65226525
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.get/name": name
65236526
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.list": list_account_platform_groups

generated/google-apis-adsenseplatform_v1alpha/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Release history for google-apis-adsenseplatform_v1alpha
22

3-
### v0.4.0 (2025-01-19)
3+
### v0.4.0 (2025-01-26)
44

5-
* Regenerated from discovery document revision 20250115
5+
* Regenerated from discovery document revision 20250123
66

77
### v0.3.0 (2025-01-12)
88

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ class PlatformChildSite
511511
attr_accessor :domain
512512

513513
# Identifier. Format: accounts/`account`/platforms/`platform`/childAccounts/`
514-
# child`/sites/`platformChildSite`
514+
# child_account`/sites/`platform_child_site`
515515
# Corresponds to the JSON property `name`
516516
# @return [String]
517517
attr_accessor :name

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module AdsenseplatformV1alpha
2222
GENERATOR_VERSION = "0.16.0"
2323

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

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

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ def list_account_platforms(parent, page_size: nil, page_token: nil, fields: nil,
124124

125125
# Lists Platform Child Sites for a specified Platform Child Account.
126126
# @param [String] parent
127-
# Required. The name of the platform to retrieve. Format: accounts/`account`/
128-
# platforms/`platform`/childAccounts/`child_publisher_code`
127+
# Required. The name of the child account under the given platform which owns
128+
# the platform child sites. Format: accounts/`account`/platforms/`platform`/
129+
# childAccounts/`child_account`
129130
# @param [Fixnum] page_size
130131
# Optional. The maximum number of children to include in the response, used for
131132
# paging. If unspecified, at most 10000 platforms will be returned. The maximum
@@ -164,6 +165,44 @@ def list_account_platform_child_account_sites(parent, page_size: nil, page_token
164165
execute_or_queue_command(command, &block)
165166
end
166167

168+
# Update a Platform Child Site.
169+
# @param [String] name
170+
# Identifier. Format: accounts/`account`/platforms/`platform`/childAccounts/`
171+
# child_account`/sites/`platform_child_site`
172+
# @param [Google::Apis::AdsenseplatformV1alpha::PlatformChildSite] platform_child_site_object
173+
# @param [String] update_mask
174+
# Optional. The list of fields to update - currently only supports updating the `
175+
# platform_group` field.
176+
# @param [String] fields
177+
# Selector specifying which fields to include in a partial response.
178+
# @param [String] quota_user
179+
# Available to use for quota purposes for server-side applications. Can be any
180+
# arbitrary string assigned to a user, but should not exceed 40 characters.
181+
# @param [Google::Apis::RequestOptions] options
182+
# Request-specific options
183+
#
184+
# @yield [result, err] Result & error if block supplied
185+
# @yieldparam result [Google::Apis::AdsenseplatformV1alpha::PlatformChildSite] parsed result object
186+
# @yieldparam err [StandardError] error object if request failed
187+
#
188+
# @return [Google::Apis::AdsenseplatformV1alpha::PlatformChildSite]
189+
#
190+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
191+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
192+
# @raise [Google::Apis::AuthorizationError] Authorization is required
193+
def patch_account_platform_child_account_site(name, platform_child_site_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
194+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
195+
command.request_representation = Google::Apis::AdsenseplatformV1alpha::PlatformChildSite::Representation
196+
command.request_object = platform_child_site_object
197+
command.response_representation = Google::Apis::AdsenseplatformV1alpha::PlatformChildSite::Representation
198+
command.response_class = Google::Apis::AdsenseplatformV1alpha::PlatformChildSite
199+
command.params['name'] = name unless name.nil?
200+
command.query['updateMask'] = update_mask unless update_mask.nil?
201+
command.query['fields'] = fields unless fields.nil?
202+
command.query['quotaUser'] = quota_user unless quota_user.nil?
203+
execute_or_queue_command(command, &block)
204+
end
205+
167206
# Lists Platform Groups for a specified Platform.
168207
# @param [String] parent
169208
# Required. The name of the platform to retrieve. Format: accounts/`account`/

0 commit comments

Comments
 (0)