google-apis-webfonts_v1 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 386b07f0589c6b36613461576ce98c1a0c55eef124f729246fa2dc00c48172d3
|
4
|
+
data.tar.gz: 2603b97ec8652fcafc9c714d0dab1da76efa54f642d0a9452be35e2b573bd965
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94619659076c94c6b84ead3b607de9764aa31512448fe8c37991772fdffb9ac6bea6a082d0644290e7b18591c91eb9867061c2e261df088d732fb5e607eab32f
|
7
|
+
data.tar.gz: 6b2f8b48893a5f92e0b7f98c5ac942af10890c272400dea165cb7e6ae3d15161fa7f599e719f2b0c81f5c8a26e83fc417d47492f89027817ced1e4957528b4b7
|
data/CHANGELOG.md
CHANGED
@@ -22,10 +22,46 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module WebfontsV1
|
24
24
|
|
25
|
+
# Metadata for a variable font axis.
|
26
|
+
class Axis
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# maximum value
|
30
|
+
# Corresponds to the JSON property `end`
|
31
|
+
# @return [Float]
|
32
|
+
attr_accessor :end
|
33
|
+
|
34
|
+
# minimum value
|
35
|
+
# Corresponds to the JSON property `start`
|
36
|
+
# @return [Float]
|
37
|
+
attr_accessor :start
|
38
|
+
|
39
|
+
# tag name.
|
40
|
+
# Corresponds to the JSON property `tag`
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :tag
|
43
|
+
|
44
|
+
def initialize(**args)
|
45
|
+
update!(**args)
|
46
|
+
end
|
47
|
+
|
48
|
+
# Update properties of this object
|
49
|
+
def update!(**args)
|
50
|
+
@end = args[:end] if args.key?(:end)
|
51
|
+
@start = args[:start] if args.key?(:start)
|
52
|
+
@tag = args[:tag] if args.key?(:tag)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
25
56
|
# Metadata describing a family of fonts.
|
26
57
|
class Webfont
|
27
58
|
include Google::Apis::Core::Hashable
|
28
59
|
|
60
|
+
# Axis for variable fonts.
|
61
|
+
# Corresponds to the JSON property `axes`
|
62
|
+
# @return [Array<Google::Apis::WebfontsV1::Axis>]
|
63
|
+
attr_accessor :axes
|
64
|
+
|
29
65
|
# The category of the font.
|
30
66
|
# Corresponds to the JSON property `category`
|
31
67
|
# @return [String]
|
@@ -52,6 +88,12 @@ module Google
|
|
52
88
|
# @return [String]
|
53
89
|
attr_accessor :last_modified
|
54
90
|
|
91
|
+
# Font URL for menu subset, a subset of the font that is enough to display the
|
92
|
+
# font name
|
93
|
+
# Corresponds to the JSON property `menu`
|
94
|
+
# @return [String]
|
95
|
+
attr_accessor :menu
|
96
|
+
|
55
97
|
# The scripts supported by the font.
|
56
98
|
# Corresponds to the JSON property `subsets`
|
57
99
|
# @return [Array<String>]
|
@@ -73,11 +115,13 @@ module Google
|
|
73
115
|
|
74
116
|
# Update properties of this object
|
75
117
|
def update!(**args)
|
118
|
+
@axes = args[:axes] if args.key?(:axes)
|
76
119
|
@category = args[:category] if args.key?(:category)
|
77
120
|
@family = args[:family] if args.key?(:family)
|
78
121
|
@files = args[:files] if args.key?(:files)
|
79
122
|
@kind = args[:kind] if args.key?(:kind)
|
80
123
|
@last_modified = args[:last_modified] if args.key?(:last_modified)
|
124
|
+
@menu = args[:menu] if args.key?(:menu)
|
81
125
|
@subsets = args[:subsets] if args.key?(:subsets)
|
82
126
|
@variants = args[:variants] if args.key?(:variants)
|
83
127
|
@version = args[:version] if args.key?(:version)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module WebfontsV1
|
18
18
|
# Version of the google-apis-webfonts_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230419"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module WebfontsV1
|
24
24
|
|
25
|
+
class Axis
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class Webfont
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -34,14 +40,26 @@ module Google
|
|
34
40
|
include Google::Apis::Core::JsonObjectSupport
|
35
41
|
end
|
36
42
|
|
43
|
+
class Axis
|
44
|
+
# @private
|
45
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
46
|
+
property :end, as: 'end'
|
47
|
+
property :start, as: 'start'
|
48
|
+
property :tag, as: 'tag'
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
37
52
|
class Webfont
|
38
53
|
# @private
|
39
54
|
class Representation < Google::Apis::Core::JsonRepresentation
|
55
|
+
collection :axes, as: 'axes', class: Google::Apis::WebfontsV1::Axis, decorator: Google::Apis::WebfontsV1::Axis::Representation
|
56
|
+
|
40
57
|
property :category, as: 'category'
|
41
58
|
property :family, as: 'family'
|
42
59
|
hash :files, as: 'files'
|
43
60
|
property :kind, as: 'kind'
|
44
61
|
property :last_modified, as: 'lastModified'
|
62
|
+
property :menu, as: 'menu'
|
45
63
|
collection :subsets, as: 'subsets'
|
46
64
|
collection :variants, as: 'variants'
|
47
65
|
property :version, as: 'version'
|
@@ -51,8 +51,17 @@ module Google
|
|
51
51
|
end
|
52
52
|
|
53
53
|
# Retrieves the list of fonts currently served by the Google Fonts Developer API.
|
54
|
+
# @param [Array<String>, String] capability
|
55
|
+
# Controls the font urls in `Webfont.files`, by default, static ttf fonts are
|
56
|
+
# sent.
|
57
|
+
# @param [Array<String>, String] family
|
58
|
+
# Filters by Webfont.family, using literal match. If not set, returns all
|
59
|
+
# families
|
54
60
|
# @param [String] sort
|
55
61
|
# Enables sorting of the list.
|
62
|
+
# @param [String] subset
|
63
|
+
# Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set,
|
64
|
+
# returns all families.
|
56
65
|
# @param [String] fields
|
57
66
|
# Selector specifying which fields to include in a partial response.
|
58
67
|
# @param [String] quota_user
|
@@ -70,11 +79,14 @@ module Google
|
|
70
79
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
80
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
81
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
-
def list_webfonts(sort: nil, fields: nil, quota_user: nil, options: nil, &block)
|
82
|
+
def list_webfonts(capability: nil, family: nil, sort: nil, subset: nil, fields: nil, quota_user: nil, options: nil, &block)
|
74
83
|
command = make_simple_command(:get, 'v1/webfonts', options)
|
75
84
|
command.response_representation = Google::Apis::WebfontsV1::WebfontList::Representation
|
76
85
|
command.response_class = Google::Apis::WebfontsV1::WebfontList
|
86
|
+
command.query['capability'] = capability unless capability.nil?
|
87
|
+
command.query['family'] = family unless family.nil?
|
77
88
|
command.query['sort'] = sort unless sort.nil?
|
89
|
+
command.query['subset'] = subset unless subset.nil?
|
78
90
|
command.query['fields'] = fields unless fields.nil?
|
79
91
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
92
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-webfonts_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-webfonts_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-webfonts_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-webfonts_v1/v0.14.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-webfonts_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|