Skip to content

Commit fe9e3f3

Browse files
feat: Automated regeneration of adsenseplatform v1alpha client (googleapis#21418)
Auto-created at 2025-01-19 10:05:35 +0000 using the toys pull request generator.
1 parent af9d006 commit fe9e3f3

File tree

6 files changed

+366
-2
lines changed

6 files changed

+366
-2
lines changed

api_names_out.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6462,6 +6462,8 @@
64626462
"/adsenseplatform:v1alpha/Address/zip": zip
64636463
"/adsenseplatform:v1alpha/CloseAccountRequest": close_account_request
64646464
"/adsenseplatform:v1alpha/CloseAccountResponse": close_account_response
6465+
"/adsenseplatform:v1alpha/Decimal": decimal
6466+
"/adsenseplatform:v1alpha/Decimal/value": value
64656467
"/adsenseplatform:v1alpha/Empty": empty
64666468
"/adsenseplatform:v1alpha/Event": event
64676469
"/adsenseplatform:v1alpha/Event/eventInfo": event_info
@@ -6474,6 +6476,14 @@
64746476
"/adsenseplatform:v1alpha/ListAccountsResponse/accounts": accounts
64756477
"/adsenseplatform:v1alpha/ListAccountsResponse/accounts/account": account
64766478
"/adsenseplatform:v1alpha/ListAccountsResponse/nextPageToken": next_page_token
6479+
"/adsenseplatform:v1alpha/ListPlatformChildSitesResponse": list_platform_child_sites_response
6480+
"/adsenseplatform:v1alpha/ListPlatformChildSitesResponse/nextPageToken": next_page_token
6481+
"/adsenseplatform:v1alpha/ListPlatformChildSitesResponse/platformChildSites": platform_child_sites
6482+
"/adsenseplatform:v1alpha/ListPlatformChildSitesResponse/platformChildSites/platform_child_site": platform_child_site
6483+
"/adsenseplatform:v1alpha/ListPlatformGroupsResponse": list_platform_groups_response
6484+
"/adsenseplatform:v1alpha/ListPlatformGroupsResponse/nextPageToken": next_page_token
6485+
"/adsenseplatform:v1alpha/ListPlatformGroupsResponse/platformGroups": platform_groups
6486+
"/adsenseplatform:v1alpha/ListPlatformGroupsResponse/platformGroups/platform_group": platform_group
64776487
"/adsenseplatform:v1alpha/ListPlatformsResponse": list_platforms_response
64786488
"/adsenseplatform:v1alpha/ListPlatformsResponse/nextPageToken": next_page_token
64796489
"/adsenseplatform:v1alpha/ListPlatformsResponse/platforms": platforms
@@ -6488,6 +6498,14 @@
64886498
"/adsenseplatform:v1alpha/Platform/defaultPlatformGroup": default_platform_group
64896499
"/adsenseplatform:v1alpha/Platform/description": description
64906500
"/adsenseplatform:v1alpha/Platform/name": name
6501+
"/adsenseplatform:v1alpha/PlatformChildSite": platform_child_site
6502+
"/adsenseplatform:v1alpha/PlatformChildSite/domain": domain
6503+
"/adsenseplatform:v1alpha/PlatformChildSite/name": name
6504+
"/adsenseplatform:v1alpha/PlatformChildSite/platformGroup": platform_group
6505+
"/adsenseplatform:v1alpha/PlatformGroup": platform_group
6506+
"/adsenseplatform:v1alpha/PlatformGroup/description": description
6507+
"/adsenseplatform:v1alpha/PlatformGroup/name": name
6508+
"/adsenseplatform:v1alpha/PlatformGroup/revshareMillipercent": revshare_millipercent
64916509
"/adsenseplatform:v1alpha/RequestSiteReviewResponse": request_site_review_response
64926510
"/adsenseplatform:v1alpha/Site": site
64936511
"/adsenseplatform:v1alpha/Site/domain": domain
@@ -6496,8 +6514,16 @@
64966514
"/adsenseplatform:v1alpha/TimeZone": time_zone
64976515
"/adsenseplatform:v1alpha/TimeZone/id": id
64986516
"/adsenseplatform:v1alpha/TimeZone/version": version
6517+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.childAccounts.sites.list": list_account_platform_child_account_sites
6518+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.childAccounts.sites.list/pageSize": page_size
6519+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.childAccounts.sites.list/pageToken": page_token
6520+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.childAccounts.sites.list/parent": parent
64996521
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.get": get_account_platform
65006522
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.get/name": name
6523+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.list": list_account_platform_groups
6524+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.list/pageSize": page_size
6525+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.list/pageToken": page_token
6526+
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.groups.list/parent": parent
65016527
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.list": list_account_platforms
65026528
"/adsenseplatform:v1alpha/adsenseplatform.accounts.platforms.list/pageSize": page_size
65036529
"/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.4.0 (2025-01-19)
4+
5+
* Regenerated from discovery document revision 20250115
6+
37
### v0.3.0 (2025-01-12)
48

59
* Regenerated from discovery document revision 20250108

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

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,62 @@ def update!(**args)
189189
end
190190
end
191191

192+
# A representation of a decimal value, such as 2.5. Clients may convert values
193+
# into language-native decimal formats, such as Java's [BigDecimal](https://docs.
194+
# oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or
195+
# Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).
196+
class Decimal
197+
include Google::Apis::Core::Hashable
198+
199+
# The decimal value, as a string. The string representation consists of an
200+
# optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence of
201+
# zero or more decimal digits ("the integer"), optionally followed by a fraction,
202+
# optionally followed by an exponent. An empty string **should** be interpreted
203+
# as `0`. The fraction consists of a decimal point followed by zero or more
204+
# decimal digits. The string must contain at least one digit in either the
205+
# integer or the fraction. The number formed by the sign, the integer and the
206+
# fraction is referred to as the significand. The exponent consists of the
207+
# character `e` (`U+0065`) or `E` (`U+0045`) followed by one or more decimal
208+
# digits. Services **should** normalize decimal values before storing them by: -
209+
# Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). - Replacing a zero-
210+
# length integer value with `0` (`.5` -> `0.5`). - Coercing the exponent
211+
# character to upper-case, with explicit sign (`2.5e8` -> `2.5E+8`). - Removing
212+
# an explicitly-provided zero exponent (`2.5E0` -> `2.5`). Services **may**
213+
# perform additional normalization based on its own needs and the internal
214+
# decimal implementation selected, such as shifting the decimal point and
215+
# exponent value together (example: `2.5E-1` <-> `0.25`). Additionally, services
216+
# **may** preserve trailing zeroes in the fraction to indicate increased
217+
# precision, but are not required to do so. Note that only the `.` character is
218+
# supported to divide the integer and the fraction; `,` **should not** be
219+
# supported regardless of locale. Additionally, thousand separators **should not*
220+
# * be supported. If a service does support them, values **must** be normalized.
221+
# The ENBF grammar is: DecimalString = '' | [Sign] Significand [Exponent]; Sign =
222+
# '+' | '-'; Significand = Digits '.' | [Digits] '.' Digits; Exponent = ('e' | '
223+
# E') [Sign] Digits; Digits = ` '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '
224+
# 8' | '9' `; Services **should** clearly document the range of supported values,
225+
# the maximum supported precision (total number of digits), and, if applicable,
226+
# the scale (number of digits after the decimal point), as well as how it
227+
# behaves when receiving out-of-bounds values. Services **may** choose to accept
228+
# values passed as input even when the value has a higher precision or scale
229+
# than the service supports, and **should** round the value to fit the supported
230+
# scale. Alternatively, the service **may** error with `400 Bad Request` (`
231+
# INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should**
232+
# error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service
233+
# receives a value outside of the supported range.
234+
# Corresponds to the JSON property `value`
235+
# @return [String]
236+
attr_accessor :value
237+
238+
def initialize(**args)
239+
update!(**args)
240+
end
241+
242+
# Update properties of this object
243+
def update!(**args)
244+
@value = args[:value] if args.key?(:value)
245+
end
246+
end
247+
192248
# A generic empty message that you can re-use to avoid defining duplicated empty
193249
# messages in your APIs. A typical example is to use it as the request or the
194250
# response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -289,6 +345,58 @@ def update!(**args)
289345
end
290346
end
291347

348+
# Response definition for the list platform child sites rpc.
349+
class ListPlatformChildSitesResponse
350+
include Google::Apis::Core::Hashable
351+
352+
# Continuation token used to page through platforms. To retrieve the next page
353+
# of the results, set the next request's "page_token" value to this.
354+
# Corresponds to the JSON property `nextPageToken`
355+
# @return [String]
356+
attr_accessor :next_page_token
357+
358+
# The platform child sites returned in this list response.
359+
# Corresponds to the JSON property `platformChildSites`
360+
# @return [Array<Google::Apis::AdsenseplatformV1alpha::PlatformChildSite>]
361+
attr_accessor :platform_child_sites
362+
363+
def initialize(**args)
364+
update!(**args)
365+
end
366+
367+
# Update properties of this object
368+
def update!(**args)
369+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
370+
@platform_child_sites = args[:platform_child_sites] if args.key?(:platform_child_sites)
371+
end
372+
end
373+
374+
# Response definition for the platform groups list rpc.
375+
class ListPlatformGroupsResponse
376+
include Google::Apis::Core::Hashable
377+
378+
# Continuation token used to page through platforms. To retrieve the next page
379+
# of the results, set the next request's "page_token" value to this.
380+
# Corresponds to the JSON property `nextPageToken`
381+
# @return [String]
382+
attr_accessor :next_page_token
383+
384+
# The platform groups returned in this list response.
385+
# Corresponds to the JSON property `platformGroups`
386+
# @return [Array<Google::Apis::AdsenseplatformV1alpha::PlatformGroup>]
387+
attr_accessor :platform_groups
388+
389+
def initialize(**args)
390+
update!(**args)
391+
end
392+
393+
# Update properties of this object
394+
def update!(**args)
395+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
396+
@platform_groups = args[:platform_groups] if args.key?(:platform_groups)
397+
end
398+
end
399+
292400
# Response definition for the platform list rpc.
293401
class ListPlatformsResponse
294402
include Google::Apis::Core::Hashable
@@ -392,6 +500,74 @@ def update!(**args)
392500
end
393501
end
394502

503+
# Representation of a Transparent Platform Child Site.
504+
class PlatformChildSite
505+
include Google::Apis::Core::Hashable
506+
507+
# Output only. Domain URL of the Platform Child Site. Part of the
508+
# PlatformChildSite name.
509+
# Corresponds to the JSON property `domain`
510+
# @return [String]
511+
attr_accessor :domain
512+
513+
# Identifier. Format: accounts/`account`/platforms/`platform`/childAccounts/`
514+
# child`/sites/`platformChildSite`
515+
# Corresponds to the JSON property `name`
516+
# @return [String]
517+
attr_accessor :name
518+
519+
# Resource name of the Platform Group of the Platform Child Site.
520+
# Corresponds to the JSON property `platformGroup`
521+
# @return [String]
522+
attr_accessor :platform_group
523+
524+
def initialize(**args)
525+
update!(**args)
526+
end
527+
528+
# Update properties of this object
529+
def update!(**args)
530+
@domain = args[:domain] if args.key?(:domain)
531+
@name = args[:name] if args.key?(:name)
532+
@platform_group = args[:platform_group] if args.key?(:platform_group)
533+
end
534+
end
535+
536+
# Representation of a Transparent Platform Group.
537+
class PlatformGroup
538+
include Google::Apis::Core::Hashable
539+
540+
# Output only. Description of the PlatformGroup.
541+
# Corresponds to the JSON property `description`
542+
# @return [String]
543+
attr_accessor :description
544+
545+
# Identifier. Format: accounts/`account`/platforms/`platform`/groups/`
546+
# platform_group`
547+
# Corresponds to the JSON property `name`
548+
# @return [String]
549+
attr_accessor :name
550+
551+
# A representation of a decimal value, such as 2.5. Clients may convert values
552+
# into language-native decimal formats, such as Java's [BigDecimal](https://docs.
553+
# oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html) or
554+
# Python's [decimal.Decimal](https://docs.python.org/3/library/decimal.html).
555+
# Corresponds to the JSON property `revshareMillipercent`
556+
# @return [Google::Apis::AdsenseplatformV1alpha::Decimal]
557+
attr_accessor :revshare_millipercent
558+
559+
def initialize(**args)
560+
update!(**args)
561+
end
562+
563+
# Update properties of this object
564+
def update!(**args)
565+
@description = args[:description] if args.key?(:description)
566+
@name = args[:name] if args.key?(:name)
567+
@revshare_millipercent = args[:revshare_millipercent] if args.key?(:revshare_millipercent)
568+
end
569+
end
570+
395571
# Response definition for the site request review rpc.
396572
class RequestSiteReviewResponse
397573
include Google::Apis::Core::Hashable

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.3.0"
19+
GEM_VERSION = "0.4.0"
2020

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

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

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

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
4646
include Google::Apis::Core::JsonObjectSupport
4747
end
4848

49+
class Decimal
50+
class Representation < Google::Apis::Core::JsonRepresentation; end
51+
52+
include Google::Apis::Core::JsonObjectSupport
53+
end
54+
4955
class Empty
5056
class Representation < Google::Apis::Core::JsonRepresentation; end
5157

@@ -70,6 +76,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7076
include Google::Apis::Core::JsonObjectSupport
7177
end
7278

79+
class ListPlatformChildSitesResponse
80+
class Representation < Google::Apis::Core::JsonRepresentation; end
81+
82+
include Google::Apis::Core::JsonObjectSupport
83+
end
84+
85+
class ListPlatformGroupsResponse
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
7391
class ListPlatformsResponse
7492
class Representation < Google::Apis::Core::JsonRepresentation; end
7593

@@ -94,6 +112,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
94112
include Google::Apis::Core::JsonObjectSupport
95113
end
96114

115+
class PlatformChildSite
116+
class Representation < Google::Apis::Core::JsonRepresentation; end
117+
118+
include Google::Apis::Core::JsonObjectSupport
119+
end
120+
121+
class PlatformGroup
122+
class Representation < Google::Apis::Core::JsonRepresentation; end
123+
124+
include Google::Apis::Core::JsonObjectSupport
125+
end
126+
97127
class RequestSiteReviewResponse
98128
class Representation < Google::Apis::Core::JsonRepresentation; end
99129

@@ -154,6 +184,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
154184
end
155185
end
156186

187+
class Decimal
188+
# @private
189+
class Representation < Google::Apis::Core::JsonRepresentation
190+
property :value, as: 'value'
191+
end
192+
end
193+
157194
class Empty
158195
# @private
159196
class Representation < Google::Apis::Core::JsonRepresentation
@@ -188,6 +225,24 @@ class Representation < Google::Apis::Core::JsonRepresentation
188225
end
189226
end
190227

228+
class ListPlatformChildSitesResponse
229+
# @private
230+
class Representation < Google::Apis::Core::JsonRepresentation
231+
property :next_page_token, as: 'nextPageToken'
232+
collection :platform_child_sites, as: 'platformChildSites', class: Google::Apis::AdsenseplatformV1alpha::PlatformChildSite, decorator: Google::Apis::AdsenseplatformV1alpha::PlatformChildSite::Representation
233+
234+
end
235+
end
236+
237+
class ListPlatformGroupsResponse
238+
# @private
239+
class Representation < Google::Apis::Core::JsonRepresentation
240+
property :next_page_token, as: 'nextPageToken'
241+
collection :platform_groups, as: 'platformGroups', class: Google::Apis::AdsenseplatformV1alpha::PlatformGroup, decorator: Google::Apis::AdsenseplatformV1alpha::PlatformGroup::Representation
242+
243+
end
244+
end
245+
191246
class ListPlatformsResponse
192247
# @private
193248
class Representation < Google::Apis::Core::JsonRepresentation
@@ -222,6 +277,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
222277
end
223278
end
224279

280+
class PlatformChildSite
281+
# @private
282+
class Representation < Google::Apis::Core::JsonRepresentation
283+
property :domain, as: 'domain'
284+
property :name, as: 'name'
285+
property :platform_group, as: 'platformGroup'
286+
end
287+
end
288+
289+
class PlatformGroup
290+
# @private
291+
class Representation < Google::Apis::Core::JsonRepresentation
292+
property :description, as: 'description'
293+
property :name, as: 'name'
294+
property :revshare_millipercent, as: 'revshareMillipercent', class: Google::Apis::AdsenseplatformV1alpha::Decimal, decorator: Google::Apis::AdsenseplatformV1alpha::Decimal::Representation
295+
296+
end
297+
end
298+
225299
class RequestSiteReviewResponse
226300
# @private
227301
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)