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.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/lib/aspose_slides_cloud.rb +8 -0
  4. data/lib/aspose_slides_cloud/api/slides_api.rb +2156 -525
  5. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +792 -124
  6. data/lib/aspose_slides_cloud/api_client.rb +7 -3
  7. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +20 -8
  8. data/lib/aspose_slides_cloud/models/add_master_slide.rb +20 -8
  9. data/lib/aspose_slides_cloud/models/add_shape.rb +20 -8
  10. data/lib/aspose_slides_cloud/models/add_slide.rb +20 -8
  11. data/lib/aspose_slides_cloud/models/api_info.rb +20 -8
  12. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +20 -23
  13. data/lib/aspose_slides_cloud/models/audio_frame.rb +20 -8
  14. data/lib/aspose_slides_cloud/models/axes.rb +20 -8
  15. data/lib/aspose_slides_cloud/models/axis.rb +20 -168
  16. data/lib/aspose_slides_cloud/models/base64_input_file.rb +20 -8
  17. data/lib/aspose_slides_cloud/models/blur_effect.rb +20 -8
  18. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +504 -0
  19. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +20 -8
  20. data/lib/aspose_slides_cloud/models/bubble_series.rb +24 -45
  21. data/lib/aspose_slides_cloud/models/chart.rb +23 -11
  22. data/lib/aspose_slides_cloud/models/chart_category.rb +249 -0
  23. data/lib/aspose_slides_cloud/models/chart_title.rb +20 -8
  24. data/lib/aspose_slides_cloud/models/chart_wall.rb +20 -18
  25. data/lib/aspose_slides_cloud/models/color_scheme.rb +20 -8
  26. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
  27. data/lib/aspose_slides_cloud/models/connector.rb +20 -8
  28. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +20 -8
  29. data/lib/aspose_slides_cloud/models/disc_usage.rb +20 -8
  30. data/lib/aspose_slides_cloud/models/document.rb +31 -9
  31. data/lib/aspose_slides_cloud/models/document_properties.rb +20 -8
  32. data/lib/aspose_slides_cloud/models/document_property.rb +20 -8
  33. data/lib/aspose_slides_cloud/models/document_replace_result.rb +31 -9
  34. data/lib/aspose_slides_cloud/models/effect.rb +20 -8
  35. data/lib/aspose_slides_cloud/models/effect_format.rb +20 -8
  36. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  37. data/lib/aspose_slides_cloud/models/error.rb +20 -8
  38. data/lib/aspose_slides_cloud/models/error_details.rb +20 -8
  39. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  40. data/lib/aspose_slides_cloud/models/export_options.rb +20 -8
  41. data/lib/aspose_slides_cloud/models/file_version.rb +20 -8
  42. data/lib/aspose_slides_cloud/models/file_versions.rb +20 -8
  43. data/lib/aspose_slides_cloud/models/files_list.rb +20 -8
  44. data/lib/aspose_slides_cloud/models/files_upload_result.rb +20 -8
  45. data/lib/aspose_slides_cloud/models/fill_format.rb +20 -8
  46. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +20 -8
  47. data/lib/aspose_slides_cloud/models/font_scheme.rb +20 -8
  48. data/lib/aspose_slides_cloud/models/font_set.rb +20 -8
  49. data/lib/aspose_slides_cloud/models/format_scheme.rb +20 -8
  50. data/lib/aspose_slides_cloud/models/geometry_shape.rb +20 -8
  51. data/lib/aspose_slides_cloud/models/glow_effect.rb +20 -8
  52. data/lib/aspose_slides_cloud/models/gradient_fill.rb +20 -8
  53. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +20 -8
  54. data/lib/aspose_slides_cloud/models/graphical_object.rb +20 -8
  55. data/lib/aspose_slides_cloud/models/group_shape.rb +20 -8
  56. data/lib/aspose_slides_cloud/models/html_export_options.rb +20 -8
  57. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +20 -8
  58. data/lib/aspose_slides_cloud/models/image.rb +20 -8
  59. data/lib/aspose_slides_cloud/models/image_export_options.rb +20 -8
  60. data/lib/aspose_slides_cloud/models/images.rb +20 -8
  61. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +20 -8
  62. data/lib/aspose_slides_cloud/models/input.rb +20 -8
  63. data/lib/aspose_slides_cloud/models/input_file.rb +20 -8
  64. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +20 -8
  65. data/lib/aspose_slides_cloud/models/layout_slide.rb +20 -8
  66. data/lib/aspose_slides_cloud/models/layout_slides.rb +20 -8
  67. data/lib/aspose_slides_cloud/models/legend.rb +20 -38
  68. data/lib/aspose_slides_cloud/models/line_format.rb +20 -43
  69. data/lib/aspose_slides_cloud/models/master_slide.rb +20 -8
  70. data/lib/aspose_slides_cloud/models/master_slides.rb +20 -8
  71. data/lib/aspose_slides_cloud/models/merge.rb +20 -8
  72. data/lib/aspose_slides_cloud/models/merging_source.rb +20 -8
  73. data/lib/aspose_slides_cloud/models/no_fill.rb +20 -8
  74. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +217 -0
  75. data/lib/aspose_slides_cloud/models/notes_slide.rb +20 -8
  76. data/lib/aspose_slides_cloud/models/object_exist.rb +20 -8
  77. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +20 -8
  78. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +20 -8
  79. data/lib/aspose_slides_cloud/models/one_value_series.rb +24 -45
  80. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +20 -8
  81. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +20 -8
  82. data/lib/aspose_slides_cloud/models/output_file.rb +20 -8
  83. data/lib/aspose_slides_cloud/models/paragraph.rb +21 -9
  84. data/lib/aspose_slides_cloud/models/paragraphs.rb +20 -8
  85. data/lib/aspose_slides_cloud/models/path_input_file.rb +20 -8
  86. data/lib/aspose_slides_cloud/models/path_output_file.rb +20 -8
  87. data/lib/aspose_slides_cloud/models/pattern_fill.rb +20 -8
  88. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +53 -14
  89. data/lib/aspose_slides_cloud/models/picture_fill.rb +20 -8
  90. data/lib/aspose_slides_cloud/models/picture_frame.rb +20 -8
  91. data/lib/aspose_slides_cloud/models/pipeline.rb +20 -8
  92. data/lib/aspose_slides_cloud/models/placeholder.rb +20 -8
  93. data/lib/aspose_slides_cloud/models/placeholders.rb +20 -8
  94. data/lib/aspose_slides_cloud/models/plot_area.rb +20 -33
  95. data/lib/aspose_slides_cloud/models/portion.rb +20 -8
  96. data/lib/aspose_slides_cloud/models/portions.rb +28 -16
  97. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +20 -8
  98. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +20 -8
  99. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +20 -8
  100. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +20 -8
  101. data/lib/aspose_slides_cloud/models/reflection_effect.rb +20 -8
  102. data/lib/aspose_slides_cloud/models/remove_shape.rb +20 -8
  103. data/lib/aspose_slides_cloud/models/remove_slide.rb +20 -8
  104. data/lib/aspose_slides_cloud/models/reorder_slide.rb +20 -8
  105. data/lib/aspose_slides_cloud/models/replace_text.rb +20 -8
  106. data/lib/aspose_slides_cloud/models/request_input_file.rb +20 -8
  107. data/lib/aspose_slides_cloud/models/reset_slide.rb +20 -8
  108. data/lib/aspose_slides_cloud/models/resource_base.rb +20 -8
  109. data/lib/aspose_slides_cloud/models/resource_uri.rb +20 -8
  110. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +20 -8
  111. data/lib/aspose_slides_cloud/models/response_output_file.rb +20 -8
  112. data/lib/aspose_slides_cloud/models/save.rb +22 -10
  113. data/lib/aspose_slides_cloud/models/save_shape.rb +20 -8
  114. data/lib/aspose_slides_cloud/models/save_slide.rb +22 -10
  115. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +20 -8
  116. data/lib/aspose_slides_cloud/models/scatter_series.rb +24 -45
  117. data/lib/aspose_slides_cloud/models/series.rb +47 -49
  118. data/lib/aspose_slides_cloud/models/series_marker.rb +20 -18
  119. data/lib/aspose_slides_cloud/models/shape.rb +20 -8
  120. data/lib/aspose_slides_cloud/models/shape_base.rb +20 -8
  121. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +20 -8
  122. data/lib/aspose_slides_cloud/models/shapes.rb +20 -8
  123. data/lib/aspose_slides_cloud/models/slide.rb +20 -8
  124. data/lib/aspose_slides_cloud/models/slide_animation.rb +20 -8
  125. data/lib/aspose_slides_cloud/models/slide_background.rb +20 -8
  126. data/lib/aspose_slides_cloud/models/slide_comment.rb +20 -8
  127. data/lib/aspose_slides_cloud/models/slide_comments.rb +20 -8
  128. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  129. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +20 -8
  130. data/lib/aspose_slides_cloud/models/slides.rb +20 -8
  131. data/lib/aspose_slides_cloud/models/smart_art.rb +20 -8
  132. data/lib/aspose_slides_cloud/models/smart_art_node.rb +20 -8
  133. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +20 -8
  134. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +20 -8
  135. data/lib/aspose_slides_cloud/models/solid_fill.rb +20 -8
  136. data/lib/aspose_slides_cloud/models/split_document_result.rb +20 -8
  137. data/lib/aspose_slides_cloud/models/storage_exist.rb +20 -8
  138. data/lib/aspose_slides_cloud/models/storage_file.rb +20 -8
  139. data/lib/aspose_slides_cloud/models/svg_export_options.rb +20 -8
  140. data/lib/aspose_slides_cloud/models/swf_export_options.rb +20 -8
  141. data/lib/aspose_slides_cloud/models/table.rb +20 -48
  142. data/lib/aspose_slides_cloud/models/table_cell.rb +20 -48
  143. data/lib/aspose_slides_cloud/models/table_column.rb +20 -8
  144. data/lib/aspose_slides_cloud/models/table_row.rb +20 -8
  145. data/lib/aspose_slides_cloud/models/task.rb +20 -8
  146. data/lib/aspose_slides_cloud/models/text_item.rb +20 -8
  147. data/lib/aspose_slides_cloud/models/text_items.rb +20 -8
  148. data/lib/aspose_slides_cloud/models/theme.rb +20 -8
  149. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +20 -8
  150. data/lib/aspose_slides_cloud/models/update_background.rb +20 -8
  151. data/lib/aspose_slides_cloud/models/update_shape.rb +20 -8
  152. data/lib/aspose_slides_cloud/models/video_frame.rb +20 -8
  153. data/lib/aspose_slides_cloud/models/view_properties.rb +379 -0
  154. data/lib/aspose_slides_cloud/models/waterfall_series.rb +452 -0
  155. data/lib/aspose_slides_cloud/models/xps_export_options.rb +20 -8
  156. data/lib/aspose_slides_cloud/version.rb +1 -1
  157. data/spec/api/slides_api_spec.rb +17214 -12046
  158. data/spec/extra/extra_spec.rb +111 -9
  159. data/spec/spec_utils.rb +8 -1
  160. data/testRules.json +80 -8
  161. metadata +9 -2
