aspose_slides_cloud 22.10.0 → 22.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (258) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -7
  3. data/README.md +6 -0
  4. data/lib/aspose_slides_cloud/api/slides_api.rb +4 -4
  5. data/lib/aspose_slides_cloud/api_client.rb +1 -1
  6. data/lib/aspose_slides_cloud/configuration.rb +1 -1
  7. data/lib/aspose_slides_cloud/models/accent_element.rb +41 -37
  8. data/lib/aspose_slides_cloud/models/access_permissions.rb +40 -36
  9. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +41 -37
  10. data/lib/aspose_slides_cloud/models/add_master_slide.rb +41 -37
  11. data/lib/aspose_slides_cloud/models/add_shape.rb +41 -37
  12. data/lib/aspose_slides_cloud/models/add_slide.rb +41 -37
  13. data/lib/aspose_slides_cloud/models/alpha_bi_level_effect.rb +41 -37
  14. data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +41 -37
  15. data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +41 -37
  16. data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +41 -37
  17. data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +41 -37
  18. data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +41 -37
  19. data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +41 -37
  20. data/lib/aspose_slides_cloud/models/api_info.rb +40 -36
  21. data/lib/aspose_slides_cloud/models/arc_to_path_segment.rb +41 -37
  22. data/lib/aspose_slides_cloud/models/array_element.rb +41 -37
  23. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +40 -36
  24. data/lib/aspose_slides_cloud/models/audio_frame.rb +41 -37
  25. data/lib/aspose_slides_cloud/models/axes.rb +40 -36
  26. data/lib/aspose_slides_cloud/models/axis.rb +40 -36
  27. data/lib/aspose_slides_cloud/models/axis_type.rb +4 -4
  28. data/lib/aspose_slides_cloud/models/bar_element.rb +41 -37
  29. data/lib/aspose_slides_cloud/models/base64_input_file.rb +41 -37
  30. data/lib/aspose_slides_cloud/models/bi_level_effect.rb +41 -37
  31. data/lib/aspose_slides_cloud/models/block_element.rb +41 -37
  32. data/lib/aspose_slides_cloud/models/blur_effect.rb +40 -36
  33. data/lib/aspose_slides_cloud/models/blur_image_effect.rb +41 -37
  34. data/lib/aspose_slides_cloud/models/border_box_element.rb +41 -37
  35. data/lib/aspose_slides_cloud/models/box_element.rb +41 -37
  36. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +78 -43
  37. data/lib/aspose_slides_cloud/models/bubble_series.rb +56 -39
  38. data/lib/aspose_slides_cloud/models/camera.rb +40 -36
  39. data/lib/aspose_slides_cloud/models/chart.rb +52 -38
  40. data/lib/aspose_slides_cloud/models/chart_category.rb +40 -36
  41. data/lib/aspose_slides_cloud/models/chart_lines_format.rb +40 -36
  42. data/lib/aspose_slides_cloud/models/chart_series_group.rb +40 -36
  43. data/lib/aspose_slides_cloud/models/chart_title.rb +40 -36
  44. data/lib/aspose_slides_cloud/models/chart_wall.rb +40 -36
  45. data/lib/aspose_slides_cloud/models/chart_wall_type.rb +3 -3
  46. data/lib/aspose_slides_cloud/models/close_path_segment.rb +41 -37
  47. data/lib/aspose_slides_cloud/models/color_change_effect.rb +41 -37
  48. data/lib/aspose_slides_cloud/models/color_replace_effect.rb +41 -37
  49. data/lib/aspose_slides_cloud/models/color_scheme.rb +40 -36
  50. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +40 -36
  51. data/lib/aspose_slides_cloud/models/connector.rb +41 -37
  52. data/lib/aspose_slides_cloud/models/cubic_bezier_to_path_segment.rb +41 -37
  53. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +40 -36
  54. data/lib/aspose_slides_cloud/models/data_point.rb +85 -38
  55. data/lib/aspose_slides_cloud/models/data_source.rb +248 -0
  56. data/lib/aspose_slides_cloud/models/delimiter_element.rb +41 -37
  57. data/lib/aspose_slides_cloud/models/disc_usage.rb +40 -36
  58. data/lib/aspose_slides_cloud/models/document.rb +40 -36
  59. data/lib/aspose_slides_cloud/models/document_properties.rb +40 -36
  60. data/lib/aspose_slides_cloud/models/document_property.rb +40 -36
  61. data/lib/aspose_slides_cloud/models/document_replace_result.rb +40 -36
  62. data/lib/aspose_slides_cloud/models/duotone_effect.rb +41 -37
  63. data/lib/aspose_slides_cloud/models/effect.rb +40 -36
  64. data/lib/aspose_slides_cloud/models/effect_format.rb +40 -36
  65. data/lib/aspose_slides_cloud/models/entity_exists.rb +40 -36
  66. data/lib/aspose_slides_cloud/models/error.rb +40 -36
  67. data/lib/aspose_slides_cloud/models/error_details.rb +40 -36
  68. data/lib/aspose_slides_cloud/models/export_format.rb +25 -25
  69. data/lib/aspose_slides_cloud/models/export_options.rb +40 -36
  70. data/lib/aspose_slides_cloud/models/file_version.rb +40 -36
  71. data/lib/aspose_slides_cloud/models/file_versions.rb +40 -36
  72. data/lib/aspose_slides_cloud/models/files_list.rb +40 -36
  73. data/lib/aspose_slides_cloud/models/files_upload_result.rb +40 -36
  74. data/lib/aspose_slides_cloud/models/fill_format.rb +40 -36
  75. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +40 -36
  76. data/lib/aspose_slides_cloud/models/fill_overlay_image_effect.rb +41 -37
  77. data/lib/aspose_slides_cloud/models/font_data.rb +40 -36
  78. data/lib/aspose_slides_cloud/models/font_fallback_rule.rb +40 -36
  79. data/lib/aspose_slides_cloud/models/font_scheme.rb +40 -36
  80. data/lib/aspose_slides_cloud/models/font_set.rb +40 -36
  81. data/lib/aspose_slides_cloud/models/font_subst_rule.rb +40 -36
  82. data/lib/aspose_slides_cloud/models/fonts_data.rb +40 -36
  83. data/lib/aspose_slides_cloud/models/format_scheme.rb +40 -36
  84. data/lib/aspose_slides_cloud/models/fraction_element.rb +41 -37
  85. data/lib/aspose_slides_cloud/models/function_element.rb +41 -37
  86. data/lib/aspose_slides_cloud/models/geometry_path.rb +40 -36
  87. data/lib/aspose_slides_cloud/models/geometry_paths.rb +40 -36
  88. data/lib/aspose_slides_cloud/models/geometry_shape.rb +40 -36
  89. data/lib/aspose_slides_cloud/models/gif_export_options.rb +41 -37
  90. data/lib/aspose_slides_cloud/models/glow_effect.rb +40 -36
  91. data/lib/aspose_slides_cloud/models/gradient_fill.rb +41 -37
  92. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +40 -36
  93. data/lib/aspose_slides_cloud/models/graphical_object.rb +42 -38
  94. data/lib/aspose_slides_cloud/models/gray_scale_effect.rb +41 -37
  95. data/lib/aspose_slides_cloud/models/group_shape.rb +41 -37
  96. data/lib/aspose_slides_cloud/models/grouping_character_element.rb +41 -37
  97. data/lib/aspose_slides_cloud/models/header_footer.rb +40 -36
  98. data/lib/aspose_slides_cloud/models/hsl_effect.rb +41 -37
  99. data/lib/aspose_slides_cloud/models/html5_export_options.rb +41 -37
  100. data/lib/aspose_slides_cloud/models/html_export_options.rb +41 -37
  101. data/lib/aspose_slides_cloud/models/hyperlink.rb +40 -36
  102. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +40 -36
  103. data/lib/aspose_slides_cloud/models/image.rb +40 -36
  104. data/lib/aspose_slides_cloud/models/image_export_format.rb +5 -5
  105. data/lib/aspose_slides_cloud/models/image_export_options.rb +41 -37
  106. data/lib/aspose_slides_cloud/models/image_export_options_base.rb +40 -36
  107. data/lib/aspose_slides_cloud/models/image_transform_effect.rb +40 -36
  108. data/lib/aspose_slides_cloud/models/images.rb +40 -36
  109. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +40 -36
  110. data/lib/aspose_slides_cloud/models/input.rb +40 -36
  111. data/lib/aspose_slides_cloud/models/input_file.rb +40 -36
  112. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +40 -36
  113. data/lib/aspose_slides_cloud/models/layout_slide.rb +40 -36
  114. data/lib/aspose_slides_cloud/models/layout_slides.rb +40 -36
  115. data/lib/aspose_slides_cloud/models/left_sub_superscript_element.rb +41 -37
  116. data/lib/aspose_slides_cloud/models/legend.rb +40 -36
  117. data/lib/aspose_slides_cloud/models/light_rig.rb +40 -36
  118. data/lib/aspose_slides_cloud/models/limit_element.rb +41 -37
  119. data/lib/aspose_slides_cloud/models/line_format.rb +40 -36
  120. data/lib/aspose_slides_cloud/models/line_to_path_segment.rb +41 -37
  121. data/lib/aspose_slides_cloud/models/literals.rb +227 -0
  122. data/lib/aspose_slides_cloud/models/luminance_effect.rb +41 -37
  123. data/lib/aspose_slides_cloud/models/master_slide.rb +40 -36
  124. data/lib/aspose_slides_cloud/models/master_slides.rb +40 -36
  125. data/lib/aspose_slides_cloud/models/math_element.rb +40 -36
  126. data/lib/aspose_slides_cloud/models/math_paragraph.rb +40 -36
  127. data/lib/aspose_slides_cloud/models/matrix_element.rb +41 -37
  128. data/lib/aspose_slides_cloud/models/merge.rb +41 -37
  129. data/lib/aspose_slides_cloud/models/merging_source.rb +40 -36
  130. data/lib/aspose_slides_cloud/models/move_to_path_segment.rb +41 -37
  131. data/lib/aspose_slides_cloud/models/nary_operator_element.rb +41 -37
  132. data/lib/aspose_slides_cloud/models/no_fill.rb +41 -37
  133. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +40 -36
  134. data/lib/aspose_slides_cloud/models/notes_slide.rb +40 -36
  135. data/lib/aspose_slides_cloud/models/notes_slide_export_format.rb +23 -23
  136. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +40 -36
  137. data/lib/aspose_slides_cloud/models/object_exist.rb +40 -36
  138. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +41 -37
  139. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +75 -42
  140. data/lib/aspose_slides_cloud/models/one_value_series.rb +53 -38
  141. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +40 -36
  142. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +40 -36
  143. data/lib/aspose_slides_cloud/models/output_file.rb +40 -36
  144. data/lib/aspose_slides_cloud/models/paragraph.rb +40 -36
  145. data/lib/aspose_slides_cloud/models/paragraphs.rb +40 -36
  146. data/lib/aspose_slides_cloud/models/path_input_file.rb +41 -37
  147. data/lib/aspose_slides_cloud/models/path_output_file.rb +41 -37
  148. data/lib/aspose_slides_cloud/models/path_segment.rb +40 -36
  149. data/lib/aspose_slides_cloud/models/pattern_fill.rb +41 -37
  150. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +41 -37
  151. data/lib/aspose_slides_cloud/models/picture_fill.rb +41 -37
  152. data/lib/aspose_slides_cloud/models/picture_frame.rb +41 -37
  153. data/lib/aspose_slides_cloud/models/pipeline.rb +40 -36
  154. data/lib/aspose_slides_cloud/models/placeholder.rb +40 -36
  155. data/lib/aspose_slides_cloud/models/placeholders.rb +40 -36
  156. data/lib/aspose_slides_cloud/models/plot_area.rb +40 -36
  157. data/lib/aspose_slides_cloud/models/portion.rb +40 -36
  158. data/lib/aspose_slides_cloud/models/portion_format.rb +40 -36
  159. data/lib/aspose_slides_cloud/models/portions.rb +40 -36
  160. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +41 -37
  161. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +40 -36
  162. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +40 -36
  163. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +40 -36
  164. data/lib/aspose_slides_cloud/models/protection_properties.rb +40 -36
  165. data/lib/aspose_slides_cloud/models/quadratic_bezier_to_path_segment.rb +41 -37
  166. data/lib/aspose_slides_cloud/models/radical_element.rb +41 -37
  167. data/lib/aspose_slides_cloud/models/reflection_effect.rb +40 -36
  168. data/lib/aspose_slides_cloud/models/remove_shape.rb +41 -37
  169. data/lib/aspose_slides_cloud/models/remove_slide.rb +41 -37
  170. data/lib/aspose_slides_cloud/models/reorder_slide.rb +41 -37
  171. data/lib/aspose_slides_cloud/models/replace_text.rb +41 -37
  172. data/lib/aspose_slides_cloud/models/request_input_file.rb +41 -37
  173. data/lib/aspose_slides_cloud/models/reset_slide.rb +41 -37
  174. data/lib/aspose_slides_cloud/models/resource_base.rb +40 -36
  175. data/lib/aspose_slides_cloud/models/resource_uri.rb +40 -36
  176. data/lib/aspose_slides_cloud/models/response_output_file.rb +41 -37
  177. data/lib/aspose_slides_cloud/models/right_sub_superscript_element.rb +41 -37
  178. data/lib/aspose_slides_cloud/models/save.rb +41 -37
  179. data/lib/aspose_slides_cloud/models/save_shape.rb +41 -37
  180. data/lib/aspose_slides_cloud/models/save_slide.rb +41 -37
  181. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +86 -48
  182. data/lib/aspose_slides_cloud/models/scatter_series.rb +45 -38
  183. data/lib/aspose_slides_cloud/models/section.rb +40 -36
  184. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +41 -37
  185. data/lib/aspose_slides_cloud/models/sections.rb +40 -36
  186. data/lib/aspose_slides_cloud/models/series.rb +51 -37
  187. data/lib/aspose_slides_cloud/models/series_marker.rb +40 -36
  188. data/lib/aspose_slides_cloud/models/shape.rb +41 -37
  189. data/lib/aspose_slides_cloud/models/shape_base.rb +40 -36
  190. data/lib/aspose_slides_cloud/models/shape_bevel.rb +40 -36
  191. data/lib/aspose_slides_cloud/models/shape_export_format.rb +6 -6
  192. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +40 -36
  193. data/lib/aspose_slides_cloud/models/shape_thumbnail_bounds.rb +3 -3
  194. data/lib/aspose_slides_cloud/models/shape_type.rb +16 -16
  195. data/lib/aspose_slides_cloud/models/shapes.rb +40 -36
  196. data/lib/aspose_slides_cloud/models/shapes_alignment_type.rb +8 -8
  197. data/lib/aspose_slides_cloud/models/slide.rb +40 -36
  198. data/lib/aspose_slides_cloud/models/slide_animation.rb +40 -36
  199. data/lib/aspose_slides_cloud/models/slide_background.rb +40 -36
  200. data/lib/aspose_slides_cloud/models/slide_comment.rb +41 -37
  201. data/lib/aspose_slides_cloud/models/slide_comment_base.rb +40 -36
  202. data/lib/aspose_slides_cloud/models/slide_comments.rb +40 -36
  203. data/lib/aspose_slides_cloud/models/slide_export_format.rb +23 -23
  204. data/lib/aspose_slides_cloud/models/slide_modern_comment.rb +41 -37
  205. data/lib/aspose_slides_cloud/models/slide_properties.rb +40 -36
  206. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +40 -36
  207. data/lib/aspose_slides_cloud/models/slide_show_properties.rb +40 -36
  208. data/lib/aspose_slides_cloud/models/slides.rb +40 -36
  209. data/lib/aspose_slides_cloud/models/smart_art.rb +41 -37
  210. data/lib/aspose_slides_cloud/models/smart_art_node.rb +40 -36
  211. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +41 -37
  212. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +40 -36
  213. data/lib/aspose_slides_cloud/models/solid_fill.rb +41 -37
  214. data/lib/aspose_slides_cloud/models/special_slide_type.rb +3 -3
  215. data/lib/aspose_slides_cloud/models/split_document_result.rb +40 -36
  216. data/lib/aspose_slides_cloud/models/storage_exist.rb +40 -36
  217. data/lib/aspose_slides_cloud/models/storage_file.rb +40 -36
  218. data/lib/aspose_slides_cloud/models/subscript_element.rb +41 -37
  219. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +41 -37
  220. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +41 -37
  221. data/lib/aspose_slides_cloud/models/superscript_element.rb +41 -37
  222. data/lib/aspose_slides_cloud/models/svg_export_options.rb +63 -39
  223. data/lib/aspose_slides_cloud/models/swf_export_options.rb +41 -37
  224. data/lib/aspose_slides_cloud/models/table.rb +41 -37
  225. data/lib/aspose_slides_cloud/models/table_cell.rb +40 -36
  226. data/lib/aspose_slides_cloud/models/table_column.rb +40 -36
  227. data/lib/aspose_slides_cloud/models/table_row.rb +40 -36
  228. data/lib/aspose_slides_cloud/models/task.rb +40 -36
  229. data/lib/aspose_slides_cloud/models/text_bounds.rb +40 -36
  230. data/lib/aspose_slides_cloud/models/text_element.rb +41 -37
  231. data/lib/aspose_slides_cloud/models/text_frame_format.rb +40 -36
  232. data/lib/aspose_slides_cloud/models/text_item.rb +40 -36
  233. data/lib/aspose_slides_cloud/models/text_items.rb +40 -36
  234. data/lib/aspose_slides_cloud/models/theme.rb +40 -36
  235. data/lib/aspose_slides_cloud/models/three_d_format.rb +40 -36
  236. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +41 -37
  237. data/lib/aspose_slides_cloud/models/tint_effect.rb +41 -37
  238. data/lib/aspose_slides_cloud/models/update_background.rb +41 -37
  239. data/lib/aspose_slides_cloud/models/update_shape.rb +41 -37
  240. data/lib/aspose_slides_cloud/models/video_export_options.rb +41 -37
  241. data/lib/aspose_slides_cloud/models/video_frame.rb +41 -37
  242. data/lib/aspose_slides_cloud/models/view_properties.rb +40 -36
  243. data/lib/aspose_slides_cloud/models/workbook.rb +272 -0
  244. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +41 -37
  245. data/lib/aspose_slides_cloud/models/xps_export_options.rb +41 -37
  246. data/lib/aspose_slides_cloud/models/xy_series.rb +63 -38
  247. data/lib/aspose_slides_cloud/models/zoom_frame.rb +41 -37
  248. data/lib/aspose_slides_cloud/models/zoom_object.rb +40 -36
  249. data/lib/aspose_slides_cloud/type_registry.rb +197 -190
  250. data/lib/aspose_slides_cloud/version.rb +1 -1
  251. data/lib/aspose_slides_cloud.rb +123 -120
  252. data/spec/api/slides_api_spec.rb +3518 -3518
  253. data/spec/spec_utils.rb +88 -51
  254. data/spec/use_cases/chart_spec.rb +159 -1
  255. data/spec/use_cases/nullable_field_spec.rb +7 -0
  256. data/spec/use_cases/shape_spec.rb +13 -19
  257. data/testRules.json +138 -545
  258. metadata +5 -2
