aspose_slides_cloud 23.3.0 → 23.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +35 -10
  3. data/README.md +12 -0
  4. data/TestData/macros.pptm +0 -0
  5. data/TestData/test.pptx +0 -0
  6. data/aspose_slides_cloud.gemspec +3 -1
  7. data/docker-entrypoint.sh +4 -3
  8. data/lib/aspose_slides_cloud/api/slides_api.rb +3669 -1888
  9. data/lib/aspose_slides_cloud/api_client.rb +3 -0
  10. data/lib/aspose_slides_cloud/models/accent_element.rb +0 -146
  11. data/lib/aspose_slides_cloud/models/access_permissions.rb +1 -125
  12. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +0 -146
  13. data/lib/aspose_slides_cloud/models/add_master_slide.rb +0 -146
  14. data/lib/aspose_slides_cloud/models/add_shape.rb +0 -146
  15. data/lib/aspose_slides_cloud/models/add_slide.rb +0 -146
  16. data/lib/aspose_slides_cloud/models/alpha_bi_level_effect.rb +0 -146
  17. data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +0 -146
  18. data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +0 -146
  19. data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +0 -146
  20. data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +0 -146
  21. data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +0 -146
  22. data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +0 -146
  23. data/lib/aspose_slides_cloud/models/api_info.rb +1 -125
  24. data/lib/aspose_slides_cloud/models/arc_to_path_segment.rb +0 -146
  25. data/lib/aspose_slides_cloud/models/array_element.rb +0 -146
  26. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +1 -147
  27. data/lib/aspose_slides_cloud/models/audio_frame.rb +0 -146
  28. data/lib/aspose_slides_cloud/models/axes.rb +1 -125
  29. data/lib/aspose_slides_cloud/models/axis.rb +1 -147
  30. data/lib/aspose_slides_cloud/models/bar_element.rb +0 -146
  31. data/lib/aspose_slides_cloud/models/base64_input_file.rb +0 -146
  32. data/lib/aspose_slides_cloud/models/base_object.rb +173 -0
  33. data/lib/aspose_slides_cloud/models/bi_level_effect.rb +0 -146
  34. data/lib/aspose_slides_cloud/models/block_element.rb +0 -146
  35. data/lib/aspose_slides_cloud/models/blur_effect.rb +1 -125
  36. data/lib/aspose_slides_cloud/models/blur_image_effect.rb +0 -146
  37. data/lib/aspose_slides_cloud/models/border_box_element.rb +0 -146
  38. data/lib/aspose_slides_cloud/models/box_element.rb +0 -146
  39. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +0 -146
  40. data/lib/aspose_slides_cloud/models/bubble_series.rb +0 -146
  41. data/lib/aspose_slides_cloud/models/camera.rb +1 -147
  42. data/lib/aspose_slides_cloud/models/chart.rb +0 -146
  43. data/lib/aspose_slides_cloud/models/chart_category.rb +1 -125
  44. data/lib/aspose_slides_cloud/models/chart_lines_format.rb +1 -125
  45. data/lib/aspose_slides_cloud/models/chart_series_group.rb +1 -147
  46. data/lib/aspose_slides_cloud/models/chart_title.rb +1 -125
  47. data/lib/aspose_slides_cloud/models/chart_wall.rb +1 -147
  48. data/lib/aspose_slides_cloud/models/close_path_segment.rb +0 -146
  49. data/lib/aspose_slides_cloud/models/color_change_effect.rb +0 -146
  50. data/lib/aspose_slides_cloud/models/color_replace_effect.rb +0 -146
  51. data/lib/aspose_slides_cloud/models/color_scheme.rb +0 -124
  52. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +1 -125
  53. data/lib/aspose_slides_cloud/models/connector.rb +0 -146
  54. data/lib/aspose_slides_cloud/models/cubic_bezier_to_path_segment.rb +0 -146
  55. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +1 -125
  56. data/lib/aspose_slides_cloud/models/data_point.rb +1 -147
  57. data/lib/aspose_slides_cloud/models/data_source.rb +1 -147
  58. data/lib/aspose_slides_cloud/models/delimiter_element.rb +0 -146
  59. data/lib/aspose_slides_cloud/models/disc_usage.rb +1 -125
  60. data/lib/aspose_slides_cloud/models/document.rb +0 -124
  61. data/lib/aspose_slides_cloud/models/document_properties.rb +0 -124
  62. data/lib/aspose_slides_cloud/models/document_property.rb +0 -124
  63. data/lib/aspose_slides_cloud/models/document_replace_result.rb +0 -124
  64. data/lib/aspose_slides_cloud/models/duotone_effect.rb +0 -146
  65. data/lib/aspose_slides_cloud/models/effect.rb +1 -147
  66. data/lib/aspose_slides_cloud/models/effect_format.rb +1 -125
  67. data/lib/aspose_slides_cloud/models/entity_exists.rb +1 -125
  68. data/lib/aspose_slides_cloud/models/error.rb +1 -125
  69. data/lib/aspose_slides_cloud/models/error_details.rb +1 -125
  70. data/lib/aspose_slides_cloud/models/export_options.rb +1 -125
  71. data/lib/aspose_slides_cloud/models/file_version.rb +0 -124
  72. data/lib/aspose_slides_cloud/models/file_versions.rb +1 -125
  73. data/lib/aspose_slides_cloud/models/files_list.rb +1 -125
  74. data/lib/aspose_slides_cloud/models/files_upload_result.rb +1 -125
  75. data/lib/aspose_slides_cloud/models/fill_format.rb +1 -147
  76. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +1 -147
  77. data/lib/aspose_slides_cloud/models/fill_overlay_image_effect.rb +0 -146
  78. data/lib/aspose_slides_cloud/models/font_data.rb +1 -125
  79. data/lib/aspose_slides_cloud/models/font_fallback_rule.rb +1 -125
  80. data/lib/aspose_slides_cloud/models/font_scheme.rb +0 -124
  81. data/lib/aspose_slides_cloud/models/font_set.rb +1 -125
  82. data/lib/aspose_slides_cloud/models/font_subst_rule.rb +1 -125
  83. data/lib/aspose_slides_cloud/models/fonts_data.rb +1 -125
  84. data/lib/aspose_slides_cloud/models/format_scheme.rb +0 -124
  85. data/lib/aspose_slides_cloud/models/fraction_element.rb +0 -146
  86. data/lib/aspose_slides_cloud/models/function_element.rb +0 -146
  87. data/lib/aspose_slides_cloud/models/geometry_path.rb +1 -147
  88. data/lib/aspose_slides_cloud/models/geometry_paths.rb +1 -125
  89. data/lib/aspose_slides_cloud/models/geometry_shape.rb +0 -146
  90. data/lib/aspose_slides_cloud/models/gif_export_options.rb +0 -124
  91. data/lib/aspose_slides_cloud/models/glow_effect.rb +1 -125
  92. data/lib/aspose_slides_cloud/models/gradient_fill.rb +0 -146
  93. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +1 -125
  94. data/lib/aspose_slides_cloud/models/graphical_object.rb +0 -146
  95. data/lib/aspose_slides_cloud/models/gray_scale_effect.rb +0 -146
  96. data/lib/aspose_slides_cloud/models/group_shape.rb +0 -146
  97. data/lib/aspose_slides_cloud/models/grouping_character_element.rb +0 -146
  98. data/lib/aspose_slides_cloud/models/header_footer.rb +0 -124
  99. data/lib/aspose_slides_cloud/models/hsl_effect.rb +0 -146
  100. data/lib/aspose_slides_cloud/models/html5_export_options.rb +0 -124
  101. data/lib/aspose_slides_cloud/models/html_export_options.rb +0 -146
  102. data/lib/aspose_slides_cloud/models/hyperlink.rb +1 -147
  103. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +1 -125
  104. data/lib/aspose_slides_cloud/models/image.rb +0 -124
  105. data/lib/aspose_slides_cloud/models/image_export_options.rb +0 -146
  106. data/lib/aspose_slides_cloud/models/image_export_options_base.rb +0 -124
  107. data/lib/aspose_slides_cloud/models/image_transform_effect.rb +1 -147
  108. data/lib/aspose_slides_cloud/models/images.rb +0 -124
  109. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +1 -125
  110. data/lib/aspose_slides_cloud/models/input.rb +1 -125
  111. data/lib/aspose_slides_cloud/models/input_file.rb +1 -147
  112. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +1 -125
  113. data/lib/aspose_slides_cloud/models/layout_slide.rb +0 -146
  114. data/lib/aspose_slides_cloud/models/layout_slides.rb +0 -124
  115. data/lib/aspose_slides_cloud/models/left_sub_superscript_element.rb +0 -146
  116. data/lib/aspose_slides_cloud/models/legend.rb +1 -147
  117. data/lib/aspose_slides_cloud/models/light_rig.rb +1 -147
  118. data/lib/aspose_slides_cloud/models/limit_element.rb +0 -146
  119. data/lib/aspose_slides_cloud/models/line_format.rb +1 -147
  120. data/lib/aspose_slides_cloud/models/line_to_path_segment.rb +0 -146
  121. data/lib/aspose_slides_cloud/models/literals.rb +0 -146
  122. data/lib/aspose_slides_cloud/models/luminance_effect.rb +0 -146
  123. data/lib/aspose_slides_cloud/models/master_slide.rb +0 -124
  124. data/lib/aspose_slides_cloud/models/master_slides.rb +0 -124
  125. data/lib/aspose_slides_cloud/models/math_element.rb +1 -147
  126. data/lib/aspose_slides_cloud/models/math_paragraph.rb +1 -147
  127. data/lib/aspose_slides_cloud/models/matrix_element.rb +0 -146
  128. data/lib/aspose_slides_cloud/models/merge.rb +0 -146
  129. data/lib/aspose_slides_cloud/models/merging_source.rb +1 -125
  130. data/lib/aspose_slides_cloud/models/move_to_path_segment.rb +0 -146
  131. data/lib/aspose_slides_cloud/models/nary_operator_element.rb +0 -146
  132. data/lib/aspose_slides_cloud/models/no_fill.rb +0 -146
  133. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +1 -125
  134. data/lib/aspose_slides_cloud/models/notes_slide.rb +0 -124
  135. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +0 -124
  136. data/lib/aspose_slides_cloud/models/object_exist.rb +1 -125
  137. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +0 -146
  138. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +0 -146
  139. data/lib/aspose_slides_cloud/models/one_value_series.rb +0 -146
  140. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +1 -125
  141. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +1 -125
  142. data/lib/aspose_slides_cloud/models/output_file.rb +1 -147
  143. data/lib/aspose_slides_cloud/models/paragraph.rb +0 -146
  144. data/lib/aspose_slides_cloud/models/paragraph_format.rb +1 -147
  145. data/lib/aspose_slides_cloud/models/paragraphs.rb +0 -124
  146. data/lib/aspose_slides_cloud/models/path_input_file.rb +0 -146
  147. data/lib/aspose_slides_cloud/models/path_output_file.rb +0 -146
  148. data/lib/aspose_slides_cloud/models/path_segment.rb +1 -147
  149. data/lib/aspose_slides_cloud/models/pattern_fill.rb +0 -146
  150. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +0 -146
  151. data/lib/aspose_slides_cloud/models/picture_fill.rb +0 -146
  152. data/lib/aspose_slides_cloud/models/picture_frame.rb +0 -146
  153. data/lib/aspose_slides_cloud/models/pipeline.rb +1 -125
  154. data/lib/aspose_slides_cloud/models/placeholder.rb +0 -146
  155. data/lib/aspose_slides_cloud/models/placeholders.rb +0 -124
  156. data/lib/aspose_slides_cloud/models/plot_area.rb +1 -147
  157. data/lib/aspose_slides_cloud/models/portion.rb +0 -146
  158. data/lib/aspose_slides_cloud/models/portion_format.rb +1 -147
  159. data/lib/aspose_slides_cloud/models/portions.rb +0 -124
  160. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +0 -146
  161. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +1 -147
  162. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +1 -125
  163. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +1 -147
  164. data/lib/aspose_slides_cloud/models/protection_properties.rb +0 -124
  165. data/lib/aspose_slides_cloud/models/quadratic_bezier_to_path_segment.rb +0 -146
  166. data/lib/aspose_slides_cloud/models/radical_element.rb +0 -146
  167. data/lib/aspose_slides_cloud/models/reflection_effect.rb +1 -147
  168. data/lib/aspose_slides_cloud/models/remove_shape.rb +0 -146
  169. data/lib/aspose_slides_cloud/models/remove_slide.rb +0 -146
  170. data/lib/aspose_slides_cloud/models/reorder_slide.rb +0 -146
  171. data/lib/aspose_slides_cloud/models/replace_text.rb +0 -146
  172. data/lib/aspose_slides_cloud/models/request_input_file.rb +0 -146
  173. data/lib/aspose_slides_cloud/models/reset_slide.rb +0 -146
  174. data/lib/aspose_slides_cloud/models/resource_base.rb +1 -125
  175. data/lib/aspose_slides_cloud/models/resource_uri.rb +1 -125
  176. data/lib/aspose_slides_cloud/models/response_output_file.rb +0 -146
  177. data/lib/aspose_slides_cloud/models/right_sub_superscript_element.rb +0 -146
  178. data/lib/aspose_slides_cloud/models/save.rb +0 -146
  179. data/lib/aspose_slides_cloud/models/save_shape.rb +0 -146
  180. data/lib/aspose_slides_cloud/models/save_slide.rb +0 -146
  181. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +0 -146
  182. data/lib/aspose_slides_cloud/models/scatter_series.rb +0 -146
  183. data/lib/aspose_slides_cloud/models/section.rb +0 -124
  184. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +0 -146
  185. data/lib/aspose_slides_cloud/models/sections.rb +0 -124
  186. data/lib/aspose_slides_cloud/models/series.rb +1 -147
  187. data/lib/aspose_slides_cloud/models/series_marker.rb +1 -147
  188. data/lib/aspose_slides_cloud/models/shape.rb +0 -146
  189. data/lib/aspose_slides_cloud/models/shape_base.rb +0 -146
  190. data/lib/aspose_slides_cloud/models/shape_bevel.rb +1 -147
  191. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +1 -147
  192. data/lib/aspose_slides_cloud/models/shapes.rb +0 -124
  193. data/lib/aspose_slides_cloud/models/slide.rb +0 -124
  194. data/lib/aspose_slides_cloud/models/slide_animation.rb +0 -124
  195. data/lib/aspose_slides_cloud/models/slide_background.rb +0 -146
  196. data/lib/aspose_slides_cloud/models/slide_comment.rb +0 -146
  197. data/lib/aspose_slides_cloud/models/slide_comment_base.rb +1 -147
  198. data/lib/aspose_slides_cloud/models/slide_comments.rb +0 -124
  199. data/lib/aspose_slides_cloud/models/slide_modern_comment.rb +0 -146
  200. data/lib/aspose_slides_cloud/models/slide_properties.rb +0 -146
  201. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +0 -124
  202. data/lib/aspose_slides_cloud/models/slide_show_properties.rb +0 -146
  203. data/lib/aspose_slides_cloud/models/slides.rb +0 -124
  204. data/lib/aspose_slides_cloud/models/smart_art.rb +0 -146
  205. data/lib/aspose_slides_cloud/models/smart_art_node.rb +1 -147
  206. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +0 -146
  207. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +1 -125
  208. data/lib/aspose_slides_cloud/models/solid_fill.rb +0 -146
  209. data/lib/aspose_slides_cloud/models/split_document_result.rb +0 -124
  210. data/lib/aspose_slides_cloud/models/storage_exist.rb +1 -125
  211. data/lib/aspose_slides_cloud/models/storage_file.rb +1 -125
  212. data/lib/aspose_slides_cloud/models/subscript_element.rb +0 -146
  213. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +0 -146
  214. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +0 -146
  215. data/lib/aspose_slides_cloud/models/superscript_element.rb +0 -146
  216. data/lib/aspose_slides_cloud/models/svg_export_options.rb +0 -146
  217. data/lib/aspose_slides_cloud/models/swf_export_options.rb +0 -146
  218. data/lib/aspose_slides_cloud/models/table.rb +0 -146
  219. data/lib/aspose_slides_cloud/models/table_cell.rb +21 -147
  220. data/lib/aspose_slides_cloud/models/table_cell_merge_options.rb +156 -0
  221. data/lib/aspose_slides_cloud/models/table_cell_split_type.rb +42 -0
  222. data/lib/aspose_slides_cloud/models/table_column.rb +1 -125
  223. data/lib/aspose_slides_cloud/models/table_row.rb +1 -125
  224. data/lib/aspose_slides_cloud/models/task.rb +1 -147
  225. data/lib/aspose_slides_cloud/models/text_bounds.rb +1 -125
  226. data/lib/aspose_slides_cloud/models/text_element.rb +0 -146
  227. data/lib/aspose_slides_cloud/models/text_frame_format.rb +1 -147
  228. data/lib/aspose_slides_cloud/models/text_item.rb +1 -125
  229. data/lib/aspose_slides_cloud/models/text_items.rb +0 -124
  230. data/lib/aspose_slides_cloud/models/theme.rb +0 -124
  231. data/lib/aspose_slides_cloud/models/three_d_format.rb +1 -147
  232. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +0 -146
  233. data/lib/aspose_slides_cloud/models/tint_effect.rb +0 -146
  234. data/lib/aspose_slides_cloud/models/update_background.rb +0 -146
  235. data/lib/aspose_slides_cloud/models/update_shape.rb +0 -146
  236. data/lib/aspose_slides_cloud/models/vba_module.rb +113 -0
  237. data/lib/aspose_slides_cloud/models/vba_project.rb +105 -0
  238. data/lib/aspose_slides_cloud/models/vba_reference.rb +101 -0
  239. data/lib/aspose_slides_cloud/models/video_export_options.rb +0 -146
  240. data/lib/aspose_slides_cloud/models/video_frame.rb +0 -146
  241. data/lib/aspose_slides_cloud/models/view_properties.rb +0 -146
  242. data/lib/aspose_slides_cloud/models/workbook.rb +0 -146
  243. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +0 -124
  244. data/lib/aspose_slides_cloud/models/xps_export_options.rb +0 -124
  245. data/lib/aspose_slides_cloud/models/xy_series.rb +0 -146
  246. data/lib/aspose_slides_cloud/models/zoom_frame.rb +0 -146
  247. data/lib/aspose_slides_cloud/models/zoom_object.rb +0 -146
  248. data/lib/aspose_slides_cloud/type_registry.rb +7 -0
  249. data/lib/aspose_slides_cloud/version.rb +1 -1
  250. data/lib/aspose_slides_cloud.rb +6 -0
  251. data/spec/api/slides_api_spec.rb +15105 -9783
  252. data/spec/spec_utils.rb +1 -1
  253. data/spec/use_cases/auth_spec.rb +15 -0
  254. data/spec/use_cases/slide_spec.rb +9 -9
  255. data/spec/use_cases/table_spec.rb +392 -0
  256. data/spec/use_cases/vba_spec.rb +94 -0
  257. data/testConfig.json +2 -2
  258. data/testRules.json +10 -0
  259. metadata +57 -6
