aspose_slides_cloud 21.12.1 → 22.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (255) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +16 -0
  3. data/README.md +24 -44
  4. data/TestData/test-unprotected.pptx +0 -0
  5. data/TestData/test.pptx +0 -0
  6. data/aspose_slides_cloud.gemspec +4 -2
  7. data/docker-entrypoint.sh +7 -0
  8. data/lib/aspose_slides_cloud/api/slides_api.rb +1564 -681
  9. data/lib/aspose_slides_cloud/api_client.rb +12 -1
  10. data/lib/aspose_slides_cloud/configuration.rb +1 -1
  11. data/lib/aspose_slides_cloud/models/accent_element.rb +243 -0
  12. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +4 -0
  13. data/lib/aspose_slides_cloud/models/add_master_slide.rb +4 -0
  14. data/lib/aspose_slides_cloud/models/add_shape.rb +4 -0
  15. data/lib/aspose_slides_cloud/models/add_slide.rb +4 -0
  16. data/lib/aspose_slides_cloud/models/api_info.rb +4 -0
  17. data/lib/aspose_slides_cloud/models/arc_to_path_segment.rb +283 -0
  18. data/lib/aspose_slides_cloud/models/array_element.rb +309 -0
  19. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +4 -0
  20. data/lib/aspose_slides_cloud/models/audio_frame.rb +30 -4
  21. data/lib/aspose_slides_cloud/models/axes.rb +4 -0
  22. data/lib/aspose_slides_cloud/models/axis.rb +32 -8
  23. data/lib/aspose_slides_cloud/models/bar_element.rb +255 -0
  24. data/lib/aspose_slides_cloud/models/base64_input_file.rb +4 -0
  25. data/lib/aspose_slides_cloud/models/block_element.rb +235 -0
  26. data/lib/aspose_slides_cloud/models/blur_effect.rb +4 -0
  27. data/lib/aspose_slides_cloud/models/border_box_element.rb +313 -0
  28. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +6 -5
  29. data/lib/aspose_slides_cloud/models/box_element.rb +283 -0
  30. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +4 -0
  31. data/lib/aspose_slides_cloud/models/bubble_series.rb +19 -7
  32. data/lib/aspose_slides_cloud/models/camera.rb +4 -0
  33. data/lib/aspose_slides_cloud/models/chart.rb +7 -1
  34. data/lib/aspose_slides_cloud/models/chart_category.rb +4 -0
  35. data/lib/aspose_slides_cloud/models/chart_lines_format.rb +221 -0
  36. data/lib/aspose_slides_cloud/models/chart_title.rb +4 -0
  37. data/lib/aspose_slides_cloud/models/chart_wall.rb +4 -0
  38. data/lib/aspose_slides_cloud/models/close_path_segment.rb +223 -0
  39. data/lib/aspose_slides_cloud/models/color_scheme.rb +4 -0
  40. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +4 -0
  41. data/lib/aspose_slides_cloud/models/connector.rb +7 -1
  42. data/lib/aspose_slides_cloud/models/cubic_bezier_to_path_segment.rb +313 -0
  43. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +4 -0
  44. data/lib/aspose_slides_cloud/models/data_point.rb +4 -0
  45. data/lib/aspose_slides_cloud/models/delimiter_element.rb +297 -0
  46. data/lib/aspose_slides_cloud/models/disc_usage.rb +4 -0
  47. data/lib/aspose_slides_cloud/models/document.rb +4 -0
  48. data/lib/aspose_slides_cloud/models/document_properties.rb +4 -0
  49. data/lib/aspose_slides_cloud/models/document_property.rb +4 -0
  50. data/lib/aspose_slides_cloud/models/document_replace_result.rb +4 -0
  51. data/lib/aspose_slides_cloud/models/effect.rb +4 -0
  52. data/lib/aspose_slides_cloud/models/effect_format.rb +4 -0
  53. data/lib/aspose_slides_cloud/models/entity_exists.rb +4 -0
  54. data/lib/aspose_slides_cloud/models/error.rb +4 -0
  55. data/lib/aspose_slides_cloud/models/error_details.rb +4 -0
  56. data/lib/aspose_slides_cloud/models/export_format.rb +2 -0
  57. data/lib/aspose_slides_cloud/models/export_options.rb +17 -1
  58. data/lib/aspose_slides_cloud/models/file_version.rb +4 -0
  59. data/lib/aspose_slides_cloud/models/file_versions.rb +4 -0
  60. data/lib/aspose_slides_cloud/models/files_list.rb +4 -0
  61. data/lib/aspose_slides_cloud/models/files_upload_result.rb +4 -0
  62. data/lib/aspose_slides_cloud/models/fill_format.rb +4 -0
  63. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +4 -0
  64. data/lib/aspose_slides_cloud/models/font_fallback_rule.rb +243 -0
  65. data/lib/aspose_slides_cloud/models/font_scheme.rb +4 -0
  66. data/lib/aspose_slides_cloud/models/font_set.rb +4 -0
  67. data/lib/aspose_slides_cloud/models/format_scheme.rb +4 -0
  68. data/lib/aspose_slides_cloud/models/fraction_element.rb +265 -0
  69. data/lib/aspose_slides_cloud/models/function_element.rb +243 -0
  70. data/lib/aspose_slides_cloud/models/geometry_path.rb +267 -0
  71. data/lib/aspose_slides_cloud/models/geometry_paths.rb +213 -0
  72. data/lib/aspose_slides_cloud/models/geometry_shape.rb +7 -1
  73. data/lib/aspose_slides_cloud/models/gif_export_options.rb +235 -0
  74. data/lib/aspose_slides_cloud/models/glow_effect.rb +4 -0
  75. data/lib/aspose_slides_cloud/models/gradient_fill.rb +4 -0
  76. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +4 -0
  77. data/lib/aspose_slides_cloud/models/graphical_object.rb +7 -1
  78. data/lib/aspose_slides_cloud/models/group_shape.rb +7 -1
  79. data/lib/aspose_slides_cloud/models/grouping_character_element.rb +287 -0
  80. data/lib/aspose_slides_cloud/models/header_footer.rb +4 -0
  81. data/lib/aspose_slides_cloud/models/html5_export_options.rb +6 -1
  82. data/lib/aspose_slides_cloud/models/html_export_options.rb +6 -1
  83. data/lib/aspose_slides_cloud/models/hyperlink.rb +352 -0
  84. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +4 -0
  85. data/lib/aspose_slides_cloud/models/image.rb +4 -0
  86. data/lib/aspose_slides_cloud/models/image_export_options.rb +6 -1
  87. data/lib/aspose_slides_cloud/models/images.rb +4 -0
  88. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +4 -0
  89. data/lib/aspose_slides_cloud/models/input.rb +4 -0
  90. data/lib/aspose_slides_cloud/models/input_file.rb +4 -0
  91. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +4 -0
  92. data/lib/aspose_slides_cloud/models/layout_slide.rb +4 -0
  93. data/lib/aspose_slides_cloud/models/layout_slides.rb +4 -0
  94. data/lib/aspose_slides_cloud/models/left_sub_superscript_element.rb +253 -0
  95. data/lib/aspose_slides_cloud/models/legend.rb +16 -2
  96. data/lib/aspose_slides_cloud/models/light_rig.rb +4 -0
  97. data/lib/aspose_slides_cloud/models/limit_element.rb +253 -0
  98. data/lib/aspose_slides_cloud/models/line_format.rb +4 -0
  99. data/lib/aspose_slides_cloud/models/line_to_path_segment.rb +253 -0
  100. data/lib/aspose_slides_cloud/models/master_slide.rb +4 -0
  101. data/lib/aspose_slides_cloud/models/master_slides.rb +4 -0
  102. data/lib/aspose_slides_cloud/models/math_element.rb +244 -0
  103. data/lib/aspose_slides_cloud/models/math_paragraph.rb +257 -0
  104. data/lib/aspose_slides_cloud/models/matrix_element.rb +341 -0
  105. data/lib/aspose_slides_cloud/models/merge.rb +4 -0
  106. data/lib/aspose_slides_cloud/models/merging_source.rb +4 -0
  107. data/lib/aspose_slides_cloud/models/move_to_path_segment.rb +253 -0
  108. data/lib/aspose_slides_cloud/models/nary_operator_element.rb +315 -0
  109. data/lib/aspose_slides_cloud/models/no_fill.rb +4 -0
  110. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +4 -0
  111. data/lib/aspose_slides_cloud/models/notes_slide.rb +4 -0
  112. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +4 -0
  113. data/lib/aspose_slides_cloud/models/object_exist.rb +4 -0
  114. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +7 -1
  115. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +4 -0
  116. data/lib/aspose_slides_cloud/models/one_value_series.rb +16 -6
  117. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +4 -0
  118. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +4 -0
  119. data/lib/aspose_slides_cloud/models/output_file.rb +4 -0
  120. data/lib/aspose_slides_cloud/models/paragraph.rb +4 -0
  121. data/lib/aspose_slides_cloud/models/paragraphs.rb +4 -0
  122. data/lib/aspose_slides_cloud/models/path_input_file.rb +4 -0
  123. data/lib/aspose_slides_cloud/models/path_output_file.rb +4 -0
  124. data/lib/aspose_slides_cloud/models/path_segment.rb +244 -0
  125. data/lib/aspose_slides_cloud/models/pattern_fill.rb +4 -0
  126. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +6 -1
  127. data/lib/aspose_slides_cloud/models/picture_fill.rb +4 -0
  128. data/lib/aspose_slides_cloud/models/picture_frame.rb +7 -1
  129. data/lib/aspose_slides_cloud/models/pipeline.rb +4 -0
  130. data/lib/aspose_slides_cloud/models/placeholder.rb +4 -0
  131. data/lib/aspose_slides_cloud/models/placeholders.rb +4 -0
  132. data/lib/aspose_slides_cloud/models/plot_area.rb +4 -0
  133. data/lib/aspose_slides_cloud/models/portion.rb +66 -2
  134. data/lib/aspose_slides_cloud/models/portions.rb +4 -0
  135. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +6 -1
  136. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +4 -0
  137. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +4 -0
  138. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +4 -0
  139. data/lib/aspose_slides_cloud/models/protection_properties.rb +4 -0
  140. data/lib/aspose_slides_cloud/models/quadratic_bezier_to_path_segment.rb +283 -0
  141. data/lib/aspose_slides_cloud/models/radical_element.rb +253 -0
  142. data/lib/aspose_slides_cloud/models/reflection_effect.rb +4 -0
  143. data/lib/aspose_slides_cloud/models/remove_shape.rb +4 -0
  144. data/lib/aspose_slides_cloud/models/remove_slide.rb +4 -0
  145. data/lib/aspose_slides_cloud/models/reorder_slide.rb +4 -0
  146. data/lib/aspose_slides_cloud/models/replace_text.rb +4 -0
  147. data/lib/aspose_slides_cloud/models/request_input_file.rb +4 -0
  148. data/lib/aspose_slides_cloud/models/reset_slide.rb +4 -0
  149. data/lib/aspose_slides_cloud/models/resource_base.rb +4 -0
  150. data/lib/aspose_slides_cloud/models/resource_uri.rb +4 -0
  151. data/lib/aspose_slides_cloud/models/response_output_file.rb +4 -0
  152. data/lib/aspose_slides_cloud/models/right_sub_superscript_element.rb +263 -0
  153. data/lib/aspose_slides_cloud/models/save.rb +6 -2
  154. data/lib/aspose_slides_cloud/models/save_shape.rb +4 -0
  155. data/lib/aspose_slides_cloud/models/save_slide.rb +6 -2
  156. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +4 -0
  157. data/lib/aspose_slides_cloud/models/scatter_series.rb +8 -6
  158. data/lib/aspose_slides_cloud/models/section.rb +4 -0
  159. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +256 -0
  160. data/lib/aspose_slides_cloud/models/sections.rb +4 -0
  161. data/lib/aspose_slides_cloud/models/series.rb +5 -41
  162. data/lib/aspose_slides_cloud/models/series_marker.rb +4 -0
  163. data/lib/aspose_slides_cloud/models/shape.rb +18 -2
  164. data/lib/aspose_slides_cloud/models/shape_base.rb +27 -3
  165. data/lib/aspose_slides_cloud/models/shape_bevel.rb +4 -0
  166. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +4 -0
  167. data/lib/aspose_slides_cloud/models/shape_type.rb +54 -0
  168. data/lib/aspose_slides_cloud/models/shapes.rb +4 -0
  169. data/lib/aspose_slides_cloud/models/slide.rb +4 -0
  170. data/lib/aspose_slides_cloud/models/slide_animation.rb +4 -0
  171. data/lib/aspose_slides_cloud/models/slide_background.rb +4 -0
  172. data/lib/aspose_slides_cloud/models/slide_comment.rb +36 -48
  173. data/lib/aspose_slides_cloud/models/slide_comment_base.rb +286 -0
  174. data/lib/aspose_slides_cloud/models/slide_comments.rb +5 -1
  175. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  176. data/lib/aspose_slides_cloud/models/slide_modern_comment.rb +269 -0
  177. data/lib/aspose_slides_cloud/models/slide_properties.rb +4 -0
  178. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +4 -0
  179. data/lib/aspose_slides_cloud/models/slides.rb +4 -0
  180. data/lib/aspose_slides_cloud/models/smart_art.rb +7 -1
  181. data/lib/aspose_slides_cloud/models/smart_art_node.rb +4 -0
  182. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +7 -1
  183. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +4 -0
  184. data/lib/aspose_slides_cloud/models/solid_fill.rb +4 -0
  185. data/lib/aspose_slides_cloud/models/split_document_result.rb +4 -0
  186. data/lib/aspose_slides_cloud/models/storage_exist.rb +4 -0
  187. data/lib/aspose_slides_cloud/models/storage_file.rb +4 -0
  188. data/lib/aspose_slides_cloud/models/subscript_element.rb +243 -0
  189. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +275 -0
  190. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +267 -0
  191. data/lib/aspose_slides_cloud/models/superscript_element.rb +243 -0
  192. data/lib/aspose_slides_cloud/models/svg_export_options.rb +6 -1
  193. data/lib/aspose_slides_cloud/models/swf_export_options.rb +6 -1
  194. data/lib/aspose_slides_cloud/models/table.rb +7 -1
  195. data/lib/aspose_slides_cloud/models/table_cell.rb +4 -0
  196. data/lib/aspose_slides_cloud/models/table_column.rb +4 -0
  197. data/lib/aspose_slides_cloud/models/table_row.rb +4 -0
  198. data/lib/aspose_slides_cloud/models/task.rb +4 -0
  199. data/lib/aspose_slides_cloud/models/text_bounds.rb +261 -0
  200. data/lib/aspose_slides_cloud/models/text_element.rb +233 -0
  201. data/lib/aspose_slides_cloud/models/text_frame_format.rb +255 -0
  202. data/lib/aspose_slides_cloud/models/text_item.rb +4 -0
  203. data/lib/aspose_slides_cloud/models/text_items.rb +4 -0
  204. data/lib/aspose_slides_cloud/models/theme.rb +4 -0
  205. data/lib/aspose_slides_cloud/models/three_d_format.rb +4 -0
  206. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +6 -1
  207. data/lib/aspose_slides_cloud/models/update_background.rb +4 -0
  208. data/lib/aspose_slides_cloud/models/update_shape.rb +4 -0
  209. data/lib/aspose_slides_cloud/models/video_export_options.rb +259 -0
  210. data/lib/aspose_slides_cloud/models/video_frame.rb +9 -3
  211. data/lib/aspose_slides_cloud/models/view_properties.rb +4 -0
  212. data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +4 -0
  213. data/lib/aspose_slides_cloud/models/waterfall_series.rb +6 -5
  214. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +215 -0
  215. data/lib/aspose_slides_cloud/models/xps_export_options.rb +6 -1
  216. data/lib/aspose_slides_cloud/models/xy_series.rb +255 -0
  217. data/lib/aspose_slides_cloud/models/zoom_frame.rb +256 -0
  218. data/lib/aspose_slides_cloud/models/zoom_object.rb +302 -0
  219. data/lib/aspose_slides_cloud/type_registry.rb +104 -6
  220. data/lib/aspose_slides_cloud/version.rb +1 -1
  221. data/lib/aspose_slides_cloud.rb +50 -3
  222. data/spec/api/slides_api_spec.rb +2610 -37
  223. data/spec/spec_utils.rb +7 -1
  224. data/spec/use_cases/abstract_class_spec.rb +38 -0
  225. data/spec/use_cases/animation_spec.rb +193 -0
  226. data/spec/use_cases/auth_spec.rb +91 -0
  227. data/spec/use_cases/chart_spec.rb +291 -0
  228. data/spec/use_cases/convert_spec.rb +154 -0
  229. data/spec/use_cases/create_spec.rb +101 -0
  230. data/spec/use_cases/header_footer_spec.rb +78 -0
  231. data/spec/use_cases/hyperlink_spec.rb +92 -0
  232. data/spec/use_cases/image_spec.rb +102 -0
  233. data/spec/use_cases/layout_slide_spec.rb +190 -0
  234. data/spec/use_cases/master_slide_spec.rb +190 -0
  235. data/spec/use_cases/math_spec.rb +163 -0
  236. data/spec/use_cases/merge_spec.rb +105 -0
  237. data/spec/use_cases/notes_slide_spec.rb +172 -0
  238. data/spec/use_cases/nullable_field_spec.rb +86 -0
  239. data/spec/use_cases/pipeline_spec.rb +61 -0
  240. data/spec/use_cases/property_spec.rb +177 -0
  241. data/spec/use_cases/section_spec.rb +104 -0
  242. data/spec/use_cases/shape_format_spec.rb +126 -0
  243. data/spec/use_cases/shape_spec.rb +397 -0
  244. data/spec/use_cases/split_spec.rb +88 -0
  245. data/spec/use_cases/text_spec.rb +74 -0
  246. data/spec/use_cases/timeout_spec.rb +44 -0
  247. data/spec/use_cases/watermark_spec.rb +158 -0
  248. data/testRules.json +17 -3
  249. metadata +148 -19
  250. data/TestData/ChartTest.pptx +0 -0
  251. data/TestData/Sections.pptx +0 -0
  252. data/TestData/placeholders.pptx +0 -0
  253. data/TestData/test-unprotected.ppt +0 -0
  254. data/TestData/test.ppt +0 -0
  255. data/spec/extra/extra_spec.rb +0 -203
