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