aspose_slides_cloud 20.4.0 → 20.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +61 -61
- data/TestData/ChartTest.pptx +0 -0
- data/TestData/Sections.pptx +0 -0
- data/TestData/TemplatingCVDataWithBase64.xml +22 -22
- data/lib/aspose_slides_cloud.rb +212 -205
- data/lib/aspose_slides_cloud/api/slides_api.rb +10979 -7974
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +4146 -3099
- data/lib/aspose_slides_cloud/api_client.rb +432 -429
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +244 -261
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +259 -276
- data/lib/aspose_slides_cloud/models/add_shape.rb +239 -256
- data/lib/aspose_slides_cloud/models/add_slide.rb +269 -286
- data/lib/aspose_slides_cloud/models/api_info.rb +217 -205
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +285 -273
- data/lib/aspose_slides_cloud/models/audio_frame.rb +359 -573
- data/lib/aspose_slides_cloud/models/axes.rb +237 -225
- data/lib/aspose_slides_cloud/models/axis.rb +699 -687
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +230 -256
- data/lib/aspose_slides_cloud/models/blur_effect.rb +227 -215
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +299 -0
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +212 -230
- data/lib/aspose_slides_cloud/models/bubble_series.rb +248 -428
- data/lib/aspose_slides_cloud/models/chart.rb +365 -553
- data/lib/aspose_slides_cloud/models/chart_category.rb +271 -0
- data/lib/aspose_slides_cloud/models/chart_title.rb +222 -210
- data/lib/aspose_slides_cloud/models/chart_wall.rb +281 -269
- data/lib/aspose_slides_cloud/models/color_scheme.rb +317 -327
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
- data/lib/aspose_slides_cloud/models/connector.rb +275 -487
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +209 -197
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +197 -195
- data/lib/aspose_slides_cloud/models/disc_usage.rb +227 -215
- data/lib/aspose_slides_cloud/models/document.rb +257 -267
- data/lib/aspose_slides_cloud/models/document_properties.rb +209 -219
- data/lib/aspose_slides_cloud/models/document_property.rb +232 -242
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +218 -282
- data/lib/aspose_slides_cloud/models/effect.rb +424 -412
- data/lib/aspose_slides_cloud/models/effect_format.rb +277 -265
- data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
- data/lib/aspose_slides_cloud/models/error.rb +237 -225
- data/lib/aspose_slides_cloud/models/error_details.rb +222 -210
- data/lib/aspose_slides_cloud/models/export_format.rb +60 -59
- data/lib/aspose_slides_cloud/models/export_options.rb +216 -194
- data/lib/aspose_slides_cloud/models/file_version.rb +225 -270
- data/lib/aspose_slides_cloud/models/file_versions.rb +209 -197
- data/lib/aspose_slides_cloud/models/files_list.rb +209 -197
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +221 -209
- data/lib/aspose_slides_cloud/models/fill_format.rb +240 -228
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +246 -234
- data/lib/aspose_slides_cloud/models/font_scheme.rb +227 -237
- data/lib/aspose_slides_cloud/models/font_set.rb +227 -215
- data/lib/aspose_slides_cloud/models/format_scheme.rb +245 -255
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +260 -439
- data/lib/aspose_slides_cloud/models/glow_effect.rb +222 -210
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +342 -359
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +222 -210
- data/lib/aspose_slides_cloud/models/graphical_object.rb +234 -422
- data/lib/aspose_slides_cloud/models/group_shape.rb +234 -422
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +421 -420
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +197 -195
- data/lib/aspose_slides_cloud/models/image.rb +237 -247
- data/lib/aspose_slides_cloud/models/image_export_format.rb +43 -43
- data/lib/aspose_slides_cloud/models/image_export_options.rb +299 -298
- data/lib/aspose_slides_cloud/models/images.rb +209 -219
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +252 -240
- data/lib/aspose_slides_cloud/models/input.rb +227 -215
- data/lib/aspose_slides_cloud/models/input_file.rb +250 -238
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +224 -212
- data/lib/aspose_slides_cloud/models/layout_slide.rb +278 -288
- data/lib/aspose_slides_cloud/models/layout_slides.rb +209 -219
- data/lib/aspose_slides_cloud/models/legend.rb +321 -309
- data/lib/aspose_slides_cloud/models/line_format.rb +389 -377
- data/lib/aspose_slides_cloud/models/master_slide.rb +231 -241
- data/lib/aspose_slides_cloud/models/master_slides.rb +209 -219
- data/lib/aspose_slides_cloud/models/merge.rb +231 -248
- data/lib/aspose_slides_cloud/models/merging_source.rb +219 -207
- data/lib/aspose_slides_cloud/models/no_fill.rb +219 -236
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +217 -0
- data/lib/aspose_slides_cloud/models/notes_slide.rb +217 -227
- data/lib/aspose_slides_cloud/models/notes_slide_export_format.rb +43 -43
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/object_exist.rb +227 -215
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +259 -447
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +210 -200
- data/lib/aspose_slides_cloud/models/one_value_series.rb +248 -428
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +209 -197
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +252 -240
- data/lib/aspose_slides_cloud/models/output_file.rb +240 -228
- data/lib/aspose_slides_cloud/models/paragraph.rb +517 -527
- data/lib/aspose_slides_cloud/models/paragraphs.rb +209 -219
- data/lib/aspose_slides_cloud/models/path_input_file.rb +240 -266
- data/lib/aspose_slides_cloud/models/path_output_file.rb +239 -256
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +266 -283
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +547 -519
- data/lib/aspose_slides_cloud/models/picture_fill.rb +351 -368
- data/lib/aspose_slides_cloud/models/picture_frame.rb +245 -459
- data/lib/aspose_slides_cloud/models/pipeline.rb +219 -207
- data/lib/aspose_slides_cloud/models/placeholder.rb +325 -335
- data/lib/aspose_slides_cloud/models/placeholders.rb +209 -219
- data/lib/aspose_slides_cloud/models/plot_area.rb +311 -299
- data/lib/aspose_slides_cloud/models/portion.rb +589 -599
- data/lib/aspose_slides_cloud/models/portions.rb +209 -219
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +247 -246
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +229 -217
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +221 -209
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +286 -274
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +441 -429
- data/lib/aspose_slides_cloud/models/remove_shape.rb +229 -246
- data/lib/aspose_slides_cloud/models/remove_slide.rb +234 -251
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +249 -266
- data/lib/aspose_slides_cloud/models/replace_text.rb +269 -286
- data/lib/aspose_slides_cloud/models/request_input_file.rb +235 -261
- data/lib/aspose_slides_cloud/models/reset_slide.rb +234 -251
- data/lib/aspose_slides_cloud/models/resource_base.rb +219 -207
- data/lib/aspose_slides_cloud/models/resource_uri.rb +237 -225
- data/lib/aspose_slides_cloud/models/response_output_file.rb +219 -236
- data/lib/aspose_slides_cloud/models/save.rb +266 -283
- data/lib/aspose_slides_cloud/models/save_shape.rb +276 -293
- data/lib/aspose_slides_cloud/models/save_slide.rb +301 -318
- data/lib/aspose_slides_cloud/models/scale_type.rb +41 -41
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +225 -215
- data/lib/aspose_slides_cloud/models/scatter_series.rb +248 -428
- data/lib/aspose_slides_cloud/models/section.rb +234 -0
- data/lib/aspose_slides_cloud/models/sections.rb +209 -0
- data/lib/aspose_slides_cloud/models/series.rb +422 -389
- data/lib/aspose_slides_cloud/models/series_marker.rb +281 -269
- data/lib/aspose_slides_cloud/models/shape.rb +255 -467
- data/lib/aspose_slides_cloud/models/shape_base.rb +375 -406
- data/lib/aspose_slides_cloud/models/shape_export_format.rb +44 -44
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +286 -274
- data/lib/aspose_slides_cloud/models/shape_thumbnail_bounds.rb +41 -41
- data/lib/aspose_slides_cloud/models/shapes.rb +209 -219
- data/lib/aspose_slides_cloud/models/size_type.rb +55 -55
- data/lib/aspose_slides_cloud/models/slide.rb +322 -332
- data/lib/aspose_slides_cloud/models/slide_animation.rb +221 -231
- data/lib/aspose_slides_cloud/models/slide_background.rb +266 -276
- data/lib/aspose_slides_cloud/models/slide_comment.rb +239 -227
- data/lib/aspose_slides_cloud/models/slide_comments.rb +209 -219
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +59 -58
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +223 -347
- data/lib/aspose_slides_cloud/models/slides.rb +209 -219
- data/lib/aspose_slides_cloud/models/smart_art.rb +342 -530
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +293 -281
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +235 -422
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +212 -200
- data/lib/aspose_slides_cloud/models/solid_fill.rb +229 -246
- data/lib/aspose_slides_cloud/models/split_document_result.rb +209 -219
- data/lib/aspose_slides_cloud/models/storage_exist.rb +212 -200
- data/lib/aspose_slides_cloud/models/storage_file.rb +257 -245
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +379 -378
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +529 -528
- data/lib/aspose_slides_cloud/models/table.rb +350 -538
- data/lib/aspose_slides_cloud/models/table_cell.rb +403 -391
- data/lib/aspose_slides_cloud/models/table_column.rb +212 -200
- data/lib/aspose_slides_cloud/models/table_row.rb +239 -227
- data/lib/aspose_slides_cloud/models/task.rb +240 -228
- data/lib/aspose_slides_cloud/models/text_item.rb +217 -205
- data/lib/aspose_slides_cloud/models/text_items.rb +209 -219
- data/lib/aspose_slides_cloud/models/theme.rb +237 -247
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +423 -422
- data/lib/aspose_slides_cloud/models/update_background.rb +241 -258
- data/lib/aspose_slides_cloud/models/update_shape.rb +239 -256
- data/lib/aspose_slides_cloud/models/video_frame.rb +329 -543
- data/lib/aspose_slides_cloud/models/view_properties.rb +357 -0
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +247 -0
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +243 -242
- data/lib/aspose_slides_cloud/type_registry.rb +320 -0
- data/lib/aspose_slides_cloud/version.rb +25 -25
- data/spec/api/slides_api_spec.rb +35926 -24406
- data/spec/extra/extra_spec.rb +235 -101
- data/spec/spec_utils.rb +183 -176
- data/testConfig.json +7 -7
- data/testRules.json +472 -340
- metadata +18 -3
@@ -1,219 +1,209 @@
|
|
1
|
-
=begin
|
2
|
-
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
-
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
6
|
-
in the Software without restriction, including without limitation the rights
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
9
|
-
furnished to do so, subject to the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be included in all
|
12
|
-
copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
-
SOFTWARE.
|
21
|
-
=end
|
22
|
-
|
23
|
-
require 'date'
|
24
|
-
|
25
|
-
module AsposeSlidesCloud
|
26
|
-
# List of images.
|
27
|
-
class Images
|
28
|
-
#
|
29
|
-
attr_accessor :
|
30
|
-
|
31
|
-
#
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
:'
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
#
|
47
|
-
def
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
if
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
# @
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
end
|
86
|
-
|
87
|
-
#
|
88
|
-
# @return
|
89
|
-
def
|
90
|
-
|
91
|
-
end
|
92
|
-
|
93
|
-
#
|
94
|
-
# @param [
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
when :
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
when :
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
211
|
-
end
|
212
|
-
elsif value.respond_to? :to_hash
|
213
|
-
value.to_hash
|
214
|
-
else
|
215
|
-
value
|
216
|
-
end
|
217
|
-
end
|
218
|
-
end
|
219
|
-
end
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
# List of images.
|
27
|
+
class Images < ResourceBase
|
28
|
+
# Image list.
|
29
|
+
attr_accessor :list
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
super.merge({
|
34
|
+
:'list' => :'List',
|
35
|
+
})
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.swagger_types
|
40
|
+
super.merge({
|
41
|
+
:'list' => :'Array<Image>',
|
42
|
+
})
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
super
|
49
|
+
|
50
|
+
if attributes.has_key?(:'List')
|
51
|
+
if (value = attributes[:'List']).is_a?(Array)
|
52
|
+
self.list = value
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
58
|
+
# @return Array for valid properties with the reasons
|
59
|
+
def list_invalid_properties
|
60
|
+
invalid_properties = super
|
61
|
+
invalid_properties
|
62
|
+
end
|
63
|
+
|
64
|
+
# Check to see if the all the properties in the model are valid
|
65
|
+
# @return true if the model is valid
|
66
|
+
def valid?
|
67
|
+
return false if !super
|
68
|
+
true
|
69
|
+
end
|
70
|
+
|
71
|
+
# Checks equality by comparing each attribute.
|
72
|
+
# @param [Object] Object to be compared
|
73
|
+
def ==(o)
|
74
|
+
return true if self.equal?(o)
|
75
|
+
self.class == o.class &&
|
76
|
+
self_uri == o.self_uri &&
|
77
|
+
alternate_links == o.alternate_links &&
|
78
|
+
list == o.list
|
79
|
+
end
|
80
|
+
|
81
|
+
# @see the `==` method
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def eql?(o)
|
84
|
+
self == o
|
85
|
+
end
|
86
|
+
|
87
|
+
# Calculates hash code according to all attributes.
|
88
|
+
# @return [Fixnum] Hash code
|
89
|
+
def hash
|
90
|
+
[self_uri, alternate_links, list].hash
|
91
|
+
end
|
92
|
+
|
93
|
+
# Builds the object from hash
|
94
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
95
|
+
# @return [Object] Returns the model itself
|
96
|
+
def build_from_hash(attributes)
|
97
|
+
return nil unless attributes.is_a?(Hash)
|
98
|
+
self.class.swagger_types.each_pair do |key, type|
|
99
|
+
mapKey = self.class.attribute_map[key]
|
100
|
+
if !mapKey.nil?
|
101
|
+
val = attributes[mapKey]
|
102
|
+
if val.nil?
|
103
|
+
mapKeyString = mapKey.to_s
|
104
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
105
|
+
mapKey = mapKeyString.to_sym
|
106
|
+
val = attributes[mapKey]
|
107
|
+
end
|
108
|
+
if !val.nil?
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
111
|
+
# is documented as an array but the input is not
|
112
|
+
if val.is_a?(Array)
|
113
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
114
|
+
end
|
115
|
+
else
|
116
|
+
self.send("#{key}=", _deserialize(type, val))
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
self
|
123
|
+
end
|
124
|
+
|
125
|
+
# Deserializes the data based on type
|
126
|
+
# @param string type Data type
|
127
|
+
# @param string value Value to be deserialized
|
128
|
+
# @return [Object] Deserialized data
|
129
|
+
def _deserialize(type, value)
|
130
|
+
case type.to_sym
|
131
|
+
when :DateTime
|
132
|
+
DateTime.parse(value)
|
133
|
+
when :Date
|
134
|
+
Date.parse(value)
|
135
|
+
when :String
|
136
|
+
value.to_s
|
137
|
+
when :Integer
|
138
|
+
value.to_i
|
139
|
+
when :Float
|
140
|
+
value.to_f
|
141
|
+
when :BOOLEAN
|
142
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
143
|
+
true
|
144
|
+
else
|
145
|
+
false
|
146
|
+
end
|
147
|
+
when :Object
|
148
|
+
# generic object (usually a Hash), return directly
|
149
|
+
value
|
150
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
151
|
+
inner_type = Regexp.last_match[:inner_type]
|
152
|
+
value.map { |v| _deserialize(inner_type, v) }
|
153
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
154
|
+
k_type = Regexp.last_match[:k_type]
|
155
|
+
v_type = Regexp.last_match[:v_type]
|
156
|
+
{}.tap do |hash|
|
157
|
+
value.each do |k, v|
|
158
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
else # model
|
162
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
163
|
+
temp_model.build_from_hash(value)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# Returns the string representation of the object
|
168
|
+
# @return [String] String presentation of the object
|
169
|
+
def to_s
|
170
|
+
to_hash.to_s
|
171
|
+
end
|
172
|
+
|
173
|
+
# to_body is an alias to to_hash (backward compatibility)
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
175
|
+
def to_body
|
176
|
+
to_hash
|
177
|
+
end
|
178
|
+
|
179
|
+
# Returns the object in the form of hash
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
181
|
+
def to_hash
|
182
|
+
hash = {}
|
183
|
+
self.class.attribute_map.each_pair do |attr, param|
|
184
|
+
value = self.send(attr)
|
185
|
+
next if value.nil?
|
186
|
+
hash[param] = _to_hash(value)
|
187
|
+
end
|
188
|
+
hash
|
189
|
+
end
|
190
|
+
|
191
|
+
# Outputs non-array value in the form of hash
|
192
|
+
# For object, use to_hash. Otherwise, just return the value
|
193
|
+
# @param [Object] value Any valid value
|
194
|
+
# @return [Hash] Returns the value in the form of hash
|
195
|
+
def _to_hash(value)
|
196
|
+
if value.is_a?(Array)
|
197
|
+
value.compact.map { |v| _to_hash(v) }
|
198
|
+
elsif value.is_a?(Hash)
|
199
|
+
{}.tap do |hash|
|
200
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
201
|
+
end
|
202
|
+
elsif value.respond_to? :to_hash
|
203
|
+
value.to_hash
|
204
|
+
else
|
205
|
+
value
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
@@ -1,240 +1,252 @@
|
|
1
|
-
=begin
|
2
|
-
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
-
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
6
|
-
in the Software without restriction, including without limitation the rights
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
9
|
-
furnished to do so, subject to the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be included in all
|
12
|
-
copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
-
SOFTWARE.
|
21
|
-
=end
|
22
|
-
|
23
|
-
require 'date'
|
24
|
-
|
25
|
-
module AsposeSlidesCloud
|
26
|
-
# Represents inner shadow effect
|
27
|
-
class InnerShadowEffect
|
28
|
-
# direction
|
29
|
-
attr_accessor :direction
|
30
|
-
|
31
|
-
# distance
|
32
|
-
attr_accessor :distance
|
33
|
-
|
34
|
-
# blur radius
|
35
|
-
attr_accessor :blur_radius
|
36
|
-
|
37
|
-
# shadow color
|
38
|
-
attr_accessor :shadow_color
|
39
|
-
|
40
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
-
def self.attribute_map
|
42
|
-
{
|
43
|
-
:'direction' => :'Direction',
|
44
|
-
:'distance' => :'Distance',
|
45
|
-
:'blur_radius' => :'BlurRadius',
|
46
|
-
:'shadow_color' => :'ShadowColor'
|
47
|
-
}
|
48
|
-
end
|
49
|
-
|
50
|
-
# Attribute type mapping.
|
51
|
-
def self.swagger_types
|
52
|
-
{
|
53
|
-
:'direction' => :'Float',
|
54
|
-
:'distance' => :'Float',
|
55
|
-
:'blur_radius' => :'Float',
|
56
|
-
:'shadow_color' => :'String'
|
57
|
-
}
|
58
|
-
end
|
59
|
-
|
60
|
-
# Initializes the object
|
61
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
-
def initialize(attributes = {})
|
63
|
-
return unless attributes.is_a?(Hash)
|
64
|
-
|
65
|
-
# convert string to symbol for hash key
|
66
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
|
-
|
68
|
-
if attributes.has_key?(:'Direction')
|
69
|
-
self.direction = attributes[:'Direction']
|
70
|
-
end
|
71
|
-
|
72
|
-
if attributes.has_key?(:'Distance')
|
73
|
-
self.distance = attributes[:'Distance']
|
74
|
-
end
|
75
|
-
|
76
|
-
if attributes.has_key?(:'BlurRadius')
|
77
|
-
self.blur_radius = attributes[:'BlurRadius']
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.has_key?(:'ShadowColor')
|
81
|
-
self.shadow_color = attributes[:'ShadowColor']
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
86
|
-
# @return Array for valid properties with the reasons
|
87
|
-
def list_invalid_properties
|
88
|
-
invalid_properties = Array.new
|
89
|
-
if @direction.nil?
|
90
|
-
invalid_properties.push('invalid value for "direction", direction cannot be nil.')
|
91
|
-
end
|
92
|
-
|
93
|
-
if @distance.nil?
|
94
|
-
invalid_properties.push('invalid value for "distance", distance cannot be nil.')
|
95
|
-
end
|
96
|
-
|
97
|
-
if @blur_radius.nil?
|
98
|
-
invalid_properties.push('invalid value for "blur_radius", blur_radius cannot be nil.')
|
99
|
-
end
|
100
|
-
|
101
|
-
invalid_properties
|
102
|
-
end
|
103
|
-
|
104
|
-
# Check to see if the all the properties in the model are valid
|
105
|
-
# @return true if the model is valid
|
106
|
-
def valid?
|
107
|
-
return false if @direction.nil?
|
108
|
-
return false if @distance.nil?
|
109
|
-
return false if @blur_radius.nil?
|
110
|
-
true
|
111
|
-
end
|
112
|
-
|
113
|
-
# Checks equality by comparing each attribute.
|
114
|
-
# @param [Object] Object to be compared
|
115
|
-
def ==(o)
|
116
|
-
return true if self.equal?(o)
|
117
|
-
self.class == o.class &&
|
118
|
-
direction == o.direction &&
|
119
|
-
distance == o.distance &&
|
120
|
-
blur_radius == o.blur_radius &&
|
121
|
-
shadow_color == o.shadow_color
|
122
|
-
end
|
123
|
-
|
124
|
-
# @see the `==` method
|
125
|
-
# @param [Object] Object to be compared
|
126
|
-
def eql?(o)
|
127
|
-
self == o
|
128
|
-
end
|
129
|
-
|
130
|
-
# Calculates hash code according to all attributes.
|
131
|
-
# @return [Fixnum] Hash code
|
132
|
-
def hash
|
133
|
-
[direction, distance, blur_radius, shadow_color].hash
|
134
|
-
end
|
135
|
-
|
136
|
-
# Builds the object from hash
|
137
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
-
# @return [Object] Returns the model itself
|
139
|
-
def build_from_hash(attributes)
|
140
|
-
return nil unless attributes.is_a?(Hash)
|
141
|
-
self.class.swagger_types.each_pair do |key, type|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
if
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
when :
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
value.
|
184
|
-
when
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
end
|
209
|
-
|
210
|
-
# Returns the
|
211
|
-
# @return [
|
212
|
-
def
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
end
|
221
|
-
|
222
|
-
#
|
223
|
-
#
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
value.
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
# Represents inner shadow effect
|
27
|
+
class InnerShadowEffect
|
28
|
+
# direction
|
29
|
+
attr_accessor :direction
|
30
|
+
|
31
|
+
# distance
|
32
|
+
attr_accessor :distance
|
33
|
+
|
34
|
+
# blur radius
|
35
|
+
attr_accessor :blur_radius
|
36
|
+
|
37
|
+
# shadow color
|
38
|
+
attr_accessor :shadow_color
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'direction' => :'Direction',
|
44
|
+
:'distance' => :'Distance',
|
45
|
+
:'blur_radius' => :'BlurRadius',
|
46
|
+
:'shadow_color' => :'ShadowColor',
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.swagger_types
|
52
|
+
{
|
53
|
+
:'direction' => :'Float',
|
54
|
+
:'distance' => :'Float',
|
55
|
+
:'blur_radius' => :'Float',
|
56
|
+
:'shadow_color' => :'String',
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
def initialize(attributes = {})
|
63
|
+
return unless attributes.is_a?(Hash)
|
64
|
+
|
65
|
+
# convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
|
+
|
68
|
+
if attributes.has_key?(:'Direction')
|
69
|
+
self.direction = attributes[:'Direction']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'Distance')
|
73
|
+
self.distance = attributes[:'Distance']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'BlurRadius')
|
77
|
+
self.blur_radius = attributes[:'BlurRadius']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'ShadowColor')
|
81
|
+
self.shadow_color = attributes[:'ShadowColor']
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
86
|
+
# @return Array for valid properties with the reasons
|
87
|
+
def list_invalid_properties
|
88
|
+
invalid_properties = Array.new
|
89
|
+
if @direction.nil?
|
90
|
+
invalid_properties.push('invalid value for "direction", direction cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if @distance.nil?
|
94
|
+
invalid_properties.push('invalid value for "distance", distance cannot be nil.')
|
95
|
+
end
|
96
|
+
|
97
|
+
if @blur_radius.nil?
|
98
|
+
invalid_properties.push('invalid value for "blur_radius", blur_radius cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
invalid_properties
|
102
|
+
end
|
103
|
+
|
104
|
+
# Check to see if the all the properties in the model are valid
|
105
|
+
# @return true if the model is valid
|
106
|
+
def valid?
|
107
|
+
return false if @direction.nil?
|
108
|
+
return false if @distance.nil?
|
109
|
+
return false if @blur_radius.nil?
|
110
|
+
true
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
direction == o.direction &&
|
119
|
+
distance == o.distance &&
|
120
|
+
blur_radius == o.blur_radius &&
|
121
|
+
shadow_color == o.shadow_color
|
122
|
+
end
|
123
|
+
|
124
|
+
# @see the `==` method
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def eql?(o)
|
127
|
+
self == o
|
128
|
+
end
|
129
|
+
|
130
|
+
# Calculates hash code according to all attributes.
|
131
|
+
# @return [Fixnum] Hash code
|
132
|
+
def hash
|
133
|
+
[direction, distance, blur_radius, shadow_color].hash
|
134
|
+
end
|
135
|
+
|
136
|
+
# Builds the object from hash
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
+
# @return [Object] Returns the model itself
|
139
|
+
def build_from_hash(attributes)
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
141
|
+
self.class.swagger_types.each_pair do |key, type|
|
142
|
+
mapKey = self.class.attribute_map[key]
|
143
|
+
if !mapKey.nil?
|
144
|
+
val = attributes[mapKey]
|
145
|
+
if val.nil?
|
146
|
+
mapKeyString = mapKey.to_s
|
147
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
148
|
+
mapKey = mapKeyString.to_sym
|
149
|
+
val = attributes[mapKey]
|
150
|
+
end
|
151
|
+
if !val.nil?
|
152
|
+
if type =~ /\AArray<(.*)>/i
|
153
|
+
# check to ensure the input is an array given that the the attribute
|
154
|
+
# is documented as an array but the input is not
|
155
|
+
if val.is_a?(Array)
|
156
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
157
|
+
end
|
158
|
+
else
|
159
|
+
self.send("#{key}=", _deserialize(type, val))
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
self
|
166
|
+
end
|
167
|
+
|
168
|
+
# Deserializes the data based on type
|
169
|
+
# @param string type Data type
|
170
|
+
# @param string value Value to be deserialized
|
171
|
+
# @return [Object] Deserialized data
|
172
|
+
def _deserialize(type, value)
|
173
|
+
case type.to_sym
|
174
|
+
when :DateTime
|
175
|
+
DateTime.parse(value)
|
176
|
+
when :Date
|
177
|
+
Date.parse(value)
|
178
|
+
when :String
|
179
|
+
value.to_s
|
180
|
+
when :Integer
|
181
|
+
value.to_i
|
182
|
+
when :Float
|
183
|
+
value.to_f
|
184
|
+
when :BOOLEAN
|
185
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
186
|
+
true
|
187
|
+
else
|
188
|
+
false
|
189
|
+
end
|
190
|
+
when :Object
|
191
|
+
# generic object (usually a Hash), return directly
|
192
|
+
value
|
193
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
194
|
+
inner_type = Regexp.last_match[:inner_type]
|
195
|
+
value.map { |v| _deserialize(inner_type, v) }
|
196
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
197
|
+
k_type = Regexp.last_match[:k_type]
|
198
|
+
v_type = Regexp.last_match[:v_type]
|
199
|
+
{}.tap do |hash|
|
200
|
+
value.each do |k, v|
|
201
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
else # model
|
205
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
206
|
+
temp_model.build_from_hash(value)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the string representation of the object
|
211
|
+
# @return [String] String presentation of the object
|
212
|
+
def to_s
|
213
|
+
to_hash.to_s
|
214
|
+
end
|
215
|
+
|
216
|
+
# to_body is an alias to to_hash (backward compatibility)
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
def to_body
|
219
|
+
to_hash
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the object in the form of hash
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
224
|
+
def to_hash
|
225
|
+
hash = {}
|
226
|
+
self.class.attribute_map.each_pair do |attr, param|
|
227
|
+
value = self.send(attr)
|
228
|
+
next if value.nil?
|
229
|
+
hash[param] = _to_hash(value)
|
230
|
+
end
|
231
|
+
hash
|
232
|
+
end
|
233
|
+
|
234
|
+
# Outputs non-array value in the form of hash
|
235
|
+
# For object, use to_hash. Otherwise, just return the value
|
236
|
+
# @param [Object] value Any valid value
|
237
|
+
# @return [Hash] Returns the value in the form of hash
|
238
|
+
def _to_hash(value)
|
239
|
+
if value.is_a?(Array)
|
240
|
+
value.compact.map { |v| _to_hash(v) }
|
241
|
+
elsif value.is_a?(Hash)
|
242
|
+
{}.tap do |hash|
|
243
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
244
|
+
end
|
245
|
+
elsif value.respond_to? :to_hash
|
246
|
+
value.to_hash
|
247
|
+
else
|
248
|
+
value
|
249
|
+
end
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|