google-apis-slides_v1 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2113656c93232c57ea8914480f4df446c01eb3e15a8518c0e9b7803d2d5fefaa
|
4
|
+
data.tar.gz: f76934c2536b1d50a967f7a47a8b67172a60c58262276fbb439560f77a8538ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 794a0f6b428c70d3da379491c2b487e95a668c820e6cec98462b04b6e0aaa3a5c3ff382bde7051449cc3eaf8a6231e297fcc385a4fc838b52ad678d11e0a437c
|
7
|
+
data.tar.gz: c2f82263872f3176c6f18760820f67b3e6d96afed9818c3e4573b9f5781870a7117befeb005a395fc3b44df2b4ed566466a888d9d73f6e8dcf56094c7484874f
|
data/CHANGELOG.md
CHANGED
@@ -123,6 +123,48 @@ module Google
|
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
|
+
# The autofit properties of a Shape.
|
127
|
+
class Autofit
|
128
|
+
include Google::Apis::Core::Hashable
|
129
|
+
|
130
|
+
# The autofit type of the shape. If unspecified, the autofit type is inherited
|
131
|
+
# from a parent placeholder if it exists. The field will be automatically set to
|
132
|
+
# NONE if a request is made that may affect text fitting within its bounding
|
133
|
+
# text box. In this case the font_scale will be applied to the font_size and the
|
134
|
+
# line_spacing_reduction will be applied to the line_spacing. Both properties
|
135
|
+
# would also be reset to default values.
|
136
|
+
# Corresponds to the JSON property `autofitType`
|
137
|
+
# @return [String]
|
138
|
+
attr_accessor :autofit_type
|
139
|
+
|
140
|
+
# The font scale applied to the shape. For shapes with autofit_type NONE or
|
141
|
+
# SHAPE_AUTOFIT, this value will be the default value of 1. For TEXT_AUTOFIT,
|
142
|
+
# this value multiplied by the font_size will give the font size that is
|
143
|
+
# rendered in the editor. This property is read-only.
|
144
|
+
# Corresponds to the JSON property `fontScale`
|
145
|
+
# @return [Float]
|
146
|
+
attr_accessor :font_scale
|
147
|
+
|
148
|
+
# The line spacing reduction applied to the shape. For shapes with autofit_type
|
149
|
+
# NONE or SHAPE_AUTOFIT, this value will be the default value of 0. For
|
150
|
+
# TEXT_AUTOFIT, this value subtracted from the line_spacing will give the line
|
151
|
+
# spacing that is rendered in the editor. This property is read-only.
|
152
|
+
# Corresponds to the JSON property `lineSpacingReduction`
|
153
|
+
# @return [Float]
|
154
|
+
attr_accessor :line_spacing_reduction
|
155
|
+
|
156
|
+
def initialize(**args)
|
157
|
+
update!(**args)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Update properties of this object
|
161
|
+
def update!(**args)
|
162
|
+
@autofit_type = args[:autofit_type] if args.key?(:autofit_type)
|
163
|
+
@font_scale = args[:font_scale] if args.key?(:font_scale)
|
164
|
+
@line_spacing_reduction = args[:line_spacing_reduction] if args.key?(:line_spacing_reduction)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
126
168
|
# Request message for PresentationsService.BatchUpdatePresentation.
|
127
169
|
class BatchUpdatePresentationRequest
|
128
170
|
include Google::Apis::Core::Hashable
|
@@ -3346,6 +3388,11 @@ module Google
|
|
3346
3388
|
class ShapeProperties
|
3347
3389
|
include Google::Apis::Core::Hashable
|
3348
3390
|
|
3391
|
+
# The autofit properties of a Shape.
|
3392
|
+
# Corresponds to the JSON property `autofit`
|
3393
|
+
# @return [Google::Apis::SlidesV1::Autofit]
|
3394
|
+
attr_accessor :autofit
|
3395
|
+
|
3349
3396
|
# The alignment of the content in the shape. If unspecified, the alignment is
|
3350
3397
|
# inherited from a parent placeholder if it exists. If the shape has no parent,
|
3351
3398
|
# the default alignment matches the alignment for new shapes created in the
|
@@ -3386,6 +3433,7 @@ module Google
|
|
3386
3433
|
|
3387
3434
|
# Update properties of this object
|
3388
3435
|
def update!(**args)
|
3436
|
+
@autofit = args[:autofit] if args.key?(:autofit)
|
3389
3437
|
@content_alignment = args[:content_alignment] if args.key?(:content_alignment)
|
3390
3438
|
@link = args[:link] if args.key?(:link)
|
3391
3439
|
@outline = args[:outline] if args.key?(:outline)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SlidesV1
|
18
18
|
# Version of the google-apis-slides_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210128"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class Autofit
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class BatchUpdatePresentationRequest
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -837,6 +843,15 @@ module Google
|
|
837
843
|
end
|
838
844
|
end
|
839
845
|
|
846
|
+
class Autofit
|
847
|
+
# @private
|
848
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
849
|
+
property :autofit_type, as: 'autofitType'
|
850
|
+
property :font_scale, as: 'fontScale'
|
851
|
+
property :line_spacing_reduction, as: 'lineSpacingReduction'
|
852
|
+
end
|
853
|
+
end
|
854
|
+
|
840
855
|
class BatchUpdatePresentationRequest
|
841
856
|
# @private
|
842
857
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1760,6 +1775,8 @@ module Google
|
|
1760
1775
|
class ShapeProperties
|
1761
1776
|
# @private
|
1762
1777
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1778
|
+
property :autofit, as: 'autofit', class: Google::Apis::SlidesV1::Autofit, decorator: Google::Apis::SlidesV1::Autofit::Representation
|
1779
|
+
|
1763
1780
|
property :content_alignment, as: 'contentAlignment'
|
1764
1781
|
property :link, as: 'link', class: Google::Apis::SlidesV1::Link, decorator: Google::Apis::SlidesV1::Link::Representation
|
1765
1782
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-slides_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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: 2021-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-slides_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-slides_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-slides_v1/v0.2.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-slides_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Google Slides API V1
|