aspose_slides_cloud 19.12.0 → 20.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/aspose_slides_cloud.rb +8 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +2156 -525
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +792 -124
- data/lib/aspose_slides_cloud/api_client.rb +7 -3
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/add_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/add_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/api_info.rb +20 -8
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +20 -23
- data/lib/aspose_slides_cloud/models/audio_frame.rb +20 -8
- data/lib/aspose_slides_cloud/models/axes.rb +20 -8
- data/lib/aspose_slides_cloud/models/axis.rb +20 -168
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/blur_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +504 -0
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +20 -8
- data/lib/aspose_slides_cloud/models/bubble_series.rb +24 -45
- data/lib/aspose_slides_cloud/models/chart.rb +23 -11
- data/lib/aspose_slides_cloud/models/chart_category.rb +249 -0
- data/lib/aspose_slides_cloud/models/chart_title.rb +20 -8
- data/lib/aspose_slides_cloud/models/chart_wall.rb +20 -18
- data/lib/aspose_slides_cloud/models/color_scheme.rb +20 -8
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
- data/lib/aspose_slides_cloud/models/connector.rb +20 -8
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +20 -8
- data/lib/aspose_slides_cloud/models/disc_usage.rb +20 -8
- data/lib/aspose_slides_cloud/models/document.rb +31 -9
- data/lib/aspose_slides_cloud/models/document_properties.rb +20 -8
- data/lib/aspose_slides_cloud/models/document_property.rb +20 -8
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +31 -9
- data/lib/aspose_slides_cloud/models/effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/effect_format.rb +20 -8
- data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
- data/lib/aspose_slides_cloud/models/error.rb +20 -8
- data/lib/aspose_slides_cloud/models/error_details.rb +20 -8
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/file_version.rb +20 -8
- data/lib/aspose_slides_cloud/models/file_versions.rb +20 -8
- data/lib/aspose_slides_cloud/models/files_list.rb +20 -8
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +20 -8
- data/lib/aspose_slides_cloud/models/fill_format.rb +20 -8
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/font_scheme.rb +20 -8
- data/lib/aspose_slides_cloud/models/font_set.rb +20 -8
- data/lib/aspose_slides_cloud/models/format_scheme.rb +20 -8
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/glow_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +20 -8
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +20 -8
- data/lib/aspose_slides_cloud/models/graphical_object.rb +20 -8
- data/lib/aspose_slides_cloud/models/group_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/html_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/image.rb +20 -8
- data/lib/aspose_slides_cloud/models/image_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/images.rb +20 -8
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/input.rb +20 -8
- data/lib/aspose_slides_cloud/models/input_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +20 -8
- data/lib/aspose_slides_cloud/models/layout_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/layout_slides.rb +20 -8
- data/lib/aspose_slides_cloud/models/legend.rb +20 -38
- data/lib/aspose_slides_cloud/models/line_format.rb +20 -43
- data/lib/aspose_slides_cloud/models/master_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/master_slides.rb +20 -8
- data/lib/aspose_slides_cloud/models/merge.rb +20 -8
- data/lib/aspose_slides_cloud/models/merging_source.rb +20 -8
- data/lib/aspose_slides_cloud/models/no_fill.rb +20 -8
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +217 -0
- data/lib/aspose_slides_cloud/models/notes_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/object_exist.rb +20 -8
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +20 -8
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +20 -8
- data/lib/aspose_slides_cloud/models/one_value_series.rb +24 -45
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +20 -8
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/output_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/paragraph.rb +21 -9
- data/lib/aspose_slides_cloud/models/paragraphs.rb +20 -8
- data/lib/aspose_slides_cloud/models/path_input_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/path_output_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +20 -8
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +53 -14
- data/lib/aspose_slides_cloud/models/picture_fill.rb +20 -8
- data/lib/aspose_slides_cloud/models/picture_frame.rb +20 -8
- data/lib/aspose_slides_cloud/models/pipeline.rb +20 -8
- data/lib/aspose_slides_cloud/models/placeholder.rb +20 -8
- data/lib/aspose_slides_cloud/models/placeholders.rb +20 -8
- data/lib/aspose_slides_cloud/models/plot_area.rb +20 -33
- data/lib/aspose_slides_cloud/models/portion.rb +20 -8
- data/lib/aspose_slides_cloud/models/portions.rb +28 -16
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +20 -8
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +20 -8
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/remove_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/remove_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/replace_text.rb +20 -8
- data/lib/aspose_slides_cloud/models/request_input_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/reset_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/resource_base.rb +20 -8
- data/lib/aspose_slides_cloud/models/resource_uri.rb +20 -8
- data/lib/aspose_slides_cloud/models/resource_uri_element.rb +20 -8
- data/lib/aspose_slides_cloud/models/response_output_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/save.rb +22 -10
- data/lib/aspose_slides_cloud/models/save_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/save_slide.rb +22 -10
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +20 -8
- data/lib/aspose_slides_cloud/models/scatter_series.rb +24 -45
- data/lib/aspose_slides_cloud/models/series.rb +47 -49
- data/lib/aspose_slides_cloud/models/series_marker.rb +20 -18
- data/lib/aspose_slides_cloud/models/shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/shape_base.rb +20 -8
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/shapes.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide_animation.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide_background.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide_comment.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide_comments.rb +20 -8
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +20 -8
- data/lib/aspose_slides_cloud/models/slides.rb +20 -8
- data/lib/aspose_slides_cloud/models/smart_art.rb +20 -8
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +20 -8
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +20 -8
- data/lib/aspose_slides_cloud/models/solid_fill.rb +20 -8
- data/lib/aspose_slides_cloud/models/split_document_result.rb +20 -8
- data/lib/aspose_slides_cloud/models/storage_exist.rb +20 -8
- data/lib/aspose_slides_cloud/models/storage_file.rb +20 -8
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/table.rb +20 -48
- data/lib/aspose_slides_cloud/models/table_cell.rb +20 -48
- data/lib/aspose_slides_cloud/models/table_column.rb +20 -8
- data/lib/aspose_slides_cloud/models/table_row.rb +20 -8
- data/lib/aspose_slides_cloud/models/task.rb +20 -8
- data/lib/aspose_slides_cloud/models/text_item.rb +20 -8
- data/lib/aspose_slides_cloud/models/text_items.rb +20 -8
- data/lib/aspose_slides_cloud/models/theme.rb +20 -8
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/models/update_background.rb +20 -8
- data/lib/aspose_slides_cloud/models/update_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/video_frame.rb +20 -8
- data/lib/aspose_slides_cloud/models/view_properties.rb +379 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +452 -0
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +20 -8
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +17214 -12046
- data/spec/extra/extra_spec.rb +111 -9
- data/spec/spec_utils.rb +8 -1
- data/testRules.json +80 -8
- metadata +9 -2
@@ -366,15 +366,27 @@ module AsposeSlidesCloud
|
|
366
366
|
def build_from_hash(attributes)
|
367
367
|
return nil unless attributes.is_a?(Hash)
|
368
368
|
self.class.swagger_types.each_pair do |key, type|
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
if
|
373
|
-
|
369
|
+
mapKey = self.class.attribute_map[key]
|
370
|
+
if !mapKey.nil?
|
371
|
+
val = attributes[mapKey]
|
372
|
+
if val.nil?
|
373
|
+
mapKeyString = mapKey.to_s
|
374
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
375
|
+
mapKey = mapKeyString.to_sym
|
376
|
+
val = attributes[mapKey]
|
374
377
|
end
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
+
if !val.nil?
|
379
|
+
if type =~ /\AArray<(.*)>/i
|
380
|
+
# check to ensure the input is an array given that the the attribute
|
381
|
+
# is documented as an array but the input is not
|
382
|
+
if val.is_a?(Array)
|
383
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
384
|
+
end
|
385
|
+
else
|
386
|
+
self.send("#{key}=", _deserialize(type, val))
|
387
|
+
end
|
388
|
+
end
|
389
|
+
end
|
378
390
|
end
|
379
391
|
|
380
392
|
self
|
@@ -305,15 +305,27 @@ module AsposeSlidesCloud
|
|
305
305
|
def build_from_hash(attributes)
|
306
306
|
return nil unless attributes.is_a?(Hash)
|
307
307
|
self.class.swagger_types.each_pair do |key, type|
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
if
|
312
|
-
|
308
|
+
mapKey = self.class.attribute_map[key]
|
309
|
+
if !mapKey.nil?
|
310
|
+
val = attributes[mapKey]
|
311
|
+
if val.nil?
|
312
|
+
mapKeyString = mapKey.to_s
|
313
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
314
|
+
mapKey = mapKeyString.to_sym
|
315
|
+
val = attributes[mapKey]
|
313
316
|
end
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
+
if !val.nil?
|
318
|
+
if type =~ /\AArray<(.*)>/i
|
319
|
+
# check to ensure the input is an array given that the the attribute
|
320
|
+
# is documented as an array but the input is not
|
321
|
+
if val.is_a?(Array)
|
322
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
323
|
+
end
|
324
|
+
else
|
325
|
+
self.send("#{key}=", _deserialize(type, val))
|
326
|
+
end
|
327
|
+
end
|
328
|
+
end
|
317
329
|
end
|
318
330
|
|
319
331
|
self
|
@@ -173,15 +173,27 @@ module AsposeSlidesCloud
|
|
173
173
|
def build_from_hash(attributes)
|
174
174
|
return nil unless attributes.is_a?(Hash)
|
175
175
|
self.class.swagger_types.each_pair do |key, type|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
if
|
180
|
-
|
176
|
+
mapKey = self.class.attribute_map[key]
|
177
|
+
if !mapKey.nil?
|
178
|
+
val = attributes[mapKey]
|
179
|
+
if val.nil?
|
180
|
+
mapKeyString = mapKey.to_s
|
181
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
182
|
+
mapKey = mapKeyString.to_sym
|
183
|
+
val = attributes[mapKey]
|
181
184
|
end
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
+
if !val.nil?
|
186
|
+
if type =~ /\AArray<(.*)>/i
|
187
|
+
# check to ensure the input is an array given that the the attribute
|
188
|
+
# is documented as an array but the input is not
|
189
|
+
if val.is_a?(Array)
|
190
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
191
|
+
end
|
192
|
+
else
|
193
|
+
self.send("#{key}=", _deserialize(type, val))
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
185
197
|
end
|
186
198
|
|
187
199
|
self
|
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
|
|
118
118
|
def build_from_hash(attributes)
|
119
119
|
return nil unless attributes.is_a?(Hash)
|
120
120
|
self.class.swagger_types.each_pair do |key, type|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
if
|
125
|
-
|
121
|
+
mapKey = self.class.attribute_map[key]
|
122
|
+
if !mapKey.nil?
|
123
|
+
val = attributes[mapKey]
|
124
|
+
if val.nil?
|
125
|
+
mapKeyString = mapKey.to_s
|
126
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
127
|
+
mapKey = mapKeyString.to_sym
|
128
|
+
val = attributes[mapKey]
|
126
129
|
end
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
+
if !val.nil?
|
131
|
+
if type =~ /\AArray<(.*)>/i
|
132
|
+
# check to ensure the input is an array given that the the attribute
|
133
|
+
# is documented as an array but the input is not
|
134
|
+
if val.is_a?(Array)
|
135
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
136
|
+
end
|
137
|
+
else
|
138
|
+
self.send("#{key}=", _deserialize(type, val))
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
130
142
|
end
|
131
143
|
|
132
144
|
self
|
@@ -231,15 +231,27 @@ module AsposeSlidesCloud
|
|
231
231
|
def build_from_hash(attributes)
|
232
232
|
return nil unless attributes.is_a?(Hash)
|
233
233
|
self.class.swagger_types.each_pair do |key, type|
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
if
|
238
|
-
|
234
|
+
mapKey = self.class.attribute_map[key]
|
235
|
+
if !mapKey.nil?
|
236
|
+
val = attributes[mapKey]
|
237
|
+
if val.nil?
|
238
|
+
mapKeyString = mapKey.to_s
|
239
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
240
|
+
mapKey = mapKeyString.to_sym
|
241
|
+
val = attributes[mapKey]
|
239
242
|
end
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
+
if !val.nil?
|
244
|
+
if type =~ /\AArray<(.*)>/i
|
245
|
+
# check to ensure the input is an array given that the the attribute
|
246
|
+
# is documented as an array but the input is not
|
247
|
+
if val.is_a?(Array)
|
248
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
249
|
+
end
|
250
|
+
else
|
251
|
+
self.send("#{key}=", _deserialize(type, val))
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
243
255
|
end
|
244
256
|
|
245
257
|
self
|
@@ -130,15 +130,27 @@ module AsposeSlidesCloud
|
|
130
130
|
def build_from_hash(attributes)
|
131
131
|
return nil unless attributes.is_a?(Hash)
|
132
132
|
self.class.swagger_types.each_pair do |key, type|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
if
|
137
|
-
|
133
|
+
mapKey = self.class.attribute_map[key]
|
134
|
+
if !mapKey.nil?
|
135
|
+
val = attributes[mapKey]
|
136
|
+
if val.nil?
|
137
|
+
mapKeyString = mapKey.to_s
|
138
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
139
|
+
mapKey = mapKeyString.to_sym
|
140
|
+
val = attributes[mapKey]
|
138
141
|
end
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
+
if !val.nil?
|
143
|
+
if type =~ /\AArray<(.*)>/i
|
144
|
+
# check to ensure the input is an array given that the the attribute
|
145
|
+
# is documented as an array but the input is not
|
146
|
+
if val.is_a?(Array)
|
147
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
148
|
+
end
|
149
|
+
else
|
150
|
+
self.send("#{key}=", _deserialize(type, val))
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
142
154
|
end
|
143
155
|
|
144
156
|
self
|
@@ -175,15 +175,27 @@ module AsposeSlidesCloud
|
|
175
175
|
def build_from_hash(attributes)
|
176
176
|
return nil unless attributes.is_a?(Hash)
|
177
177
|
self.class.swagger_types.each_pair do |key, type|
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
if
|
182
|
-
|
178
|
+
mapKey = self.class.attribute_map[key]
|
179
|
+
if !mapKey.nil?
|
180
|
+
val = attributes[mapKey]
|
181
|
+
if val.nil?
|
182
|
+
mapKeyString = mapKey.to_s
|
183
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
184
|
+
mapKey = mapKeyString.to_sym
|
185
|
+
val = attributes[mapKey]
|
183
186
|
end
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
+
if !val.nil?
|
188
|
+
if type =~ /\AArray<(.*)>/i
|
189
|
+
# check to ensure the input is an array given that the the attribute
|
190
|
+
# is documented as an array but the input is not
|
191
|
+
if val.is_a?(Array)
|
192
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
193
|
+
end
|
194
|
+
else
|
195
|
+
self.send("#{key}=", _deserialize(type, val))
|
196
|
+
end
|
197
|
+
end
|
198
|
+
end
|
187
199
|
end
|
188
200
|
|
189
201
|
self
|
@@ -126,15 +126,27 @@ module AsposeSlidesCloud
|
|
126
126
|
def build_from_hash(attributes)
|
127
127
|
return nil unless attributes.is_a?(Hash)
|
128
128
|
self.class.swagger_types.each_pair do |key, type|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
if
|
133
|
-
|
129
|
+
mapKey = self.class.attribute_map[key]
|
130
|
+
if !mapKey.nil?
|
131
|
+
val = attributes[mapKey]
|
132
|
+
if val.nil?
|
133
|
+
mapKeyString = mapKey.to_s
|
134
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
135
|
+
mapKey = mapKeyString.to_sym
|
136
|
+
val = attributes[mapKey]
|
134
137
|
end
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
+
if !val.nil?
|
139
|
+
if type =~ /\AArray<(.*)>/i
|
140
|
+
# check to ensure the input is an array given that the the attribute
|
141
|
+
# is documented as an array but the input is not
|
142
|
+
if val.is_a?(Array)
|
143
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
144
|
+
end
|
145
|
+
else
|
146
|
+
self.send("#{key}=", _deserialize(type, val))
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
138
150
|
end
|
139
151
|
|
140
152
|
self
|
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
|
|
118
118
|
def build_from_hash(attributes)
|
119
119
|
return nil unless attributes.is_a?(Hash)
|
120
120
|
self.class.swagger_types.each_pair do |key, type|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
if
|
125
|
-
|
121
|
+
mapKey = self.class.attribute_map[key]
|
122
|
+
if !mapKey.nil?
|
123
|
+
val = attributes[mapKey]
|
124
|
+
if val.nil?
|
125
|
+
mapKeyString = mapKey.to_s
|
126
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
127
|
+
mapKey = mapKeyString.to_sym
|
128
|
+
val = attributes[mapKey]
|
126
129
|
end
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
+
if !val.nil?
|
131
|
+
if type =~ /\AArray<(.*)>/i
|
132
|
+
# check to ensure the input is an array given that the the attribute
|
133
|
+
# is documented as an array but the input is not
|
134
|
+
if val.is_a?(Array)
|
135
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
136
|
+
end
|
137
|
+
else
|
138
|
+
self.send("#{key}=", _deserialize(type, val))
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
130
142
|
end
|
131
143
|
|
132
144
|
self
|
@@ -246,15 +246,27 @@ module AsposeSlidesCloud
|
|
246
246
|
def build_from_hash(attributes)
|
247
247
|
return nil unless attributes.is_a?(Hash)
|
248
248
|
self.class.swagger_types.each_pair do |key, type|
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
if
|
253
|
-
|
249
|
+
mapKey = self.class.attribute_map[key]
|
250
|
+
if !mapKey.nil?
|
251
|
+
val = attributes[mapKey]
|
252
|
+
if val.nil?
|
253
|
+
mapKeyString = mapKey.to_s
|
254
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
255
|
+
mapKey = mapKeyString.to_sym
|
256
|
+
val = attributes[mapKey]
|
254
257
|
end
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
+
if !val.nil?
|
259
|
+
if type =~ /\AArray<(.*)>/i
|
260
|
+
# check to ensure the input is an array given that the the attribute
|
261
|
+
# is documented as an array but the input is not
|
262
|
+
if val.is_a?(Array)
|
263
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
264
|
+
end
|
265
|
+
else
|
266
|
+
self.send("#{key}=", _deserialize(type, val))
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
258
270
|
end
|
259
271
|
|
260
272
|
self
|
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
|
|
118
118
|
def build_from_hash(attributes)
|
119
119
|
return nil unless attributes.is_a?(Hash)
|
120
120
|
self.class.swagger_types.each_pair do |key, type|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
if
|
125
|
-
|
121
|
+
mapKey = self.class.attribute_map[key]
|
122
|
+
if !mapKey.nil?
|
123
|
+
val = attributes[mapKey]
|
124
|
+
if val.nil?
|
125
|
+
mapKeyString = mapKey.to_s
|
126
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
127
|
+
mapKey = mapKeyString.to_sym
|
128
|
+
val = attributes[mapKey]
|
126
129
|
end
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
+
if !val.nil?
|
131
|
+
if type =~ /\AArray<(.*)>/i
|
132
|
+
# check to ensure the input is an array given that the the attribute
|
133
|
+
# is documented as an array but the input is not
|
134
|
+
if val.is_a?(Array)
|
135
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
136
|
+
end
|
137
|
+
else
|
138
|
+
self.send("#{key}=", _deserialize(type, val))
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
130
142
|
end
|
131
143
|
|
132
144
|
self
|
@@ -429,15 +429,27 @@ module AsposeSlidesCloud
|
|
429
429
|
def build_from_hash(attributes)
|
430
430
|
return nil unless attributes.is_a?(Hash)
|
431
431
|
self.class.swagger_types.each_pair do |key, type|
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
if
|
436
|
-
|
432
|
+
mapKey = self.class.attribute_map[key]
|
433
|
+
if !mapKey.nil?
|
434
|
+
val = attributes[mapKey]
|
435
|
+
if val.nil?
|
436
|
+
mapKeyString = mapKey.to_s
|
437
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
438
|
+
mapKey = mapKeyString.to_sym
|
439
|
+
val = attributes[mapKey]
|
437
440
|
end
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
+
if !val.nil?
|
442
|
+
if type =~ /\AArray<(.*)>/i
|
443
|
+
# check to ensure the input is an array given that the the attribute
|
444
|
+
# is documented as an array but the input is not
|
445
|
+
if val.is_a?(Array)
|
446
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
447
|
+
end
|
448
|
+
else
|
449
|
+
self.send("#{key}=", _deserialize(type, val))
|
450
|
+
end
|
451
|
+
end
|
452
|
+
end
|
441
453
|
end
|
442
454
|
|
443
455
|
self
|
@@ -180,15 +180,27 @@ module AsposeSlidesCloud
|
|
180
180
|
def build_from_hash(attributes)
|
181
181
|
return nil unless attributes.is_a?(Hash)
|
182
182
|
self.class.swagger_types.each_pair do |key, type|
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
if
|
187
|
-
|
183
|
+
mapKey = self.class.attribute_map[key]
|
184
|
+
if !mapKey.nil?
|
185
|
+
val = attributes[mapKey]
|
186
|
+
if val.nil?
|
187
|
+
mapKeyString = mapKey.to_s
|
188
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
189
|
+
mapKey = mapKeyString.to_sym
|
190
|
+
val = attributes[mapKey]
|
188
191
|
end
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
+
if !val.nil?
|
193
|
+
if type =~ /\AArray<(.*)>/i
|
194
|
+
# check to ensure the input is an array given that the the attribute
|
195
|
+
# is documented as an array but the input is not
|
196
|
+
if val.is_a?(Array)
|
197
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
198
|
+
end
|
199
|
+
else
|
200
|
+
self.send("#{key}=", _deserialize(type, val))
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
192
204
|
end
|
193
205
|
|
194
206
|
self
|