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
@@ -91,28 +91,6 @@ module AsposeSlidesCloud
|
|
91
91
|
# Bullet fill format.
|
92
92
|
attr_accessor :bullet_fill_format
|
93
93
|
|
94
|
-
class EnumAttributeValidator
|
95
|
-
attr_reader :datatype
|
96
|
-
attr_reader :allowable_values
|
97
|
-
|
98
|
-
def initialize(datatype, allowable_values)
|
99
|
-
@allowable_values = allowable_values.map do |value|
|
100
|
-
case datatype.to_s
|
101
|
-
when /Integer/i
|
102
|
-
value.to_i
|
103
|
-
when /Float/i
|
104
|
-
value.to_f
|
105
|
-
else
|
106
|
-
value
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
def valid?(value)
|
112
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
94
|
# Attribute mapping from ruby-style variable name to JSON key.
|
117
95
|
def self.attribute_map
|
118
96
|
super.merge({
|
@@ -417,129 +395,5 @@ module AsposeSlidesCloud
|
|
417
395
|
def hash
|
418
396
|
[self_uri, alternate_links, margin_left, margin_right, space_before, space_after, space_within, indent, alignment, font_alignment, default_tab_size, depth, hanging_punctuation, east_asian_line_break, latin_line_break, right_to_left, portion_list, default_portion_format, bullet_char, bullet_height, bullet_type, numbered_bullet_start_with, numbered_bullet_style, bullet_fill_format].hash
|
419
397
|
end
|
420
|
-
|
421
|
-
# Builds the object from hash
|
422
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
423
|
-
# @return [Object] Returns the model itself
|
424
|
-
def build_from_hash(attributes)
|
425
|
-
return nil unless attributes.is_a?(Hash)
|
426
|
-
self.class.swagger_types.each_pair do |key, type|
|
427
|
-
mapKey = self.class.attribute_map[key]
|
428
|
-
if !mapKey.nil?
|
429
|
-
val = attributes[mapKey]
|
430
|
-
if val.nil?
|
431
|
-
mapKeyString = mapKey.to_s
|
432
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
433
|
-
mapKey = mapKeyString.to_sym
|
434
|
-
val = attributes[mapKey]
|
435
|
-
end
|
436
|
-
if !val.nil?
|
437
|
-
if type =~ /\AArray<(.*)>/i
|
438
|
-
# check to ensure the input is an array given that the the attribute
|
439
|
-
# is documented as an array but the input is not
|
440
|
-
if val.is_a?(Array)
|
441
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
442
|
-
end
|
443
|
-
else
|
444
|
-
self.send("#{key}=", _deserialize(type, val))
|
445
|
-
end
|
446
|
-
end
|
447
|
-
end
|
448
|
-
end
|
449
|
-
|
450
|
-
self
|
451
|
-
end
|
452
|
-
|
453
|
-
# Deserializes the data based on type
|
454
|
-
# @param string type Data type
|
455
|
-
# @param string value Value to be deserialized
|
456
|
-
# @return [Object] Deserialized data
|
457
|
-
def _deserialize(type, value)
|
458
|
-
if value.nil?
|
459
|
-
nil
|
460
|
-
else
|
461
|
-
case type.to_sym
|
462
|
-
when :DateTime
|
463
|
-
DateTime.parse(value)
|
464
|
-
when :Date
|
465
|
-
Date.parse(value)
|
466
|
-
when :String
|
467
|
-
value.to_s
|
468
|
-
when :Integer
|
469
|
-
value.to_i
|
470
|
-
when :Float
|
471
|
-
value.to_f
|
472
|
-
when :BOOLEAN
|
473
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
474
|
-
true
|
475
|
-
else
|
476
|
-
false
|
477
|
-
end
|
478
|
-
when :Object
|
479
|
-
# generic object (usually a Hash), return directly
|
480
|
-
value
|
481
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
482
|
-
inner_type = Regexp.last_match[:inner_type]
|
483
|
-
value.map { |v| _deserialize(inner_type, v) }
|
484
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
485
|
-
k_type = Regexp.last_match[:k_type]
|
486
|
-
v_type = Regexp.last_match[:v_type]
|
487
|
-
{}.tap do |hash|
|
488
|
-
value.each do |k, v|
|
489
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
490
|
-
end
|
491
|
-
end
|
492
|
-
else # model
|
493
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
494
|
-
if registry_type
|
495
|
-
type = registry_type
|
496
|
-
end
|
497
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
498
|
-
temp_model.build_from_hash(value)
|
499
|
-
end
|
500
|
-
end
|
501
|
-
end
|
502
|
-
|
503
|
-
# Returns the string representation of the object
|
504
|
-
# @return [String] String presentation of the object
|
505
|
-
def to_s
|
506
|
-
to_hash.to_s
|
507
|
-
end
|
508
|
-
|
509
|
-
# to_body is an alias to to_hash (backward compatibility)
|
510
|
-
# @return [Hash] Returns the object in the form of hash
|
511
|
-
def to_body
|
512
|
-
to_hash
|
513
|
-
end
|
514
|
-
|
515
|
-
# Returns the object in the form of hash
|
516
|
-
# @return [Hash] Returns the object in the form of hash
|
517
|
-
def to_hash
|
518
|
-
hash = {}
|
519
|
-
self.class.attribute_map.each_pair do |attr, param|
|
520
|
-
value = self.send(attr)
|
521
|
-
next if value.nil?
|
522
|
-
hash[param] = _to_hash(value)
|
523
|
-
end
|
524
|
-
hash
|
525
|
-
end
|
526
|
-
|
527
|
-
# Outputs non-array value in the form of hash
|
528
|
-
# For object, use to_hash. Otherwise, just return the value
|
529
|
-
# @param [Object] value Any valid value
|
530
|
-
# @return [Hash] Returns the value in the form of hash
|
531
|
-
def _to_hash(value)
|
532
|
-
if value.is_a?(Array)
|
533
|
-
value.compact.map { |v| _to_hash(v) }
|
534
|
-
elsif value.is_a?(Hash)
|
535
|
-
{}.tap do |hash|
|
536
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
537
|
-
end
|
538
|
-
elsif value.respond_to? :to_hash
|
539
|
-
value.to_hash
|
540
|
-
else
|
541
|
-
value
|
542
|
-
end
|
543
|
-
end
|
544
398
|
end
|
545
399
|
end
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Paragraph formatting properties.
|
27
|
-
class ParagraphFormat
|
27
|
+
class ParagraphFormat < BaseObject
|
28
28
|
# Depth.
|
29
29
|
attr_accessor :depth
|
30
30
|
|
@@ -88,28 +88,6 @@ module AsposeSlidesCloud
|
|
88
88
|
# Bullet fill format.
|
89
89
|
attr_accessor :bullet_fill_format
|
90
90
|
|
91
|
-
class EnumAttributeValidator
|
92
|
-
attr_reader :datatype
|
93
|
-
attr_reader :allowable_values
|
94
|
-
|
95
|
-
def initialize(datatype, allowable_values)
|
96
|
-
@allowable_values = allowable_values.map do |value|
|
97
|
-
case datatype.to_s
|
98
|
-
when /Integer/i
|
99
|
-
value.to_i
|
100
|
-
when /Float/i
|
101
|
-
value.to_f
|
102
|
-
else
|
103
|
-
value
|
104
|
-
end
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
def valid?(value)
|
109
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
91
|
# Attribute mapping from ruby-style variable name to JSON key.
|
114
92
|
def self.attribute_map
|
115
93
|
{
|
@@ -405,129 +383,5 @@ module AsposeSlidesCloud
|
|
405
383
|
def hash
|
406
384
|
[depth, alignment, margin_left, margin_right, space_before, space_after, space_within, font_alignment, indent, right_to_left, east_asian_line_break, latin_line_break, hanging_punctuation, default_tab_size, default_portion_format, bullet_char, bullet_height, bullet_type, numbered_bullet_start_with, numbered_bullet_style, bullet_fill_format].hash
|
407
385
|
end
|
408
|
-
|
409
|
-
# Builds the object from hash
|
410
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
411
|
-
# @return [Object] Returns the model itself
|
412
|
-
def build_from_hash(attributes)
|
413
|
-
return nil unless attributes.is_a?(Hash)
|
414
|
-
self.class.swagger_types.each_pair do |key, type|
|
415
|
-
mapKey = self.class.attribute_map[key]
|
416
|
-
if !mapKey.nil?
|
417
|
-
val = attributes[mapKey]
|
418
|
-
if val.nil?
|
419
|
-
mapKeyString = mapKey.to_s
|
420
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
421
|
-
mapKey = mapKeyString.to_sym
|
422
|
-
val = attributes[mapKey]
|
423
|
-
end
|
424
|
-
if !val.nil?
|
425
|
-
if type =~ /\AArray<(.*)>/i
|
426
|
-
# check to ensure the input is an array given that the the attribute
|
427
|
-
# is documented as an array but the input is not
|
428
|
-
if val.is_a?(Array)
|
429
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
430
|
-
end
|
431
|
-
else
|
432
|
-
self.send("#{key}=", _deserialize(type, val))
|
433
|
-
end
|
434
|
-
end
|
435
|
-
end
|
436
|
-
end
|
437
|
-
|
438
|
-
self
|
439
|
-
end
|
440
|
-
|
441
|
-
# Deserializes the data based on type
|
442
|
-
# @param string type Data type
|
443
|
-
# @param string value Value to be deserialized
|
444
|
-
# @return [Object] Deserialized data
|
445
|
-
def _deserialize(type, value)
|
446
|
-
if value.nil?
|
447
|
-
nil
|
448
|
-
else
|
449
|
-
case type.to_sym
|
450
|
-
when :DateTime
|
451
|
-
DateTime.parse(value)
|
452
|
-
when :Date
|
453
|
-
Date.parse(value)
|
454
|
-
when :String
|
455
|
-
value.to_s
|
456
|
-
when :Integer
|
457
|
-
value.to_i
|
458
|
-
when :Float
|
459
|
-
value.to_f
|
460
|
-
when :BOOLEAN
|
461
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
462
|
-
true
|
463
|
-
else
|
464
|
-
false
|
465
|
-
end
|
466
|
-
when :Object
|
467
|
-
# generic object (usually a Hash), return directly
|
468
|
-
value
|
469
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
470
|
-
inner_type = Regexp.last_match[:inner_type]
|
471
|
-
value.map { |v| _deserialize(inner_type, v) }
|
472
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
473
|
-
k_type = Regexp.last_match[:k_type]
|
474
|
-
v_type = Regexp.last_match[:v_type]
|
475
|
-
{}.tap do |hash|
|
476
|
-
value.each do |k, v|
|
477
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
478
|
-
end
|
479
|
-
end
|
480
|
-
else # model
|
481
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
482
|
-
if registry_type
|
483
|
-
type = registry_type
|
484
|
-
end
|
485
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
486
|
-
temp_model.build_from_hash(value)
|
487
|
-
end
|
488
|
-
end
|
489
|
-
end
|
490
|
-
|
491
|
-
# Returns the string representation of the object
|
492
|
-
# @return [String] String presentation of the object
|
493
|
-
def to_s
|
494
|
-
to_hash.to_s
|
495
|
-
end
|
496
|
-
|
497
|
-
# to_body is an alias to to_hash (backward compatibility)
|
498
|
-
# @return [Hash] Returns the object in the form of hash
|
499
|
-
def to_body
|
500
|
-
to_hash
|
501
|
-
end
|
502
|
-
|
503
|
-
# Returns the object in the form of hash
|
504
|
-
# @return [Hash] Returns the object in the form of hash
|
505
|
-
def to_hash
|
506
|
-
hash = {}
|
507
|
-
self.class.attribute_map.each_pair do |attr, param|
|
508
|
-
value = self.send(attr)
|
509
|
-
next if value.nil?
|
510
|
-
hash[param] = _to_hash(value)
|
511
|
-
end
|
512
|
-
hash
|
513
|
-
end
|
514
|
-
|
515
|
-
# Outputs non-array value in the form of hash
|
516
|
-
# For object, use to_hash. Otherwise, just return the value
|
517
|
-
# @param [Object] value Any valid value
|
518
|
-
# @return [Hash] Returns the value in the form of hash
|
519
|
-
def _to_hash(value)
|
520
|
-
if value.is_a?(Array)
|
521
|
-
value.compact.map { |v| _to_hash(v) }
|
522
|
-
elsif value.is_a?(Hash)
|
523
|
-
{}.tap do |hash|
|
524
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
525
|
-
end
|
526
|
-
elsif value.respond_to? :to_hash
|
527
|
-
value.to_hash
|
528
|
-
else
|
529
|
-
value
|
530
|
-
end
|
531
|
-
end
|
532
386
|
end
|
533
387
|
end
|
@@ -89,129 +89,5 @@ module AsposeSlidesCloud
|
|
89
89
|
def hash
|
90
90
|
[self_uri, alternate_links, paragraph_links].hash
|
91
91
|
end
|
92
|
-
|
93
|
-
# Builds the object from hash
|
94
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
95
|
-
# @return [Object] Returns the model itself
|
96
|
-
def build_from_hash(attributes)
|
97
|
-
return nil unless attributes.is_a?(Hash)
|
98
|
-
self.class.swagger_types.each_pair do |key, type|
|
99
|
-
mapKey = self.class.attribute_map[key]
|
100
|
-
if !mapKey.nil?
|
101
|
-
val = attributes[mapKey]
|
102
|
-
if val.nil?
|
103
|
-
mapKeyString = mapKey.to_s
|
104
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
105
|
-
mapKey = mapKeyString.to_sym
|
106
|
-
val = attributes[mapKey]
|
107
|
-
end
|
108
|
-
if !val.nil?
|
109
|
-
if type =~ /\AArray<(.*)>/i
|
110
|
-
# check to ensure the input is an array given that the the attribute
|
111
|
-
# is documented as an array but the input is not
|
112
|
-
if val.is_a?(Array)
|
113
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
114
|
-
end
|
115
|
-
else
|
116
|
-
self.send("#{key}=", _deserialize(type, val))
|
117
|
-
end
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
self
|
123
|
-
end
|
124
|
-
|
125
|
-
# Deserializes the data based on type
|
126
|
-
# @param string type Data type
|
127
|
-
# @param string value Value to be deserialized
|
128
|
-
# @return [Object] Deserialized data
|
129
|
-
def _deserialize(type, value)
|
130
|
-
if value.nil?
|
131
|
-
nil
|
132
|
-
else
|
133
|
-
case type.to_sym
|
134
|
-
when :DateTime
|
135
|
-
DateTime.parse(value)
|
136
|
-
when :Date
|
137
|
-
Date.parse(value)
|
138
|
-
when :String
|
139
|
-
value.to_s
|
140
|
-
when :Integer
|
141
|
-
value.to_i
|
142
|
-
when :Float
|
143
|
-
value.to_f
|
144
|
-
when :BOOLEAN
|
145
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
-
true
|
147
|
-
else
|
148
|
-
false
|
149
|
-
end
|
150
|
-
when :Object
|
151
|
-
# generic object (usually a Hash), return directly
|
152
|
-
value
|
153
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
-
inner_type = Regexp.last_match[:inner_type]
|
155
|
-
value.map { |v| _deserialize(inner_type, v) }
|
156
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
-
k_type = Regexp.last_match[:k_type]
|
158
|
-
v_type = Regexp.last_match[:v_type]
|
159
|
-
{}.tap do |hash|
|
160
|
-
value.each do |k, v|
|
161
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
-
end
|
163
|
-
end
|
164
|
-
else # model
|
165
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
166
|
-
if registry_type
|
167
|
-
type = registry_type
|
168
|
-
end
|
169
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
170
|
-
temp_model.build_from_hash(value)
|
171
|
-
end
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
# Returns the string representation of the object
|
176
|
-
# @return [String] String presentation of the object
|
177
|
-
def to_s
|
178
|
-
to_hash.to_s
|
179
|
-
end
|
180
|
-
|
181
|
-
# to_body is an alias to to_hash (backward compatibility)
|
182
|
-
# @return [Hash] Returns the object in the form of hash
|
183
|
-
def to_body
|
184
|
-
to_hash
|
185
|
-
end
|
186
|
-
|
187
|
-
# Returns the object in the form of hash
|
188
|
-
# @return [Hash] Returns the object in the form of hash
|
189
|
-
def to_hash
|
190
|
-
hash = {}
|
191
|
-
self.class.attribute_map.each_pair do |attr, param|
|
192
|
-
value = self.send(attr)
|
193
|
-
next if value.nil?
|
194
|
-
hash[param] = _to_hash(value)
|
195
|
-
end
|
196
|
-
hash
|
197
|
-
end
|
198
|
-
|
199
|
-
# Outputs non-array value in the form of hash
|
200
|
-
# For object, use to_hash. Otherwise, just return the value
|
201
|
-
# @param [Object] value Any valid value
|
202
|
-
# @return [Hash] Returns the value in the form of hash
|
203
|
-
def _to_hash(value)
|
204
|
-
if value.is_a?(Array)
|
205
|
-
value.compact.map { |v| _to_hash(v) }
|
206
|
-
elsif value.is_a?(Hash)
|
207
|
-
{}.tap do |hash|
|
208
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
-
end
|
210
|
-
elsif value.respond_to? :to_hash
|
211
|
-
value.to_hash
|
212
|
-
else
|
213
|
-
value
|
214
|
-
end
|
215
|
-
end
|
216
92
|
end
|
217
93
|
end
|
@@ -31,28 +31,6 @@ module AsposeSlidesCloud
|
|
31
31
|
# Get or sets name of storage.
|
32
32
|
attr_accessor :storage
|
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({
|
@@ -120,129 +98,5 @@ module AsposeSlidesCloud
|
|
120
98
|
def hash
|
121
99
|
[password, type, path, storage].hash
|
122
100
|
end
|
123
|
-
|
124
|
-
# Builds the object from hash
|
125
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
126
|
-
# @return [Object] Returns the model itself
|
127
|
-
def build_from_hash(attributes)
|
128
|
-
return nil unless attributes.is_a?(Hash)
|
129
|
-
self.class.swagger_types.each_pair do |key, type|
|
130
|
-
mapKey = self.class.attribute_map[key]
|
131
|
-
if !mapKey.nil?
|
132
|
-
val = attributes[mapKey]
|
133
|
-
if val.nil?
|
134
|
-
mapKeyString = mapKey.to_s
|
135
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
136
|
-
mapKey = mapKeyString.to_sym
|
137
|
-
val = attributes[mapKey]
|
138
|
-
end
|
139
|
-
if !val.nil?
|
140
|
-
if type =~ /\AArray<(.*)>/i
|
141
|
-
# check to ensure the input is an array given that the the attribute
|
142
|
-
# is documented as an array but the input is not
|
143
|
-
if val.is_a?(Array)
|
144
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
145
|
-
end
|
146
|
-
else
|
147
|
-
self.send("#{key}=", _deserialize(type, val))
|
148
|
-
end
|
149
|
-
end
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
|
-
self
|
154
|
-
end
|
155
|
-
|
156
|
-
# Deserializes the data based on type
|
157
|
-
# @param string type Data type
|
158
|
-
# @param string value Value to be deserialized
|
159
|
-
# @return [Object] Deserialized data
|
160
|
-
def _deserialize(type, value)
|
161
|
-
if value.nil?
|
162
|
-
nil
|
163
|
-
else
|
164
|
-
case type.to_sym
|
165
|
-
when :DateTime
|
166
|
-
DateTime.parse(value)
|
167
|
-
when :Date
|
168
|
-
Date.parse(value)
|
169
|
-
when :String
|
170
|
-
value.to_s
|
171
|
-
when :Integer
|
172
|
-
value.to_i
|
173
|
-
when :Float
|
174
|
-
value.to_f
|
175
|
-
when :BOOLEAN
|
176
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
177
|
-
true
|
178
|
-
else
|
179
|
-
false
|
180
|
-
end
|
181
|
-
when :Object
|
182
|
-
# generic object (usually a Hash), return directly
|
183
|
-
value
|
184
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
185
|
-
inner_type = Regexp.last_match[:inner_type]
|
186
|
-
value.map { |v| _deserialize(inner_type, v) }
|
187
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
188
|
-
k_type = Regexp.last_match[:k_type]
|
189
|
-
v_type = Regexp.last_match[:v_type]
|
190
|
-
{}.tap do |hash|
|
191
|
-
value.each do |k, v|
|
192
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
193
|
-
end
|
194
|
-
end
|
195
|
-
else # model
|
196
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
197
|
-
if registry_type
|
198
|
-
type = registry_type
|
199
|
-
end
|
200
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
201
|
-
temp_model.build_from_hash(value)
|
202
|
-
end
|
203
|
-
end
|
204
|
-
end
|
205
|
-
|
206
|
-
# Returns the string representation of the object
|
207
|
-
# @return [String] String presentation of the object
|
208
|
-
def to_s
|
209
|
-
to_hash.to_s
|
210
|
-
end
|
211
|
-
|
212
|
-
# to_body is an alias to to_hash (backward compatibility)
|
213
|
-
# @return [Hash] Returns the object in the form of hash
|
214
|
-
def to_body
|
215
|
-
to_hash
|
216
|
-
end
|
217
|
-
|
218
|
-
# Returns the object in the form of hash
|
219
|
-
# @return [Hash] Returns the object in the form of hash
|
220
|
-
def to_hash
|
221
|
-
hash = {}
|
222
|
-
self.class.attribute_map.each_pair do |attr, param|
|
223
|
-
value = self.send(attr)
|
224
|
-
next if value.nil?
|
225
|
-
hash[param] = _to_hash(value)
|
226
|
-
end
|
227
|
-
hash
|
228
|
-
end
|
229
|
-
|
230
|
-
# Outputs non-array value in the form of hash
|
231
|
-
# For object, use to_hash. Otherwise, just return the value
|
232
|
-
# @param [Object] value Any valid value
|
233
|
-
# @return [Hash] Returns the value in the form of hash
|
234
|
-
def _to_hash(value)
|
235
|
-
if value.is_a?(Array)
|
236
|
-
value.compact.map { |v| _to_hash(v) }
|
237
|
-
elsif value.is_a?(Hash)
|
238
|
-
{}.tap do |hash|
|
239
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
240
|
-
end
|
241
|
-
elsif value.respond_to? :to_hash
|
242
|
-
value.to_hash
|
243
|
-
else
|
244
|
-
value
|
245
|
-
end
|
246
|
-
end
|
247
101
|
end
|
248
102
|
end
|