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
@@ -72,7 +72,7 @@ module AsposeSlidesCloud
72
72
  if attributes.has_key?(:'Shapes')
73
73
  self.shapes = attributes[:'Shapes']
74
74
  end
75
- self.type = "GroupShape"
75
+ self.type = 'GroupShape'
76
76
  end
77
77
 
78
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -164,44 +164,48 @@ module AsposeSlidesCloud
164
164
  # @param string value Value to be deserialized
165
165
  # @return [Object] Deserialized data
166
166
  def _deserialize(type, value)
167
- case type.to_sym
168
- when :DateTime
169
- DateTime.parse(value)
170
- when :Date
171
- Date.parse(value)
172
- when :String
173
- value.to_s
174
- when :Integer
175
- value.to_i
176
- when :Float
177
- value.to_f
178
- when :BOOLEAN
179
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
180
- true
181
- else
182
- false
183
- end
184
- when :Object
185
- # generic object (usually a Hash), return directly
186
- value
187
- when /\AArray<(?<inner_type>.+)>\z/
188
- inner_type = Regexp.last_match[:inner_type]
189
- value.map { |v| _deserialize(inner_type, v) }
190
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
191
- k_type = Regexp.last_match[:k_type]
192
- v_type = Regexp.last_match[:v_type]
193
- {}.tap do |hash|
194
- value.each do |k, v|
195
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
167
+ if value.nil?
168
+ nil
169
+ else
170
+ case type.to_sym
171
+ when :DateTime
172
+ DateTime.parse(value)
173
+ when :Date
174
+ Date.parse(value)
175
+ when :String
176
+ value.to_s
177
+ when :Integer
178
+ value.to_i
179
+ when :Float
180
+ value.to_f
181
+ when :BOOLEAN
182
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
183
+ true
184
+ else
185
+ false
196
186
  end
187
+ when :Object
188
+ # generic object (usually a Hash), return directly
189
+ value
190
+ when /\AArray<(?<inner_type>.+)>\z/
191
+ inner_type = Regexp.last_match[:inner_type]
192
+ value.map { |v| _deserialize(inner_type, v) }
193
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
194
+ k_type = Regexp.last_match[:k_type]
195
+ v_type = Regexp.last_match[:v_type]
196
+ {}.tap do |hash|
197
+ value.each do |k, v|
198
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
199
+ end
200
+ end
201
+ else # model
202
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
203
+ if registry_type
204
+ type = registry_type
205
+ end
206
+ temp_model = AsposeSlidesCloud.const_get(type).new
207
+ temp_model.build_from_hash(value)
197
208
  end
198
- else # model
199
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
200
- if registry_type
201
- type = registry_type
202
- end
203
- temp_model = AsposeSlidesCloud.const_get(type).new
204
- temp_model.build_from_hash(value)
205
209
  end
206
210
  end
207
211
 
@@ -99,7 +99,7 @@ module AsposeSlidesCloud
99
99
  if attributes.has_key?(:'VerticalJustification')
100
100
  self.vertical_justification = attributes[:'VerticalJustification']
101
101
  end
102
- self.type = "GroupingCharacter"
102
+ self.type = 'GroupingCharacter'
103
103
  end
104
104
 
105
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -201,44 +201,48 @@ module AsposeSlidesCloud
201
201
  # @param string value Value to be deserialized
202
202
  # @return [Object] Deserialized data
203
203
  def _deserialize(type, value)
204
- case type.to_sym
205
- when :DateTime
206
- DateTime.parse(value)
207
- when :Date
208
- Date.parse(value)
209
- when :String
210
- value.to_s
211
- when :Integer
212
- value.to_i
213
- when :Float
214
- value.to_f
215
- when :BOOLEAN
216
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
217
- true
218
- else
219
- false
220
- end
221
- when :Object
222
- # generic object (usually a Hash), return directly
223
- value
224
- when /\AArray<(?<inner_type>.+)>\z/
225
- inner_type = Regexp.last_match[:inner_type]
226
- value.map { |v| _deserialize(inner_type, v) }
227
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
228
- k_type = Regexp.last_match[:k_type]
229
- v_type = Regexp.last_match[:v_type]
230
- {}.tap do |hash|
231
- value.each do |k, v|
232
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
204
+ if value.nil?
205
+ nil
206
+ else
207
+ case type.to_sym
208
+ when :DateTime
209
+ DateTime.parse(value)
210
+ when :Date
211
+ Date.parse(value)
212
+ when :String
213
+ value.to_s
214
+ when :Integer
215
+ value.to_i
216
+ when :Float
217
+ value.to_f
218
+ when :BOOLEAN
219
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
220
+ true
221
+ else
222
+ false
233
223
  end
