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
@@ -58,28 +58,6 @@ module AsposeSlidesCloud
58
58
  # Determines whether to perform the specified rotation of the shape when rendering or not.
59
59
  attr_accessor :use_frame_rotation
60
60
 
61
- class EnumAttributeValidator
62
- attr_reader :datatype
63
- attr_reader :allowable_values
64
-
65
- def initialize(datatype, allowable_values)
66
- @allowable_values = allowable_values.map do |value|
67
- case datatype.to_s
68
- when /Integer/i
69
- value.to_i
70
- when /Float/i
71
- value.to_f
72
- else
73
- value
74
- end
75
- end
76
- end
77
-
78
- def valid?(value)
79
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
80
- end
81
- end
82
-
83
61
  # Attribute mapping from ruby-style variable name to JSON key.
84
62
  def self.attribute_map
85
63
  super.merge({
@@ -236,129 +214,5 @@ module AsposeSlidesCloud
236
214
  def hash
237
215
  [default_regular_font, font_fallback_rules, font_subst_rules, format, vectorize_text, metafile_rasterization_dpi, disable3_d_text, disable_gradient_split, disable_line_end_cropping, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, external_fonts_handling, use_frame_size, use_frame_rotation].hash
238
216
  end
239
-
240
- # Builds the object from hash
241
- # @param [Hash] attributes Model attributes in the form of hash
242
- # @return [Object] Returns the model itself
243
- def build_from_hash(attributes)
244
- return nil unless attributes.is_a?(Hash)
245
- self.class.swagger_types.each_pair do |key, type|
246
- mapKey = self.class.attribute_map[key]
247
- if !mapKey.nil?
248
- val = attributes[mapKey]
249
- if val.nil?
250
- mapKeyString = mapKey.to_s
251
- mapKeyString[0] = mapKeyString[0].downcase
252
- mapKey = mapKeyString.to_sym
253
- val = attributes[mapKey]
254
- end
255
- if !val.nil?
256
- if type =~ /\AArray<(.*)>/i
257
- # check to ensure the input is an array given that the the attribute
258
- # is documented as an array but the input is not
259
- if val.is_a?(Array)
260
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
261
- end
262
- else
263
- self.send("#{key}=", _deserialize(type, val))
264
- end
265
- end
266
- end
267
- end
268
-
269
- self
270
- end
271
-
272
- # Deserializes the data based on type
273
- # @param string type Data type
274
- # @param string value Value to be deserialized
275
- # @return [Object] Deserialized data
276
- def _deserialize(type, value)
277
- if value.nil?
278
- nil
279
- else
280
- case type.to_sym
281
- when :DateTime
282
- DateTime.parse(value)
283
- when :Date
284
- Date.parse(value)
285
- when :String
286
- value.to_s
287
- when :Integer
288
- value.to_i
289
- when :Float
290
- value.to_f
291
- when :BOOLEAN
292
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
293
- true
294
- else
295
- false
296
- end
297
- when :Object
298
- # generic object (usually a Hash), return directly
299
- value
300
- when /\AArray<(?<inner_type>.+)>\z/
301
- inner_type = Regexp.last_match[:inner_type]
302
- value.map { |v| _deserialize(inner_type, v) }
303
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
304
- k_type = Regexp.last_match[:k_type]
305
- v_type = Regexp.last_match[:v_type]
306
- {}.tap do |hash|
307
- value.each do |k, v|
308
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
309
- end
310
- end
311
- else # model
312
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
313
- if registry_type
314
- type = registry_type
315
- end
316
- temp_model = AsposeSlidesCloud.const_get(type).new
317
- temp_model.build_from_hash(value)
318
- end
319
- end
320
- end
321
-
322
- # Returns the string representation of the object
323
- # @return [String] String presentation of the object
324
- def to_s
325
- to_hash.to_s
326
- end
327
-
328
- # to_body is an alias to to_hash (backward compatibility)
329
- # @return [Hash] Returns the object in the form of hash
330
- def to_body
331
- to_hash
332
- end
333
-
334
- # Returns the object in the form of hash
335
- # @return [Hash] Returns the object in the form of hash
336
- def to_hash
337
- hash = {}
338
- self.class.attribute_map.each_pair do |attr, param|
339
- value = self.send(attr)
340
- next if value.nil?
341
- hash[param] = _to_hash(value)
342
- end
343
- hash
344
- end
345
-
346
- # Outputs non-array value in the form of hash
347
- # For object, use to_hash. Otherwise, just return the value
348
- # @param [Object] value Any valid value
349
- # @return [Hash] Returns the value in the form of hash
350
- def _to_hash(value)
351
- if value.is_a?(Array)
352
- value.compact.map { |v| _to_hash(v) }
353
- elsif value.is_a?(Hash)
354
- {}.tap do |hash|
355
- value.each { |k, v| hash[k] = _to_hash(v) }
356
- end
357
- elsif value.respond_to? :to_hash
358
- value.to_hash
359
- else
360
- value
361
- end
362
- end
363
217
  end
364
218
  end
@@ -85,28 +85,6 @@ module AsposeSlidesCloud
85
85
  # True if comments that have no author are displayed. (Applies only if comments are displayed).
86
86
  attr_accessor :show_comments_by_no_author
87
87
 
88
- class EnumAttributeValidator
89
- attr_reader :datatype
90
- attr_reader :allowable_values
91
-
92
- def initialize(datatype, allowable_values)
93
- @allowable_values = allowable_values.map do |value|
94
- case datatype.to_s
95
- when /Integer/i
96
- value.to_i
97
- when /Float/i
98
- value.to_f
99
- else
100
- value
101
- end
102
- end
103
- end
104
-
105
- def valid?(value)
106
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
107
- end
108
- end
109
-
110
88
  # Attribute mapping from ruby-style variable name to JSON key.
111
89
  def self.attribute_map
112
90
  super.merge({
@@ -326,129 +304,5 @@ module AsposeSlidesCloud
326
304
  def hash
327
305
  [default_regular_font, font_fallback_rules, font_subst_rules, format, show_hidden_slides, compressed, viewer_included, show_page_border, show_full_screen, show_page_stepper, show_search, show_top_pane, show_bottom_pane, show_left_pane, start_open_left_pane, enable_context_menu, logo_image, logo_link, jpeg_quality, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
328
306
  end
329
-
330
- # Builds the object from hash
331
- # @param [Hash] attributes Model attributes in the form of hash
332
- # @return [Object] Returns the model itself
333
- def build_from_hash(attributes)
334
- return nil unless attributes.is_a?(Hash)
335
- self.class.swagger_types.each_pair do |key, type|
336
- mapKey = self.class.attribute_map[key]
337
- if !mapKey.nil?
338
- val = attributes[mapKey]
339
- if val.nil?
340
- mapKeyString = mapKey.to_s
341
- mapKeyString[0] = mapKeyString[0].downcase
342
- mapKey = mapKeyString.to_sym
343
- val = attributes[mapKey]
344
- end
345
- if !val.nil?
346
- if type =~ /\AArray<(.*)>/i
347
- # check to ensure the input is an array given that the the attribute
348
- # is documented as an array but the input is not
349
- if val.is_a?(Array)
350
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
351
- end
352
- else
353
- self.send("#{key}=", _deserialize(type, val))
354
- end
355
- end
356
- end
357
- end
358
-
359
- self
360
- end
361
-
362
- # Deserializes the data based on type
363
- # @param string type Data type
364
- # @param string value Value to be deserialized
365
- # @return [Object] Deserialized data
366
- def _deserialize(type, value)
367
- if value.nil?
368
- nil
369
- else
370
- case type.to_sym
371
- when :DateTime
372
- DateTime.parse(value)
373
- when :Date
374
- Date.parse(value)
375
- when :String
376
- value.to_s
377
- when :Integer
378
- value.to_i
379
- when :Float
380
- value.to_f
381
- when :BOOLEAN
382
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
383
- true
384
- else
385
- false
386
- end
387
- when :Object
388
- # generic object (usually a Hash), return directly
389
- value
390
- when /\AArray<(?<inner_type>.+)>\z/
391
- inner_type = Regexp.last_match[:inner_type]
392
- value.map { |v| _deserialize(inner_type, v) }
393
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
394
- k_type = Regexp.last_match[:k_type]
395
- v_type = Regexp.last_match[:v_type]
396
- {}.tap do |hash|
397
- value.each do |k, v|
398
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
399
- end
400
- end
401
- else # model
402
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
403
- if registry_type
404
- type = registry_type
405
- end
406
- temp_model = AsposeSlidesCloud.const_get(type).new
407
- temp_model.build_from_hash(value)
408
- end
409
- end
410
- end
411
-
412
- # Returns the string representation of the object
413
- # @return [String] String presentation of the object
414
- def to_s
415
- to_hash.to_s
416
- end
417
-
418
- # to_body is an alias to to_hash (backward compatibility)
419
- # @return [Hash] Returns the object in the form of hash
420
- def to_body
421
- to_hash
422
- end
423
-
424
- # Returns the object in the form of hash
425
- # @return [Hash] Returns the object in the form of hash
426
- def to_hash
427
- hash = {}
428
- self.class.attribute_map.each_pair do |attr, param|
429
- value = self.send(attr)
430
- next if value.nil?
431
- hash[param] = _to_hash(value)
432
- end
433
- hash
434
- end
435
-
436
- # Outputs non-array value in the form of hash
437
- # For object, use to_hash. Otherwise, just return the value
438
- # @param [Object] value Any valid value
439
- # @return [Hash] Returns the value in the form of hash
440
- def _to_hash(value)
441
- if value.is_a?(Array)
442
- value.compact.map { |v| _to_hash(v) }
443
- elsif value.is_a?(Hash)
444
- {}.tap do |hash|
445
- value.each { |k, v| hash[k] = _to_hash(v) }
446
- end
447
- elsif value.respond_to? :to_hash
448
- value.to_hash
449
- else
450
- value
451
- end
452
- end
453
307
  end
454
308
  end
@@ -55,28 +55,6 @@ module AsposeSlidesCloud
55
55
  # Determines whether the even columns has to be drawn with a different formatting.
56
56
  attr_accessor :vertical_banding
57
57
 
58
- class EnumAttributeValidator
59
- attr_reader :datatype
60
- attr_reader :allowable_values
61
-
62
- def initialize(datatype, allowable_values)
63
- @allowable_values = allowable_values.map do |value|
64
- case datatype.to_s
65
- when /Integer/i
66
- value.to_i
67
- when /Float/i
68
- value.to_f
69
- else
70
- value
71
- end
72
- end
73
- end
74
-
75
- def valid?(value)
76
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
77
- end
78
- end
79
-
80
58
  # Attribute mapping from ruby-style variable name to JSON key.
81
59
  def self.attribute_map
82
60
  super.merge({
@@ -232,129 +210,5 @@ module AsposeSlidesCloud
232
210
  def hash
233
211
  [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, style, rows, columns, first_col, first_row, horizontal_banding, last_col, last_row, right_to_left, vertical_banding].hash
234
212
  end
235
-
236
- # Builds the object from hash
237
- # @param [Hash] attributes Model attributes in the form of hash
238
- # @return [Object] Returns the model itself
239
- def build_from_hash(attributes)
240
- return nil unless attributes.is_a?(Hash)
241
- self.class.swagger_types.each_pair do |key, type|
242
- mapKey = self.class.attribute_map[key]
243
- if !mapKey.nil?
244
- val = attributes[mapKey]
245
- if val.nil?
246
- mapKeyString = mapKey.to_s
247
- mapKeyString[0] = mapKeyString[0].downcase
248
- mapKey = mapKeyString.to_sym
249
- val = attributes[mapKey]
250
- end
251
- if !val.nil?
252
- if type =~ /\AArray<(.*)>/i
253
- # check to ensure the input is an array given that the the attribute
254
- # is documented as an array but the input is not
255
- if val.is_a?(Array)
256
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
257
- end
258
- else
259
- self.send("#{key}=", _deserialize(type, val))
260
- end
261
- end
262
- end
263
- end
264
-
265
- self
266
- end
267
-
268
- # Deserializes the data based on type
269
- # @param string type Data type
270
- # @param string value Value to be deserialized
271
- # @return [Object] Deserialized data
272
- def _deserialize(type, value)
273
- if value.nil?
274
- nil
275
- else
276
- case type.to_sym
277
- when :DateTime
278
- DateTime.parse(value)
279
- when :Date
280
- Date.parse(value)
281
- when :String
282
- value.to_s
283
- when :Integer
284
- value.to_i
285
- when :Float
286
- value.to_f
287
- when :BOOLEAN
288
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
289
- true
290
- else
291
- false
292
- end
293
- when :Object
294
- # generic object (usually a Hash), return directly
295
- value
296
- when /\AArray<(?<inner_type>.+)>\z/
297
- inner_type = Regexp.last_match[:inner_type]
298
- value.map { |v| _deserialize(inner_type, v) }
299
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
300
- k_type = Regexp.last_match[:k_type]
301
- v_type = Regexp.last_match[:v_type]
302
- {}.tap do |hash|
303
- value.each do |k, v|
304
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
305
- end
306
- end
307
- else # model
308
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
309
- if registry_type
310
- type = registry_type
311
- end
312
- temp_model = AsposeSlidesCloud.const_get(type).new
313
- temp_model.build_from_hash(value)
314
- end
315
- end
316
- end
317
-
318
- # Returns the string representation of the object
319
- # @return [String] String presentation of the object
320
- def to_s
321
- to_hash.to_s
322
- end
323
-
324
- # to_body is an alias to to_hash (backward compatibility)
325
- # @return [Hash] Returns the object in the form of hash
326
- def to_body
327
- to_hash
328
- end
329
-
330
- # Returns the object in the form of hash
331
- # @return [Hash] Returns the object in the form of hash
332
- def to_hash
333
- hash = {}
334
- self.class.attribute_map.each_pair do |attr, param|
335
- value = self.send(attr)
336
- next if value.nil?
337
- hash[param] = _to_hash(value)
338
- end
339
- hash
340
- end
341
-
342
- # Outputs non-array value in the form of hash
343
- # For object, use to_hash. Otherwise, just return the value
344
- # @param [Object] value Any valid value
345
- # @return [Hash] Returns the value in the form of hash
346
- def _to_hash(value)
347
- if value.is_a?(Array)
348
- value.compact.map { |v| _to_hash(v) }
349
- elsif value.is_a?(Hash)
350
- {}.tap do |hash|
351
- value.each { |k, v| hash[k] = _to_hash(v) }
352
- end
353
- elsif value.respond_to? :to_hash
354
- value.to_hash
355
- else
356
- value
357
- end
358
- end
359
213
  end
360
214
  end
@@ -24,7 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents one cell of table.
27
- class TableCell
27
+ class TableCell < BaseObject
28
28
  # Cell text.
29
29
  attr_accessor :text
30
30
 
@@ -79,27 +79,11 @@ module AsposeSlidesCloud
79
79
  # Cell row index
80
80
  attr_accessor :row_index
81
81
 
82
- class EnumAttributeValidator
83
- attr_reader :datatype
84
- attr_reader :allowable_values
85
-
86
- def initialize(datatype, allowable_values)
87
- @allowable_values = allowable_values.map do |value|
88
- case datatype.to_s
89
- when /Integer/i
90
- value.to_i
91
- when /Float/i
92
- value.to_f
93
- else
94
- value
95
- end
96
- end
97
- end
82
+ # Returns TextFrame's formatting properties.
83
+ attr_accessor :text_frame_format
98
84
 
99
- def valid?(value)
100
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
101
- end
102
- end
85
+ # Get or sets list to paragraphs list
86
+ attr_accessor :paragraphs
103
87
 
104
88
  # Attribute mapping from ruby-style variable name to JSON key.
105
89
  def self.attribute_map
@@ -122,6 +106,8 @@ module AsposeSlidesCloud
122
106
  :'border_diagonal_down' => :'BorderDiagonalDown',
123
107
  :'column_index' => :'ColumnIndex',
124
108
  :'row_index' => :'RowIndex',
109
+ :'text_frame_format' => :'TextFrameFormat',
110
+ :'paragraphs' => :'Paragraphs',
125
111
  }
126
112
  end
127
113
 
@@ -146,6 +132,8 @@ module AsposeSlidesCloud
146
132
  :'border_diagonal_down' => :'LineFormat',
147
133
  :'column_index' => :'Integer',
148
134
  :'row_index' => :'Integer',
135
+ :'text_frame_format' => :'TextFrameFormat',
136
+ :'paragraphs' => :'ResourceUri',
149
137
  }
150
138
  end
151
139
 
@@ -228,6 +216,14 @@ module AsposeSlidesCloud
228
216
  if attributes.has_key?(:'RowIndex')
229
217
  self.row_index = attributes[:'RowIndex']
230
218
  end
219
+
220
+ if attributes.has_key?(:'TextFrameFormat')
221
+ self.text_frame_format = attributes[:'TextFrameFormat']
222
+ end
223
+
224
+ if attributes.has_key?(:'Paragraphs')
225
+ self.paragraphs = attributes[:'Paragraphs']
226
+ end
231
227
  end
232
228
 
233
229
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -289,7 +285,9 @@ module AsposeSlidesCloud
289
285
  border_diagonal_up == o.border_diagonal_up &&
290
286
  border_diagonal_down == o.border_diagonal_down &&
291
287
  column_index == o.column_index &&
292
- row_index == o.row_index
288
+ row_index == o.row_index &&
289
+ text_frame_format == o.text_frame_format &&
290
+ paragraphs == o.paragraphs
293
291
  end
294
292
 
295
293
  # @see the `==` method
@@ -301,131 +299,7 @@ module AsposeSlidesCloud
301
299
  # Calculates hash code according to all attributes.
302
300
  # @return [Fixnum] Hash code
303
301
  def hash
304
- [text, row_span, col_span, margin_top, margin_right, margin_left, margin_bottom, text_anchor_type, text_vertical_type, fill_format, border_top, border_right, border_left, border_bottom, border_diagonal_up, border_diagonal_down, column_index, row_index].hash
305
- end
306
-
307
- # Builds the object from hash
308
- # @param [Hash] attributes Model attributes in the form of hash
309
- # @return [Object] Returns the model itself
310
- def build_from_hash(attributes)
311
- return nil unless attributes.is_a?(Hash)
312
- self.class.swagger_types.each_pair do |key, type|
313
- mapKey = self.class.attribute_map[key]
314
- if !mapKey.nil?
315
- val = attributes[mapKey]
316
- if val.nil?
317
- mapKeyString = mapKey.to_s
318
- mapKeyString[0] = mapKeyString[0].downcase
319
- mapKey = mapKeyString.to_sym
320
- val = attributes[mapKey]
321
- end
322
- if !val.nil?
323
- if type =~ /\AArray<(.*)>/i
324
- # check to ensure the input is an array given that the the attribute
325
- # is documented as an array but the input is not
326
- if val.is_a?(Array)
327
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
328
- end
329
- else
330
- self.send("#{key}=", _deserialize(type, val))
331
- end
332
- end
333
- end
334
- end
335
-
336
- self
337
- end
338
-
339
- # Deserializes the data based on type
340
- # @param string type Data type
341
- # @param string value Value to be deserialized
342
- # @return [Object] Deserialized data
343
- def _deserialize(type, value)
344
- if value.nil?
345
- nil
346
- else
347
- case type.to_sym
348
- when :DateTime
349
- DateTime.parse(value)
350
- when :Date
351
- Date.parse(value)
352
- when :String
353
- value.to_s
354
- when :Integer
355
- value.to_i
356
- when :Float
357
- value.to_f
358
- when :BOOLEAN
359
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
360
- true
361
- else
362
- false
363
- end
364
- when :Object
365
- # generic object (usually a Hash), return directly
366
- value
367
- when /\AArray<(?<inner_type>.+)>\z/
368
- inner_type = Regexp.last_match[:inner_type]
369
- value.map { |v| _deserialize(inner_type, v) }
370
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
371
- k_type = Regexp.last_match[:k_type]
372
- v_type = Regexp.last_match[:v_type]
373
- {}.tap do |hash|
374
- value.each do |k, v|
375
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
376
- end
377
- end
378
- else # model
379
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
380
- if registry_type
381
- type = registry_type
382
- end
383
- temp_model = AsposeSlidesCloud.const_get(type).new
384
- temp_model.build_from_hash(value)
385
- end
386
- end
387
- end
388
-
389
- # Returns the string representation of the object
390
- # @return [String] String presentation of the object
391
- def to_s
392
- to_hash.to_s
393
- end
394
-
395
- # to_body is an alias to to_hash (backward compatibility)
396
- # @return [Hash] Returns the object in the form of hash
397
- def to_body
398
- to_hash
399
- end
400
-
401
- # Returns the object in the form of hash
402
- # @return [Hash] Returns the object in the form of hash
403
- def to_hash
404
- hash = {}
405
- self.class.attribute_map.each_pair do |attr, param|
406
- value = self.send(attr)
407
- next if value.nil?
408
- hash[param] = _to_hash(value)
409
- end
410
- hash
411
- end
412
-
413
- # Outputs non-array value in the form of hash
414
- # For object, use to_hash. Otherwise, just return the value
415
- # @param [Object] value Any valid value
416
- # @return [Hash] Returns the value in the form of hash
417
- def _to_hash(value)
418
- if value.is_a?(Array)
419
- value.compact.map { |v| _to_hash(v) }
420
- elsif value.is_a?(Hash)
421
- {}.tap do |hash|
422
- value.each { |k, v| hash[k] = _to_hash(v) }
423
- end
424
- elsif value.respond_to? :to_hash
425
- value.to_hash
426
- else
427
- value
428
- end
302
+ [text, row_span, col_span, margin_top, margin_right, margin_left, margin_bottom, text_anchor_type, text_vertical_type, fill_format, border_top, border_right, border_left, border_bottom, border_diagonal_up, border_diagonal_down, column_index, row_index, text_frame_format, paragraphs].hash
429
303
  end
430
304
  end
431
305
  end