@@ -200,44 +200,48 @@ module AsposeSlidesCloud
200
200
  # @param string value Value to be deserialized
201
201
  # @return [Object] Deserialized data
202
202
  def _deserialize(type, value)
203
- case type.to_sym
204
- when :DateTime
205
- DateTime.parse(value)
206
- when :Date
207
- Date.parse(value)
208
- when :String
209
- value.to_s
210
- when :Integer
211
- value.to_i
212
- when :Float
213
- value.to_f
214
- when :BOOLEAN
215
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
216
- true
217
- else
218
- false
219
- end
220
- when :Object
221
- # generic object (usually a Hash), return directly
222
- value
223
- when /\AArray<(?<inner_type>.+)>\z/
224
- inner_type = Regexp.last_match[:inner_type]
225
- value.map { |v| _deserialize(inner_type, v) }
226
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
227
- k_type = Regexp.last_match[:k_type]
228
- v_type = Regexp.last_match[:v_type]
229
- {}.tap do |hash|
230
- value.each do |k, v|
231
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
203
+ if value.nil?
204
+ nil
205
+ else
206
+ case type.to_sym
207
+ when :DateTime
208
+ DateTime.parse(value)
209
+ when :Date
210
+ Date.parse(value)
211
+ when :String
212
+ value.to_s
213
+ when :Integer
214
+ value.to_i
215
+ when :Float
216
+ value.to_f
217
+ when :BOOLEAN
218
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
219
+ true
220
+ else
221
+ false
232
222
  end