@@ -366,15 +366,27 @@ module AsposeSlidesCloud
366
366
  def build_from_hash(attributes)
367
367
  return nil unless attributes.is_a?(Hash)
368
368
  self.class.swagger_types.each_pair do |key, type|
369
- if type =~ /\AArray<(.*)>/i
370
- # check to ensure the input is an array given that the the attribute
371
- # is documented as an array but the input is not
372
- if attributes[self.class.attribute_map[key]].is_a?(Array)
373
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
369
+ mapKey = self.class.attribute_map[key]
370
+ if !mapKey.nil?
371
+ val = attributes[mapKey]
372
+ if val.nil?
373
+ mapKeyString = mapKey.to_s
374
+ mapKeyString[0] = mapKeyString[0].downcase
375
+ mapKey = mapKeyString.to_sym
376
+ val = attributes[mapKey]
374
377
  end
375
- elsif !attributes[self.class.attribute_map[key]].nil?
376
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
377
- end # or else data not found in attributes(hash), not an issue as the data can be optional
378
+ if !val.nil?
379
+ if type =~ /\AArray<(.*)>/i
380
+ # check to ensure the input is an array given that the the attribute
381
+ # is documented as an array but the input is not
382
+ if val.is_a?(Array)
383
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
384
+ end
385
+ else
386
+ self.send("#{key}=", _deserialize(type, val))
387
+ end
388
+ end
389
+ end
378
390
  end
