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.
- checksums.yaml +4 -4
- data/Gemfile.lock +35 -10
- data/README.md +12 -0
- data/TestData/macros.pptm +0 -0
- data/TestData/test.pptx +0 -0
- data/aspose_slides_cloud.gemspec +3 -1
- data/docker-entrypoint.sh +4 -3
- data/lib/aspose_slides_cloud/api/slides_api.rb +3669 -1888
- data/lib/aspose_slides_cloud/api_client.rb +3 -0
- data/lib/aspose_slides_cloud/models/accent_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/access_permissions.rb +1 -125
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +0 -146
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +0 -146
- data/lib/aspose_slides_cloud/models/add_shape.rb +0 -146
- data/lib/aspose_slides_cloud/models/add_slide.rb +0 -146
- data/lib/aspose_slides_cloud/models/alpha_bi_level_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/api_info.rb +1 -125
- data/lib/aspose_slides_cloud/models/arc_to_path_segment.rb +0 -146
- data/lib/aspose_slides_cloud/models/array_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +1 -147
- data/lib/aspose_slides_cloud/models/audio_frame.rb +0 -146
- data/lib/aspose_slides_cloud/models/axes.rb +1 -125
- data/lib/aspose_slides_cloud/models/axis.rb +1 -147
- data/lib/aspose_slides_cloud/models/bar_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +0 -146
- data/lib/aspose_slides_cloud/models/base_object.rb +173 -0
- data/lib/aspose_slides_cloud/models/bi_level_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/block_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/blur_effect.rb +1 -125
- data/lib/aspose_slides_cloud/models/blur_image_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/border_box_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/box_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +0 -146
- data/lib/aspose_slides_cloud/models/bubble_series.rb +0 -146
- data/lib/aspose_slides_cloud/models/camera.rb +1 -147
- data/lib/aspose_slides_cloud/models/chart.rb +0 -146
- data/lib/aspose_slides_cloud/models/chart_category.rb +1 -125
- data/lib/aspose_slides_cloud/models/chart_lines_format.rb +1 -125
- data/lib/aspose_slides_cloud/models/chart_series_group.rb +1 -147
- data/lib/aspose_slides_cloud/models/chart_title.rb +1 -125
- data/lib/aspose_slides_cloud/models/chart_wall.rb +1 -147
- data/lib/aspose_slides_cloud/models/close_path_segment.rb +0 -146
- data/lib/aspose_slides_cloud/models/color_change_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/color_replace_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/color_scheme.rb +0 -124
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +1 -125
- data/lib/aspose_slides_cloud/models/connector.rb +0 -146
- data/lib/aspose_slides_cloud/models/cubic_bezier_to_path_segment.rb +0 -146
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +1 -125
- data/lib/aspose_slides_cloud/models/data_point.rb +1 -147
- data/lib/aspose_slides_cloud/models/data_source.rb +1 -147
- data/lib/aspose_slides_cloud/models/delimiter_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/disc_usage.rb +1 -125
- data/lib/aspose_slides_cloud/models/document.rb +0 -124
- data/lib/aspose_slides_cloud/models/document_properties.rb +0 -124
- data/lib/aspose_slides_cloud/models/document_property.rb +0 -124
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +0 -124
- data/lib/aspose_slides_cloud/models/duotone_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/effect.rb +1 -147
- data/lib/aspose_slides_cloud/models/effect_format.rb +1 -125
- data/lib/aspose_slides_cloud/models/entity_exists.rb +1 -125
- data/lib/aspose_slides_cloud/models/error.rb +1 -125
- data/lib/aspose_slides_cloud/models/error_details.rb +1 -125
- data/lib/aspose_slides_cloud/models/export_options.rb +1 -125
- data/lib/aspose_slides_cloud/models/file_version.rb +0 -124
- data/lib/aspose_slides_cloud/models/file_versions.rb +1 -125
- data/lib/aspose_slides_cloud/models/files_list.rb +1 -125
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +1 -125
- data/lib/aspose_slides_cloud/models/fill_format.rb +1 -147
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +1 -147
- data/lib/aspose_slides_cloud/models/fill_overlay_image_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/font_data.rb +1 -125
- data/lib/aspose_slides_cloud/models/font_fallback_rule.rb +1 -125
- data/lib/aspose_slides_cloud/models/font_scheme.rb +0 -124
- data/lib/aspose_slides_cloud/models/font_set.rb +1 -125
- data/lib/aspose_slides_cloud/models/font_subst_rule.rb +1 -125
- data/lib/aspose_slides_cloud/models/fonts_data.rb +1 -125
- data/lib/aspose_slides_cloud/models/format_scheme.rb +0 -124
- data/lib/aspose_slides_cloud/models/fraction_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/function_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/geometry_path.rb +1 -147
- data/lib/aspose_slides_cloud/models/geometry_paths.rb +1 -125
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +0 -146
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +0 -124
- data/lib/aspose_slides_cloud/models/glow_effect.rb +1 -125
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +0 -146
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +1 -125
- data/lib/aspose_slides_cloud/models/graphical_object.rb +0 -146
- data/lib/aspose_slides_cloud/models/gray_scale_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/group_shape.rb +0 -146
- data/lib/aspose_slides_cloud/models/grouping_character_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/header_footer.rb +0 -124
- data/lib/aspose_slides_cloud/models/hsl_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +0 -124
- data/lib/aspose_slides_cloud/models/html_export_options.rb +0 -146
- data/lib/aspose_slides_cloud/models/hyperlink.rb +1 -147
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +1 -125
- data/lib/aspose_slides_cloud/models/image.rb +0 -124
- data/lib/aspose_slides_cloud/models/image_export_options.rb +0 -146
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +0 -124
- data/lib/aspose_slides_cloud/models/image_transform_effect.rb +1 -147
- data/lib/aspose_slides_cloud/models/images.rb +0 -124
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +1 -125
- data/lib/aspose_slides_cloud/models/input.rb +1 -125
- data/lib/aspose_slides_cloud/models/input_file.rb +1 -147
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +1 -125
- data/lib/aspose_slides_cloud/models/layout_slide.rb +0 -146
- data/lib/aspose_slides_cloud/models/layout_slides.rb +0 -124
- data/lib/aspose_slides_cloud/models/left_sub_superscript_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/legend.rb +1 -147
- data/lib/aspose_slides_cloud/models/light_rig.rb +1 -147
- data/lib/aspose_slides_cloud/models/limit_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/line_format.rb +1 -147
- data/lib/aspose_slides_cloud/models/line_to_path_segment.rb +0 -146
- data/lib/aspose_slides_cloud/models/literals.rb +0 -146
- data/lib/aspose_slides_cloud/models/luminance_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/master_slide.rb +0 -124
- data/lib/aspose_slides_cloud/models/master_slides.rb +0 -124
- data/lib/aspose_slides_cloud/models/math_element.rb +1 -147
- data/lib/aspose_slides_cloud/models/math_paragraph.rb +1 -147
- data/lib/aspose_slides_cloud/models/matrix_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/merge.rb +0 -146
- data/lib/aspose_slides_cloud/models/merging_source.rb +1 -125
- data/lib/aspose_slides_cloud/models/move_to_path_segment.rb +0 -146
- data/lib/aspose_slides_cloud/models/nary_operator_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/no_fill.rb +0 -146
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +1 -125
- data/lib/aspose_slides_cloud/models/notes_slide.rb +0 -124
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +0 -124
- data/lib/aspose_slides_cloud/models/object_exist.rb +1 -125
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +0 -146
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +0 -146
- data/lib/aspose_slides_cloud/models/one_value_series.rb +0 -146
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +1 -125
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +1 -125
- data/lib/aspose_slides_cloud/models/output_file.rb +1 -147
- data/lib/aspose_slides_cloud/models/paragraph.rb +0 -146
- data/lib/aspose_slides_cloud/models/paragraph_format.rb +1 -147
- data/lib/aspose_slides_cloud/models/paragraphs.rb +0 -124
- data/lib/aspose_slides_cloud/models/path_input_file.rb +0 -146
- data/lib/aspose_slides_cloud/models/path_output_file.rb +0 -146
- data/lib/aspose_slides_cloud/models/path_segment.rb +1 -147
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +0 -146
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +0 -146
- data/lib/aspose_slides_cloud/models/picture_fill.rb +0 -146
- data/lib/aspose_slides_cloud/models/picture_frame.rb +0 -146
- data/lib/aspose_slides_cloud/models/pipeline.rb +1 -125
- data/lib/aspose_slides_cloud/models/placeholder.rb +0 -146
- data/lib/aspose_slides_cloud/models/placeholders.rb +0 -124
- data/lib/aspose_slides_cloud/models/plot_area.rb +1 -147
- data/lib/aspose_slides_cloud/models/portion.rb +0 -146
- data/lib/aspose_slides_cloud/models/portion_format.rb +1 -147
- data/lib/aspose_slides_cloud/models/portions.rb +0 -124
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +0 -146
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +1 -147
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +1 -125
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +1 -147
- data/lib/aspose_slides_cloud/models/protection_properties.rb +0 -124
- data/lib/aspose_slides_cloud/models/quadratic_bezier_to_path_segment.rb +0 -146
- data/lib/aspose_slides_cloud/models/radical_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +1 -147
- data/lib/aspose_slides_cloud/models/remove_shape.rb +0 -146
- data/lib/aspose_slides_cloud/models/remove_slide.rb +0 -146
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +0 -146
- data/lib/aspose_slides_cloud/models/replace_text.rb +0 -146
- data/lib/aspose_slides_cloud/models/request_input_file.rb +0 -146
- data/lib/aspose_slides_cloud/models/reset_slide.rb +0 -146
- data/lib/aspose_slides_cloud/models/resource_base.rb +1 -125
- data/lib/aspose_slides_cloud/models/resource_uri.rb +1 -125
- data/lib/aspose_slides_cloud/models/response_output_file.rb +0 -146
- data/lib/aspose_slides_cloud/models/right_sub_superscript_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/save.rb +0 -146
- data/lib/aspose_slides_cloud/models/save_shape.rb +0 -146
- data/lib/aspose_slides_cloud/models/save_slide.rb +0 -146
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +0 -146
- data/lib/aspose_slides_cloud/models/scatter_series.rb +0 -146
- data/lib/aspose_slides_cloud/models/section.rb +0 -124
- data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +0 -146
- data/lib/aspose_slides_cloud/models/sections.rb +0 -124
- data/lib/aspose_slides_cloud/models/series.rb +1 -147
- data/lib/aspose_slides_cloud/models/series_marker.rb +1 -147
- data/lib/aspose_slides_cloud/models/shape.rb +0 -146
- data/lib/aspose_slides_cloud/models/shape_base.rb +0 -146
- data/lib/aspose_slides_cloud/models/shape_bevel.rb +1 -147
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +1 -147
- data/lib/aspose_slides_cloud/models/shapes.rb +0 -124
- data/lib/aspose_slides_cloud/models/slide.rb +0 -124
- data/lib/aspose_slides_cloud/models/slide_animation.rb +0 -124
- data/lib/aspose_slides_cloud/models/slide_background.rb +0 -146
- data/lib/aspose_slides_cloud/models/slide_comment.rb +0 -146
- data/lib/aspose_slides_cloud/models/slide_comment_base.rb +1 -147
- data/lib/aspose_slides_cloud/models/slide_comments.rb +0 -124
- data/lib/aspose_slides_cloud/models/slide_modern_comment.rb +0 -146
- data/lib/aspose_slides_cloud/models/slide_properties.rb +0 -146
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +0 -124
- data/lib/aspose_slides_cloud/models/slide_show_properties.rb +0 -146
- data/lib/aspose_slides_cloud/models/slides.rb +0 -124
- data/lib/aspose_slides_cloud/models/smart_art.rb +0 -146
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +1 -147
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +0 -146
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +1 -125
- data/lib/aspose_slides_cloud/models/solid_fill.rb +0 -146
- data/lib/aspose_slides_cloud/models/split_document_result.rb +0 -124
- data/lib/aspose_slides_cloud/models/storage_exist.rb +1 -125
- data/lib/aspose_slides_cloud/models/storage_file.rb +1 -125
- data/lib/aspose_slides_cloud/models/subscript_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +0 -146
- data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +0 -146
- data/lib/aspose_slides_cloud/models/superscript_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +0 -146
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +0 -146
- data/lib/aspose_slides_cloud/models/table.rb +0 -146
- data/lib/aspose_slides_cloud/models/table_cell.rb +21 -147
- data/lib/aspose_slides_cloud/models/table_cell_merge_options.rb +156 -0
- data/lib/aspose_slides_cloud/models/table_cell_split_type.rb +42 -0
- data/lib/aspose_slides_cloud/models/table_column.rb +1 -125
- data/lib/aspose_slides_cloud/models/table_row.rb +1 -125
- data/lib/aspose_slides_cloud/models/task.rb +1 -147
- data/lib/aspose_slides_cloud/models/text_bounds.rb +1 -125
- data/lib/aspose_slides_cloud/models/text_element.rb +0 -146
- data/lib/aspose_slides_cloud/models/text_frame_format.rb +1 -147
- data/lib/aspose_slides_cloud/models/text_item.rb +1 -125
- data/lib/aspose_slides_cloud/models/text_items.rb +0 -124
- data/lib/aspose_slides_cloud/models/theme.rb +0 -124
- data/lib/aspose_slides_cloud/models/three_d_format.rb +1 -147
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +0 -146
- data/lib/aspose_slides_cloud/models/tint_effect.rb +0 -146
- data/lib/aspose_slides_cloud/models/update_background.rb +0 -146
- data/lib/aspose_slides_cloud/models/update_shape.rb +0 -146
- data/lib/aspose_slides_cloud/models/vba_module.rb +113 -0
- data/lib/aspose_slides_cloud/models/vba_project.rb +105 -0
- data/lib/aspose_slides_cloud/models/vba_reference.rb +101 -0
- data/lib/aspose_slides_cloud/models/video_export_options.rb +0 -146
- data/lib/aspose_slides_cloud/models/video_frame.rb +0 -146
- data/lib/aspose_slides_cloud/models/view_properties.rb +0 -146
- data/lib/aspose_slides_cloud/models/workbook.rb +0 -146
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +0 -124
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +0 -124
- data/lib/aspose_slides_cloud/models/xy_series.rb +0 -146
- data/lib/aspose_slides_cloud/models/zoom_frame.rb +0 -146
- data/lib/aspose_slides_cloud/models/zoom_object.rb +0 -146
- data/lib/aspose_slides_cloud/type_registry.rb +7 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +6 -0
- data/spec/api/slides_api_spec.rb +15105 -9783
- data/spec/spec_utils.rb +1 -1
- data/spec/use_cases/auth_spec.rb +15 -0
- data/spec/use_cases/slide_spec.rb +9 -9
- data/spec/use_cases/table_spec.rb +392 -0
- data/spec/use_cases/vba_spec.rb +94 -0
- data/testConfig.json +2 -2
- data/testRules.json +10 -0
- metadata +57 -6
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents reflection effect
|
27
|
-
class ReflectionEffect
|
27
|
+
class ReflectionEffect < BaseObject
|
28
28
|
# direction
|
29
29
|
attr_accessor :direction
|
30
30
|
|
@@ -67,28 +67,6 @@ module AsposeSlidesCloud
|
|
67
67
|
# true if the reflection should rotate with the shape when the shape is rotated
|
68
68
|
attr_accessor :rotate_shadow_with_shape
|
69
69
|
|
70
|
-
class EnumAttributeValidator
|
71
|
-
attr_reader :datatype
|
72
|
-
attr_reader :allowable_values
|
73
|
-
|
74
|
-
def initialize(datatype, allowable_values)
|
75
|
-
@allowable_values = allowable_values.map do |value|
|
76
|
-
case datatype.to_s
|
77
|
-
when /Integer/i
|
78
|
-
value.to_i
|
79
|
-
when /Float/i
|
80
|
-
value.to_f
|
81
|
-
else
|
82
|
-
value
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
def valid?(value)
|
88
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
70
|
# Attribute mapping from ruby-style variable name to JSON key.
|
93
71
|
def self.attribute_map
|
94
72
|
{
|
@@ -321,129 +299,5 @@ module AsposeSlidesCloud
|
|
321
299
|
def hash
|
322
300
|
[direction, fade_direction, distance, blur_radius, scale_horizontal, scale_vertical, skew_horizontal, skew_vertical, start_pos_alpha, end_pos_alpha, start_reflection_opacity, end_reflection_opacity, rectangle_align, rotate_shadow_with_shape].hash
|
323
301
|
end
|
324
|
-
|
325
|
-
# Builds the object from hash
|
326
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
327
|
-
# @return [Object] Returns the model itself
|
328
|
-
def build_from_hash(attributes)
|
329
|
-
return nil unless attributes.is_a?(Hash)
|
330
|
-
self.class.swagger_types.each_pair do |key, type|
|
331
|
-
mapKey = self.class.attribute_map[key]
|
332
|
-
if !mapKey.nil?
|
333
|
-
val = attributes[mapKey]
|
334
|
-
if val.nil?
|
335
|
-
mapKeyString = mapKey.to_s
|
336
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
337
|
-
mapKey = mapKeyString.to_sym
|
338
|
-
val = attributes[mapKey]
|
339
|
-
end
|
340
|
-
if !val.nil?
|
341
|
-
if type =~ /\AArray<(.*)>/i
|
342
|
-
# check to ensure the input is an array given that the the attribute
|
343
|
-
# is documented as an array but the input is not
|
344
|
-
if val.is_a?(Array)
|
345
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
346
|
-
end
|
347
|
-
else
|
348
|
-
self.send("#{key}=", _deserialize(type, val))
|
349
|
-
end
|
350
|
-
end
|
351
|
-
end
|
352
|
-
end
|
353
|
-
|
354
|
-
self
|
355
|
-
end
|
356
|
-
|
357
|
-
# Deserializes the data based on type
|
358
|
-
# @param string type Data type
|
359
|
-
# @param string value Value to be deserialized
|
360
|
-
# @return [Object] Deserialized data
|
361
|
-
def _deserialize(type, value)
|
362
|
-
if value.nil?
|
363
|
-
nil
|
364
|
-
else
|
365
|
-
case type.to_sym
|
366
|
-
when :DateTime
|
367
|
-
DateTime.parse(value)
|
368
|
-
when :Date
|
369
|
-
Date.parse(value)
|
370
|
-
when :String
|
371
|
-
value.to_s
|
372
|
-
when :Integer
|
373
|
-
value.to_i
|
374
|
-
when :Float
|
375
|
-
value.to_f
|
376
|
-
when :BOOLEAN
|
377
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
378
|
-
true
|
379
|
-
else
|
380
|
-
false
|
381
|
-
end
|
382
|
-
when :Object
|
383
|
-
# generic object (usually a Hash), return directly
|
384
|
-
value
|
385
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
386
|
-
inner_type = Regexp.last_match[:inner_type]
|
387
|
-
value.map { |v| _deserialize(inner_type, v) }
|
388
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
389
|
-
k_type = Regexp.last_match[:k_type]
|
390
|
-
v_type = Regexp.last_match[:v_type]
|
391
|
-
{}.tap do |hash|
|
392
|
-
value.each do |k, v|
|
393
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
394
|
-
end
|
395
|
-
end
|
396
|
-
else # model
|
397
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
398
|
-
if registry_type
|
399
|
-
type = registry_type
|
400
|
-
end
|
401
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
402
|
-
temp_model.build_from_hash(value)
|
403
|
-
end
|
404
|
-
end
|
405
|
-
end
|
406
|
-
|
407
|
-
# Returns the string representation of the object
|
408
|
-
# @return [String] String presentation of the object
|
409
|
-
def to_s
|
410
|
-
to_hash.to_s
|
411
|
-
end
|
412
|
-
|
413
|
-
# to_body is an alias to to_hash (backward compatibility)
|
414
|
-
# @return [Hash] Returns the object in the form of hash
|
415
|
-
def to_body
|
416
|
-
to_hash
|
417
|
-
end
|
418
|
-
|
419
|
-
# Returns the object in the form of hash
|
420
|
-
# @return [Hash] Returns the object in the form of hash
|
421
|
-
def to_hash
|
422
|
-
hash = {}
|
423
|
-
self.class.attribute_map.each_pair do |attr, param|
|
424
|
-
value = self.send(attr)
|
425
|
-
next if value.nil?
|
426
|
-
hash[param] = _to_hash(value)
|
427
|
-
end
|
428
|
-
hash
|
429
|
-
end
|
430
|
-
|
431
|
-
# Outputs non-array value in the form of hash
|
432
|
-
# For object, use to_hash. Otherwise, just return the value
|
433
|
-
# @param [Object] value Any valid value
|
434
|
-
# @return [Hash] Returns the value in the form of hash
|
435
|
-
def _to_hash(value)
|
436
|
-
if value.is_a?(Array)
|
437
|
-
value.compact.map { |v| _to_hash(v) }
|
438
|
-
elsif value.is_a?(Hash)
|
439
|
-
{}.tap do |hash|
|
440
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
441
|
-
end
|
442
|
-
elsif value.respond_to? :to_hash
|
443
|
-
value.to_hash
|
444
|
-
else
|
445
|
-
value
|
446
|
-
end
|
447
|
-
end
|
448
302
|
end
|
449
303
|
end
|
@@ -28,28 +28,6 @@ module AsposeSlidesCloud
|
|
28
28
|
# Shape path for a grouped or smart art shape.
|
29
29
|
attr_accessor :shape_path
|
30
30
|
|
31
|
-
class EnumAttributeValidator
|
32
|
-
attr_reader :datatype
|
33
|
-
attr_reader :allowable_values
|
34
|
-
|
35
|
-
def initialize(datatype, allowable_values)
|
36
|
-
@allowable_values = allowable_values.map do |value|
|
37
|
-
case datatype.to_s
|
38
|
-
when /Integer/i
|
39
|
-
value.to_i
|
40
|
-
when /Float/i
|
41
|
-
value.to_f
|
42
|
-
else
|
43
|
-
value
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def valid?(value)
|
49
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
32
|
def self.attribute_map
|
55
33
|
super.merge({
|
@@ -109,129 +87,5 @@ module AsposeSlidesCloud
|
|
109
87
|
def hash
|
110
88
|
[type, shape_path].hash
|
111
89
|
end
|
112
|
-
|
113
|
-
# Builds the object from hash
|
114
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
-
# @return [Object] Returns the model itself
|
116
|
-
def build_from_hash(attributes)
|
117
|
-
return nil unless attributes.is_a?(Hash)
|
118
|
-
self.class.swagger_types.each_pair do |key, type|
|
119
|
-
mapKey = self.class.attribute_map[key]
|
120
|
-
if !mapKey.nil?
|
121
|
-
val = attributes[mapKey]
|
122
|
-
if val.nil?
|
123
|
-
mapKeyString = mapKey.to_s
|
124
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
125
|
-
mapKey = mapKeyString.to_sym
|
126
|
-
val = attributes[mapKey]
|
127
|
-
end
|
128
|
-
if !val.nil?
|
129
|
-
if type =~ /\AArray<(.*)>/i
|
130
|
-
# check to ensure the input is an array given that the the attribute
|
131
|
-
# is documented as an array but the input is not
|
132
|
-
if val.is_a?(Array)
|
133
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
134
|
-
end
|
135
|
-
else
|
136
|
-
self.send("#{key}=", _deserialize(type, val))
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
self
|
143
|
-
end
|
144
|
-
|
145
|
-
# Deserializes the data based on type
|
146
|
-
# @param string type Data type
|
147
|
-
# @param string value Value to be deserialized
|
148
|
-
# @return [Object] Deserialized data
|
149
|
-
def _deserialize(type, value)
|
150
|
-
if value.nil?
|
151
|
-
nil
|
152
|
-
else
|
153
|
-
case type.to_sym
|
154
|
-
when :DateTime
|
155
|
-
DateTime.parse(value)
|
156
|
-
when :Date
|
157
|
-
Date.parse(value)
|
158
|
-
when :String
|
159
|
-
value.to_s
|
160
|
-
when :Integer
|
161
|
-
value.to_i
|
162
|
-
when :Float
|
163
|
-
value.to_f
|
164
|
-
when :BOOLEAN
|
165
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
166
|
-
true
|
167
|
-
else
|
168
|
-
false
|
169
|
-
end
|
170
|
-
when :Object
|
171
|
-
# generic object (usually a Hash), return directly
|
172
|
-
value
|
173
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
174
|
-
inner_type = Regexp.last_match[:inner_type]
|
175
|
-
value.map { |v| _deserialize(inner_type, v) }
|
176
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
177
|
-
k_type = Regexp.last_match[:k_type]
|
178
|
-
v_type = Regexp.last_match[:v_type]
|
179
|
-
{}.tap do |hash|
|
180
|
-
value.each do |k, v|
|
181
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
182
|
-
end
|
183
|
-
end
|
184
|
-
else # model
|
185
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
186
|
-
if registry_type
|
187
|
-
type = registry_type
|
188
|
-
end
|
189
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
190
|
-
temp_model.build_from_hash(value)
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
# Returns the string representation of the object
|
196
|
-
# @return [String] String presentation of the object
|
197
|
-
def to_s
|
198
|
-
to_hash.to_s
|
199
|
-
end
|
200
|
-
|
201
|
-
# to_body is an alias to to_hash (backward compatibility)
|
202
|
-
# @return [Hash] Returns the object in the form of hash
|
203
|
-
def to_body
|
204
|
-
to_hash
|
205
|
-
end
|
206
|
-
|
207
|
-
# Returns the object in the form of hash
|
208
|
-
# @return [Hash] Returns the object in the form of hash
|
209
|
-
def to_hash
|
210
|
-
hash = {}
|
211
|
-
self.class.attribute_map.each_pair do |attr, param|
|
212
|
-
value = self.send(attr)
|
213
|
-
next if value.nil?
|
214
|
-
hash[param] = _to_hash(value)
|
215
|
-
end
|
216
|
-
hash
|
217
|
-
end
|
218
|
-
|
219
|
-
# Outputs non-array value in the form of hash
|
220
|
-
# For object, use to_hash. Otherwise, just return the value
|
221
|
-
# @param [Object] value Any valid value
|
222
|
-
# @return [Hash] Returns the value in the form of hash
|
223
|
-
def _to_hash(value)
|
224
|
-
if value.is_a?(Array)
|
225
|
-
value.compact.map { |v| _to_hash(v) }
|
226
|
-
elsif value.is_a?(Hash)
|
227
|
-
{}.tap do |hash|
|
228
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
229
|
-
end
|
230
|
-
elsif value.respond_to? :to_hash
|
231
|
-
value.to_hash
|
232
|
-
else
|
233
|
-
value
|
234
|
-
end
|
235
|
-
end
|
236
90
|
end
|
237
91
|
end
|
@@ -28,28 +28,6 @@ module AsposeSlidesCloud
|
|
28
28
|
# Position of slide to be removed.
|
29
29
|
attr_accessor :position
|
30
30
|
|
31
|
-
class EnumAttributeValidator
|
32
|
-
attr_reader :datatype
|
33
|
-
attr_reader :allowable_values
|
34
|
-
|
35
|
-
def initialize(datatype, allowable_values)
|
36
|
-
@allowable_values = allowable_values.map do |value|
|
37
|
-
case datatype.to_s
|
38
|
-
when /Integer/i
|
39
|
-
value.to_i
|
40
|
-
when /Float/i
|
41
|
-
value.to_f
|
42
|
-
else
|
43
|
-
value
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def valid?(value)
|
49
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
32
|
def self.attribute_map
|
55
33
|
super.merge({
|
@@ -114,129 +92,5 @@ module AsposeSlidesCloud
|
|
114
92
|
def hash
|
115
93
|
[type, position].hash
|
116
94
|
end
|
117
|
-
|
118
|
-
# Builds the object from hash
|
119
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
-
# @return [Object] Returns the model itself
|
121
|
-
def build_from_hash(attributes)
|
122
|
-
return nil unless attributes.is_a?(Hash)
|
123
|
-
self.class.swagger_types.each_pair do |key, type|
|
124
|
-
mapKey = self.class.attribute_map[key]
|
125
|
-
if !mapKey.nil?
|
126
|
-
val = attributes[mapKey]
|
127
|
-
if val.nil?
|
128
|
-
mapKeyString = mapKey.to_s
|
129
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
130
|
-
mapKey = mapKeyString.to_sym
|
131
|
-
val = attributes[mapKey]
|
132
|
-
end
|
133
|
-
if !val.nil?
|
134
|
-
if type =~ /\AArray<(.*)>/i
|
135
|
-
# check to ensure the input is an array given that the the attribute
|
136
|
-
# is documented as an array but the input is not
|
137
|
-
if val.is_a?(Array)
|
138
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
139
|
-
end
|
140
|
-
else
|
141
|
-
self.send("#{key}=", _deserialize(type, val))
|
142
|
-
end
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
self
|
148
|
-
end
|
149
|
-
|
150
|
-
# Deserializes the data based on type
|
151
|
-
# @param string type Data type
|
152
|
-
# @param string value Value to be deserialized
|
153
|
-
# @return [Object] Deserialized data
|
154
|
-
def _deserialize(type, value)
|
155
|
-
if value.nil?
|
156
|
-
nil
|
157
|
-
else
|
158
|
-
case type.to_sym
|
159
|
-
when :DateTime
|
160
|
-
DateTime.parse(value)
|
161
|
-
when :Date
|
162
|
-
Date.parse(value)
|
163
|
-
when :String
|
164
|
-
value.to_s
|
165
|
-
when :Integer
|
166
|
-
value.to_i
|
167
|
-
when :Float
|
168
|
-
value.to_f
|
169
|
-
when :BOOLEAN
|
170
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
171
|
-
true
|
172
|
-
else
|
173
|
-
false
|
174
|
-
end
|
175
|
-
when :Object
|
176
|
-
# generic object (usually a Hash), return directly
|
177
|
-
value
|
178
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
179
|
-
inner_type = Regexp.last_match[:inner_type]
|
180
|
-
value.map { |v| _deserialize(inner_type, v) }
|
181
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
182
|
-
k_type = Regexp.last_match[:k_type]
|
183
|
-
v_type = Regexp.last_match[:v_type]
|
184
|
-
{}.tap do |hash|
|
185
|
-
value.each do |k, v|
|
186
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
187
|
-
end
|
188
|
-
end
|
189
|
-
else # model
|
190
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
191
|
-
if registry_type
|
192
|
-
type = registry_type
|
193
|
-
end
|
194
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
195
|
-
temp_model.build_from_hash(value)
|
196
|
-
end
|
197
|
-
end
|
198
|
-
end
|
199
|
-
|
200
|
-
# Returns the string representation of the object
|
201
|
-
# @return [String] String presentation of the object
|
202
|
-
def to_s
|
203
|
-
to_hash.to_s
|
204
|
-
end
|
205
|
-
|
206
|
-
# to_body is an alias to to_hash (backward compatibility)
|
207
|
-
# @return [Hash] Returns the object in the form of hash
|
208
|
-
def to_body
|
209
|
-
to_hash
|
210
|
-
end
|
211
|
-
|
212
|
-
# Returns the object in the form of hash
|
213
|
-
# @return [Hash] Returns the object in the form of hash
|
214
|
-
def to_hash
|
215
|
-
hash = {}
|
216
|
-
self.class.attribute_map.each_pair do |attr, param|
|
217
|
-
value = self.send(attr)
|
218
|
-
next if value.nil?
|
219
|
-
hash[param] = _to_hash(value)
|
220
|
-
end
|
221
|
-
hash
|
222
|
-
end
|
223
|
-
|
224
|
-
# Outputs non-array value in the form of hash
|
225
|
-
# For object, use to_hash. Otherwise, just return the value
|
226
|
-
# @param [Object] value Any valid value
|
227
|
-
# @return [Hash] Returns the value in the form of hash
|
228
|
-
def _to_hash(value)
|
229
|
-
if value.is_a?(Array)
|
230
|
-
value.compact.map { |v| _to_hash(v) }
|
231
|
-
elsif value.is_a?(Hash)
|
232
|
-
{}.tap do |hash|
|
233
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
234
|
-
end
|
235
|
-
elsif value.respond_to? :to_hash
|
236
|
-
value.to_hash
|
237
|
-
else
|
238
|
-
value
|
239
|
-
end
|
240
|
-
end
|
241
95
|
end
|
242
96
|
end
|
@@ -31,28 +31,6 @@ module AsposeSlidesCloud
|
|
31
31
|
# New position.
|
32
32
|
attr_accessor :new_position
|
33
33
|
|
34
|
-
class EnumAttributeValidator
|
35
|
-
attr_reader :datatype
|
36
|
-
attr_reader :allowable_values
|
37
|
-
|
38
|
-
def initialize(datatype, allowable_values)
|
39
|
-
@allowable_values = allowable_values.map do |value|
|
40
|
-
case datatype.to_s
|
41
|
-
when /Integer/i
|
42
|
-
value.to_i
|
43
|
-
when /Float/i
|
44
|
-
value.to_f
|
45
|
-
else
|
46
|
-
value
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
def valid?(value)
|
52
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
35
|
def self.attribute_map
|
58
36
|
super.merge({
|
@@ -129,129 +107,5 @@ module AsposeSlidesCloud
|
|
129
107
|
def hash
|
130
108
|
[type, old_position, new_position].hash
|
131
109
|
end
|
132
|
-
|
133
|
-
# Builds the object from hash
|
134
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
-
# @return [Object] Returns the model itself
|
136
|
-
def build_from_hash(attributes)
|
137
|
-
return nil unless attributes.is_a?(Hash)
|
138
|
-
self.class.swagger_types.each_pair do |key, type|
|
139
|
-
mapKey = self.class.attribute_map[key]
|
140
|
-
if !mapKey.nil?
|
141
|
-
val = attributes[mapKey]
|
142
|
-
if val.nil?
|
143
|
-
mapKeyString = mapKey.to_s
|
144
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
145
|
-
mapKey = mapKeyString.to_sym
|
146
|
-
val = attributes[mapKey]
|
147
|
-
end
|
148
|
-
if !val.nil?
|
149
|
-
if type =~ /\AArray<(.*)>/i
|
150
|
-
# check to ensure the input is an array given that the the attribute
|
151
|
-
# is documented as an array but the input is not
|
152
|
-
if val.is_a?(Array)
|
153
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
154
|
-
end
|
155
|
-
else
|
156
|
-
self.send("#{key}=", _deserialize(type, val))
|
157
|
-
end
|
158
|
-
end
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
self
|
163
|
-
end
|
164
|
-
|
165
|
-
# Deserializes the data based on type
|
166
|
-
# @param string type Data type
|
167
|
-
# @param string value Value to be deserialized
|
168
|
-
# @return [Object] Deserialized data
|
169
|
-
def _deserialize(type, value)
|
170
|
-
if value.nil?
|
171
|
-
nil
|
172
|
-
else
|
173
|
-
case type.to_sym
|
174
|
-
when :DateTime
|
175
|
-
DateTime.parse(value)
|
176
|
-
when :Date
|
177
|
-
Date.parse(value)
|
178
|
-
when :String
|
179
|
-
value.to_s
|
180
|
-
when :Integer
|
181
|
-
value.to_i
|
182
|
-
when :Float
|
183
|
-
value.to_f
|
184
|
-
when :BOOLEAN
|
185
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
186
|
-
true
|
187
|
-
else
|
188
|
-
false
|
189
|
-
end
|
190
|
-
when :Object
|
191
|
-
# generic object (usually a Hash), return directly
|
192
|
-
value
|
193
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
194
|
-
inner_type = Regexp.last_match[:inner_type]
|
195
|
-
value.map { |v| _deserialize(inner_type, v) }
|
196
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
197
|
-
k_type = Regexp.last_match[:k_type]
|
198
|
-
v_type = Regexp.last_match[:v_type]
|
199
|
-
{}.tap do |hash|
|
200
|
-
value.each do |k, v|
|
201
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
202
|
-
end
|
203
|
-
end
|
204
|
-
else # model
|
205
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
206
|
-
if registry_type
|
207
|
-
type = registry_type
|
208
|
-
end
|
209
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
210
|
-
temp_model.build_from_hash(value)
|
211
|
-
end
|
212
|
-
end
|
213
|
-
end
|
214
|
-
|
215
|
-
# Returns the string representation of the object
|
216
|
-
# @return [String] String presentation of the object
|
217
|
-
def to_s
|
218
|
-
to_hash.to_s
|
219
|
-
end
|
220
|
-
|
221
|
-
# to_body is an alias to to_hash (backward compatibility)
|
222
|
-
# @return [Hash] Returns the object in the form of hash
|
223
|
-
def to_body
|
224
|
-
to_hash
|
225
|
-
end
|
226
|
-
|
227
|
-
# Returns the object in the form of hash
|
228
|
-
# @return [Hash] Returns the object in the form of hash
|
229
|
-
def to_hash
|
230
|
-
hash = {}
|
231
|
-
self.class.attribute_map.each_pair do |attr, param|
|
232
|
-
value = self.send(attr)
|
233
|
-
next if value.nil?
|
234
|
-
hash[param] = _to_hash(value)
|
235
|
-
end
|
236
|
-
hash
|
237
|
-
end
|
238
|
-
|
239
|
-
# Outputs non-array value in the form of hash
|
240
|
-
# For object, use to_hash. Otherwise, just return the value
|
241
|
-
# @param [Object] value Any valid value
|
242
|
-
# @return [Hash] Returns the value in the form of hash
|
243
|
-
def _to_hash(value)
|
244
|
-
if value.is_a?(Array)
|
245
|
-
value.compact.map { |v| _to_hash(v) }
|
246
|
-
elsif value.is_a?(Hash)
|
247
|
-
{}.tap do |hash|
|
248
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
249
|
-
end
|
250
|
-
elsif value.respond_to? :to_hash
|
251
|
-
value.to_hash
|
252
|
-
else
|
253
|
-
value
|
254
|
-
end
|
255
|
-
end
|
256
110
|
end
|
257
111
|
end
|