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
@@ -136,15 +136,27 @@ module AsposeSlidesCloud
|
|
136
136
|
def build_from_hash(attributes)
|
137
137
|
return nil unless attributes.is_a?(Hash)
|
138
138
|
self.class.swagger_types.each_pair do |key, type|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
if
|
143
|
-
|
139
|
+
mapKey = self.class.attribute_map[key]
|
140
|
+
if !mapKey.nil?
|
141
|
+
val = attributes[mapKey]
|
142
|
+
if val.nil?
|
143
|
+
mapKeyString = mapKey.to_s
|
144
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
145
|
+
mapKey = mapKeyString.to_sym
|
146
|
+
val = attributes[mapKey]
|
144
147
|
end
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
+
if !val.nil?
|
149
|
+
if type =~ /\AArray<(.*)>/i
|
150
|
+
# check to ensure the input is an array given that the the attribute
|
151
|
+
# is documented as an array but the input is not
|
152
|
+
if val.is_a?(Array)
|
153
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
154
|
+
end
|
155
|
+
else
|
156
|
+
self.send("#{key}=", _deserialize(type, val))
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
148
160
|
end
|
149
161
|
|
150
162
|
self
|
@@ -109,15 +109,27 @@ module AsposeSlidesCloud
|
|
109
109
|
def build_from_hash(attributes)
|
110
110
|
return nil unless attributes.is_a?(Hash)
|
111
111
|
self.class.swagger_types.each_pair do |key, type|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
if
|
116
|
-
|
112
|
+
mapKey = self.class.attribute_map[key]
|
113
|
+
if !mapKey.nil?
|
114
|
+
val = attributes[mapKey]
|
115
|
+
if val.nil?
|
116
|
+
mapKeyString = mapKey.to_s
|
117
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
118
|
+
mapKey = mapKeyString.to_sym
|
119
|
+
val = attributes[mapKey]
|
117
120
|
end
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
+
if !val.nil?
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
123
|
+
# check to ensure the input is an array given that the the attribute
|
124
|
+
# is documented as an array but the input is not
|
125
|
+
if val.is_a?(Array)
|
126
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
127
|
+
end
|
128
|
+
else
|
129
|
+
self.send("#{key}=", _deserialize(type, val))
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
121
133
|
end
|
122
134
|
|
123
135
|
self
|
@@ -168,15 +168,27 @@ module AsposeSlidesCloud
|
|
168
168
|
def build_from_hash(attributes)
|
169
169
|
return nil unless attributes.is_a?(Hash)
|
170
170
|
self.class.swagger_types.each_pair do |key, type|
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
if
|
175
|
-
|
171
|
+
mapKey = self.class.attribute_map[key]
|
172
|
+
if !mapKey.nil?
|
173
|
+
val = attributes[mapKey]
|
174
|
+
if val.nil?
|
175
|
+
mapKeyString = mapKey.to_s
|
176
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
177
|
+
mapKey = mapKeyString.to_sym
|
178
|
+
val = attributes[mapKey]
|
176
179
|
end
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
+
if !val.nil?
|
181
|
+
if type =~ /\AArray<(.*)>/i
|
182
|
+
# check to ensure the input is an array given that the the attribute
|
183
|
+
# is documented as an array but the input is not
|
184
|
+
if val.is_a?(Array)
|
185
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
186
|
+
end
|
187
|
+
else
|
188
|
+
self.send("#{key}=", _deserialize(type, val))
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
180
192
|
end
|
181
193
|
|
182
194
|
self
|
@@ -226,15 +226,27 @@ module AsposeSlidesCloud
|
|
226
226
|
def build_from_hash(attributes)
|
227
227
|
return nil unless attributes.is_a?(Hash)
|
228
228
|
self.class.swagger_types.each_pair do |key, type|
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
if
|
233
|
-
|
229
|
+
mapKey = self.class.attribute_map[key]
|
230
|
+
if !mapKey.nil?
|
231
|
+
val = attributes[mapKey]
|
232
|
+
if val.nil?
|
233
|
+
mapKeyString = mapKey.to_s
|
234
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
235
|
+
mapKey = mapKeyString.to_sym
|
236
|
+
val = attributes[mapKey]
|
234
237
|
end
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
+
if !val.nil?
|
239
|
+
if type =~ /\AArray<(.*)>/i
|
240
|
+
# check to ensure the input is an array given that the the attribute
|
241
|
+
# is documented as an array but the input is not
|
242
|
+
if val.is_a?(Array)
|
243
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
244
|
+
end
|
245
|
+
else
|
246
|
+
self.send("#{key}=", _deserialize(type, val))
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
238
250
|
end
|
239
251
|
|
240
252
|
self
|
@@ -104,15 +104,27 @@ module AsposeSlidesCloud
|
|
104
104
|
def build_from_hash(attributes)
|
105
105
|
return nil unless attributes.is_a?(Hash)
|
106
106
|
self.class.swagger_types.each_pair do |key, type|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
if
|
111
|
-
|
107
|
+
mapKey = self.class.attribute_map[key]
|
108
|
+
if !mapKey.nil?
|
109
|
+
val = attributes[mapKey]
|
110
|
+
if val.nil?
|
111
|
+
mapKeyString = mapKey.to_s
|
112
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
113
|
+
mapKey = mapKeyString.to_sym
|
114
|
+
val = attributes[mapKey]
|
112
115
|
end
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
+
if !val.nil?
|
117
|
+
if type =~ /\AArray<(.*)>/i
|
118
|
+
# check to ensure the input is an array given that the the attribute
|
119
|
+
# is documented as an array but the input is not
|
120
|
+
if val.is_a?(Array)
|
121
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
122
|
+
end
|
123
|
+
else
|
124
|
+
self.send("#{key}=", _deserialize(type, val))
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
116
128
|
end
|
117
129
|
|
118
130
|
self
|
@@ -386,15 +386,27 @@ module AsposeSlidesCloud
|
|
386
386
|
def build_from_hash(attributes)
|
387
387
|
return nil unless attributes.is_a?(Hash)
|
388
388
|
self.class.swagger_types.each_pair do |key, type|
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
if
|
393
|
-
|
389
|
+
mapKey = self.class.attribute_map[key]
|
390
|
+
if !mapKey.nil?
|
391
|
+
val = attributes[mapKey]
|
392
|
+
if val.nil?
|
393
|
+
mapKeyString = mapKey.to_s
|
394
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
395
|
+
mapKey = mapKeyString.to_sym
|
396
|
+
val = attributes[mapKey]
|
394
397
|
end
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
+
if !val.nil?
|
399
|
+
if type =~ /\AArray<(.*)>/i
|
400
|
+
# check to ensure the input is an array given that the the attribute
|
401
|
+
# is documented as an array but the input is not
|
402
|
+
if val.is_a?(Array)
|
403
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
404
|
+
end
|
405
|
+
else
|
406
|
+
self.send("#{key}=", _deserialize(type, val))
|
407
|
+
end
|
408
|
+
end
|
409
|
+
end
|
398
410
|
end
|
399
411
|
|
400
412
|
self
|
@@ -96,15 +96,27 @@ module AsposeSlidesCloud
|
|
96
96
|
def build_from_hash(attributes)
|
97
97
|
return nil unless attributes.is_a?(Hash)
|
98
98
|
self.class.swagger_types.each_pair do |key, type|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
if
|
103
|
-
|
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]
|
104
107
|
end
|
105
|
-
|
106
|
-
|
107
|
-
|
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
|
108
120
|
end
|
109
121
|
|
110
122
|
self
|
@@ -114,15 +114,27 @@ module AsposeSlidesCloud
|
|
114
114
|
def build_from_hash(attributes)
|
115
115
|
return nil unless attributes.is_a?(Hash)
|
116
116
|
self.class.swagger_types.each_pair do |key, type|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
if
|
121
|
-
|
117
|
+
mapKey = self.class.attribute_map[key]
|
118
|
+
if !mapKey.nil?
|
119
|
+
val = attributes[mapKey]
|
120
|
+
if val.nil?
|
121
|
+
mapKeyString = mapKey.to_s
|
122
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
123
|
+
mapKey = mapKeyString.to_sym
|
124
|
+
val = attributes[mapKey]
|
122
125
|
end
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
+
if !val.nil?
|
127
|
+
if type =~ /\AArray<(.*)>/i
|
128
|
+
# check to ensure the input is an array given that the the attribute
|
129
|
+
# is documented as an array but the input is not
|
130
|
+
if val.is_a?(Array)
|
131
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
132
|
+
end
|
133
|
+
else
|
134
|
+
self.send("#{key}=", _deserialize(type, val))
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
126
138
|
end
|
127
139
|
|
128
140
|
self
|
@@ -166,15 +166,27 @@ module AsposeSlidesCloud
|
|
166
166
|
def build_from_hash(attributes)
|
167
167
|
return nil unless attributes.is_a?(Hash)
|
168
168
|
self.class.swagger_types.each_pair do |key, type|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
if
|
173
|
-
|
169
|
+
mapKey = self.class.attribute_map[key]
|
170
|
+
if !mapKey.nil?
|
171
|
+
val = attributes[mapKey]
|
172
|
+
if val.nil?
|
173
|
+
mapKeyString = mapKey.to_s
|
174
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
175
|
+
mapKey = mapKeyString.to_sym
|
176
|
+
val = attributes[mapKey]
|
174
177
|
end
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
+
if !val.nil?
|
179
|
+
if type =~ /\AArray<(.*)>/i
|
180
|
+
# check to ensure the input is an array given that the the attribute
|
181
|
+
# is documented as an array but the input is not
|
182
|
+
if val.is_a?(Array)
|
183
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
184
|
+
end
|
185
|
+
else
|
186
|
+
self.send("#{key}=", _deserialize(type, val))
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
178
190
|
end
|
179
191
|
|
180
192
|
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
|
@@ -141,15 +141,27 @@ module AsposeSlidesCloud
|
|
141
141
|
def build_from_hash(attributes)
|
142
142
|
return nil unless attributes.is_a?(Hash)
|
143
143
|
self.class.swagger_types.each_pair do |key, type|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
if
|
148
|
-
|
144
|
+
mapKey = self.class.attribute_map[key]
|
145
|
+
if !mapKey.nil?
|
146
|
+
val = attributes[mapKey]
|
147
|
+
if val.nil?
|
148
|
+
mapKeyString = mapKey.to_s
|
149
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
150
|
+
mapKey = mapKeyString.to_sym
|
151
|
+
val = attributes[mapKey]
|
149
152
|
end
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
+
if !val.nil?
|
154
|
+
if type =~ /\AArray<(.*)>/i
|
155
|
+
# check to ensure the input is an array given that the the attribute
|
156
|
+
# is documented as an array but the input is not
|
157
|
+
if val.is_a?(Array)
|
158
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
159
|
+
end
|
160
|
+
else
|
161
|
+
self.send("#{key}=", _deserialize(type, val))
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
153
165
|
end
|
154
166
|
|
155
167
|
self
|
@@ -181,15 +181,27 @@ module AsposeSlidesCloud
|
|
181
181
|
def build_from_hash(attributes)
|
182
182
|
return nil unless attributes.is_a?(Hash)
|
183
183
|
self.class.swagger_types.each_pair do |key, type|
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
if
|
188
|
-
|
184
|
+
mapKey = self.class.attribute_map[key]
|
185
|
+
if !mapKey.nil?
|
186
|
+
val = attributes[mapKey]
|
187
|
+
if val.nil?
|
188
|
+
mapKeyString = mapKey.to_s
|
189
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
190
|
+
mapKey = mapKeyString.to_sym
|
191
|
+
val = attributes[mapKey]
|
189
192
|
end
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
+
if !val.nil?
|
194
|
+
if type =~ /\AArray<(.*)>/i
|
195
|
+
# check to ensure the input is an array given that the the attribute
|
196
|
+
# is documented as an array but the input is not
|
197
|
+
if val.is_a?(Array)
|
198
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
199
|
+
end
|
200
|
+
else
|
201
|
+
self.send("#{key}=", _deserialize(type, val))
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
193
205
|
end
|
194
206
|
|
195
207
|
self
|
@@ -311,15 +311,27 @@ module AsposeSlidesCloud
|
|
311
311
|
def build_from_hash(attributes)
|
312
312
|
return nil unless attributes.is_a?(Hash)
|
313
313
|
self.class.swagger_types.each_pair do |key, type|
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
if
|
318
|
-
|
314
|
+
mapKey = self.class.attribute_map[key]
|
315
|
+
if !mapKey.nil?
|
316
|
+
val = attributes[mapKey]
|
317
|
+
if val.nil?
|
318
|
+
mapKeyString = mapKey.to_s
|
319
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
320
|
+
mapKey = mapKeyString.to_sym
|
321
|
+
val = attributes[mapKey]
|
319
322
|
end
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
+
if !val.nil?
|
324
|
+
if type =~ /\AArray<(.*)>/i
|
325
|
+
# check to ensure the input is an array given that the the attribute
|
326
|
+
# is documented as an array but the input is not
|
327
|
+
if val.is_a?(Array)
|
328
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
329
|
+
end
|
330
|
+
else
|
331
|
+
self.send("#{key}=", _deserialize(type, val))
|
332
|
+
end
|
333
|
+
end
|
334
|
+
end
|
323
335
|
end
|
324
336
|
|
325
337
|
self
|