google-apis-webfonts_v1 0.13.0 → 0.15.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: bfa1f1db79dbf496a44795b41f3182d16452ab80416bc2e38e851e90155484c9
|
4
|
+
data.tar.gz: d40763946b1bd963110a574c06ec991da47090cc192b25c60cfde29de7a4c71d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8499a329febaa5873409c1ed14c94b938272dbee9cc36c6349136257bc37f33d9822899d36abca35ef316a74fc94595d78bc1d7cadbe2fb1c41d3d79f4d3634f
|
7
|
+
data.tar.gz: 865ae32ae2cbce43f5c6c308b8dd9eedbb0412ca449e4e28351da98babfb81bf4a00bf2dbfeb1c17aaa643222dc062f85c53cbdbeb3df7567616c9d076e9d057
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-webfonts_v1
|
2
2
|
|
3
|
+
### v0.15.0 (2024-01-23)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.13.0
|
6
|
+
|
7
|
+
### v0.14.0 (2023-04-23)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230419
|
10
|
+
|
3
11
|
### v0.13.0 (2023-02-15)
|
4
12
|
|
5
13
|
* Regenerated using generator version 0.12.0
|
@@ -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.15.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.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'
|
@@ -33,6 +33,8 @@ module Google
|
|
33
33
|
#
|
34
34
|
# @see https://developers.google.com/fonts/docs/developer_api
|
35
35
|
class WebfontsService < Google::Apis::Core::BaseService
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://webfonts.$UNIVERSE_DOMAIN$/"
|
37
|
+
|
36
38
|
# @return [String]
|
37
39
|
# API key. Your API key identifies your project and provides you with API access,
|
38
40
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -44,15 +46,24 @@ module Google
|
|
44
46
|
attr_accessor :quota_user
|
45
47
|
|
46
48
|
def initialize
|
47
|
-
super(
|
49
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
48
50
|
client_name: 'google-apis-webfonts_v1',
|
49
51
|
client_version: Google::Apis::WebfontsV1::GEM_VERSION)
|
50
52
|
@batch_path = 'batch'
|
51
53
|
end
|
52
54
|
|
53
55
|
# Retrieves the list of fonts currently served by the Google Fonts Developer API.
|
56
|
+
# @param [Array<String>, String] capability
|
57
|
+
# Controls the font urls in `Webfont.files`, by default, static ttf fonts are
|
58
|
+
# sent.
|
59
|
+
# @param [Array<String>, String] family
|
60
|
+
# Filters by Webfont.family, using literal match. If not set, returns all
|
61
|
+
# families
|
54
62
|
# @param [String] sort
|
55
63
|
# Enables sorting of the list.
|
64
|
+
# @param [String] subset
|
65
|
+
# Filters by Webfont.subset, if subset is found in Webfont.subsets. If not set,
|
66
|
+
# returns all families.
|
56
67
|
# @param [String] fields
|
57
68
|
# Selector specifying which fields to include in a partial response.
|
58
69
|
# @param [String] quota_user
|
@@ -70,11 +81,14 @@ module Google
|
|
70
81
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
82
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
83
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
-
def list_webfonts(sort: nil, fields: nil, quota_user: nil, options: nil, &block)
|
84
|
+
def list_webfonts(capability: nil, family: nil, sort: nil, subset: nil, fields: nil, quota_user: nil, options: nil, &block)
|
74
85
|
command = make_simple_command(:get, 'v1/webfonts', options)
|
75
86
|
command.response_representation = Google::Apis::WebfontsV1::WebfontList::Representation
|
76
87
|
command.response_class = Google::Apis::WebfontsV1::WebfontList
|
88
|
+
command.query['capability'] = capability unless capability.nil?
|
89
|
+
command.query['family'] = family unless family.nil?
|
77
90
|
command.query['sort'] = sort unless sort.nil?
|
91
|
+
command.query['subset'] = subset unless subset.nil?
|
78
92
|
command.query['fields'] = fields unless fields.nil?
|
79
93
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
94
|
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.15.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:
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.12.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.12.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.15.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Web Fonts Developer API V1
|