@@ -0,0 +1,235 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # Provides options that control how a presentation is saved in Gif format.
27
+ class GifExportOptions < ExportOptions
28
+ # Determines whether hidden slides will be exported.
29
+ attr_accessor :export_hidden_slides
30
+
31
+ # Gets or sets transition FPS [frames/sec]
32
+ attr_accessor :transition_fps
33
+
34
+ # Gets or sets default delay time [ms].
35
+ attr_accessor :default_delay
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ super.merge({
40
+ :'export_hidden_slides' => :'ExportHiddenSlides',
41
+ :'transition_fps' => :'TransitionFps',
42
+ :'default_delay' => :'DefaultDelay',
43
+ })
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.swagger_types
48
+ super.merge({
49
+ :'export_hidden_slides' => :'BOOLEAN',
50
+ :'transition_fps' => :'Integer',
51
+ :'default_delay' => :'Integer',
52
+ })
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ super
59
+
60
+ if attributes.has_key?(:'ExportHiddenSlides')
61
+ self.export_hidden_slides = attributes[:'ExportHiddenSlides']
62
+ end
63
+
64
+ if attributes.has_key?(:'TransitionFps')
65
+ self.transition_fps = attributes[:'TransitionFps']
66
+ end
67
+
68
+ if attributes.has_key?(:'DefaultDelay')
69
+ self.default_delay = attributes[:'DefaultDelay']
70
+ end
71
+ self.format = "gif"
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = super
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ return false if !super
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ default_regular_font == o.default_regular_font &&
94
+ height == o.height &&
95
+ width == o.width &&
96
+ font_fallback_rules == o.font_fallback_rules &&
97
+ format == o.format &&
98
+ export_hidden_slides == o.export_hidden_slides &&
99
+ transition_fps == o.transition_fps &&
100
+ default_delay == o.default_delay
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Fixnum] Hash code
111
+ def hash
112
+ [default_regular_font, height, width, font_fallback_rules, format, export_hidden_slides, transition_fps, default_delay].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ self.class.swagger_types.each_pair do |key, type|
121
+ mapKey = self.class.attribute_map[key]
122
+ if !mapKey.nil?
123
+ val = attributes[mapKey]
124
+ if val.nil?
125
+ mapKeyString = mapKey.to_s
126
+ mapKeyString[0] = mapKeyString[0].downcase
127
+ mapKey = mapKeyString.to_sym
128
+ val = attributes[mapKey]
129
+ end
130
+ if !val.nil?
131
+ if type =~ /\AArray<(.*)>/i
132
+ # check to ensure the input is an array given that the the attribute
133
+ # is documented as an array but the input is not
134
+ if val.is_a?(Array)
135
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
136
+ end
137
+ else
138
+ self.send("#{key}=", _deserialize(type, val))
139
+ end
140
+ end
141
+ end
142
+ end
143
+
144
+ self
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def _deserialize(type, value)
152
+ case type.to_sym
153
+ when :DateTime
154
+ DateTime.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :BOOLEAN
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
185
+ if registry_type
186
+ type = registry_type
187
+ end
188
+ temp_model = AsposeSlidesCloud.const_get(type).new
189
+ temp_model.build_from_hash(value)
190
+ end
191
+ end
192
+
193
+ # Returns the string representation of the object
194
+ # @return [String] String presentation of the object
195
+ def to_s
196
+ to_hash.to_s
197
+ end
198
+
199
+ # to_body is an alias to to_hash (backward compatibility)
200
+ # @return [Hash] Returns the object in the form of hash
201
+ def to_body
202
+ to_hash
203
+ end
204
+
205
+ # Returns the object in the form of hash
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_hash
208
+ hash = {}
209
+ self.class.attribute_map.each_pair do |attr, param|
210
+ value = self.send(attr)
211
+ next if value.nil?
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+ end
235
+ end
@@ -172,6 +172,10 @@ module AsposeSlidesCloud
172
172
  end