223
+ when :Object
224
+ # generic object (usually a Hash), return directly
225
+ value
226
+ when /\AArray<(?<inner_type>.+)>\z/
227
+ inner_type = Regexp.last_match[:inner_type]
228
+ value.map { |v| _deserialize(inner_type, v) }
229
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
230
+ k_type = Regexp.last_match[:k_type]
231
+ v_type = Regexp.last_match[:v_type]
232
+ {}.tap do |hash|
233
+ value.each do |k, v|
234
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
235
+ end
236
+ end
237
+ else # model
238
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
239
+ if registry_type
240
+ type = registry_type
241
+ end
242
+ temp_model = AsposeSlidesCloud.const_get(type).new
243
+ temp_model.build_from_hash(value)
233
244
  end
234
- else # model
235
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
236
- if registry_type
237
- type = registry_type
238
- end
239
- temp_model = AsposeSlidesCloud.const_get(type).new
240
- temp_model.build_from_hash(value)
241
245
  end
242
246
  end
243
247
 
@@ -127,44 +127,48 @@ module AsposeSlidesCloud
127
127
  # @param string value Value to be deserialized
128
128
  # @return [Object] Deserialized data
129
129
  def _deserialize(type, value)
130
- case type.to_sym
131
- when :DateTime
132
- DateTime.parse(value)
133
- when :Date
134
- Date.parse(value)
135
- when :String
136
- value.to_s
137
- when :Integer
138
- value.to_i
139
- when :Float
140
- value.to_f
141
- when :BOOLEAN
142
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
- true
144
- else
145
- false
146
- end
147
- when :Object
148
- # generic object (usually a Hash), return directly
149
- value
150
- when /\AArray<(?<inner_type>.+)>\z/
151
- inner_type = Regexp.last_match[:inner_type]
152
- value.map { |v| _deserialize(inner_type, v) }
153
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
- k_type = Regexp.last_match[:k_type]
155
- v_type = Regexp.last_match[:v_type]
156
- {}.tap do |hash|
157
- value.each do |k, v|
158
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
130
+ if value.nil?
131
+ nil
132
+ else
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :BOOLEAN
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
159
149
  end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
