aspose_slides_cloud 20.6.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/lib/aspose_slides_cloud.rb +1 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +196 -4
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +78 -0
- data/lib/aspose_slides_cloud/api_client.rb +6 -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 -8
- 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 -8
- 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 +22 -8
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +20 -8
- data/lib/aspose_slides_cloud/models/bubble_series.rb +22 -8
- data/lib/aspose_slides_cloud/models/chart.rb +20 -8
- data/lib/aspose_slides_cloud/models/chart_category.rb +20 -8
- data/lib/aspose_slides_cloud/models/chart_title.rb +20 -8
- data/lib/aspose_slides_cloud/models/chart_wall.rb +20 -8
- data/lib/aspose_slides_cloud/models/color_scheme.rb +20 -8
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +20 -8
- 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 +20 -8
- 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 +20 -8
- 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_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 -8
- data/lib/aspose_slides_cloud/models/line_format.rb +20 -8
- 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 +20 -8
- 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 +22 -8
- 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 +20 -8
- 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 -8
- 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 +20 -8
- data/lib/aspose_slides_cloud/models/save_shape.rb +20 -8
- data/lib/aspose_slides_cloud/models/save_slide.rb +20 -8
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +20 -8
- data/lib/aspose_slides_cloud/models/scatter_series.rb +22 -8
- data/lib/aspose_slides_cloud/models/series.rb +45 -12
- data/lib/aspose_slides_cloud/models/series_marker.rb +20 -8
- 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_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 -8
- data/lib/aspose_slides_cloud/models/table_cell.rb +20 -8
- 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 +20 -8
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +22 -8
- 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 +626 -1
- data/spec/extra/extra_spec.rb +111 -9
- data/spec/spec_utils.rb +8 -1
- data/testRules.json +29 -4
- metadata +3 -2
@@ -165,7 +165,7 @@ module AsposeSlidesCloud
|
|
165
165
|
:'east_asian_line_break' => :'String',
|
166
166
|
:'latin_line_break' => :'String',
|
167
167
|
:'right_to_left' => :'String',
|
168
|
-
:'portion_list' => :'Array<
|
168
|
+
:'portion_list' => :'Array<Portion>'
|
169
169
|
}
|
170
170
|
end
|
171
171
|
|
@@ -426,15 +426,27 @@ module AsposeSlidesCloud
|
|
426
426
|
def build_from_hash(attributes)
|
427
427
|
return nil unless attributes.is_a?(Hash)
|
428
428
|
self.class.swagger_types.each_pair do |key, type|
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
if
|
433
|
-
|
429
|
+
mapKey = self.class.attribute_map[key]
|
430
|
+
if !mapKey.nil?
|
431
|
+
val = attributes[mapKey]
|
432
|
+
if val.nil?
|
433
|
+
mapKeyString = mapKey.to_s
|
434
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
435
|
+
mapKey = mapKeyString.to_sym
|
436
|
+
val = attributes[mapKey]
|
434
437
|
end
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
+
if !val.nil?
|
439
|
+
if type =~ /\AArray<(.*)>/i
|
440
|
+
# check to ensure the input is an array given that the the attribute
|
441
|
+
# is documented as an array but the input is not
|
442
|
+
if val.is_a?(Array)
|
443
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
444
|
+
end
|
445
|
+
else
|
446
|
+
self.send("#{key}=", _deserialize(type, val))
|
447
|
+
end
|
448
|
+
end
|
449
|
+
end
|
438
450
|
end
|
439
451
|
|
440
452
|
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
|
@@ -165,15 +165,27 @@ module AsposeSlidesCloud
|
|
165
165
|
def build_from_hash(attributes)
|
166
166
|
return nil unless attributes.is_a?(Hash)
|
167
167
|
self.class.swagger_types.each_pair do |key, type|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
if
|
172
|
-
|
168
|
+
mapKey = self.class.attribute_map[key]
|
169
|
+
if !mapKey.nil?
|
170
|
+
val = attributes[mapKey]
|
171
|
+
if val.nil?
|
172
|
+
mapKeyString = mapKey.to_s
|
173
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
174
|
+
mapKey = mapKeyString.to_sym
|
175
|
+
val = attributes[mapKey]
|
173
176
|
end
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
+
if !val.nil?
|
178
|
+
if type =~ /\AArray<(.*)>/i
|
179
|
+
# check to ensure the input is an array given that the the attribute
|
180
|
+
# is documented as an array but the input is not
|
181
|
+
if val.is_a?(Array)
|
182
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
183
|
+
end
|
184
|
+
else
|
185
|
+
self.send("#{key}=", _deserialize(type, val))
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
177
189
|
end
|
178
190
|
|
179
191
|
self
|
@@ -155,15 +155,27 @@ module AsposeSlidesCloud
|
|
155
155
|
def build_from_hash(attributes)
|
156
156
|
return nil unless attributes.is_a?(Hash)
|
157
157
|
self.class.swagger_types.each_pair do |key, type|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
if
|
162
|
-
|
158
|
+
mapKey = self.class.attribute_map[key]
|
159
|
+
if !mapKey.nil?
|
160
|
+
val = attributes[mapKey]
|
161
|
+
if val.nil?
|
162
|
+
mapKeyString = mapKey.to_s
|
163
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
164
|
+
mapKey = mapKeyString.to_sym
|
165
|
+
val = attributes[mapKey]
|
163
166
|
end
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
+
if !val.nil?
|
168
|
+
if type =~ /\AArray<(.*)>/i
|
169
|
+
# check to ensure the input is an array given that the the attribute
|
170
|
+
# is documented as an array but the input is not
|
171
|
+
if val.is_a?(Array)
|
172
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
173
|
+
end
|
174
|
+
else
|
175
|
+
self.send("#{key}=", _deserialize(type, val))
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
167
179
|
end
|
168
180
|
|
169
181
|
self
|
@@ -182,15 +182,27 @@ module AsposeSlidesCloud
|
|
182
182
|
def build_from_hash(attributes)
|
183
183
|
return nil unless attributes.is_a?(Hash)
|
184
184
|
self.class.swagger_types.each_pair do |key, type|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
if
|
189
|
-
|
185
|
+
mapKey = self.class.attribute_map[key]
|
186
|
+
if !mapKey.nil?
|
187
|
+
val = attributes[mapKey]
|
188
|
+
if val.nil?
|
189
|
+
mapKeyString = mapKey.to_s
|
190
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
191
|
+
mapKey = mapKeyString.to_sym
|
192
|
+
val = attributes[mapKey]
|
190
193
|
end
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
+
if !val.nil?
|
195
|
+
if type =~ /\AArray<(.*)>/i
|
196
|
+
# check to ensure the input is an array given that the the attribute
|
197
|
+
# is documented as an array but the input is not
|
198
|
+
if val.is_a?(Array)
|
199
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
200
|
+
end
|
201
|
+
else
|
202
|
+
self.send("#{key}=", _deserialize(type, val))
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
194
206
|
end
|
195
207
|
|
196
208
|
self
|
@@ -445,15 +445,27 @@ module AsposeSlidesCloud
|
|
445
445
|
def build_from_hash(attributes)
|
446
446
|
return nil unless attributes.is_a?(Hash)
|
447
447
|
self.class.swagger_types.each_pair do |key, type|
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
if
|
452
|
-
|
448
|
+
mapKey = self.class.attribute_map[key]
|
449
|
+
if !mapKey.nil?
|
450
|
+
val = attributes[mapKey]
|
451
|
+
if val.nil?
|
452
|
+
mapKeyString = mapKey.to_s
|
453
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
454
|
+
mapKey = mapKeyString.to_sym
|
455
|
+
val = attributes[mapKey]
|
453
456
|
end
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
+
if !val.nil?
|
458
|
+
if type =~ /\AArray<(.*)>/i
|
459
|
+
# check to ensure the input is an array given that the the attribute
|
460
|
+
# is documented as an array but the input is not
|
461
|
+
if val.is_a?(Array)
|
462
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
463
|
+
end
|
464
|
+
else
|
465
|
+
self.send("#{key}=", _deserialize(type, val))
|
466
|
+
end
|
467
|
+
end
|
468
|
+
end
|
457
469
|
end
|
458
470
|
|
459
471
|
self
|
@@ -267,15 +267,27 @@ module AsposeSlidesCloud
|
|
267
267
|
def build_from_hash(attributes)
|
268
268
|
return nil unless attributes.is_a?(Hash)
|
269
269
|
self.class.swagger_types.each_pair do |key, type|
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
if
|
274
|
-
|
270
|
+
mapKey = self.class.attribute_map[key]
|
271
|
+
if !mapKey.nil?
|
272
|
+
val = attributes[mapKey]
|
273
|
+
if val.nil?
|
274
|
+
mapKeyString = mapKey.to_s
|
275
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
276
|
+
mapKey = mapKeyString.to_sym
|
277
|
+
val = attributes[mapKey]
|
275
278
|
end
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
+
if !val.nil?
|
280
|
+
if type =~ /\AArray<(.*)>/i
|
281
|
+
# check to ensure the input is an array given that the the attribute
|
282
|
+
# is documented as an array but the input is not
|
283
|
+
if val.is_a?(Array)
|
284
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
285
|
+
end
|
286
|
+
else
|
287
|
+
self.send("#{key}=", _deserialize(type, val))
|
288
|
+
end
|
289
|
+
end
|
290
|
+
end
|
279
291
|
end
|
280
292
|
|
281
293
|
self
|
@@ -358,15 +358,27 @@ module AsposeSlidesCloud
|
|
358
358
|
def build_from_hash(attributes)
|
359
359
|
return nil unless attributes.is_a?(Hash)
|
360
360
|
self.class.swagger_types.each_pair do |key, type|
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
if
|
365
|
-
|
361
|
+
mapKey = self.class.attribute_map[key]
|
362
|
+
if !mapKey.nil?
|
363
|
+
val = attributes[mapKey]
|
364
|
+
if val.nil?
|
365
|
+
mapKeyString = mapKey.to_s
|
366
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
367
|
+
mapKey = mapKeyString.to_sym
|
368
|
+
val = attributes[mapKey]
|
366
369
|
end
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
+
if !val.nil?
|
371
|
+
if type =~ /\AArray<(.*)>/i
|
372
|
+
# check to ensure the input is an array given that the the attribute
|
373
|
+
# is documented as an array but the input is not
|
374
|
+
if val.is_a?(Array)
|
375
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
376
|
+
end
|
377
|
+
else
|
378
|
+
self.send("#{key}=", _deserialize(type, val))
|
379
|
+
end
|
380
|
+
end
|
381
|
+
end
|
370
382
|
end
|
371
383
|
|
372
384
|
self
|
@@ -106,15 +106,27 @@ module AsposeSlidesCloud
|
|
106
106
|
def build_from_hash(attributes)
|
107
107
|
return nil unless attributes.is_a?(Hash)
|
108
108
|
self.class.swagger_types.each_pair do |key, type|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
if
|
113
|
-
|
109
|
+
mapKey = self.class.attribute_map[key]
|
110
|
+
if !mapKey.nil?
|
111
|
+
val = attributes[mapKey]
|
112
|
+
if val.nil?
|
113
|
+
mapKeyString = mapKey.to_s
|
114
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
115
|
+
mapKey = mapKeyString.to_sym
|
116
|
+
val = attributes[mapKey]
|
114
117
|
end
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
+
if !val.nil?
|
119
|
+
if type =~ /\AArray<(.*)>/i
|
120
|
+
# check to ensure the input is an array given that the the attribute
|
121
|
+
# is documented as an array but the input is not
|
122
|
+
if val.is_a?(Array)
|
123
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
124
|
+
end
|
125
|
+
else
|
126
|
+
self.send("#{key}=", _deserialize(type, val))
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
118
130
|
end
|
119
131
|
|
120
132
|
self
|
@@ -234,15 +234,27 @@ module AsposeSlidesCloud
|
|
234
234
|
def build_from_hash(attributes)
|
235
235
|
return nil unless attributes.is_a?(Hash)
|
236
236
|
self.class.swagger_types.each_pair do |key, type|
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
if
|
241
|
-
|
237
|
+
mapKey = self.class.attribute_map[key]
|
238
|
+
if !mapKey.nil?
|
239
|
+
val = attributes[mapKey]
|
240
|
+
if val.nil?
|
241
|
+
mapKeyString = mapKey.to_s
|
242
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
243
|
+
mapKey = mapKeyString.to_sym
|
244
|
+
val = attributes[mapKey]
|
242
245
|
end
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
+
if !val.nil?
|
247
|
+
if type =~ /\AArray<(.*)>/i
|
248
|
+
# check to ensure the input is an array given that the the attribute
|
249
|
+
# is documented as an array but the input is not
|
250
|
+
if val.is_a?(Array)
|
251
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
252
|
+
end
|
253
|
+
else
|
254
|
+
self.send("#{key}=", _deserialize(type, val))
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
246
258
|
end
|
247
259
|
|
248
260
|
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
|
@@ -198,15 +198,27 @@ module AsposeSlidesCloud
|
|
198
198
|
def build_from_hash(attributes)
|
199
199
|
return nil unless attributes.is_a?(Hash)
|
200
200
|
self.class.swagger_types.each_pair do |key, type|
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
if
|
205
|
-
|
201
|
+
mapKey = self.class.attribute_map[key]
|
202
|
+
if !mapKey.nil?
|
203
|
+
val = attributes[mapKey]
|
204
|
+
if val.nil?
|
205
|
+
mapKeyString = mapKey.to_s
|
206
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
207
|
+
mapKey = mapKeyString.to_sym
|
208
|
+
val = attributes[mapKey]
|
206
209
|
end
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
+
if !val.nil?
|
211
|
+
if type =~ /\AArray<(.*)>/i
|
212
|
+
# check to ensure the input is an array given that the the attribute
|
213
|
+
# is documented as an array but the input is not
|
214
|
+
if val.is_a?(Array)
|
215
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
216
|
+
end
|
217
|
+
else
|
218
|
+
self.send("#{key}=", _deserialize(type, val))
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
210
222
|
end
|
211
223
|
|
212
224
|
self
|
@@ -498,15 +498,27 @@ module AsposeSlidesCloud
|
|
498
498
|
def build_from_hash(attributes)
|
499
499
|
return nil unless attributes.is_a?(Hash)
|
500
500
|
self.class.swagger_types.each_pair do |key, type|
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
if
|
505
|
-
|
501
|
+
mapKey = self.class.attribute_map[key]
|
502
|
+
if !mapKey.nil?
|
503
|
+
val = attributes[mapKey]
|
504
|
+
if val.nil?
|
505
|
+
mapKeyString = mapKey.to_s
|
506
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
507
|
+
mapKey = mapKeyString.to_sym
|
508
|
+
val = attributes[mapKey]
|
506
509
|
end
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
+
if !val.nil?
|
511
|
+
if type =~ /\AArray<(.*)>/i
|
512
|
+
# check to ensure the input is an array given that the the attribute
|
513
|
+
# is documented as an array but the input is not
|
514
|
+
if val.is_a?(Array)
|
515
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
516
|
+
end
|
517
|
+
else
|
518
|
+
self.send("#{key}=", _deserialize(type, val))
|
519
|
+
end
|
520
|
+
end
|
521
|
+
end
|
510
522
|
end
|
511
523
|
|
512
524
|
self
|