@@ -40,28 +40,6 @@ module AsposeSlidesCloud
40
40
  # The state of the SmartArt diagram with regard to (left-to-right) LTR or (right-to-left) RTL, if the diagram supports reversal.
41
41
  attr_accessor :is_reversed
42
42
 
43
- class EnumAttributeValidator
44
- attr_reader :datatype
45
- attr_reader :allowable_values
46
-
47
- def initialize(datatype, allowable_values)
48
- @allowable_values = allowable_values.map do |value|
49
- case datatype.to_s
50
- when /Integer/i
51
- value.to_i
52
- when /Float/i
53
- value.to_f
54
- else
55
- value
56
- end
57
- end
58
- end
59
-
60
- def valid?(value)
61
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
62
- end
63
- end
64
-
65
43
  # Attribute mapping from ruby-style variable name to JSON key.
66
44
  def self.attribute_map
67
45
  super.merge({
@@ -224,129 +202,5 @@ module AsposeSlidesCloud
224
202
  def hash
225
203
  [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, layout, quick_style, color_style, nodes, is_reversed].hash
226
204
  end
227
-
228
- # Builds the object from hash
229
- # @param [Hash] attributes Model attributes in the form of hash
230
- # @return [Object] Returns the model itself
231
- def build_from_hash(attributes)
232
- return nil unless attributes.is_a?(Hash)
233
- self.class.swagger_types.each_pair do |key, type|
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]
242
- end
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
255
- end
256
-
257
- self
258
- end
259
-
260
- # Deserializes the data based on type
261
- # @param string type Data type
262
- # @param string value Value to be deserialized
263
- # @return [Object] Deserialized data
264
- def _deserialize(type, value)
265
- if value.nil?
266
- nil
267
- else
268
- case type.to_sym
269
- when :DateTime
270
- DateTime.parse(value)
271
- when :Date
272
- Date.parse(value)
273
- when :String
274
- value.to_s
275
- when :Integer
276
- value.to_i
277
- when :Float
278
- value.to_f
279
- when :BOOLEAN
280
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
281
- true
282
- else
283
- false
284
- end
285
- when :Object
286
- # generic object (usually a Hash), return directly
287
- value
288
- when /\AArray<(?<inner_type>.+)>\z/
289
- inner_type = Regexp.last_match[:inner_type]
290
- value.map { |v| _deserialize(inner_type, v) }
291
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
292
- k_type = Regexp.last_match[:k_type]
293
- v_type = Regexp.last_match[:v_type]
294
- {}.tap do |hash|
295
- value.each do |k, v|
296
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
297
- end
298
- end
299
- else # model
300
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
301
- if registry_type
302
- type = registry_type
303
- end
304
- temp_model = AsposeSlidesCloud.const_get(type).new
305
- temp_model.build_from_hash(value)
306
- end
307
- end
308
- end
309
-
310
- # Returns the string representation of the object
311
- # @return [String] String presentation of the object
312
- def to_s
313
- to_hash.to_s
314
- end
315
-
316
- # to_body is an alias to to_hash (backward compatibility)
317
- # @return [Hash] Returns the object in the form of hash
318
- def to_body
319
- to_hash
320
- end
321
-
322
- # Returns the object in the form of hash
323
- # @return [Hash] Returns the object in the form of hash
324
- def to_hash
325
- hash = {}
326
- self.class.attribute_map.each_pair do |attr, param|
327
- value = self.send(attr)
328
- next if value.nil?
329
- hash[param] = _to_hash(value)
330
- end
331
- hash
332
- end
333
-
334
- # Outputs non-array value in the form of hash
335
- # For object, use to_hash. Otherwise, just return the value
336
- # @param [Object] value Any valid value
337
- # @return [Hash] Returns the value in the form of hash
338
- def _to_hash(value)
339
- if value.is_a?(Array)
340
- value.compact.map { |v| _to_hash(v) }
341
- elsif value.is_a?(Hash)
342
- {}.tap do |hash|
343
- value.each { |k, v| hash[k] = _to_hash(v) }
344
- end
345
- elsif value.respond_to? :to_hash
346
- value.to_hash
347
- else
348
- value
349
- end
350
- end
351
205
  end
352
206
  end
@@ -24,7 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Smart art node.
27
- class SmartArtNode
27
+ class SmartArtNode < BaseObject
28
28
  # Node list.
29
29
  attr_accessor :nodes
30
30
 
@@ -43,28 +43,6 @@ module AsposeSlidesCloud
43
43
  # Get or sets list to paragraphs list
44
44
  attr_accessor :paragraphs
45
45
 
46
- class EnumAttributeValidator
47
- attr_reader :datatype
48
- attr_reader :allowable_values
49
-
50
- def initialize(datatype, allowable_values)
51
- @allowable_values = allowable_values.map do |value|
52
- case datatype.to_s
53
- when /Integer/i
54
- value.to_i
55
- when /Float/i
56
- value.to_f
57
- else
58
- value
59
- end
60
- end
61
- end
62
-
63
- def valid?(value)
64
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
65
- end
66
- end
67
-
68
46
  # Attribute mapping from ruby-style variable name to JSON key.
69
47
  def self.attribute_map
70
48
  {
@@ -183,129 +161,5 @@ module AsposeSlidesCloud
183
161
  def hash
184
162
  [nodes, shapes, is_assistant, text, org_chart_layout, paragraphs].hash
185
163
  end
186
-
187
- # Builds the object from hash
188
- # @param [Hash] attributes Model attributes in the form of hash
189
- # @return [Object] Returns the model itself
190
- def build_from_hash(attributes)
191
- return nil unless attributes.is_a?(Hash)
192
- self.class.swagger_types.each_pair do |key, type|
193
- mapKey = self.class.attribute_map[key]
194
- if !mapKey.nil?
195
- val = attributes[mapKey]
196
- if val.nil?
197
- mapKeyString = mapKey.to_s
198
- mapKeyString[0] = mapKeyString[0].downcase
199
- mapKey = mapKeyString.to_sym
200
- val = attributes[mapKey]
201
- end
202
- if !val.nil?
203
- if type =~ /\AArray<(.*)>/i
204
- # check to ensure the input is an array given that the the attribute
205
- # is documented as an array but the input is not
206
- if val.is_a?(Array)
207
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
208
- end
209
- else
210
- self.send("#{key}=", _deserialize(type, val))
211
- end
212
- end
213
- end
214
- end
215
-
216
- self
217
- end
218
-
219
- # Deserializes the data based on type
220
- # @param string type Data type
221
- # @param string value Value to be deserialized
222
- # @return [Object] Deserialized data
223
- def _deserialize(type, value)
224
- if value.nil?
225
- nil
226
- else
227
- case type.to_sym
228
- when :DateTime
229
- DateTime.parse(value)
230
- when :Date
231
- Date.parse(value)
232
- when :String
233
- value.to_s
234
- when :Integer
235
- value.to_i
236
- when :Float
237
- value.to_f
238
- when :BOOLEAN
239
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
240
- true
241
- else
242
- false
243
- end
244
- when :Object
245
- # generic object (usually a Hash), return directly
246
- value
247
- when /\AArray<(?<inner_type>.+)>\z/
248
- inner_type = Regexp.last_match[:inner_type]
249
- value.map { |v| _deserialize(inner_type, v) }
250
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
251
- k_type = Regexp.last_match[:k_type]
252
- v_type = Regexp.last_match[:v_type]
253
- {}.tap do |hash|
254
- value.each do |k, v|
255
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
256
- end
257
- end
258
- else # model
259
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
260
- if registry_type
261
- type = registry_type
262
- end
263
- temp_model = AsposeSlidesCloud.const_get(type).new
264
- temp_model.build_from_hash(value)
265
- end
266
- end
267
- end
268
-
269
- # Returns the string representation of the object
270
- # @return [String] String presentation of the object
271
- def to_s
272
- to_hash.to_s
273
- end
274
-
275
- # to_body is an alias to to_hash (backward compatibility)
276
- # @return [Hash] Returns the object in the form of hash
277
- def to_body
278
- to_hash
279
- end
280
-
281
- # Returns the object in the form of hash
282
- # @return [Hash] Returns the object in the form of hash
283
- def to_hash
284
- hash = {}
285
- self.class.attribute_map.each_pair do |attr, param|
286
- value = self.send(attr)
287
- next if value.nil?
288
- hash[param] = _to_hash(value)
289
- end
290
- hash
291
- end
292
-
293
- # Outputs non-array value in the form of hash
294
- # For object, use to_hash. Otherwise, just return the value
295
- # @param [Object] value Any valid value
296
- # @return [Hash] Returns the value in the form of hash
297
- def _to_hash(value)
298
- if value.is_a?(Array)
299
- value.compact.map { |v| _to_hash(v) }
300
- elsif value.is_a?(Hash)
301
- {}.tap do |hash|
302
- value.each { |k, v| hash[k] = _to_hash(v) }
303
- end
304
- elsif value.respond_to? :to_hash
305
- value.to_hash
306
- else
307
- value
308
- end
309
- end
310
164
  end
311
165
  end
@@ -25,28 +25,6 @@ require 'date'
25
25
  module AsposeSlidesCloud
26
26
  # Represents SmartArt resource.
27
27
  class SmartArtShape < GeometryShape
28
- class EnumAttributeValidator
29
- attr_reader :datatype
30
- attr_reader :allowable_values
31
-
32
- def initialize(datatype, allowable_values)
33
- @allowable_values = allowable_values.map do |value|
34
- case datatype.to_s
35
- when /Integer/i
36
- value.to_i
37
- when /Float/i
38
- value.to_f
39
- else
40
- value
41
- end
42
- end
43
- end
44
-
45
- def valid?(value)
46
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
47
- end
48
- end
49
-
50
28
  # Attribute mapping from ruby-style variable name to JSON key.
51
29
  def self.attribute_map
52
30
  super.merge({
@@ -117,129 +95,5 @@ module AsposeSlidesCloud
117
95
  def hash
118
96
  [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, typeshape_type].hash
119
97
  end
120
-
121
- # Builds the object from hash
122
- # @param [Hash] attributes Model attributes in the form of hash
123
- # @return [Object] Returns the model itself
124
- def build_from_hash(attributes)
125
- return nil unless attributes.is_a?(Hash)
126
- self.class.swagger_types.each_pair do |key, type|
127
- mapKey = self.class.attribute_map[key]
128
- if !mapKey.nil?
129
- val = attributes[mapKey]
130
- if val.nil?
131
- mapKeyString = mapKey.to_s
132
- mapKeyString[0] = mapKeyString[0].downcase
133
- mapKey = mapKeyString.to_sym
134
- val = attributes[mapKey]
135
- end
136
- if !val.nil?
137
- if type =~ /\AArray<(.*)>/i
138
- # check to ensure the input is an array given that the the attribute
139
- # is documented as an array but the input is not
140
- if val.is_a?(Array)
141
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
142
- end
143
- else
144
- self.send("#{key}=", _deserialize(type, val))
145
- end
146
- end
147
- end
148
- end
149
-
150
- self
151
- end
152
-
153
- # Deserializes the data based on type
154
- # @param string type Data type
155
- # @param string value Value to be deserialized
156
- # @return [Object] Deserialized data
157
- def _deserialize(type, value)
158
- if value.nil?
159
- nil
160
- else
161
- case type.to_sym
162
- when :DateTime
163
- DateTime.parse(value)
164
- when :Date
165
- Date.parse(value)
166
- when :String
167
- value.to_s
168
- when :Integer
169
- value.to_i
170
- when :Float
171
- value.to_f
172
- when :BOOLEAN
173
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
174
- true
175
- else
176
- false
177
- end
178
- when :Object
179
- # generic object (usually a Hash), return directly
180
- value
181
- when /\AArray<(?<inner_type>.+)>\z/
182
- inner_type = Regexp.last_match[:inner_type]
183
- value.map { |v| _deserialize(inner_type, v) }
184
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
185
- k_type = Regexp.last_match[:k_type]
186
- v_type = Regexp.last_match[:v_type]
187
- {}.tap do |hash|
188
- value.each do |k, v|
189
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
190
- end
191
- end
192
- else # model
193
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
194
- if registry_type
195
- type = registry_type
196
- end
197
- temp_model = AsposeSlidesCloud.const_get(type).new
198
- temp_model.build_from_hash(value)
199
- end
200
- end
201
- end
202
-
203
- # Returns the string representation of the object
204
- # @return [String] String presentation of the object
205
- def to_s
206
- to_hash.to_s
207
- end
208
-
209
- # to_body is an alias to to_hash (backward compatibility)
210
- # @return [Hash] Returns the object in the form of hash
211
- def to_body
212
- to_hash
213
- end
214
-
215
- # Returns the object in the form of hash
216
- # @return [Hash] Returns the object in the form of hash
217
- def to_hash
218
- hash = {}
219
- self.class.attribute_map.each_pair do |attr, param|
220
- value = self.send(attr)
221
- next if value.nil?
222
- hash[param] = _to_hash(value)
223
- end
224
- hash
225
- end
226
-
227
- # Outputs non-array value in the form of hash
228
- # For object, use to_hash. Otherwise, just return the value
229
- # @param [Object] value Any valid value
230
- # @return [Hash] Returns the value in the form of hash
231
- def _to_hash(value)
232
- if value.is_a?(Array)
233
- value.compact.map { |v| _to_hash(v) }
234
- elsif value.is_a?(Hash)
235
- {}.tap do |hash|
236
- value.each { |k, v| hash[k] = _to_hash(v) }
237
- end
238
- elsif value.respond_to? :to_hash
239
- value.to_hash
240
- else
241
- value
242
- end
243
- end
244
98
  end
245
99
  end
@@ -24,7 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents soft edge effect
27
- class SoftEdgeEffect
27
+ class SoftEdgeEffect < BaseObject
28
28
  # radius
29
29
  attr_accessor :radius
30
30
 
@@ -92,129 +92,5 @@ module AsposeSlidesCloud
92
92
  def hash
93
93
  [radius].hash
94
94
  end
95
-
96
- # Builds the object from hash
97
- # @param [Hash] attributes Model attributes in the form of hash
98
- # @return [Object] Returns the model itself
99
- def build_from_hash(attributes)
100
- return nil unless attributes.is_a?(Hash)
101
- self.class.swagger_types.each_pair do |key, type|
102
- mapKey = self.class.attribute_map[key]
103
- if !mapKey.nil?
104
- val = attributes[mapKey]
105
- if val.nil?
106
- mapKeyString = mapKey.to_s
107
- mapKeyString[0] = mapKeyString[0].downcase
108
- mapKey = mapKeyString.to_sym
109
- val = attributes[mapKey]
110
- end
111
- if !val.nil?
112
- if type =~ /\AArray<(.*)>/i
113
- # check to ensure the input is an array given that the the attribute
114
- # is documented as an array but the input is not
115
- if val.is_a?(Array)
116
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
117
- end
118
- else
119
- self.send("#{key}=", _deserialize(type, val))
120
- end
121
- end
122
- end
123
- end
124
-
125
- self
126
- end
127
-
128
- # Deserializes the data based on type
129
- # @param string type Data type
130
- # @param string value Value to be deserialized
131
- # @return [Object] Deserialized data
132
- def _deserialize(type, value)
133
- if value.nil?
134
- nil
135
- else
136
- case type.to_sym
137
- when :DateTime
138
- DateTime.parse(value)
139
- when :Date
140
- Date.parse(value)
141
- when :String
142
- value.to_s
143
- when :Integer
144
- value.to_i
145
- when :Float
146
- value.to_f
147
- when :BOOLEAN
148
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
149
- true
150
- else
151
- false
152
- end
153
- when :Object
154
- # generic object (usually a Hash), return directly
155
- value
156
- when /\AArray<(?<inner_type>.+)>\z/
157
- inner_type = Regexp.last_match[:inner_type]
158
- value.map { |v| _deserialize(inner_type, v) }
159
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
160
- k_type = Regexp.last_match[:k_type]
161
- v_type = Regexp.last_match[:v_type]
162
- {}.tap do |hash|
163
- value.each do |k, v|
164
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
165
- end
166
- end
167
- else # model
168
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
169
- if registry_type
170
- type = registry_type
171
- end
172
- temp_model = AsposeSlidesCloud.const_get(type).new
173
- temp_model.build_from_hash(value)
174
- end
175
- end
176
- end
177
-
178
- # Returns the string representation of the object
179
- # @return [String] String presentation of the object
180
- def to_s
181
- to_hash.to_s
182
- end
183
-
184
- # to_body is an alias to to_hash (backward compatibility)
185
- # @return [Hash] Returns the object in the form of hash
186
- def to_body
187
- to_hash
188
- end
189
-
190
- # Returns the object in the form of hash
191
- # @return [Hash] Returns the object in the form of hash
192
- def to_hash
193
- hash = {}
194
- self.class.attribute_map.each_pair do |attr, param|
195
- value = self.send(attr)
196
- next if value.nil?
197
- hash[param] = _to_hash(value)
198
- end
199
- hash
200
- end
201
-
202
- # Outputs non-array value in the form of hash
203
- # For object, use to_hash. Otherwise, just return the value
204
- # @param [Object] value Any valid value
205
- # @return [Hash] Returns the value in the form of hash
206
- def _to_hash(value)
207
- if value.is_a?(Array)
208
- value.compact.map { |v| _to_hash(v) }
209
- elsif value.is_a?(Hash)
210
- {}.tap do |hash|
211
- value.each { |k, v| hash[k] = _to_hash(v) }
212
- end
213
- elsif value.respond_to? :to_hash
214
- value.to_hash
215
- else
216
- value
217
- end
218
- end
219
95
  end
220
96
  end