166
+ if registry_type
167
+ type = registry_type
168
+ end
169
+ temp_model = AsposeSlidesCloud.const_get(type).new
170
+ temp_model.build_from_hash(value)
160
171
  end
161
- else # model
162
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
163
- if registry_type
164
- type = registry_type
165
- end
166
- temp_model = AsposeSlidesCloud.const_get(type).new
167
- temp_model.build_from_hash(value)
168
172
  end
169
173
  end
170
174
 
@@ -25,29 +25,29 @@ require 'date'
25
25
  module AsposeSlidesCloud
26
26
  class SlideExportFormat
27
27
 
28
- JPEG = "Jpeg".freeze
29
- PNG = "Png".freeze
30
- GIF = "Gif".freeze
31
- BMP = "Bmp".freeze
32
- TIFF = "Tiff".freeze
33
- HTML = "Html".freeze
34
- PDF = "Pdf".freeze
35
- XPS = "Xps".freeze
36
- PPTX = "Pptx".freeze
37
- ODP = "Odp".freeze
38
- OTP = "Otp".freeze
39
- PPT = "Ppt".freeze
40
- PPS = "Pps".freeze
41
- PPSX = "Ppsx".freeze
42
- PPTM = "Pptm".freeze
43
- PPSM = "Ppsm".freeze
44
- POTX = "Potx".freeze
45
- POT = "Pot".freeze
46
- POTM = "Potm".freeze
47
- SVG = "Svg".freeze
48
- FODP = "Fodp".freeze
49
- XAML = "Xaml".freeze
50
- HTML5 = "Html5".freeze
28
+ JPEG = 'Jpeg'.freeze
29
+ PNG = 'Png'.freeze
30
+ GIF = 'Gif'.freeze
31
+ BMP = 'Bmp'.freeze
32
+ TIFF = 'Tiff'.freeze
33
+ HTML = 'Html'.freeze
34
+ PDF = 'Pdf'.freeze
35
+ XPS = 'Xps'.freeze
36
+ PPTX = 'Pptx'.freeze
37
+ ODP = 'Odp'.freeze
38
+ OTP = 'Otp'.freeze
39
+ PPT = 'Ppt'.freeze
40
+ PPS = 'Pps'.freeze
41
+ PPSX = 'Ppsx'.freeze
42
+ PPTM = 'Pptm'.freeze
43
+ PPSM = 'Ppsm'.freeze
44
+ POTX = 'Potx'.freeze
45
+ POT = 'Pot'.freeze
46
+ POTM = 'Potm'.freeze
47
+ SVG = 'Svg'.freeze
48
+ FODP = 'Fodp'.freeze
49
+ XAML = 'Xaml'.freeze
50
+ HTML5 = 'Html5'.freeze
51
51
 