173
173
  end
174
174
  else # model
175
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
176
+ if registry_type
177
+ type = registry_type
178
+ end
175
179
  temp_model = AsposeSlidesCloud.const_get(type).new
176
180
  temp_model.build_from_hash(value)
177
181
  end
@@ -292,6 +292,10 @@ module AsposeSlidesCloud
292
292
  end
293
293
  end
294
294
  else # model
295
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
296
+ if registry_type
297
+ type = registry_type
298
+ end
295
299
  temp_model = AsposeSlidesCloud.const_get(type).new
296
300
  temp_model.build_from_hash(value)
297
301
  end
@@ -172,6 +172,10 @@ module AsposeSlidesCloud
172
172
  end
173
173
  end
174
174
  else # model
175
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
176
+ if registry_type
177
+ type = registry_type
178
+ end
175
179
  temp_model = AsposeSlidesCloud.const_get(type).new
176
180
  temp_model.build_from_hash(value)
177
181
  end
@@ -101,6 +101,8 @@ module AsposeSlidesCloud
101
101
  effect_format == o.effect_format &&
102
102
  three_d_format == o.three_d_format &&
103
103
  line_format == o.line_format &&
104
+ hyperlink_click == o.hyperlink_click &&
105
+ hyperlink_mouse_over == o.hyperlink_mouse_over &&
104
106
  type == o.type