224
+ when :Object
225
+ # generic object (usually a Hash), return directly
226
+ value
227
+ when /\AArray<(?<inner_type>.+)>\z/
228
+ inner_type = Regexp.last_match[:inner_type]
229
+ value.map { |v| _deserialize(inner_type, v) }
230
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
231
+ k_type = Regexp.last_match[:k_type]
232
+ v_type = Regexp.last_match[:v_type]
233
+ {}.tap do |hash|
234
+ value.each do |k, v|
235
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
236
+ end
237
+ end
238
+ else # model
239
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
240
+ if registry_type
241
+ type = registry_type
242
+ end
243
+ temp_model = AsposeSlidesCloud.const_get(type).new
244
+ temp_model.build_from_hash(value)
234
245
  end
235
- else # model
236
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
237
- if registry_type
238
- type = registry_type
239
- end
240
- temp_model = AsposeSlidesCloud.const_get(type).new
241
- temp_model.build_from_hash(value)
242
246
  end
243
247
  end
244
248
 
@@ -165,44 +165,48 @@ module AsposeSlidesCloud
165
165
  # @param string value Value to be deserialized
166
166
  # @return [Object] Deserialized data
167
167
  def _deserialize(type, value)
168
- case type.to_sym
169
- when :DateTime
170
- DateTime.parse(value)
171
- when :Date
172
- Date.parse(value)
173
- when :String
174
- value.to_s
175
- when :Integer
176
- value.to_i
177
- when :Float
178
- value.to_f
179
- when :BOOLEAN
180
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
181
- true
182
- else
183
- false
184
- end
185
- when :Object
186
- # generic object (usually a Hash), return directly
187
- value
188
- when /\AArray<(?<inner_type>.+)>\z/
189
- inner_type = Regexp.last_match[:inner_type]
190
- value.map { |v| _deserialize(inner_type, v) }
191
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
192
- k_type = Regexp.last_match[:k_type]
193
- v_type = Regexp.last_match[:v_type]
194
- {}.tap do |hash|
195
- value.each do |k, v|
196
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
168
+ if value.nil?
169
+ nil
170
+ else
171
+ case type.to_sym
172
+ when :DateTime
173
+ DateTime.parse(value)
174
+ when :Date
175
+ Date.parse(value)
176
+ when :String
177
+ value.to_s
178
+ when :Integer
179
+ value.to_i
180
+ when :Float
181
+ value.to_f
182
+ when :BOOLEAN
183
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
184
+ true
185
+ else
186
+ false
197
187
  end
188
+ when :Object
189
+ # generic object (usually a Hash), return directly
190
+ value
191
+ when /\AArray<(?<inner_type>.+)>\z/
192
+ inner_type = Regexp.last_match[:inner_type]
193
+ value.map { |v| _deserialize(inner_type, v) }
194
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
195
+ k_type = Regexp.last_match[:k_type]
196
+ v_type = Regexp.last_match[:v_type]
197
+ {}.tap do |hash|
198
+ value.each do |k, v|
199
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
200
+ end
201
+ end
202
+ else # model
203
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
204
+ if registry_type
205
+ type = registry_type
206
+ end
207
+ temp_model = AsposeSlidesCloud.const_get(type).new
208
+ temp_model.build_from_hash(value)
198
209
  end
199
- else # model
200
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
201
- if registry_type
202
- type = registry_type
203
- end
204
- temp_model = AsposeSlidesCloud.const_get(type).new
205
- temp_model.build_from_hash(value)
206
210
  end
207
211
  end
208
212
 
@@ -90,7 +90,7 @@ module AsposeSlidesCloud
90
90
  if attributes.has_key?(:'Luminance')
91
91
  self.luminance = attributes[:'Luminance']
92
92
  end
93
- self.type = "Hsl"
93
+ self.type = 'Hsl'
94
94
  end
95
95
 
96
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -182,44 +182,48 @@ module AsposeSlidesCloud
182
182
  # @param string value Value to be deserialized
183
183
  # @return [Object] Deserialized data
184
184
  def _deserialize(type, value)