52
52
  # Builds the enum from string
53
53
  # @param [String] The enum value in the form of the string
@@ -90,7 +90,7 @@ module AsposeSlidesCloud
90
90
  if attributes.has_key?(:'Status')
91
91
  self.status = attributes[:'Status']
92
92
  end
93
- self.type = "Modern"
93
+ self.type = 'Modern'
94
94
  end
95
95
 
96
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -183,44 +183,48 @@ module AsposeSlidesCloud
183
183
  # @param string value Value to be deserialized
184
184
  # @return [Object] Deserialized data
185
185
  def _deserialize(type, value)
186
- case type.to_sym
187
- when :DateTime
188
- DateTime.parse(value)
189
- when :Date
190
- Date.parse(value)
191
- when :String
192
- value.to_s
193
- when :Integer
194
- value.to_i
195
- when :Float
196
- value.to_f
197
- when :BOOLEAN
198
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
199
- true
200
- else
201
- false
202
- end
203
- when :Object
204
- # generic object (usually a Hash), return directly
205
- value
206
- when /\AArray<(?<inner_type>.+)>\z/
207
- inner_type = Regexp.last_match[:inner_type]
208
- value.map { |v| _deserialize(inner_type, v) }
209
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
210
- k_type = Regexp.last_match[:k_type]
211
- v_type = Regexp.last_match[:v_type]
212
- {}.tap do |hash|
213
- value.each do |k, v|
214
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
186
+ if value.nil?
187
+ nil
188
+ else
189
+ case type.to_sym
190
+ when :DateTime
191
+ DateTime.parse(value)
192
+ when :Date
193
+ Date.parse(value)
194
+ when :String
195
+ value.to_s
196
+ when :Integer
197
+ value.to_i
198
+ when :Float
199
+ value.to_f
200
+ when :BOOLEAN
201
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
202
+ true
203
+ else
204
+ false
215
205
  end
