Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384718,6 +384718,9 @@
"/webfonts:v1/Axis/end": end
"/webfonts:v1/Axis/start": start
"/webfonts:v1/Axis/tag": tag
"/webfonts:v1/Tag": tag
"/webfonts:v1/Tag/name": name
"/webfonts:v1/Tag/weight": weight
"/webfonts:v1/Webfont": webfont
"/webfonts:v1/Webfont/axes": axes
"/webfonts:v1/Webfont/axes/axis": axis
Expand All @@ -384732,6 +384735,8 @@
"/webfonts:v1/Webfont/menu": menu
"/webfonts:v1/Webfont/subsets": subsets
"/webfonts:v1/Webfont/subsets/subset": subset
"/webfonts:v1/Webfont/tags": tags
"/webfonts:v1/Webfont/tags/tag": tag
"/webfonts:v1/Webfont/variants": variants
"/webfonts:v1/Webfont/variants/variant": variant
"/webfonts:v1/Webfont/version": version
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-webfonts_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-webfonts_v1

### v0.20.0 (2025-09-28)

* Regenerated from discovery document revision 20250917
* Regenerated using generator version 0.18.0

### v0.19.0 (2025-05-04)

* Regenerated using generator version 0.17.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,31 @@ def update!(**args)
end
end

# Metadata for a tag.
class Tag
include Google::Apis::Core::Hashable

# The name of the tag.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

# The weight of the tag.
# Corresponds to the JSON property `weight`
# @return [Float]
attr_accessor :weight

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@weight = args[:weight] if args.key?(:weight)
end
end

# Metadata describing a family of fonts.
class Webfont
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -104,6 +129,11 @@ class Webfont
# @return [Array<String>]
attr_accessor :subsets

# The tags that apply to this family.
# Corresponds to the JSON property `tags`
# @return [Array<Google::Apis::WebfontsV1::Tag>]
attr_accessor :tags

# The available variants for the font.
# Corresponds to the JSON property `variants`
# @return [Array<String>]
Expand All @@ -129,6 +159,7 @@ def update!(**args)
@last_modified = args[:last_modified] if args.key?(:last_modified)
@menu = args[:menu] if args.key?(:menu)
@subsets = args[:subsets] if args.key?(:subsets)
@tags = args[:tags] if args.key?(:tags)
@variants = args[:variants] if args.key?(:variants)
@version = args[:version] if args.key?(:version)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module WebfontsV1
# Version of the google-apis-webfonts_v1 gem
GEM_VERSION = "0.19.0"
GEM_VERSION = "0.20.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.17.0"
GENERATOR_VERSION = "0.18.0"

# Revision of the discovery document this client was generated from
REVISION = "20250121"
REVISION = "20250917"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class Tag
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class Webfont
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand All @@ -49,6 +55,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class Tag
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :weight, as: 'weight'
end
end

class Webfont
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand All @@ -62,6 +76,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :last_modified, as: 'lastModified'
property :menu, as: 'menu'
collection :subsets, as: 'subsets'
collection :tags, as: 'tags', class: Google::Apis::WebfontsV1::Tag, decorator: Google::Apis::WebfontsV1::Tag::Representation

collection :variants, as: 'variants'
property :version, as: 'version'
end
Expand Down
Loading