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
@@ -55,28 +55,6 @@ module AsposeSlidesCloud
|
|
55
55
|
# Image transform effects.
|
56
56
|
attr_accessor :image_transform_list
|
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({
|
@@ -243,129 +221,5 @@ module AsposeSlidesCloud
|
|
243
221
|
def hash
|
244
222
|
[type, crop_bottom, crop_left, crop_right, crop_top, dpi, image, base64_data, svg_data, picture_fill_mode, image_transform_list].hash
|
245
223
|
end
|
246
|
-
|
247
|
-
# Builds the object from hash
|
248
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
249
|
-
# @return [Object] Returns the model itself
|
250
|
-
def build_from_hash(attributes)
|
251
|
-
return nil unless attributes.is_a?(Hash)
|
252
|
-
self.class.swagger_types.each_pair do |key, type|
|
253
|
-
mapKey = self.class.attribute_map[key]
|
254
|
-
if !mapKey.nil?
|
255
|
-
val = attributes[mapKey]
|
256
|
-
if val.nil?
|
257
|
-
mapKeyString = mapKey.to_s
|
258
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
259
|
-
mapKey = mapKeyString.to_sym
|
260
|
-
val = attributes[mapKey]
|
261
|
-
end
|
262
|
-
if !val.nil?
|
263
|
-
if type =~ /\AArray<(.*)>/i
|
264
|
-
# check to ensure the input is an array given that the the attribute
|
265
|
-
# is documented as an array but the input is not
|
266
|
-
if val.is_a?(Array)
|
267
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
268
|
-
end
|
269
|
-
else
|
270
|
-
self.send("#{key}=", _deserialize(type, val))
|
271
|
-
end
|
272
|
-
end
|
273
|
-
end
|
274
|
-
end
|
275
|
-
|
276
|
-
self
|
277
|
-
end
|
278
|
-
|
279
|
-
# Deserializes the data based on type
|
280
|
-
# @param string type Data type
|
281
|
-
# @param string value Value to be deserialized
|
282
|
-
# @return [Object] Deserialized data
|
283
|
-
def _deserialize(type, value)
|
284
|
-
if value.nil?
|
285
|
-
nil
|
286
|
-
else
|
287
|
-
case type.to_sym
|
288
|
-
when :DateTime
|
289
|
-
DateTime.parse(value)
|
290
|
-
when :Date
|
291
|
-
Date.parse(value)
|
292
|
-
when :String
|
293
|
-
value.to_s
|
294
|
-
when :Integer
|
295
|
-
value.to_i
|
296
|
-
when :Float
|
297
|
-
value.to_f
|
298
|
-
when :BOOLEAN
|
299
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
300
|
-
true
|
301
|
-
else
|
302
|
-
false
|
303
|
-
end
|
304
|
-
when :Object
|
305
|
-
# generic object (usually a Hash), return directly
|
306
|
-
value
|
307
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
308
|
-
inner_type = Regexp.last_match[:inner_type]
|
309
|
-
value.map { |v| _deserialize(inner_type, v) }
|
310
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
311
|
-
k_type = Regexp.last_match[:k_type]
|
312
|
-
v_type = Regexp.last_match[:v_type]
|
313
|
-
{}.tap do |hash|
|
314
|
-
value.each do |k, v|
|
315
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
316
|
-
end
|
317
|
-
end
|
318
|
-
else # model
|
319
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
320
|
-
if registry_type
|
321
|
-
type = registry_type
|
322
|
-
end
|
323
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
324
|
-
temp_model.build_from_hash(value)
|
325
|
-
end
|
326
|
-
end
|
327
|
-
end
|
328
|
-
|
329
|
-
# Returns the string representation of the object
|
330
|
-
# @return [String] String presentation of the object
|
331
|
-
def to_s
|
332
|
-
to_hash.to_s
|
333
|
-
end
|
334
|
-
|
335
|
-
# to_body is an alias to to_hash (backward compatibility)
|
336
|
-
# @return [Hash] Returns the object in the form of hash
|
337
|
-
def to_body
|
338
|
-
to_hash
|
339
|
-
end
|
340
|
-
|
341
|
-
# Returns the object in the form of hash
|
342
|
-
# @return [Hash] Returns the object in the form of hash
|
343
|
-
def to_hash
|
344
|
-
hash = {}
|
345
|
-
self.class.attribute_map.each_pair do |attr, param|
|
346
|
-
value = self.send(attr)
|
347
|
-
next if value.nil?
|
348
|
-
hash[param] = _to_hash(value)
|
349
|
-
end
|
350
|
-
hash
|
351
|
-
end
|
352
|
-
|
353
|
-
# Outputs non-array value in the form of hash
|
354
|
-
# For object, use to_hash. Otherwise, just return the value
|
355
|
-
# @param [Object] value Any valid value
|
356
|
-
# @return [Hash] Returns the value in the form of hash
|
357
|
-
def _to_hash(value)
|
358
|
-
if value.is_a?(Array)
|
359
|
-
value.compact.map { |v| _to_hash(v) }
|
360
|
-
elsif value.is_a?(Hash)
|
361
|
-
{}.tap do |hash|
|
362
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
363
|
-
end
|
364
|
-
elsif value.respond_to? :to_hash
|
365
|
-
value.to_hash
|
366
|
-
else
|
367
|
-
value
|
368
|
-
end
|
369
|
-
end
|
370
224
|
end
|
371
225
|
end
|
@@ -28,28 +28,6 @@ module AsposeSlidesCloud
|
|
28
28
|
# Fill format.
|
29
29
|
attr_accessor :picture_fill_format
|
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({
|
@@ -127,129 +105,5 @@ module AsposeSlidesCloud
|
|
127
105
|
def hash
|
128
106
|
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, picture_fill_format].hash
|
129
107
|
end
|
130
|
-
|
131
|
-
# Builds the object from hash
|
132
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
133
|
-
# @return [Object] Returns the model itself
|
134
|
-
def build_from_hash(attributes)
|
135
|
-
return nil unless attributes.is_a?(Hash)
|
136
|
-
self.class.swagger_types.each_pair do |key, type|
|
137
|
-
mapKey = self.class.attribute_map[key]
|
138
|
-
if !mapKey.nil?
|
139
|
-
val = attributes[mapKey]
|
140
|
-
if val.nil?
|
141
|
-
mapKeyString = mapKey.to_s
|
142
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
143
|
-
mapKey = mapKeyString.to_sym
|
144
|
-
val = attributes[mapKey]
|
145
|
-
end
|
146
|
-
if !val.nil?
|
147
|
-
if type =~ /\AArray<(.*)>/i
|
148
|
-
# check to ensure the input is an array given that the the attribute
|
149
|
-
# is documented as an array but the input is not
|
150
|
-
if val.is_a?(Array)
|
151
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
152
|
-
end
|
153
|
-
else
|
154
|
-
self.send("#{key}=", _deserialize(type, val))
|
155
|
-
end
|
156
|
-
end
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
self
|
161
|
-
end
|
162
|
-
|
163
|
-
# Deserializes the data based on type
|
164
|
-
# @param string type Data type
|
165
|
-
# @param string value Value to be deserialized
|
166
|
-
# @return [Object] Deserialized data
|
167
|
-
def _deserialize(type, value)
|
168
|
-
if value.nil?
|
169
|
-
nil
|
170
|
-
else
|
171
|
-
case type.to_sym
|
172
|
-
when :DateTime
|
173
|
-
DateTime.parse(value)
|
174
|
-
when :Date
|
175
|
-
Date.parse(value)
|
176
|
-
when :String
|
177
|
-
value.to_s
|
178
|
-
when :Integer
|
179
|
-
value.to_i
|
180
|
-
when :Float
|
181
|
-
value.to_f
|
182
|
-
when :BOOLEAN
|
183
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
184
|
-
true
|
185
|
-
else
|
186
|
-
false
|
187
|
-
end
|
188
|
-
when :Object
|
189
|
-
# generic object (usually a Hash), return directly
|
190
|
-
value
|
191
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
192
|
-
inner_type = Regexp.last_match[:inner_type]
|
193
|
-
value.map { |v| _deserialize(inner_type, v) }
|
194
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
195
|
-
k_type = Regexp.last_match[:k_type]
|
196
|
-
v_type = Regexp.last_match[:v_type]
|
197
|
-
{}.tap do |hash|
|
198
|
-
value.each do |k, v|
|
199
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
200
|
-
end
|
201
|
-
end
|
202
|
-
else # model
|
203
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
204
|
-
if registry_type
|
205
|
-
type = registry_type
|
206
|
-
end
|
207
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
208
|
-
temp_model.build_from_hash(value)
|
209
|
-
end
|
210
|
-
end
|
211
|
-
end
|
212
|
-
|
213
|
-
# Returns the string representation of the object
|
214
|
-
# @return [String] String presentation of the object
|
215
|
-
def to_s
|
216
|
-
to_hash.to_s
|
217
|
-
end
|
218
|
-
|
219
|
-
# to_body is an alias to to_hash (backward compatibility)
|
220
|
-
# @return [Hash] Returns the object in the form of hash
|
221
|
-
def to_body
|
222
|
-
to_hash
|
223
|
-
end
|
224
|
-
|
225
|
-
# Returns the object in the form of hash
|
226
|
-
# @return [Hash] Returns the object in the form of hash
|
227
|
-
def to_hash
|
228
|
-
hash = {}
|
229
|
-
self.class.attribute_map.each_pair do |attr, param|
|
230
|
-
value = self.send(attr)
|
231
|
-
next if value.nil?
|
232
|
-
hash[param] = _to_hash(value)
|
233
|
-
end
|
234
|
-
hash
|
235
|
-
end
|
236
|
-
|
237
|
-
# Outputs non-array value in the form of hash
|
238
|
-
# For object, use to_hash. Otherwise, just return the value
|
239
|
-
# @param [Object] value Any valid value
|
240
|
-
# @return [Hash] Returns the value in the form of hash
|
241
|
-
def _to_hash(value)
|
242
|
-
if value.is_a?(Array)
|
243
|
-
value.compact.map { |v| _to_hash(v) }
|
244
|
-
elsif value.is_a?(Hash)
|
245
|
-
{}.tap do |hash|
|
246
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
247
|
-
end
|
248
|
-
elsif value.respond_to? :to_hash
|
249
|
-
value.to_hash
|
250
|
-
else
|
251
|
-
value
|
252
|
-
end
|
253
|
-
end
|
254
108
|
end
|
255
109
|
end
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents pipeline for one input document.
|
27
|
-
class Pipeline
|
27
|
+
class Pipeline < BaseObject
|
28
28
|
# Get or sets input document.
|
29
29
|
attr_accessor :input
|
30
30
|
|
@@ -99,129 +99,5 @@ module AsposeSlidesCloud
|
|
99
99
|
def hash
|
100
100
|
[input, tasks].hash
|
101
101
|
end
|
102
|
-
|
103
|
-
# Builds the object from hash
|
104
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
-
# @return [Object] Returns the model itself
|
106
|
-
def build_from_hash(attributes)
|
107
|
-
return nil unless attributes.is_a?(Hash)
|
108
|
-
self.class.swagger_types.each_pair do |key, type|
|
109
|
-
mapKey = self.class.attribute_map[key]
|
110
|
-
if !mapKey.nil?
|
111
|
-
val = attributes[mapKey]
|
112
|
-
if val.nil?
|
113
|
-
mapKeyString = mapKey.to_s
|
114
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
115
|
-
mapKey = mapKeyString.to_sym
|
116
|
-
val = attributes[mapKey]
|
117
|
-
end
|
118
|
-
if !val.nil?
|
119
|
-
if type =~ /\AArray<(.*)>/i
|
120
|
-
# check to ensure the input is an array given that the the attribute
|
121
|
-
# is documented as an array but the input is not
|
122
|
-
if val.is_a?(Array)
|
123
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
124
|
-
end
|
125
|
-
else
|
126
|
-
self.send("#{key}=", _deserialize(type, val))
|
127
|
-
end
|
128
|
-
end
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
self
|
133
|
-
end
|
134
|
-
|
135
|
-
# Deserializes the data based on type
|
136
|
-
# @param string type Data type
|
137
|
-
# @param string value Value to be deserialized
|
138
|
-
# @return [Object] Deserialized data
|
139
|
-
def _deserialize(type, value)
|
140
|
-
if value.nil?
|
141
|
-
nil
|
142
|
-
else
|
143
|
-
case type.to_sym
|
144
|
-
when :DateTime
|
145
|
-
DateTime.parse(value)
|
146
|
-
when :Date
|
147
|
-
Date.parse(value)
|
148
|
-
when :String
|
149
|
-
value.to_s
|
150
|
-
when :Integer
|
151
|
-
value.to_i
|
152
|
-
when :Float
|
153
|
-
value.to_f
|
154
|
-
when :BOOLEAN
|
155
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
-
true
|
157
|
-
else
|
158
|
-
false
|
159
|
-
end
|
160
|
-
when :Object
|
161
|
-
# generic object (usually a Hash), return directly
|
162
|
-
value
|
163
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
-
inner_type = Regexp.last_match[:inner_type]
|
165
|
-
value.map { |v| _deserialize(inner_type, v) }
|
166
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
-
k_type = Regexp.last_match[:k_type]
|
168
|
-
v_type = Regexp.last_match[:v_type]
|
169
|
-
{}.tap do |hash|
|
170
|
-
value.each do |k, v|
|
171
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
-
end
|
173
|
-
end
|
174
|
-
else # model
|
175
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
176
|
-
if registry_type
|
177
|
-
type = registry_type
|
178
|
-
end
|
179
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
180
|
-
temp_model.build_from_hash(value)
|
181
|
-
end
|
182
|
-
end
|
183
|
-
end
|
184
|
-
|
185
|
-
# Returns the string representation of the object
|
186
|
-
# @return [String] String presentation of the object
|
187
|
-
def to_s
|
188
|
-
to_hash.to_s
|
189
|
-
end
|
190
|
-
|
191
|
-
# to_body is an alias to to_hash (backward compatibility)
|
192
|
-
# @return [Hash] Returns the object in the form of hash
|
193
|
-
def to_body
|
194
|
-
to_hash
|
195
|
-
end
|
196
|
-
|
197
|
-
# Returns the object in the form of hash
|
198
|
-
# @return [Hash] Returns the object in the form of hash
|
199
|
-
def to_hash
|
200
|
-
hash = {}
|
201
|
-
self.class.attribute_map.each_pair do |attr, param|
|
202
|
-
value = self.send(attr)
|
203
|
-
next if value.nil?
|
204
|
-
hash[param] = _to_hash(value)
|
205
|
-
end
|
206
|
-
hash
|
207
|
-
end
|
208
|
-
|
209
|
-
# Outputs non-array value in the form of hash
|
210
|
-
# For object, use to_hash. Otherwise, just return the value
|
211
|
-
# @param [Object] value Any valid value
|
212
|
-
# @return [Hash] Returns the value in the form of hash
|
213
|
-
def _to_hash(value)
|
214
|
-
if value.is_a?(Array)
|
215
|
-
value.compact.map { |v| _to_hash(v) }
|
216
|
-
elsif value.is_a?(Hash)
|
217
|
-
{}.tap do |hash|
|
218
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
219
|
-
end
|
220
|
-
elsif value.respond_to? :to_hash
|
221
|
-
value.to_hash
|
222
|
-
else
|
223
|
-
value
|
224
|
-
end
|
225
|
-
end
|
226
102
|
end
|
227
103
|
end
|
@@ -40,28 +40,6 @@ module AsposeSlidesCloud
|
|
40
40
|
# Shape link.
|
41
41
|
attr_accessor :shape
|
42
42
|
|
43
|
-
class EnumAttributeValidator
|
44
|
-
attr_reader :datatype
|
45
|
-
attr_reader :allowable_values
|
46
|
-
|
47
|
-
def initialize(datatype, allowable_values)
|
48
|
-
@allowable_values = allowable_values.map do |value|
|
49
|
-
case datatype.to_s
|
50
|
-
when /Integer/i
|
51
|
-
value.to_i
|
52
|
-
when /Float/i
|
53
|
-
value.to_f
|
54
|
-
else
|
55
|
-
value
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
def valid?(value)
|
61
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
44
|
def self.attribute_map
|
67
45
|
super.merge({
|
@@ -205,129 +183,5 @@ module AsposeSlidesCloud
|
|
205
183
|
def hash
|
206
184
|
[self_uri, alternate_links, index, orientation, size, type, shape].hash
|
207
185
|
end
|
208
|
-
|
209
|
-
# Builds the object from hash
|
210
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
211
|
-
# @return [Object] Returns the model itself
|
212
|
-
def build_from_hash(attributes)
|
213
|
-
return nil unless attributes.is_a?(Hash)
|
214
|
-
self.class.swagger_types.each_pair do |key, type|
|
215
|
-
mapKey = self.class.attribute_map[key]
|
216
|
-
if !mapKey.nil?
|
217
|
-
val = attributes[mapKey]
|
218
|
-
if val.nil?
|
219
|
-
mapKeyString = mapKey.to_s
|
220
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
221
|
-
mapKey = mapKeyString.to_sym
|
222
|
-
val = attributes[mapKey]
|
223
|
-
end
|
224
|
-
if !val.nil?
|
225
|
-
if type =~ /\AArray<(.*)>/i
|
226
|
-
# check to ensure the input is an array given that the the attribute
|
227
|
-
# is documented as an array but the input is not
|
228
|
-
if val.is_a?(Array)
|
229
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
230
|
-
end
|
231
|
-
else
|
232
|
-
self.send("#{key}=", _deserialize(type, val))
|
233
|
-
end
|
234
|
-
end
|
235
|
-
end
|
236
|
-
end
|
237
|
-
|
238
|
-
self
|
239
|
-
end
|
240
|
-
|
241
|
-
# Deserializes the data based on type
|
242
|
-
# @param string type Data type
|
243
|
-
# @param string value Value to be deserialized
|
244
|
-
# @return [Object] Deserialized data
|
245
|
-
def _deserialize(type, value)
|
246
|
-
if value.nil?
|
247
|
-
nil
|
248
|
-
else
|
249
|
-
case type.to_sym
|
250
|
-
when :DateTime
|
251
|
-
DateTime.parse(value)
|
252
|
-
when :Date
|
253
|
-
Date.parse(value)
|
254
|
-
when :String
|
255
|
-
value.to_s
|
256
|
-
when :Integer
|
257
|
-
value.to_i
|
258
|
-
when :Float
|
259
|
-
value.to_f
|
260
|
-
when :BOOLEAN
|
261
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
262
|
-
true
|
263
|
-
else
|
264
|
-
false
|
265
|
-
end
|
266
|
-
when :Object
|
267
|
-
# generic object (usually a Hash), return directly
|
268
|
-
value
|
269
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
270
|
-
inner_type = Regexp.last_match[:inner_type]
|
271
|
-
value.map { |v| _deserialize(inner_type, v) }
|
272
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
273
|
-
k_type = Regexp.last_match[:k_type]
|
274
|
-
v_type = Regexp.last_match[:v_type]
|
275
|
-
{}.tap do |hash|
|
276
|
-
value.each do |k, v|
|
277
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
278
|
-
end
|
279
|
-
end
|
280
|
-
else # model
|
281
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
282
|
-
if registry_type
|
283
|
-
type = registry_type
|
284
|
-
end
|
285
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
286
|
-
temp_model.build_from_hash(value)
|
287
|
-
end
|
288
|
-
end
|
289
|
-
end
|
290
|
-
|
291
|
-
# Returns the string representation of the object
|
292
|
-
# @return [String] String presentation of the object
|
293
|
-
def to_s
|
294
|
-
to_hash.to_s
|
295
|
-
end
|
296
|
-
|
297
|
-
# to_body is an alias to to_hash (backward compatibility)
|
298
|
-
# @return [Hash] Returns the object in the form of hash
|
299
|
-
def to_body
|
300
|
-
to_hash
|
301
|
-
end
|
302
|
-
|
303
|
-
# Returns the object in the form of hash
|
304
|
-
# @return [Hash] Returns the object in the form of hash
|
305
|
-
def to_hash
|
306
|
-
hash = {}
|
307
|
-
self.class.attribute_map.each_pair do |attr, param|
|
308
|
-
value = self.send(attr)
|
309
|
-
next if value.nil?
|
310
|
-
hash[param] = _to_hash(value)
|
311
|
-
end
|
312
|
-
hash
|
313
|
-
end
|
314
|
-
|
315
|
-
# Outputs non-array value in the form of hash
|
316
|
-
# For object, use to_hash. Otherwise, just return the value
|
317
|
-
# @param [Object] value Any valid value
|
318
|
-
# @return [Hash] Returns the value in the form of hash
|
319
|
-
def _to_hash(value)
|
320
|
-
if value.is_a?(Array)
|
321
|
-
value.compact.map { |v| _to_hash(v) }
|
322
|
-
elsif value.is_a?(Hash)
|
323
|
-
{}.tap do |hash|
|
324
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
325
|
-
end
|
326
|
-
elsif value.respond_to? :to_hash
|
327
|
-
value.to_hash
|
328
|
-
else
|
329
|
-
value
|
330
|
-
end
|
331
|
-
end
|
332
186
|
end
|
333
187
|
end
|