206
+ when :Object
207
+ # generic object (usually a Hash), return directly
208
+ value
209
+ when /\AArray<(?<inner_type>.+)>\z/
210
+ inner_type = Regexp.last_match[:inner_type]
211
+ value.map { |v| _deserialize(inner_type, v) }
212
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
213
+ k_type = Regexp.last_match[:k_type]
214
+ v_type = Regexp.last_match[:v_type]
215
+ {}.tap do |hash|
216
+ value.each do |k, v|
217
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
218
+ end
219
+ end
220
+ else # model
221
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
222
+ if registry_type
223
+ type = registry_type
224
+ end
225
+ temp_model = AsposeSlidesCloud.const_get(type).new
226
+ temp_model.build_from_hash(value)
216
227
  end
217
- else # model
218
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
219
- if registry_type
220
- type = registry_type
221
- end
222
- temp_model = AsposeSlidesCloud.const_get(type).new
223
- temp_model.build_from_hash(value)
224
228
  end
225
229
  end
226
230
 
@@ -233,44 +233,48 @@ module AsposeSlidesCloud
233
233
  # @param string value Value to be deserialized
234
234
  # @return [Object] Deserialized data
235
235
  def _deserialize(type, value)
236
- case type.to_sym
237
- when :DateTime
238
- DateTime.parse(value)
239
- when :Date
240
- Date.parse(value)
241
- when :String
242
- value.to_s
243
- when :Integer
244
- value.to_i
245
- when :Float
246
- value.to_f
247
- when :BOOLEAN
248
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
249
- true
250
- else
251
- false
252
- end
253
- when :Object
254
- # generic object (usually a Hash), return directly
255
- value
256
- when /\AArray<(?<inner_type>.+)>\z/
257
- inner_type = Regexp.last_match[:inner_type]
258
- value.map { |v| _deserialize(inner_type, v) }
259
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
260
- k_type = Regexp.last_match[:k_type]
261
- v_type = Regexp.last_match[:v_type]
262
- {}.tap do |hash|
263
- value.each do |k, v|
264
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
236
+ if value.nil?
237
+ nil
238
+ else
239
+ case type.to_sym
240
+ when :DateTime
241
+ DateTime.parse(value)
242
+ when :Date
243
+ Date.parse(value)
244
+ when :String
245
+ value.to_s
246
+ when :Integer
247
+ value.to_i
248
+ when :Float
249
+ value.to_f
250
+ when :BOOLEAN
251
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
252
+ true
253
+ else
254
+ false
265
255
  end
