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
@@ -24,7 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Arrow head properties.
27
- class ArrowHeadProperties
27
+ class ArrowHeadProperties < BaseObject
28
28
  # Length.
29
29
  attr_accessor :length
30
30
 
@@ -34,28 +34,6 @@ module AsposeSlidesCloud
34
34
  # Width.
35
35
  attr_accessor :width
36
36
 
37
- class EnumAttributeValidator
38
- attr_reader :datatype
39
- attr_reader :allowable_values
40
-
41
- def initialize(datatype, allowable_values)
42
- @allowable_values = allowable_values.map do |value|
43
- case datatype.to_s
44
- when /Integer/i
45
- value.to_i
46
- when /Float/i
47
- value.to_f
48
- else
49
- value
50
- end
51
- end
52
- end
53
-
54
- def valid?(value)
55
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
56
- end
57
- end
58
-
59
37
  # Attribute mapping from ruby-style variable name to JSON key.
60
38
  def self.attribute_map
61
39
  {
@@ -165,129 +143,5 @@ module AsposeSlidesCloud
165
143
  def hash
166
144
  [length, style, width].hash
167
145
  end
168
-
169
- # Builds the object from hash
170
- # @param [Hash] attributes Model attributes in the form of hash
171
- # @return [Object] Returns the model itself
172
- def build_from_hash(attributes)
173
- return nil unless attributes.is_a?(Hash)
174
- self.class.swagger_types.each_pair do |key, type|
175
- mapKey = self.class.attribute_map[key]
176
- if !mapKey.nil?
177
- val = attributes[mapKey]
178
- if val.nil?
179
- mapKeyString = mapKey.to_s
180
- mapKeyString[0] = mapKeyString[0].downcase
181
- mapKey = mapKeyString.to_sym
182
- val = attributes[mapKey]
183
- end
184
- if !val.nil?
185
- if type =~ /\AArray<(.*)>/i
186
- # check to ensure the input is an array given that the the attribute
187
- # is documented as an array but the input is not
188
- if val.is_a?(Array)
189
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
190
- end
191
- else
192
- self.send("#{key}=", _deserialize(type, val))
193
- end
194
- end
195
- end
196
- end
197
-
198
- self
199
- end
200
-
201
- # Deserializes the data based on type
202
- # @param string type Data type
203
- # @param string value Value to be deserialized
204
- # @return [Object] Deserialized data
205
- def _deserialize(type, value)
206
- if value.nil?
207
- nil
208
- else
209
- case type.to_sym
210
- when :DateTime
211
- DateTime.parse(value)
212
- when :Date
213
- Date.parse(value)
214
- when :String
215
- value.to_s
216
- when :Integer
217
- value.to_i
218
- when :Float
219
- value.to_f
220
- when :BOOLEAN
221
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
222
- true
223
- else
224
- false
225
- end
226
- when :Object
227
- # generic object (usually a Hash), return directly
228
- value
229
- when /\AArray<(?<inner_type>.+)>\z/
230
- inner_type = Regexp.last_match[:inner_type]
231
- value.map { |v| _deserialize(inner_type, v) }
232
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
233
- k_type = Regexp.last_match[:k_type]
234
- v_type = Regexp.last_match[:v_type]
235
- {}.tap do |hash|
236
- value.each do |k, v|
237
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
238
- end
239
- end
240
- else # model
241
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
242
- if registry_type
243
- type = registry_type
244
- end
245
- temp_model = AsposeSlidesCloud.const_get(type).new
246
- temp_model.build_from_hash(value)
247
- end
248
- end
249
- end
250
-
251
- # Returns the string representation of the object
252
- # @return [String] String presentation of the object
253
- def to_s
254
- to_hash.to_s
255
- end
256
-
257
- # to_body is an alias to to_hash (backward compatibility)
258
- # @return [Hash] Returns the object in the form of hash
259
- def to_body
260
- to_hash
261
- end
262
-
263
- # Returns the object in the form of hash
264
- # @return [Hash] Returns the object in the form of hash
265
- def to_hash
266
- hash = {}
267
- self.class.attribute_map.each_pair do |attr, param|
268
- value = self.send(attr)
269
- next if value.nil?
270
- hash[param] = _to_hash(value)
271
- end
272
- hash
273
- end
274
-
275
- # Outputs non-array value in the form of hash
276
- # For object, use to_hash. Otherwise, just return the value
277
- # @param [Object] value Any valid value
278
- # @return [Hash] Returns the value in the form of hash
279
- def _to_hash(value)
280
- if value.is_a?(Array)
281
- value.compact.map { |v| _to_hash(v) }
282
- elsif value.is_a?(Hash)
283
- {}.tap do |hash|
284
- value.each { |k, v| hash[k] = _to_hash(v) }
285
- end
286
- elsif value.respond_to? :to_hash
287
- value.to_hash
288
- else
289
- value
290
- end
291
- end
292
146
  end
293
147
  end
@@ -64,28 +64,6 @@ module AsposeSlidesCloud
64
64
  # Picture fill format.
65
65
  attr_accessor :picture_fill_format
66
66
 
67
- class EnumAttributeValidator
68
- attr_reader :datatype
69
- attr_reader :allowable_values
70
-
71
- def initialize(datatype, allowable_values)
72
- @allowable_values = allowable_values.map do |value|
73
- case datatype.to_s
74
- when /Integer/i
75
- value.to_i
76
- when /Float/i
77
- value.to_f
78
- else
79
- value
80
- end
81
- end
82
- end
83
-
84
- def valid?(value)
85
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
86
- end
87
- end
88
-
89
67
  # Attribute mapping from ruby-style variable name to JSON key.
90
68
  def self.attribute_map
91
69
  super.merge({
@@ -271,129 +249,5 @@ module AsposeSlidesCloud
271
249
  def hash
272
250
  [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, shape_type, audio_cd_end_track, audio_cd_end_track_time, audio_cd_start_track, audio_cd_start_track_time, embedded, hide_at_showing, play_loop_mode, play_mode, volume, base64_data, play_across_slides, rewind_audio, picture_fill_format].hash
273
251
  end
274
-
275
- # Builds the object from hash
276
- # @param [Hash] attributes Model attributes in the form of hash
277
- # @return [Object] Returns the model itself
278
- def build_from_hash(attributes)
279
- return nil unless attributes.is_a?(Hash)
280
- self.class.swagger_types.each_pair do |key, type|
281
- mapKey = self.class.attribute_map[key]
282
- if !mapKey.nil?
283
- val = attributes[mapKey]
284
- if val.nil?
285
- mapKeyString = mapKey.to_s
286
- mapKeyString[0] = mapKeyString[0].downcase
287
- mapKey = mapKeyString.to_sym
288
- val = attributes[mapKey]
289
- end
290
- if !val.nil?
291
- if type =~ /\AArray<(.*)>/i
292
- # check to ensure the input is an array given that the the attribute
293
- # is documented as an array but the input is not
294
- if val.is_a?(Array)
295
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
296
- end
297
- else
298
- self.send("#{key}=", _deserialize(type, val))
299
- end
300
- end
301
- end
302
- end
303
-
304
- self
305
- end
306
-
307
- # Deserializes the data based on type
308
- # @param string type Data type
309
- # @param string value Value to be deserialized
310
- # @return [Object] Deserialized data
311
- def _deserialize(type, value)
312
- if value.nil?
313
- nil
314
- else
315
- case type.to_sym
316
- when :DateTime
317
- DateTime.parse(value)
318
- when :Date
319
- Date.parse(value)
320
- when :String
321
- value.to_s
322
- when :Integer
323
- value.to_i
324
- when :Float
325
- value.to_f
326
- when :BOOLEAN
327
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
328
- true
329
- else
330
- false
331
- end
332
- when :Object
333
- # generic object (usually a Hash), return directly
334
- value
335
- when /\AArray<(?<inner_type>.+)>\z/
336
- inner_type = Regexp.last_match[:inner_type]
337
- value.map { |v| _deserialize(inner_type, v) }
338
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
339
- k_type = Regexp.last_match[:k_type]
340
- v_type = Regexp.last_match[:v_type]
341
- {}.tap do |hash|
342
- value.each do |k, v|
343
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
344
- end
345
- end
346
- else # model
347
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
348
- if registry_type
349
- type = registry_type
350
- end
351
- temp_model = AsposeSlidesCloud.const_get(type).new
352
- temp_model.build_from_hash(value)
353
- end
354
- end
355
- end
356
-
357
- # Returns the string representation of the object
358
- # @return [String] String presentation of the object
359
- def to_s
360
- to_hash.to_s
361
- end
362
-
363
- # to_body is an alias to to_hash (backward compatibility)
364
- # @return [Hash] Returns the object in the form of hash
365
- def to_body
366
- to_hash
367
- end
368
-
369
- # Returns the object in the form of hash
370
- # @return [Hash] Returns the object in the form of hash
371
- def to_hash
372
- hash = {}
373
- self.class.attribute_map.each_pair do |attr, param|
374
- value = self.send(attr)
375
- next if value.nil?
376
- hash[param] = _to_hash(value)
377
- end
378
- hash
379
- end
380
-
381
- # Outputs non-array value in the form of hash
382
- # For object, use to_hash. Otherwise, just return the value
383
- # @param [Object] value Any valid value
384
- # @return [Hash] Returns the value in the form of hash
385
- def _to_hash(value)
386
- if value.is_a?(Array)
387
- value.compact.map { |v| _to_hash(v) }
388
- elsif value.is_a?(Hash)
389
- {}.tap do |hash|
390
- value.each { |k, v| hash[k] = _to_hash(v) }
391
- end
392
- elsif value.respond_to? :to_hash
393
- value.to_hash
394
- else
395
- value
396
- end
397
- end
398
252
  end
399
253
  end
@@ -24,7 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents chart axes
27
- class Axes
27
+ class Axes < BaseObject
28
28
  # Gets or sets the horizontal axis.
29
29
  attr_accessor :horizontal_axis
30
30
 
@@ -117,129 +117,5 @@ module AsposeSlidesCloud
117
117
  def hash
118
118
  [horizontal_axis, vertical_axis, secondary_horizontal_axis, secondary_vertical_axis].hash
119
119
  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
120
  end
245
121
  end
@@ -24,7 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents a chart axis
27
- class Axis
27
+ class Axis < BaseObject
28
28
  # True if the axis is visible
29
29
  attr_accessor :is_visible
30
30
 
@@ -139,28 +139,6 @@ module AsposeSlidesCloud
139
139
  # Get or sets the format of major grid lines.
140
140
  attr_accessor :minor_grid_lines_format
141
141
 
142
- class EnumAttributeValidator
143
- attr_reader :datatype
144
- attr_reader :allowable_values
145
-
146
- def initialize(datatype, allowable_values)
147
- @allowable_values = allowable_values.map do |value|
148
- case datatype.to_s
149
- when /Integer/i
150
- value.to_i
151
- when /Float/i
152
- value.to_f
153
- else
154
- value
155
- end
156
- end
157
- end
158
-
159
- def valid?(value)
160
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
161
- end
162
- end
163
-
164
142
  # Attribute mapping from ruby-style variable name to JSON key.
165
143
  def self.attribute_map
166
144
  {
@@ -599,129 +577,5 @@ module AsposeSlidesCloud
599
577
  def hash
600
578
  [is_visible, has_title, position, display_unit, base_unit_scale, is_automatic_major_unit, major_unit, major_unit_scale, major_tick_mark, is_automatic_minor_unit, minor_unit, minor_unit_scale, minor_tick_mark, is_automatic_max_value, max_value, is_automatic_min_value, min_value, is_logarithmic, log_base, category_axis_type, axis_between_categories, label_offset, is_plot_order_reversed, is_number_format_linked_to_source, number_format, cross_type, cross_at, is_automatic_tick_marks_spacing, tick_marks_spacing, is_automatic_tick_label_spacing, tick_label_spacing, tick_label_position, tick_label_rotation_angle, fill_format, effect_format, line_format, major_grid_lines_format, minor_grid_lines_format].hash
601
579
  end
602
-
603
- # Builds the object from hash
604
- # @param [Hash] attributes Model attributes in the form of hash
605
- # @return [Object] Returns the model itself
606
- def build_from_hash(attributes)
607
- return nil unless attributes.is_a?(Hash)
608
- self.class.swagger_types.each_pair do |key, type|
609
- mapKey = self.class.attribute_map[key]
610
- if !mapKey.nil?
611
- val = attributes[mapKey]
612
- if val.nil?
613
- mapKeyString = mapKey.to_s
614
- mapKeyString[0] = mapKeyString[0].downcase
615
- mapKey = mapKeyString.to_sym
616
- val = attributes[mapKey]
617
- end
618
- if !val.nil?
619
- if type =~ /\AArray<(.*)>/i
620
- # check to ensure the input is an array given that the the attribute
621
- # is documented as an array but the input is not
622
- if val.is_a?(Array)
623
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
624
- end
625
- else
626
- self.send("#{key}=", _deserialize(type, val))
627
- end
628
- end
629
- end
630
- end
631
-
632
- self
633
- end
634
-
635
- # Deserializes the data based on type
636
- # @param string type Data type
637
- # @param string value Value to be deserialized
638
- # @return [Object] Deserialized data
639
- def _deserialize(type, value)
640
- if value.nil?
641
- nil
642
- else
643
- case type.to_sym
644
- when :DateTime
645
- DateTime.parse(value)
646
- when :Date
647
- Date.parse(value)
648
- when :String
649
- value.to_s
650
- when :Integer
651
- value.to_i
652
- when :Float
653
- value.to_f
654
- when :BOOLEAN
655
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
656
- true
657
- else
658
- false
659
- end
660
- when :Object
661
- # generic object (usually a Hash), return directly
662
- value
663
- when /\AArray<(?<inner_type>.+)>\z/
664
- inner_type = Regexp.last_match[:inner_type]
665
- value.map { |v| _deserialize(inner_type, v) }
666
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
667
- k_type = Regexp.last_match[:k_type]
668
- v_type = Regexp.last_match[:v_type]
669
- {}.tap do |hash|
670
- value.each do |k, v|
671
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
672
- end
673
- end
674
- else # model
675
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
676
- if registry_type
677
- type = registry_type
678
- end
679
- temp_model = AsposeSlidesCloud.const_get(type).new
680
- temp_model.build_from_hash(value)
681
- end
682
- end
683
- end
684
-
685
- # Returns the string representation of the object
686
- # @return [String] String presentation of the object
687
- def to_s
688
- to_hash.to_s
689
- end
690
-
691
- # to_body is an alias to to_hash (backward compatibility)
692
- # @return [Hash] Returns the object in the form of hash
693
- def to_body
694
- to_hash
695
- end
696
-
697
- # Returns the object in the form of hash
698
- # @return [Hash] Returns the object in the form of hash
699
- def to_hash
700
- hash = {}
701
- self.class.attribute_map.each_pair do |attr, param|
702
- value = self.send(attr)
703
- next if value.nil?
704
- hash[param] = _to_hash(value)
705
- end
706
- hash
707
- end
708
-
709
- # Outputs non-array value in the form of hash
710
- # For object, use to_hash. Otherwise, just return the value
711
- # @param [Object] value Any valid value
712
- # @return [Hash] Returns the value in the form of hash
713
- def _to_hash(value)
714
- if value.is_a?(Array)
715
- value.compact.map { |v| _to_hash(v) }
716
- elsif value.is_a?(Hash)
717
- {}.tap do |hash|
718
- value.each { |k, v| hash[k] = _to_hash(v) }
719
- end
720
- elsif value.respond_to? :to_hash
721
- value.to_hash
722
- else
723
- value
724
- end
725
- end
726
580
  end
727
581
  end