185
- case type.to_sym
186
- when :DateTime
187
- DateTime.parse(value)
188
- when :Date
189
- Date.parse(value)
190
- when :String
191
- value.to_s
192
- when :Integer
193
- value.to_i
194
- when :Float
195
- value.to_f
196
- when :BOOLEAN
197
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
198
- true
199
- else
200
- false
201
- end
202
- when :Object
203
- # generic object (usually a Hash), return directly
204
- value
205
- when /\AArray<(?<inner_type>.+)>\z/
206
- inner_type = Regexp.last_match[:inner_type]
207
- value.map { |v| _deserialize(inner_type, v) }
208
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
209
- k_type = Regexp.last_match[:k_type]
210
- v_type = Regexp.last_match[:v_type]
211
- {}.tap do |hash|
212
- value.each do |k, v|
213
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
185
+ if value.nil?
186
+ nil
187
+ else
188
+ case type.to_sym
189
+ when :DateTime
190
+ DateTime.parse(value)
191
+ when :Date
192
+ Date.parse(value)
193
+ when :String
194
+ value.to_s
195
+ when :Integer
196
+ value.to_i
197
+ when :Float
198
+ value.to_f
199
+ when :BOOLEAN
200
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
201
+ true
202
+ else
203
+ false
214
204
  end
205
+ when :Object
206
+ # generic object (usually a Hash), return directly
207
+ value
208
+ when /\AArray<(?<inner_type>.+)>\z/
209
+ inner_type = Regexp.last_match[:inner_type]
210
+ value.map { |v| _deserialize(inner_type, v) }
211
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
212
+ k_type = Regexp.last_match[:k_type]
213
+ v_type = Regexp.last_match[:v_type]
214
+ {}.tap do |hash|
215
+ value.each do |k, v|
216
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
217
+ end
218
+ end
219
+ else # model
220
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
221
+ if registry_type
222
+ type = registry_type
223
+ end
224
+ temp_model = AsposeSlidesCloud.const_get(type).new
225
+ temp_model.build_from_hash(value)
215
226
  end
216
- else # model
217
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
218
- if registry_type
219
- type = registry_type
220
- end
221
- temp_model = AsposeSlidesCloud.const_get(type).new
222
- temp_model.build_from_hash(value)
223
227
  end
224
228
  end
225
229
 
@@ -59,7 +59,7 @@ module AsposeSlidesCloud
59
59
  if attributes.has_key?(:'AnimateShapes')
60
60
  self.animate_shapes = attributes[:'AnimateShapes']
61
61
  end
62
- self.format = "html5"
62
+ self.format = 'html5'
63
63
  end
64
64
 
65
65
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -138,44 +138,48 @@ module AsposeSlidesCloud
138
138
  # @param string value Value to be deserialized
139
139
  # @return [Object] Deserialized data
140
140
  def _deserialize(type, value)
141
- case type.to_sym
142
- when :DateTime
143
- DateTime.parse(value)
144
- when :Date
145
- Date.parse(value)
146
- when :String
147
- value.to_s
148
- when :Integer
149
- value.to_i
150
- when :Float
151
- value.to_f
152
- when :BOOLEAN
153
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
- true
155
- else
156
- false
157
- end
158
- when :Object
159
- # generic object (usually a Hash), return directly
160
- value
161
- when /\AArray<(?<inner_type>.+)>\z/
162
- inner_type = Regexp.last_match[:inner_type]
163
- value.map { |v| _deserialize(inner_type, v) }
164
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
- k_type = Regexp.last_match[:k_type]
166
- v_type = Regexp.last_match[:v_type]
167
- {}.tap do |hash|
168
- value.each do |k, v|
169
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
141
+ if value.nil?
142
+ nil
143
+ else
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
170
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)
173
+ end
174
+ 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)
171
182
  end
172
- else # model
173
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
174
- if registry_type
175
- type = registry_type
176
- end
177
- temp_model = AsposeSlidesCloud.const_get(type).new
178
- temp_model.build_from_hash(value)
179
183
  end
180
184
  end
181
185
 
@@ -171,7 +171,7 @@ module AsposeSlidesCloud
171
171
  if attributes.has_key?(:'ShowCommentsByNoAuthor')
172
172
  self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
173
173
  end
174
- self.format = "html"
174
+ self.format = 'html'
175
175
  end
176
176
 
177
177
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -296,44 +296,48 @@ module AsposeSlidesCloud
296
296
  # @param string value Value to be deserialized
297
297
  # @return [Object] Deserialized data
298
298
  def _deserialize(type, value)