256
+ when :Object
257
+ # generic object (usually a Hash), return directly
258
+ value
259
+ when /\AArray<(?<inner_type>.+)>\z/
260
+ inner_type = Regexp.last_match[:inner_type]
261
+ value.map { |v| _deserialize(inner_type, v) }
262
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
263
+ k_type = Regexp.last_match[:k_type]
264
+ v_type = Regexp.last_match[:v_type]
265
+ {}.tap do |hash|
266
+ value.each do |k, v|
267
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
268
+ end
269
+ end
270
+ else # model
271
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
272
+ if registry_type
273
+ type = registry_type
274
+ end
275
+ temp_model = AsposeSlidesCloud.const_get(type).new
276
+ temp_model.build_from_hash(value)
266
277
  end
267
- else # model
268
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
269
- if registry_type
270
- type = registry_type
271
- end
272
- temp_model = AsposeSlidesCloud.const_get(type).new
273
- temp_model.build_from_hash(value)
274
278
  end
275
279
  end
276
280
 
@@ -141,44 +141,48 @@ module AsposeSlidesCloud
141
141
  # @param string value Value to be deserialized
142
142
  # @return [Object] Deserialized data
143
143
  def _deserialize(type, value)
144
- case type.to_sym
145
- when :DateTime
146
- DateTime.parse(value)
147
- when :Date
148
- Date.parse(value)
149
- when :String
150
- value.to_s
151
- when :Integer
152
- value.to_i
153
- when :Float
154
- value.to_f
155
- when :BOOLEAN
156
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
- true
158
- else
159
- false
160
- end
161
- when :Object
162
- # generic object (usually a Hash), return directly
163
- value
164
- when /\AArray<(?<inner_type>.+)>\z/
165
- inner_type = Regexp.last_match[:inner_type]
166
- value.map { |v| _deserialize(inner_type, v) }
167
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
- k_type = Regexp.last_match[:k_type]
169
- v_type = Regexp.last_match[:v_type]
170
- {}.tap do |hash|
171
- value.each do |k, v|
172
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ if value.nil?
145
+ nil
146
+ else
147
+ case type.to_sym
148
+ when :DateTime
149
+ DateTime.parse(value)
150
+ when :Date
151
+ Date.parse(value)
152
+ when :String
153
+ value.to_s
154
+ when :Integer
155
+ value.to_i
156
+ when :Float
157
+ value.to_f
158
+ when :BOOLEAN
159
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
160
+ true
161
+ else
162
+ false
173
163
  end
