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
@@ -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
|
@@ -144,37 +144,12 @@ module AsposeSlidesCloud
|
|
144
144
|
# @return Array for valid properties with the reasons
|
145
145
|
def list_invalid_properties
|
146
146
|
invalid_properties = Array.new
|
147
|
-
if @x.nil?
|
148
|
-
invalid_properties.push('invalid value for "x", x cannot be nil.')
|
149
|
-
end
|
150
|
-
|
151
|
-
if @y.nil?
|
152
|
-
invalid_properties.push('invalid value for "y", y cannot be nil.')
|
153
|
-
end
|
154
|
-
|
155
|
-
if @width.nil?
|
156
|
-
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
157
|
-
end
|
158
|
-
|
159
|
-
if @height.nil?
|
160
|
-
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
161
|
-
end
|
162
|
-
|
163
|
-
if @layout_target_type.nil?
|
164
|
-
invalid_properties.push('invalid value for "layout_target_type", layout_target_type cannot be nil.')
|
165
|
-
end
|
166
|
-
|
167
147
|
invalid_properties
|
168
148
|
end
|
169
149
|
|
170
150
|
# Check to see if the all the properties in the model are valid
|
171
151
|
# @return true if the model is valid
|
172
152
|
def valid?
|
173
|
-
return false if @x.nil?
|
174
|
-
return false if @y.nil?
|
175
|
-
return false if @width.nil?
|
176
|
-
return false if @height.nil?
|
177
|
-
return false if @layout_target_type.nil?
|
178
153
|
layout_target_type_validator = EnumAttributeValidator.new('String', ['Inner', 'Outer'])
|
179
154
|
return false unless layout_target_type_validator.valid?(@layout_target_type)
|
180
155
|
true
|
@@ -223,15 +198,27 @@ module AsposeSlidesCloud
|
|
223
198
|
def build_from_hash(attributes)
|
224
199
|
return nil unless attributes.is_a?(Hash)
|
225
200
|
self.class.swagger_types.each_pair do |key, type|
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
if
|
230
|
-
|
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]
|
209
|
+
end
|
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
|
231
220
|
end
|
232
|
-
|
233
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
234
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
221
|
+
end
|
235
222
|
end
|
236
223
|
|
237
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
|
@@ -32,14 +32,14 @@ module AsposeSlidesCloud
|
|
32
32
|
attr_accessor :alternate_links
|
33
33
|
|
34
34
|
# List of portion links.
|
35
|
-
attr_accessor :
|
35
|
+
attr_accessor :items
|
36
36
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
38
|
def self.attribute_map
|
39
39
|
{
|
40
40
|
:'self_uri' => :'SelfUri',
|
41
41
|
:'alternate_links' => :'AlternateLinks',
|
42
|
-
:'
|
42
|
+
:'items' => :'Items'
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
@@ -48,7 +48,7 @@ module AsposeSlidesCloud
|
|
48
48
|
{
|
49
49
|
:'self_uri' => :'ResourceUri',
|
50
50
|
:'alternate_links' => :'Array<ResourceUri>',
|
51
|
-
:'
|
51
|
+
:'items' => :'Array<Portion>'
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
@@ -70,9 +70,9 @@ module AsposeSlidesCloud
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
if (value = attributes[:'
|
75
|
-
self.
|
73
|
+
if attributes.has_key?(:'Items')
|
74
|
+
if (value = attributes[:'Items']).is_a?(Array)
|
75
|
+
self.items = value
|
76
76
|
end
|
77
77
|
end
|
78
78
|
end
|
@@ -97,7 +97,7 @@ module AsposeSlidesCloud
|
|
97
97
|
self.class == o.class &&
|
98
98
|
self_uri == o.self_uri &&
|
99
99
|
alternate_links == o.alternate_links &&
|
100
|
-
|
100
|
+
items == o.items
|
101
101
|
end
|
102
102
|
|
103
103
|
# @see the `==` method
|
@@ -109,7 +109,7 @@ module AsposeSlidesCloud
|
|
109
109
|
# Calculates hash code according to all attributes.
|
110
110
|
# @return [Fixnum] Hash code
|
111
111
|
def hash
|
112
|
-
[self_uri, alternate_links,
|
112
|
+
[self_uri, alternate_links, items].hash
|
113
113
|
end
|
114
114
|
|
115
115
|
# Builds the object from hash
|
@@ -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
|
@@ -145,15 +145,27 @@ module AsposeSlidesCloud
|
|
145
145
|
def build_from_hash(attributes)
|
146
146
|
return nil unless attributes.is_a?(Hash)
|
147
147
|
self.class.swagger_types.each_pair do |key, type|
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
if
|
152
|
-
|
148
|
+
mapKey = self.class.attribute_map[key]
|
149
|
+
if !mapKey.nil?
|
150
|
+
val = attributes[mapKey]
|
151
|
+
if val.nil?
|
152
|
+
mapKeyString = mapKey.to_s
|
153
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
154
|
+
mapKey = mapKeyString.to_sym
|
155
|
+
val = attributes[mapKey]
|
153
156
|
end
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
+
if !val.nil?
|
158
|
+
if type =~ /\AArray<(.*)>/i
|
159
|
+
# check to ensure the input is an array given that the the attribute
|
160
|
+
# is documented as an array but the input is not
|
161
|
+
if val.is_a?(Array)
|
162
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
163
|
+
end
|
164
|
+
else
|
165
|
+
self.send("#{key}=", _deserialize(type, val))
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
157
169
|
end
|
158
170
|
|
159
171
|
self
|
@@ -116,15 +116,27 @@ module AsposeSlidesCloud
|
|
116
116
|
def build_from_hash(attributes)
|
117
117
|
return nil unless attributes.is_a?(Hash)
|
118
118
|
self.class.swagger_types.each_pair do |key, type|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
if
|
123
|
-
|
119
|
+
mapKey = self.class.attribute_map[key]
|
120
|
+
if !mapKey.nil?
|
121
|
+
val = attributes[mapKey]
|
122
|
+
if val.nil?
|
123
|
+
mapKeyString = mapKey.to_s
|
124
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
125
|
+
mapKey = mapKeyString.to_sym
|
126
|
+
val = attributes[mapKey]
|
124
127
|
end
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
+
if !val.nil?
|
129
|
+
if type =~ /\AArray<(.*)>/i
|
130
|
+
# check to ensure the input is an array given that the the attribute
|
131
|
+
# is documented as an array but the input is not
|
132
|
+
if val.is_a?(Array)
|
133
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
134
|
+
end
|
135
|
+
else
|
136
|
+
self.send("#{key}=", _deserialize(type, val))
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
128
140
|
end
|
129
141
|
|
130
142
|
self
|
@@ -108,15 +108,27 @@ module AsposeSlidesCloud
|
|
108
108
|
def build_from_hash(attributes)
|
109
109
|
return nil unless attributes.is_a?(Hash)
|
110
110
|
self.class.swagger_types.each_pair do |key, type|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
if
|
115
|
-
|
111
|
+
mapKey = self.class.attribute_map[key]
|
112
|
+
if !mapKey.nil?
|
113
|
+
val = attributes[mapKey]
|
114
|
+
if val.nil?
|
115
|
+
mapKeyString = mapKey.to_s
|
116
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
117
|
+
mapKey = mapKeyString.to_sym
|
118
|
+
val = attributes[mapKey]
|
116
119
|
end
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
+
if !val.nil?
|
121
|
+
if type =~ /\AArray<(.*)>/i
|
122
|
+
# check to ensure the input is an array given that the the attribute
|
123
|
+
# is documented as an array but the input is not
|
124
|
+
if val.is_a?(Array)
|
125
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
126
|
+
end
|
127
|
+
else
|
128
|
+
self.send("#{key}=", _deserialize(type, val))
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
120
132
|
end
|
121
133
|
|
122
134
|
self
|