Skip to content

Commit 8ede2f7

Browse files
feat: Automated regeneration of webfonts v1 client (#24433)
Auto-created at 2025-09-28 10:21:46 +0000 using the toys pull request generator.
1 parent 960246a commit 8ede2f7

File tree

5 files changed

+60
-3
lines changed

5 files changed

+60
-3
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385818,6 +385818,9 @@
385818385818
"/webfonts:v1/Axis/end": end
385819385819
"/webfonts:v1/Axis/start": start
385820385820
"/webfonts:v1/Axis/tag": tag
385821+
"/webfonts:v1/Tag": tag
385822+
"/webfonts:v1/Tag/name": name
385823+
"/webfonts:v1/Tag/weight": weight
385821385824
"/webfonts:v1/Webfont": webfont
385822385825
"/webfonts:v1/Webfont/axes": axes
385823385826
"/webfonts:v1/Webfont/axes/axis": axis
@@ -385832,6 +385835,8 @@
385832385835
"/webfonts:v1/Webfont/menu": menu
385833385836
"/webfonts:v1/Webfont/subsets": subsets
385834385837
"/webfonts:v1/Webfont/subsets/subset": subset
385838+
"/webfonts:v1/Webfont/tags": tags
385839+
"/webfonts:v1/Webfont/tags/tag": tag
385835385840
"/webfonts:v1/Webfont/variants": variants
385836385841
"/webfonts:v1/Webfont/variants/variant": variant
385837385842
"/webfonts:v1/Webfont/version": version

generated/google-apis-webfonts_v1/CHANGELOG.md

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

3+
### v0.20.0 (2025-09-28)
4+
5+
* Regenerated from discovery document revision 20250917
6+
* Regenerated using generator version 0.18.0
7+
38
### v0.19.0 (2025-05-04)
49

510
* Regenerated using generator version 0.17.0

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,31 @@ def update!(**args)
5353
end
5454
end
5555

56+
# Metadata for a tag.
57+
class Tag
58+
include Google::Apis::Core::Hashable
59+
60+
# The name of the tag.
61+
# Corresponds to the JSON property `name`
62+
# @return [String]
63+
attr_accessor :name
64+
65+
# The weight of the tag.
66+
# Corresponds to the JSON property `weight`
67+
# @return [Float]
68+
attr_accessor :weight
69+
70+
def initialize(**args)
71+
update!(**args)
72+
end
73+
74+
# Update properties of this object
75+
def update!(**args)
76+
@name = args[:name] if args.key?(:name)
77+
@weight = args[:weight] if args.key?(:weight)
78+
end
79+
end
80+
5681
# Metadata describing a family of fonts.
5782
class Webfont
5883
include Google::Apis::Core::Hashable
@@ -104,6 +129,11 @@ class Webfont
104129
# @return [Array<String>]
105130
attr_accessor :subsets
106131

132+
# The tags that apply to this family.
133+
# Corresponds to the JSON property `tags`
134+
# @return [Array<Google::Apis::WebfontsV1::Tag>]
135+
attr_accessor :tags
136+
107137
# The available variants for the font.
108138
# Corresponds to the JSON property `variants`
109139
# @return [Array<String>]
@@ -129,6 +159,7 @@ def update!(**args)
129159
@last_modified = args[:last_modified] if args.key?(:last_modified)
130160
@menu = args[:menu] if args.key?(:menu)
131161
@subsets = args[:subsets] if args.key?(:subsets)
162+
@tags = args[:tags] if args.key?(:tags)
132163
@variants = args[:variants] if args.key?(:variants)
133164
@version = args[:version] if args.key?(:version)
134165
end

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module WebfontsV1
1818
# Version of the google-apis-webfonts_v1 gem
19-
GEM_VERSION = "0.19.0"
19+
GEM_VERSION = "0.20.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.17.0"
22+
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
2828
include Google::Apis::Core::JsonObjectSupport
2929
end
3030

31+
class Tag
32+
class Representation < Google::Apis::Core::JsonRepresentation; end
33+
34+
include Google::Apis::Core::JsonObjectSupport
35+
end
36+
3137
class Webfont
3238
class Representation < Google::Apis::Core::JsonRepresentation; end
3339

@@ -49,6 +55,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
4955
end
5056
end
5157

58+
class Tag
59+
# @private
60+
class Representation < Google::Apis::Core::JsonRepresentation
61+
property :name, as: 'name'
62+
property :weight, as: 'weight'
63+
end
64+
end
65+
5266
class Webfont
5367
# @private
5468
class Representation < Google::Apis::Core::JsonRepresentation
@@ -62,6 +76,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
6276
property :last_modified, as: 'lastModified'
6377
property :menu, as: 'menu'
6478
collection :subsets, as: 'subsets'
79+
collection :tags, as: 'tags', class: Google::Apis::WebfontsV1::Tag, decorator: Google::Apis::WebfontsV1::Tag::Representation
80+
6581
collection :variants, as: 'variants'
6682
property :version, as: 'version'
6783
end

0 commit comments

Comments
 (0)