379
391
 
380
392
  self
@@ -305,15 +305,27 @@ module AsposeSlidesCloud
305
305
  def build_from_hash(attributes)
306
306
  return nil unless attributes.is_a?(Hash)
307
307
  self.class.swagger_types.each_pair do |key, type|
308
- if type =~ /\AArray<(.*)>/i
309
- # check to ensure the input is an array given that the the attribute
310
- # is documented as an array but the input is not
311
- if attributes[self.class.attribute_map[key]].is_a?(Array)
312
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
308
+ mapKey = self.class.attribute_map[key]
309
+ if !mapKey.nil?
310
+ val = attributes[mapKey]
311
+ if val.nil?
312
+ mapKeyString = mapKey.to_s
313
+ mapKeyString[0] = mapKeyString[0].downcase
314
+ mapKey = mapKeyString.to_sym
315
+ val = attributes[mapKey]
313
316
  end
314
- elsif !attributes[self.class.attribute_map[key]].nil?
315
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
316
- end # or else data not found in attributes(hash), not an issue as the data can be optional
317
+ if !val.nil?
318
+ if type =~ /\AArray<(.*)>/i
319
+ # check to ensure the input is an array given that the the attribute
320
+ # is documented as an array but the input is not
321
+ if val.is_a?(Array)
322
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
323
+ end
324
+ else
325
+ self.send("#{key}=", _deserialize(type, val))
326
+ end
327
+ end
328
+ end
317
329
  end