299
- case type.to_sym
300
- when :DateTime
301
- DateTime.parse(value)
302
- when :Date
303
- Date.parse(value)
304
- when :String
305
- value.to_s
306
- when :Integer
307
- value.to_i
308
- when :Float
309
- value.to_f
310
- when :BOOLEAN
311
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
312
- true
313
- else
314
- false
315
- end
316
- when :Object
317
- # generic object (usually a Hash), return directly
318
- value
319
- when /\AArray<(?<inner_type>.+)>\z/
320
- inner_type = Regexp.last_match[:inner_type]
321
- value.map { |v| _deserialize(inner_type, v) }
322
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
323
- k_type = Regexp.last_match[:k_type]
324
- v_type = Regexp.last_match[:v_type]
325
- {}.tap do |hash|
326
- value.each do |k, v|
327
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
299
+ if value.nil?
300
+ nil
301
+ else
302
+ case type.to_sym
303
+ when :DateTime
304
+ DateTime.parse(value)
305
+ when :Date
306
+ Date.parse(value)
307
+ when :String
308
+ value.to_s
309
+ when :Integer
310
+ value.to_i
311
+ when :Float
312
+ value.to_f
313
+ when :BOOLEAN
314
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
315
+ true
316
+ else
317
+ false
328
318
  end
319
+ when :Object
320
+ # generic object (usually a Hash), return directly
321
+ value
322
+ when /\AArray<(?<inner_type>.+)>\z/
323
+ inner_type = Regexp.last_match[:inner_type]
324
+ value.map { |v| _deserialize(inner_type, v) }
325
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
326
+ k_type = Regexp.last_match[:k_type]
327
+ v_type = Regexp.last_match[:v_type]
328
+ {}.tap do |hash|
329
+ value.each do |k, v|
330
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
331
+ end
332
+ end
333
+ else # model
334
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
335
+ if registry_type
336
+ type = registry_type
337
+ end
338
+ temp_model = AsposeSlidesCloud.const_get(type).new
339
+ temp_model.build_from_hash(value)
329
340
  end
330
- else # model
331
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
332
- if registry_type
333
- type = registry_type
334
- end
335
- temp_model = AsposeSlidesCloud.const_get(type).new
336
- temp_model.build_from_hash(value)
337
341
  end
338
342
  end
339
343
 
@@ -266,44 +266,48 @@ module AsposeSlidesCloud
266
266
  # @param string value Value to be deserialized
267
267
  # @return [Object] Deserialized data
268
268
  def _deserialize(type, value)
269
- case type.to_sym
270
- when :DateTime
271
- DateTime.parse(value)
272
- when :Date
273
- Date.parse(value)
274
- when :String
275
- value.to_s
276
- when :Integer
277
- value.to_i
278
- when :Float
279
- value.to_f
280
- when :BOOLEAN
281
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
282
- true
283
- else
284
- false
285
- end
286
- when :Object
287
- # generic object (usually a Hash), return directly
288
- value
289
- when /\AArray<(?<inner_type>.+)>\z/
290
- inner_type = Regexp.last_match[:inner_type]
291
- value.map { |v| _deserialize(inner_type, v) }
292
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
293
- k_type = Regexp.last_match[:k_type]
294
- v_type = Regexp.last_match[:v_type]
295
- {}.tap do |hash|
296
- value.each do |k, v|
297
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
269
+ if value.nil?
270
+ nil
271
+ else
272
+ case type.to_sym
273
+ when :DateTime
274
+ DateTime.parse(value)
275
+ when :Date
276
+ Date.parse(value)
277
+ when :String
278
+ value.to_s
279
+ when :Integer
280
+ value.to_i
281
+ when :Float
282
+ value.to_f
283
+ when :BOOLEAN
284
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
285
+ true
286
+ else
287
+ false
298
288
  end
289
+ when :Object
290
+ # generic object (usually a Hash), return directly
291
+ value
292
+ when /\AArray<(?<inner_type>.+)>\z/
293
+ inner_type = Regexp.last_match[:inner_type]
294
+ value.map { |v| _deserialize(inner_type, v) }
295
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
296
+ k_type = Regexp.last_match[:k_type]
297
+ v_type = Regexp.last_match[:v_type]
298
+ {}.tap do |hash|
299
+ value.each do |k, v|
300
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
301
+ end
302
+ end
303
+ else # model
304
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
305
+ if registry_type
306
+ type = registry_type
307
+ end
308
+ temp_model = AsposeSlidesCloud.const_get(type).new
309
+ temp_model.build_from_hash(value)
299
310
  end
300
- else # model
301
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
302
- if registry_type
303
- type = registry_type
304
- end
305
- temp_model = AsposeSlidesCloud.const_get(type).new
306
- temp_model.build_from_hash(value)
307
311
  end
308
312
  end
309
313