164
+ when :Object
165
+ # generic object (usually a Hash), return directly
166
+ value
167
+ when /\AArray<(?<inner_type>.+)>\z/
168
+ inner_type = Regexp.last_match[:inner_type]
169
+ value.map { |v| _deserialize(inner_type, v) }
170
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
171
+ k_type = Regexp.last_match[:k_type]
172
+ v_type = Regexp.last_match[:v_type]
173
+ {}.tap do |hash|
174
+ value.each do |k, v|
175
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
176
+ end
177
+ end
178
+ else # model
179
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
180
+ if registry_type
181
+ type = registry_type
182
+ end
183
+ temp_model = AsposeSlidesCloud.const_get(type).new
184
+ temp_model.build_from_hash(value)
174
185
  end
175
- else # model
176
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
177
- if registry_type
178
- type = registry_type
179
- end
180
- temp_model = AsposeSlidesCloud.const_get(type).new
181
- temp_model.build_from_hash(value)
182
186
  end
183
187
  end
184
188
 
@@ -239,44 +239,48 @@ module AsposeSlidesCloud
239
239
  # @param string value Value to be deserialized
240
240
  # @return [Object] Deserialized data
241
241
  def _deserialize(type, value)
242
- case type.to_sym
243
- when :DateTime
244
- DateTime.parse(value)
245
- when :Date
246
- Date.parse(value)
247
- when :String
248
- value.to_s
249
- when :Integer
250
- value.to_i
251
- when :Float
252
- value.to_f
253
- when :BOOLEAN
254
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
255
- true
256
- else
257
- false
258
- end
259
- when :Object
260
- # generic object (usually a Hash), return directly
261
- value
262
- when /\AArray<(?<inner_type>.+)>\z/
263
- inner_type = Regexp.last_match[:inner_type]
264
- value.map { |v| _deserialize(inner_type, v) }
265
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
266
- k_type = Regexp.last_match[:k_type]
267
- v_type = Regexp.last_match[:v_type]
268
- {}.tap do |hash|
269
- value.each do |k, v|
270
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
242
+ if value.nil?
243
+ nil
244
+ else
245
+ case type.to_sym
246
+ when :DateTime
247
+ DateTime.parse(value)
248
+ when :Date
249
+ Date.parse(value)
250
+ when :String
251
+ value.to_s
252
+ when :Integer
253
+ value.to_i
254
+ when :Float
255
+ value.to_f
256
+ when :BOOLEAN
257
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
258
+ true
259
+ else
260
+ false
271
261
  end
262
+ when :Object
263
+ # generic object (usually a Hash), return directly
264
+ value
265
+ when /\AArray<(?<inner_type>.+)>\z/
266
+ inner_type = Regexp.last_match[:inner_type]
267
+ value.map { |v| _deserialize(inner_type, v) }
268
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
269
+ k_type = Regexp.last_match[:k_type]
270
+ v_type = Regexp.last_match[:v_type]
271
+ {}.tap do |hash|
272
+ value.each do |k, v|
273
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
274
+ end
275
+ end
276
+ else # model
277
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
278
+ if registry_type
279
+ type = registry_type
280
+ end
281
+ temp_model = AsposeSlidesCloud.const_get(type).new
282
+ temp_model.build_from_hash(value)
272
283
  end
273
- else # model
274
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
275
- if registry_type
276
- type = registry_type
277
- end
278
- temp_model = AsposeSlidesCloud.const_get(type).new
279
- temp_model.build_from_hash(value)
280
284
  end
281
285
  end
282
286
 
@@ -127,44 +127,48 @@ module AsposeSlidesCloud
127
127
  # @param string value Value to be deserialized
128
128
  # @return [Object] Deserialized data
129
129
  def _deserialize(type, value)
130
- case type.to_sym
131
- when :DateTime
132
- DateTime.parse(value)
133
- when :Date
134
- Date.parse(value)
135
- when :String
136
- value.to_s
137
- when :Integer
138
- value.to_i
139
- when :Float
140
- value.to_f
141
- when :BOOLEAN
142
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
- true
144
- else
145
- false
146
- end
147
- when :Object
148
- # generic object (usually a Hash), return directly
149
- value
150
- when /\AArray<(?<inner_type>.+)>\z/
151
- inner_type = Regexp.last_match[:inner_type]
152
- value.map { |v| _deserialize(inner_type, v) }
153
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
- k_type = Regexp.last_match[:k_type]
155
- v_type = Regexp.last_match[:v_type]
156
- {}.tap do |hash|
157
- value.each do |k, v|
158
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
130
+ if value.nil?
131
+ nil
132
+ else
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :BOOLEAN
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
159
149
  end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
166
+ if registry_type
167
+ type = registry_type
168
+ end
169
+ temp_model = AsposeSlidesCloud.const_get(type).new
170
+ temp_model.build_from_hash(value)
160
171
  end
161
- else # model
162
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
163
- if registry_type
164
- type = registry_type
165
- end
166
- temp_model = AsposeSlidesCloud.const_get(type).new
167
- temp_model.build_from_hash(value)
168
172
  end
169
173
  end
170
174