318
330
 
319
331
  self
@@ -173,15 +173,27 @@ module AsposeSlidesCloud
173
173
  def build_from_hash(attributes)
174
174
  return nil unless attributes.is_a?(Hash)
175
175
  self.class.swagger_types.each_pair do |key, type|
176
- if type =~ /\AArray<(.*)>/i
177
- # check to ensure the input is an array given that the the attribute
178
- # is documented as an array but the input is not
179
- if attributes[self.class.attribute_map[key]].is_a?(Array)
180
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
176
+ mapKey = self.class.attribute_map[key]
177
+ if !mapKey.nil?
178
+ val = attributes[mapKey]
179
+ if val.nil?
180
+ mapKeyString = mapKey.to_s
181
+ mapKeyString[0] = mapKeyString[0].downcase
182
+ mapKey = mapKeyString.to_sym
183
+ val = attributes[mapKey]
181
184
  end
182
- elsif !attributes[self.class.attribute_map[key]].nil?
183
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
184
- end # or else data not found in attributes(hash), not an issue as the data can be optional
185
+ if !val.nil?
186
+ if type =~ /\AArray<(.*)>/i
187
+ # check to ensure the input is an array given that the the attribute
188
+ # is documented as an array but the input is not
189
+ if val.is_a?(Array)
190
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
191
+ end
192
+ else
193
+ self.send("#{key}=", _deserialize(type, val))
194
+ end
195
+ end
196
+ end
185
197
  end
186
198
 
187
199
  self
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
118
118
  def build_from_hash(attributes)
119
119
  return nil unless attributes.is_a?(Hash)
