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
@@ -111,15 +111,27 @@ module AsposeSlidesCloud
|
|
111
111
|
def build_from_hash(attributes)
|
112
112
|
return nil unless attributes.is_a?(Hash)
|
113
113
|
self.class.swagger_types.each_pair do |key, type|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
if
|
118
|
-
|
114
|
+
mapKey = self.class.attribute_map[key]
|
115
|
+
if !mapKey.nil?
|
116
|
+
val = attributes[mapKey]
|
117
|
+
if val.nil?
|
118
|
+
mapKeyString = mapKey.to_s
|
119
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
120
|
+
mapKey = mapKeyString.to_sym
|
121
|
+
val = attributes[mapKey]
|
119
122
|
end
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
+
if !val.nil?
|
124
|
+
if type =~ /\AArray<(.*)>/i
|
125
|
+
# check to ensure the input is an array given that the the attribute
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if val.is_a?(Array)
|
128
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
129
|
+
end
|
130
|
+
else
|
131
|
+
self.send("#{key}=", _deserialize(type, val))
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
123
135
|
end
|
124
136
|
|
125
137
|
self
|
@@ -187,15 +187,27 @@ module AsposeSlidesCloud
|
|
187
187
|
def build_from_hash(attributes)
|
188
188
|
return nil unless attributes.is_a?(Hash)
|
189
189
|
self.class.swagger_types.each_pair do |key, type|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
if
|
194
|
-
|
190
|
+
mapKey = self.class.attribute_map[key]
|
191
|
+
if !mapKey.nil?
|
192
|
+
val = attributes[mapKey]
|
193
|
+
if val.nil?
|
194
|
+
mapKeyString = mapKey.to_s
|
195
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
196
|
+
mapKey = mapKeyString.to_sym
|
197
|
+
val = attributes[mapKey]
|
195
198
|
end
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
+
if !val.nil?
|
200
|
+
if type =~ /\AArray<(.*)>/i
|
201
|
+
# check to ensure the input is an array given that the the attribute
|
202
|
+
# is documented as an array but the input is not
|
203
|
+
if val.is_a?(Array)
|
204
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
205
|
+
end
|
206
|
+
else
|
207
|
+
self.send("#{key}=", _deserialize(type, val))
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
199
211
|
end
|
200
212
|
|
201
213
|
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
|
@@ -153,44 +153,14 @@ module AsposeSlidesCloud
|
|
153
153
|
# @return Array for valid properties with the reasons
|
154
154
|
def list_invalid_properties
|
155
155
|
invalid_properties = Array.new
|
156
|
-
if @position.nil?
|
157
|
-
invalid_properties.push('invalid value for "position", position cannot be nil.')
|
158
|
-
end
|
159
|
-
|
160
|
-
if @x.nil?
|
161
|
-
invalid_properties.push('invalid value for "x", x cannot be nil.')
|
162
|
-
end
|
163
|
-
|
164
|
-
if @y.nil?
|
165
|
-
invalid_properties.push('invalid value for "y", y cannot be nil.')
|
166
|
-
end
|
167
|
-
|
168
|
-
if @width.nil?
|
169
|
-
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
170
|
-
end
|
171
|
-
|
172
|
-
if @height.nil?
|
173
|
-
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
174
|
-
end
|
175
|
-
|
176
|
-
if @overlay.nil?
|
177
|
-
invalid_properties.push('invalid value for "overlay", overlay cannot be nil.')
|
178
|
-
end
|
179
|
-
|
180
156
|
invalid_properties
|
181
157
|
end
|
182
158
|
|
183
159
|
# Check to see if the all the properties in the model are valid
|
184
160
|
# @return true if the model is valid
|
185
161
|
def valid?
|
186
|
-
return false if @position.nil?
|
187
162
|
position_validator = EnumAttributeValidator.new('String', ['Bottom', 'Left', 'Right', 'Top', 'TopRight'])
|
188
163
|
return false unless position_validator.valid?(@position)
|
189
|
-
return false if @x.nil?
|
190
|
-
return false if @y.nil?
|
191
|
-
return false if @width.nil?
|
192
|
-
return false if @height.nil?
|
193
|
-
return false if @overlay.nil?
|
194
164
|
true
|
195
165
|
end
|
196
166
|
|
@@ -238,15 +208,27 @@ module AsposeSlidesCloud
|
|
238
208
|
def build_from_hash(attributes)
|
239
209
|
return nil unless attributes.is_a?(Hash)
|
240
210
|
self.class.swagger_types.each_pair do |key, type|
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
if
|
245
|
-
|
211
|
+
mapKey = self.class.attribute_map[key]
|
212
|
+
if !mapKey.nil?
|
213
|
+
val = attributes[mapKey]
|
214
|
+
if val.nil?
|
215
|
+
mapKeyString = mapKey.to_s
|
216
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
217
|
+
mapKey = mapKeyString.to_sym
|
218
|
+
val = attributes[mapKey]
|
219
|
+
end
|
220
|
+
if !val.nil?
|
221
|
+
if type =~ /\AArray<(.*)>/i
|
222
|
+
# check to ensure the input is an array given that the the attribute
|
223
|
+
# is documented as an array but the input is not
|
224
|
+
if val.is_a?(Array)
|
225
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
226
|
+
end
|
227
|
+
else
|
228
|
+
self.send("#{key}=", _deserialize(type, val))
|
229
|
+
end
|
246
230
|
end
|
247
|
-
|
248
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
249
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
231
|
+
end
|
250
232
|
end
|
251
233
|
|
252
234
|
self
|
@@ -171,57 +171,22 @@ module AsposeSlidesCloud
|
|
171
171
|
# @return Array for valid properties with the reasons
|
172
172
|
def list_invalid_properties
|
173
173
|
invalid_properties = Array.new
|
174
|
-
if @alignment.nil?
|
175
|
-
invalid_properties.push('invalid value for "alignment", alignment cannot be nil.')
|
176
|
-
end
|
177
|
-
|
178
|
-
if @cap_style.nil?
|
179
|
-
invalid_properties.push('invalid value for "cap_style", cap_style cannot be nil.')
|
180
|
-
end
|
181
|
-
|
182
|
-
if @dash_style.nil?
|
183
|
-
invalid_properties.push('invalid value for "dash_style", dash_style cannot be nil.')
|
184
|
-
end
|
185
|
-
|
186
|
-
if @join_style.nil?
|
187
|
-
invalid_properties.push('invalid value for "join_style", join_style cannot be nil.')
|
188
|
-
end
|
189
|
-
|
190
|
-
if @style.nil?
|
191
|
-
invalid_properties.push('invalid value for "style", style cannot be nil.')
|
192
|
-
end
|
193
|
-
|
194
|
-
if @miter_limit.nil?
|
195
|
-
invalid_properties.push('invalid value for "miter_limit", miter_limit cannot be nil.')
|
196
|
-
end
|
197
|
-
|
198
|
-
if @width.nil?
|
199
|
-
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
200
|
-
end
|
201
|
-
|
202
174
|
invalid_properties
|
203
175
|
end
|
204
176
|
|
205
177
|
# Check to see if the all the properties in the model are valid
|
206
178
|
# @return true if the model is valid
|
207
179
|
def valid?
|
208
|
-
return false if @alignment.nil?
|
209
180
|
alignment_validator = EnumAttributeValidator.new('String', ['Center', 'Inset', 'NotDefined'])
|
210
181
|
return false unless alignment_validator.valid?(@alignment)
|
211
|
-
return false if @cap_style.nil?
|
212
182
|
cap_style_validator = EnumAttributeValidator.new('String', ['Round', 'Square', 'Flat', 'NotDefined'])
|
213
183
|
return false unless cap_style_validator.valid?(@cap_style)
|
214
|
-
return false if @dash_style.nil?
|
215
184
|
dash_style_validator = EnumAttributeValidator.new('String', ['Solid', 'Dot', 'Dash', 'LargeDash', 'DashDot', 'LargeDashDot', 'LargeDashDotDot', 'SystemDash', 'SystemDot', 'SystemDashDot', 'SystemDashDotDot', 'Custom', 'NotDefined'])
|
216
185
|
return false unless dash_style_validator.valid?(@dash_style)
|
217
|
-
return false if @join_style.nil?
|
218
186
|
join_style_validator = EnumAttributeValidator.new('String', ['Round', 'Bevel', 'Miter', 'NotDefined'])
|
219
187
|
return false unless join_style_validator.valid?(@join_style)
|
220
|
-
return false if @style.nil?
|
221
188
|
style_validator = EnumAttributeValidator.new('String', ['Single', 'ThinThin', 'ThinThick', 'ThickThin', 'ThickBetweenThin', 'NotDefined'])
|
222
189
|
return false unless style_validator.valid?(@style)
|
223
|
-
return false if @miter_limit.nil?
|
224
|
-
return false if @width.nil?
|
225
190
|
true
|
226
191
|
end
|
227
192
|
|
@@ -311,15 +276,27 @@ module AsposeSlidesCloud
|
|
311
276
|
def build_from_hash(attributes)
|
312
277
|
return nil unless attributes.is_a?(Hash)
|
313
278
|
self.class.swagger_types.each_pair do |key, type|
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
if
|
318
|
-
|
279
|
+
mapKey = self.class.attribute_map[key]
|
280
|
+
if !mapKey.nil?
|
281
|
+
val = attributes[mapKey]
|
282
|
+
if val.nil?
|
283
|
+
mapKeyString = mapKey.to_s
|
284
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
285
|
+
mapKey = mapKeyString.to_sym
|
286
|
+
val = attributes[mapKey]
|
319
287
|
end
|
320
|
-
|
321
|
-
|
322
|
-
|
288
|
+
if !val.nil?
|
289
|
+
if type =~ /\AArray<(.*)>/i
|
290
|
+
# check to ensure the input is an array given that the the attribute
|
291
|
+
# is documented as an array but the input is not
|
292
|
+
if val.is_a?(Array)
|
293
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
294
|
+
end
|
295
|
+
else
|
296
|
+
self.send("#{key}=", _deserialize(type, val))
|
297
|
+
end
|
298
|
+
end
|
299
|
+
end
|
323
300
|
end
|
324
301
|
|
325
302
|
self
|
@@ -140,15 +140,27 @@ module AsposeSlidesCloud
|
|
140
140
|
def build_from_hash(attributes)
|
141
141
|
return nil unless attributes.is_a?(Hash)
|
142
142
|
self.class.swagger_types.each_pair do |key, type|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
if
|
147
|
-
|
143
|
+
mapKey = self.class.attribute_map[key]
|
144
|
+
if !mapKey.nil?
|
145
|
+
val = attributes[mapKey]
|
146
|
+
if val.nil?
|
147
|
+
mapKeyString = mapKey.to_s
|
148
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
149
|
+
mapKey = mapKeyString.to_sym
|
150
|
+
val = attributes[mapKey]
|
148
151
|
end
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
+
if !val.nil?
|
153
|
+
if type =~ /\AArray<(.*)>/i
|
154
|
+
# check to ensure the input is an array given that the the attribute
|
155
|
+
# is documented as an array but the input is not
|
156
|
+
if val.is_a?(Array)
|
157
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
158
|
+
end
|
159
|
+
else
|
160
|
+
self.send("#{key}=", _deserialize(type, val))
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
152
164
|
end
|
153
165
|
|
154
166
|
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
|
@@ -147,15 +147,27 @@ module AsposeSlidesCloud
|
|
147
147
|
def build_from_hash(attributes)
|
148
148
|
return nil unless attributes.is_a?(Hash)
|
149
149
|
self.class.swagger_types.each_pair do |key, type|
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
if
|
154
|
-
|
150
|
+
mapKey = self.class.attribute_map[key]
|
151
|
+
if !mapKey.nil?
|
152
|
+
val = attributes[mapKey]
|
153
|
+
if val.nil?
|
154
|
+
mapKeyString = mapKey.to_s
|
155
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
156
|
+
mapKey = mapKeyString.to_sym
|
157
|
+
val = attributes[mapKey]
|
155
158
|
end
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
+
if !val.nil?
|
160
|
+
if type =~ /\AArray<(.*)>/i
|
161
|
+
# check to ensure the input is an array given that the the attribute
|
162
|
+
# is documented as an array but the input is not
|
163
|
+
if val.is_a?(Array)
|
164
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
165
|
+
end
|
166
|
+
else
|
167
|
+
self.send("#{key}=", _deserialize(type, val))
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
159
171
|
end
|
160
172
|
|
161
173
|
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
|
@@ -135,15 +135,27 @@ module AsposeSlidesCloud
|
|
135
135
|
def build_from_hash(attributes)
|
136
136
|
return nil unless attributes.is_a?(Hash)
|
137
137
|
self.class.swagger_types.each_pair do |key, type|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
if
|
142
|
-
|
138
|
+
mapKey = self.class.attribute_map[key]
|
139
|
+
if !mapKey.nil?
|
140
|
+
val = attributes[mapKey]
|
141
|
+
if val.nil?
|
142
|
+
mapKeyString = mapKey.to_s
|
143
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
144
|
+
mapKey = mapKeyString.to_sym
|
145
|
+
val = attributes[mapKey]
|
143
146
|
end
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
+
if !val.nil?
|
148
|
+
if type =~ /\AArray<(.*)>/i
|
149
|
+
# check to ensure the input is an array given that the the attribute
|
150
|
+
# is documented as an array but the input is not
|
151
|
+
if val.is_a?(Array)
|
152
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
153
|
+
end
|
154
|
+
else
|
155
|
+
self.send("#{key}=", _deserialize(type, val))
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
147
159
|
end
|
148
160
|
|
149
161
|
self
|