105
107
  end
106
108
 
@@ -113,7 +115,7 @@ module AsposeSlidesCloud
113
115
  # Calculates hash code according to all attributes.
114
116
  # @return [Fixnum] Hash code
115
117
  def hash
116
- [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type].hash
118
+ [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
117
119
  end
118
120
 
119
121
  # Builds the object from hash
@@ -185,6 +187,10 @@ module AsposeSlidesCloud
185
187
  end
186
188
  end
187
189
  else # model
190
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
191
+ if registry_type
192
+ type = registry_type
193
+ end
188
194
  temp_model = AsposeSlidesCloud.const_get(type).new
189
195
  temp_model.build_from_hash(value)
190
196
  end
@@ -101,6 +101,8 @@ module AsposeSlidesCloud
101
101
  effect_format == o.effect_format &&
102
102
  three_d_format == o.three_d_format &&
103
103
  line_format == o.line_format &&
104
+ hyperlink_click == o.hyperlink_click &&
105
+ hyperlink_mouse_over == o.hyperlink_mouse_over &&
104
106
  type == o.type
105
107
  end
106
108
 
@@ -113,7 +115,7 @@ module AsposeSlidesCloud
113
115
  # Calculates hash code according to all attributes.
114
116
  # @return [Fixnum] Hash code
115
117
  def hash
116
- [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type].hash
118
+ [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
117
119
  end
118
120
 
119
121
  # Builds the object from hash
@@ -185,6 +187,10 @@ module AsposeSlidesCloud
185
187
  end
186
188
  end
187
189
  else # model
190
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
191
+ if registry_type
192
+ type = registry_type
193
+ end
188
194
  temp_model = AsposeSlidesCloud.const_get(type).new
189
195
  temp_model.build_from_hash(value)
190
196
  end
@@ -0,0 +1,287 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # Specifies a grouping symbol above or below an expression, usually to highlight the relationship between elements
27
+ class GroupingCharacterElement < MathElement
28
+ # Base
29
+ attr_accessor :base
30
+
31
+ # Grouping character
32
+ attr_accessor :character
33
+
34
+ # Position of grouping character.
35
+ attr_accessor :position
36
+
37
+ # Vertical justification of group character.
38
+ attr_accessor :vertical_justification
39
+
40
+ class EnumAttributeValidator
41
+ attr_reader :datatype
42
+ attr_reader :allowable_values
43
+
44
+ def initialize(datatype, allowable_values)
45
+ @allowable_values = allowable_values.map do |value|
46
+ case datatype.to_s
47
+ when /Integer/i
48
+ value.to_i
49
+ when /Float/i
50
+ value.to_f
51
+ else
52
+ value
53
+ end
54
+ end
55
+ end
56
+
57
+ def valid?(value)
58
+ !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
59
+ end
60
+ end
61
+
62
+ # Attribute mapping from ruby-style variable name to JSON key.
63
+ def self.attribute_map
64
+ super.merge({
65
+ :'base' => :'Base',
66
+ :'character' => :'Character',
67
+ :'position' => :'Position',
68
+ :'vertical_justification' => :'VerticalJustification',
69
+ })
70
+ end
71
+
72
+ # Attribute type mapping.
73
+ def self.swagger_types
74
+ super.merge({
75
+ :'base' => :'MathElement',
76
+ :'character' => :'String',
77
+ :'position' => :'String',
78
+ :'vertical_justification' => :'String',
79
+ })
80
+ end
81
+
82
+ # Initializes the object
83
+ # @param [Hash] attributes Model attributes in the form of hash
84
+ def initialize(attributes = {})
85
+ super
86
+
87
+ if attributes.has_key?(:'Base')
88
+ self.base = attributes[:'Base']
89
+ end
90
+
91
+ if attributes.has_key?(:'Character')
92
+ self.character = attributes[:'Character']
93
+ end
94
+
95
+ if attributes.has_key?(:'Position')
96
+ self.position = attributes[:'Position']
97
+ end
98
+
99
+ if attributes.has_key?(:'VerticalJustification')
100
+ self.vertical_justification = attributes[:'VerticalJustification']
101
+ end
102
+ self.type = "GroupingCharacter"
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ invalid_properties = super
109
+ invalid_properties
110
+ end
111
+
112
+ # Check to see if the all the properties in the model are valid
113
+ # @return true if the model is valid
114
+ def valid?
115
+ return false if !super
116
+ position_validator = EnumAttributeValidator.new('String', ['NotDefined', 'Top', 'Bottom'])
117
+ return false unless position_validator.valid?(@position)
118
+ vertical_justification_validator = EnumAttributeValidator.new('String', ['NotDefined', 'Top', 'Bottom'])
119
+ return false unless vertical_justification_validator.valid?(@vertical_justification)
120
+ true
121
+ end
122
+
123
+ # Custom attribute writer method checking allowed values (enum).
124
+ # @param [Object] position Object to be assigned
125
+ def position=(position)
126
+ validator = EnumAttributeValidator.new('String', ['NotDefined', 'Top', 'Bottom'])
127
+ unless validator.valid?(position)
128
+ fail ArgumentError, 'invalid value for "position", must be one of #{validator.allowable_values}.'
129
+ end
130
+ @position = position
131
+ end
132
+
133
+ # Custom attribute writer method checking allowed values (enum).
134
+ # @param [Object] vertical_justification Object to be assigned
135
+ def vertical_justification=(vertical_justification)
136
+ validator = EnumAttributeValidator.new('String', ['NotDefined', 'Top', 'Bottom'])
137
+ unless validator.valid?(vertical_justification)
138
+ fail ArgumentError, 'invalid value for "vertical_justification", must be one of #{validator.allowable_values}.'
139
+ end
140
+ @vertical_justification = vertical_justification
141
+ end
142
+
143
+ # Checks equality by comparing each attribute.
144
+ # @param [Object] Object to be compared
145
+ def ==(o)
146
+ return true if self.equal?(o)
147
+ self.class == o.class &&
148
+ type == o.type &&
149
+ base == o.base &&
150
+ character == o.character &&
151
+ position == o.position &&
152
+ vertical_justification == o.vertical_justification
153
+ end
154
+
155
+ # @see the `==` method
156
+ # @param [Object] Object to be compared
157
+ def eql?(o)
158
+ self == o
159
+ end
160
+
161
+ # Calculates hash code according to all attributes.
162
+ # @return [Fixnum] Hash code
163
+ def hash
164
+ [type, base, character, position, vertical_justification].hash
165
+ end
166
+
167
+ # Builds the object from hash
168
+ # @param [Hash] attributes Model attributes in the form of hash
169
+ # @return [Object] Returns the model itself
170
+ def build_from_hash(attributes)
171
+ return nil unless attributes.is_a?(Hash)
172
+ self.class.swagger_types.each_pair do |key, type|
173
+ mapKey = self.class.attribute_map[key]
174
+ if !mapKey.nil?
175
+ val = attributes[mapKey]
176
+ if val.nil?
177
+ mapKeyString = mapKey.to_s
178
+ mapKeyString[0] = mapKeyString[0].downcase
179
+ mapKey = mapKeyString.to_sym
180
+ val = attributes[mapKey]
181
+ end
182
+ if !val.nil?
183
+ if type =~ /\AArray<(.*)>/i
184
+ # check to ensure the input is an array given that the the attribute
185
+ # is documented as an array but the input is not
186
+ if val.is_a?(Array)
187
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
188
+ end
189
+ else
190
+ self.send("#{key}=", _deserialize(type, val))
191
+ end
192
+ end
193
+ end
194
+ end
195
+
196
+ self
197
+ end
198
+
199
+ # Deserializes the data based on type
200
+ # @param string type Data type
201
+ # @param string value Value to be deserialized
202
+ # @return [Object] Deserialized data
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)
233
+ end
234
+ 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
+ end
243
+ end
244
+
245
+ # Returns the string representation of the object
246
+ # @return [String] String presentation of the object
247
+ def to_s
248
+ to_hash.to_s
249
+ end
250
+
251
+ # to_body is an alias to to_hash (backward compatibility)
252
+ # @return [Hash] Returns the object in the form of hash
253
+ def to_body
254
+ to_hash
255
+ end
256
+
257
+ # Returns the object in the form of hash
258
+ # @return [Hash] Returns the object in the form of hash
259
+ def to_hash
260
+ hash = {}
261
+ self.class.attribute_map.each_pair do |attr, param|
262
+ value = self.send(attr)
263
+ next if value.nil?
264
+ hash[param] = _to_hash(value)
265
+ end
266
+ hash
267
+ end
268
+
269
+ # Outputs non-array value in the form of hash
270
+ # For object, use to_hash. Otherwise, just return the value
271
+ # @param [Object] value Any valid value
272
+ # @return [Hash] Returns the value in the form of hash
273
+ def _to_hash(value)
274
+ if value.is_a?(Array)
275
+ value.compact.map { |v| _to_hash(v) }
276
+ elsif value.is_a?(Hash)
277
+ {}.tap do |hash|
278
+ value.each { |k, v| hash[k] = _to_hash(v) }
279
+ end
280
+ elsif value.respond_to? :to_hash
281
+ value.to_hash
282
+ else
283
+ value
284
+ end
285
+ end
286
+ end
287
+ end
@@ -197,6 +197,10 @@ module AsposeSlidesCloud
197
197
  end
198
198
  end
199
199
  else # model
200
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
201
+ if registry_type
202
+ type = registry_type
203
+ end
200
204
  temp_model = AsposeSlidesCloud.const_get(type).new
201
205
  temp_model.build_from_hash(value)
202
206
  end
@@ -84,6 +84,7 @@ module AsposeSlidesCloud
84
84
  default_regular_font == o.default_regular_font &&
85
85
  height == o.height &&
86
86
  width == o.width &&
87
+ font_fallback_rules == o.font_fallback_rules &&
87
88
  format == o.format &&
88
89
  animate_transitions == o.animate_transitions &&
89
90
  animate_shapes == o.animate_shapes
@@ -98,7 +99,7 @@ module AsposeSlidesCloud
98
99
  # Calculates hash code according to all attributes.
99
100
  # @return [Fixnum] Hash code
100
101
  def hash
101
- [default_regular_font, height, width, format, animate_transitions, animate_shapes].hash
102
+ [default_regular_font, height, width, font_fallback_rules, format, animate_transitions, animate_shapes].hash
102
103
  end
103
104
 
104
105
  # Builds the object from hash
@@ -170,6 +171,10 @@ module AsposeSlidesCloud
170
171
  end
171
172
  end
172
173
  else # model
174
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
175
+ if registry_type
176
+ type = registry_type
177
+ end
173
178
  temp_model = AsposeSlidesCloud.const_get(type).new
174
179
  temp_model.build_from_hash(value)
175
180
  end
@@ -232,6 +232,7 @@ module AsposeSlidesCloud
232
232
  default_regular_font == o.default_regular_font &&
233
233
  height == o.height &&
234
234
  width == o.width &&
235
+ font_fallback_rules == o.font_fallback_rules &&
235
236
  format == o.format &&
236
237
  save_as_zip == o.save_as_zip &&
237
238
  sub_directory_name == o.sub_directory_name &&
@@ -256,7 +257,7 @@ module AsposeSlidesCloud
256
257
  # Calculates hash code according to all attributes.
257
258
  # @return [Fixnum] Hash code
258
259
  def hash
259
- [default_regular_font, height, width, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
260
+ [default_regular_font, height, width, font_fallback_rules, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
260
261
  end
261
262
 
262
263
  # Builds the object from hash
@@ -328,6 +329,10 @@ module AsposeSlidesCloud
328
329
  end
329
330
  end
330
331
  else # model
332
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
333
+ if registry_type
334
+ type = registry_type
335
+ end
331
336
  temp_model = AsposeSlidesCloud.const_get(type).new
332
337
  temp_model.build_from_hash(value)
333
338
  end