120
120
  self.class.swagger_types.each_pair do |key, type|
121
- 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 attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
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
- elsif !attributes[self.class.attribute_map[key]].nil?
128
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
- end # or else data not found in attributes(hash), not an issue as the data can be optional
130
+ if !val.nil?
131
+ if type =~ /\AArray<(.*)>/i
132
+ # check to ensure the input is an array given that the the attribute
133
+ # is documented as an array but the input is not
134
+ if val.is_a?(Array)
135
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
136
+ end
137
+ else
138
+ self.send("#{key}=", _deserialize(type, val))
139
+ end
140
+ end
141
+ end
130
142
  end
131
143
 
132
144
  self
@@ -231,15 +231,27 @@ module AsposeSlidesCloud
231
231
  def build_from_hash(attributes)
232
232
  return nil unless attributes.is_a?(Hash)
233
233
  self.class.swagger_types.each_pair do |key, type|
234
- if type =~ /\AArray<(.*)>/i
235
- # check to ensure the input is an array given that the the attribute
236
- # is documented as an array but the input is not
237
- if attributes[self.class.attribute_map[key]].is_a?(Array)
238
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
234
+ mapKey = self.class.attribute_map[key]
235
+ if !mapKey.nil?
236
+ val = attributes[mapKey]
237
+ if val.nil?
238
+ mapKeyString = mapKey.to_s
239
+ mapKeyString[0] = mapKeyString[0].downcase
240
+ mapKey = mapKeyString.to_sym
241
+ val = attributes[mapKey]
239
242
  end
240
- elsif !attributes[self.class.attribute_map[key]].nil?
241
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
242
- end # or else data not found in attributes(hash), not an issue as the data can be optional
243
+ if !val.nil?
244
+ if type =~ /\AArray<(.*)>/i
245
+ # check to ensure the input is an array given that the the attribute
246
+ # is documented as an array but the input is not
247
+ if val.is_a?(Array)
248
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
249
+ end
250
+ else
251
+ self.send("#{key}=", _deserialize(type, val))
252
+ end
253
+ end
254
+ end
243
255
  end
244
256
 
245
257
  self
@@ -130,15 +130,27 @@ module AsposeSlidesCloud
130
130
  def build_from_hash(attributes)
131
131
  return nil unless attributes.is_a?(Hash)
132
132
  self.class.swagger_types.each_pair do |key, type|
133
- if type =~ /\AArray<(.*)>/i
134
- # check to ensure the input is an array given that the the attribute
135
- # is documented as an array but the input is not
136
- if attributes[self.class.attribute_map[key]].is_a?(Array)
137
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
133
+ mapKey = self.class.attribute_map[key]
134
+ if !mapKey.nil?
135
+ val = attributes[mapKey]
136
+ if val.nil?
137
+ mapKeyString = mapKey.to_s
138
+ mapKeyString[0] = mapKeyString[0].downcase
139
+ mapKey = mapKeyString.to_sym
140
+ val = attributes[mapKey]
138
141
  end
139
- elsif !attributes[self.class.attribute_map[key]].nil?
140
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
141
- end # or else data not found in attributes(hash), not an issue as the data can be optional
142
+ if !val.nil?
143
+ if type =~ /\AArray<(.*)>/i
144
+ # check to ensure the input is an array given that the the attribute
145
+ # is documented as an array but the input is not
146
+ if val.is_a?(Array)
147
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
148
+ end
149
+ else
150
+ self.send("#{key}=", _deserialize(type, val))
151
+ end
152
+ end
153
+ end
142
154
  end
143
155
 
144
156
  self
@@ -175,15 +175,27 @@ module AsposeSlidesCloud
175
175
  def build_from_hash(attributes)
176
176
  return nil unless attributes.is_a?(Hash)
177
177
  self.class.swagger_types.each_pair do |key, type|
178
- 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 attributes[self.class.attribute_map[key]].is_a?(Array)
182
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
178
+ mapKey = self.class.attribute_map[key]
179
+ if !mapKey.nil?
180
+ val = attributes[mapKey]
181
+ if val.nil?
182
+ mapKeyString = mapKey.to_s
183
+ mapKeyString[0] = mapKeyString[0].downcase
184
+ mapKey = mapKeyString.to_sym
185
+ val = attributes[mapKey]
183
186
  end
184
- elsif !attributes[self.class.attribute_map[key]].nil?
185
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
186
- end # or else data not found in attributes(hash), not an issue as the data can be optional
187
+ if !val.nil?
188
+ if type =~ /\AArray<(.*)>/i
189
+ # check to ensure the input is an array given that the the attribute
190
+ # is documented as an array but the input is not
191
+ if val.is_a?(Array)
192
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
193
+ end
194
+ else
195
+ self.send("#{key}=", _deserialize(type, val))
196
+ end
197
+ end
198
+ end
187
199
  end
188
200
 
189
201
  self
@@ -126,15 +126,27 @@ module AsposeSlidesCloud
126
126
  def build_from_hash(attributes)
127
127
  return nil unless attributes.is_a?(Hash)
128
128
  self.class.swagger_types.each_pair do |key, type|
129
- 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 attributes[self.class.attribute_map[key]].is_a?(Array)
133
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ mapKey = self.class.attribute_map[key]
130
+ if !mapKey.nil?
131
+ val = attributes[mapKey]
132
+ if val.nil?
133
+ mapKeyString = mapKey.to_s
134
+ mapKeyString[0] = mapKeyString[0].downcase
135
+ mapKey = mapKeyString.to_sym
136
+ val = attributes[mapKey]
134
137
  end
135
- elsif !attributes[self.class.attribute_map[key]].nil?
136
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
137
- end # or else data not found in attributes(hash), not an issue as the data can be optional
138
+ if !val.nil?
139
+ if type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the the attribute
141
+ # is documented as an array but the input is not
142
+ if val.is_a?(Array)
143
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
144
+ end
145
+ else
146
+ self.send("#{key}=", _deserialize(type, val))
147
+ end
148
+ end
149
+ end
138
150
  end
139
151
 
140
152
  self
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
118
118
  def build_from_hash(attributes)
119
119
  return nil unless attributes.is_a?(Hash)
120
120
  self.class.swagger_types.each_pair do |key, type|
121
- 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 attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
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
- elsif !attributes[self.class.attribute_map[key]].nil?
128
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
- end # or else data not found in attributes(hash), not an issue as the data can be optional
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
@@ -45,6 +45,7 @@ module AsposeSlidesCloud
45
45
  POT = "Pot".freeze
46
46
  POTM = "Potm".freeze
47
47
  SVG = "Svg".freeze
48
+ FODP = "Fodp".freeze
48
49
 
49
50
  # Builds the enum from string
50
51
  # @param [String] The enum value in the form of the string
@@ -246,15 +246,27 @@ module AsposeSlidesCloud
246
246
  def build_from_hash(attributes)
247
247
  return nil unless attributes.is_a?(Hash)
248
248
  self.class.swagger_types.each_pair do |key, type|
249
- if type =~ /\AArray<(.*)>/i
250
- # check to ensure the input is an array given that the the attribute
251
- # is documented as an array but the input is not
252
- if attributes[self.class.attribute_map[key]].is_a?(Array)
253
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
249
+ mapKey = self.class.attribute_map[key]
250
+ if !mapKey.nil?
251
+ val = attributes[mapKey]
252
+ if val.nil?
253
+ mapKeyString = mapKey.to_s
254
+ mapKeyString[0] = mapKeyString[0].downcase
255
+ mapKey = mapKeyString.to_sym
256
+ val = attributes[mapKey]
254
257
  end
255
- elsif !attributes[self.class.attribute_map[key]].nil?
256
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
257
- end # or else data not found in attributes(hash), not an issue as the data can be optional
258
+ if !val.nil?
259
+ if type =~ /\AArray<(.*)>/i
260
+ # check to ensure the input is an array given that the the attribute
261
+ # is documented as an array but the input is not
262
+ if val.is_a?(Array)
263
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
264
+ end
265
+ else
266
+ self.send("#{key}=", _deserialize(type, val))
267
+ end
268
+ end
269
+ end
258
270
  end
259
271
 
260
272
  self
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
118
118
  def build_from_hash(attributes)
119
119
  return nil unless attributes.is_a?(Hash)
120
120
  self.class.swagger_types.each_pair do |key, type|
121
- 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 attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
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
- elsif !attributes[self.class.attribute_map[key]].nil?
128
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
- end # or else data not found in attributes(hash), not an issue as the data can be optional
130
+ if !val.nil?
131
+ if type =~ /\AArray<(.*)>/i
132
+ # check to ensure the input is an array given that the the attribute
133
+ # is documented as an array but the input is not
134
+ if val.is_a?(Array)
135
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
136
+ end
137
+ else
138
+ self.send("#{key}=", _deserialize(type, val))
139
+ end
140
+ end
141
+ end
130
142
  end
131
143
 
132
144
  self
@@ -429,15 +429,27 @@ module AsposeSlidesCloud
429
429
  def build_from_hash(attributes)
430
430
  return nil unless attributes.is_a?(Hash)
431
431
  self.class.swagger_types.each_pair do |key, type|
432
- if type =~ /\AArray<(.*)>/i
433
- # check to ensure the input is an array given that the the attribute
434
- # is documented as an array but the input is not
435
- if attributes[self.class.attribute_map[key]].is_a?(Array)
436
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
432
+ mapKey = self.class.attribute_map[key]
433
+ if !mapKey.nil?
434
+ val = attributes[mapKey]
435
+ if val.nil?
436
+ mapKeyString = mapKey.to_s
437
+ mapKeyString[0] = mapKeyString[0].downcase
438
+ mapKey = mapKeyString.to_sym
439
+ val = attributes[mapKey]
437
440
  end
438
- elsif !attributes[self.class.attribute_map[key]].nil?
439
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
440
- end # or else data not found in attributes(hash), not an issue as the data can be optional
441
+ if !val.nil?
442
+ if type =~ /\AArray<(.*)>/i
443
+ # check to ensure the input is an array given that the the attribute
444
+ # is documented as an array but the input is not
445
+ if val.is_a?(Array)
446
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
447
+ end
448
+ else
449
+ self.send("#{key}=", _deserialize(type, val))
450
+ end
451
+ end
452
+ end
441
453
  end
442
454
 
443
455
  self
@@ -180,15 +180,27 @@ module AsposeSlidesCloud
180
180
  def build_from_hash(attributes)
181
181
  return nil unless attributes.is_a?(Hash)
182
182
  self.class.swagger_types.each_pair do |key, type|
183
- if type =~ /\AArray<(.*)>/i
184
- # check to ensure the input is an array given that the the attribute
185
- # is documented as an array but the input is not
186
- if attributes[self.class.attribute_map[key]].is_a?(Array)
187
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
183
+ mapKey = self.class.attribute_map[key]
184
+ if !mapKey.nil?
185
+ val = attributes[mapKey]
186
+ if val.nil?
187
+ mapKeyString = mapKey.to_s
188
+ mapKeyString[0] = mapKeyString[0].downcase
189
+ mapKey = mapKeyString.to_sym
190
+ val = attributes[mapKey]
188
191
  end
189
- elsif !attributes[self.class.attribute_map[key]].nil?
190
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
191
- end # or else data not found in attributes(hash), not an issue as the data can be optional
192
+ if !val.nil?
193
+ if type =~ /\AArray<(.*)>/i
194
+ # check to ensure the input is an array given that the the attribute
195
+ # is documented as an array but the input is not
196
+ if val.is_a?(Array)
197
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
198
+ end
199
+ else
200
+ self.send("#{key}=", _deserialize(type, val))
201
+ end
202
+ end
203
+ end
192
204
  end
193
205
 
194
206
  self