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
@@ -31,28 +31,6 @@ module AsposeSlidesCloud
|
|
31
31
|
# Subscript
|
32
32
|
attr_accessor :subscript
|
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({
|
@@ -119,129 +97,5 @@ module AsposeSlidesCloud
|
|
119
97
|
def hash
|
120
98
|
[type, base, subscript].hash
|
121
99
|
end
|
122
|
-
|
123
|
-
# Builds the object from hash
|
124
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
-
# @return [Object] Returns the model itself
|
126
|
-
def build_from_hash(attributes)
|
127
|
-
return nil unless attributes.is_a?(Hash)
|
128
|
-
self.class.swagger_types.each_pair do |key, type|
|
129
|
-
mapKey = self.class.attribute_map[key]
|
130
|
-
if !mapKey.nil?
|
131
|
-
val = attributes[mapKey]
|
132
|
-
if val.nil?
|
133
|
-
mapKeyString = mapKey.to_s
|
134
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
135
|
-
mapKey = mapKeyString.to_sym
|
136
|
-
val = attributes[mapKey]
|
137
|
-
end
|
138
|
-
if !val.nil?
|
139
|
-
if type =~ /\AArray<(.*)>/i
|
140
|
-
# check to ensure the input is an array given that the the attribute
|
141
|
-
# is documented as an array but the input is not
|
142
|
-
if val.is_a?(Array)
|
143
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
144
|
-
end
|
145
|
-
else
|
146
|
-
self.send("#{key}=", _deserialize(type, val))
|
147
|
-
end
|
148
|
-
end
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
self
|
153
|
-
end
|
154
|
-
|
155
|
-
# Deserializes the data based on type
|
156
|
-
# @param string type Data type
|
157
|
-
# @param string value Value to be deserialized
|
158
|
-
# @return [Object] Deserialized data
|
159
|
-
def _deserialize(type, value)
|
160
|
-
if value.nil?
|
161
|
-
nil
|
162
|
-
else
|
163
|
-
case type.to_sym
|
164
|
-
when :DateTime
|
165
|
-
DateTime.parse(value)
|
166
|
-
when :Date
|
167
|
-
Date.parse(value)
|
168
|
-
when :String
|
169
|
-
value.to_s
|
170
|
-
when :Integer
|
171
|
-
value.to_i
|
172
|
-
when :Float
|
173
|
-
value.to_f
|
174
|
-
when :BOOLEAN
|
175
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
176
|
-
true
|
177
|
-
else
|
178
|
-
false
|
179
|
-
end
|
180
|
-
when :Object
|
181
|
-
# generic object (usually a Hash), return directly
|
182
|
-
value
|
183
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
184
|
-
inner_type = Regexp.last_match[:inner_type]
|
185
|
-
value.map { |v| _deserialize(inner_type, v) }
|
186
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
187
|
-
k_type = Regexp.last_match[:k_type]
|
188
|
-
v_type = Regexp.last_match[:v_type]
|
189
|
-
{}.tap do |hash|
|
190
|
-
value.each do |k, v|
|
191
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
192
|
-
end
|
193
|
-
end
|
194
|
-
else # model
|
195
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
196
|
-
if registry_type
|
197
|
-
type = registry_type
|
198
|
-
end
|
199
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
200
|
-
temp_model.build_from_hash(value)
|
201
|
-
end
|
202
|
-
end
|
203
|
-
end
|
204
|
-
|
205
|
-
# Returns the string representation of the object
|
206
|
-
# @return [String] String presentation of the object
|
207
|
-
def to_s
|
208
|
-
to_hash.to_s
|
209
|
-
end
|
210
|
-
|
211
|
-
# to_body is an alias to to_hash (backward compatibility)
|
212
|
-
# @return [Hash] Returns the object in the form of hash
|
213
|
-
def to_body
|
214
|
-
to_hash
|
215
|
-
end
|
216
|
-
|
217
|
-
# Returns the object in the form of hash
|
218
|
-
# @return [Hash] Returns the object in the form of hash
|
219
|
-
def to_hash
|
220
|
-
hash = {}
|
221
|
-
self.class.attribute_map.each_pair do |attr, param|
|
222
|
-
value = self.send(attr)
|
223
|
-
next if value.nil?
|
224
|
-
hash[param] = _to_hash(value)
|
225
|
-
end
|
226
|
-
hash
|
227
|
-
end
|
228
|
-
|
229
|
-
# Outputs non-array value in the form of hash
|
230
|
-
# For object, use to_hash. Otherwise, just return the value
|
231
|
-
# @param [Object] value Any valid value
|
232
|
-
# @return [Hash] Returns the value in the form of hash
|
233
|
-
def _to_hash(value)
|
234
|
-
if value.is_a?(Array)
|
235
|
-
value.compact.map { |v| _to_hash(v) }
|
236
|
-
elsif value.is_a?(Hash)
|
237
|
-
{}.tap do |hash|
|
238
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
239
|
-
end
|
240
|
-
elsif value.respond_to? :to_hash
|
241
|
-
value.to_hash
|
242
|
-
else
|
243
|
-
value
|
244
|
-
end
|
245
|
-
end
|
246
100
|
end
|
247
101
|
end
|
@@ -31,28 +31,6 @@ module AsposeSlidesCloud
|
|
31
31
|
# Zoom frame sections
|
32
32
|
attr_accessor :sections
|
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({
|
@@ -150,129 +128,5 @@ module AsposeSlidesCloud
|
|
150
128
|
def hash
|
151
129
|
[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, zoom_layout, sections].hash
|
152
130
|
end
|
153
|
-
|
154
|
-
# Builds the object from hash
|
155
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
156
|
-
# @return [Object] Returns the model itself
|
157
|
-
def build_from_hash(attributes)
|
158
|
-
return nil unless attributes.is_a?(Hash)
|
159
|
-
self.class.swagger_types.each_pair do |key, type|
|
160
|
-
mapKey = self.class.attribute_map[key]
|
161
|
-
if !mapKey.nil?
|
162
|
-
val = attributes[mapKey]
|
163
|
-
if val.nil?
|
164
|
-
mapKeyString = mapKey.to_s
|
165
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
166
|
-
mapKey = mapKeyString.to_sym
|
167
|
-
val = attributes[mapKey]
|
168
|
-
end
|
169
|
-
if !val.nil?
|
170
|
-
if type =~ /\AArray<(.*)>/i
|
171
|
-
# check to ensure the input is an array given that the the attribute
|
172
|
-
# is documented as an array but the input is not
|
173
|
-
if val.is_a?(Array)
|
174
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
175
|
-
end
|
176
|
-
else
|
177
|
-
self.send("#{key}=", _deserialize(type, val))
|
178
|
-
end
|
179
|
-
end
|
180
|
-
end
|
181
|
-
end
|
182
|
-
|
183
|
-
self
|
184
|
-
end
|
185
|
-
|
186
|
-
# Deserializes the data based on type
|
187
|
-
# @param string type Data type
|
188
|
-
# @param string value Value to be deserialized
|
189
|
-
# @return [Object] Deserialized data
|
190
|
-
def _deserialize(type, value)
|
191
|
-
if value.nil?
|
192
|
-
nil
|
193
|
-
else
|
194
|
-
case type.to_sym
|
195
|
-
when :DateTime
|
196
|
-
DateTime.parse(value)
|
197
|
-
when :Date
|
198
|
-
Date.parse(value)
|
199
|
-
when :String
|
200
|
-
value.to_s
|
201
|
-
when :Integer
|
202
|
-
value.to_i
|
203
|
-
when :Float
|
204
|
-
value.to_f
|
205
|
-
when :BOOLEAN
|
206
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
207
|
-
true
|
208
|
-
else
|
209
|
-
false
|
210
|
-
end
|
211
|
-
when :Object
|
212
|
-
# generic object (usually a Hash), return directly
|
213
|
-
value
|
214
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
215
|
-
inner_type = Regexp.last_match[:inner_type]
|
216
|
-
value.map { |v| _deserialize(inner_type, v) }
|
217
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
218
|
-
k_type = Regexp.last_match[:k_type]
|
219
|
-
v_type = Regexp.last_match[:v_type]
|
220
|
-
{}.tap do |hash|
|
221
|
-
value.each do |k, v|
|
222
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
223
|
-
end
|
224
|
-
end
|
225
|
-
else # model
|
226
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
227
|
-
if registry_type
|
228
|
-
type = registry_type
|
229
|
-
end
|
230
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
231
|
-
temp_model.build_from_hash(value)
|
232
|
-
end
|
233
|
-
end
|
234
|
-
end
|
235
|
-
|
236
|
-
# Returns the string representation of the object
|
237
|
-
# @return [String] String presentation of the object
|
238
|
-
def to_s
|
239
|
-
to_hash.to_s
|
240
|
-
end
|
241
|
-
|
242
|
-
# to_body is an alias to to_hash (backward compatibility)
|
243
|
-
# @return [Hash] Returns the object in the form of hash
|
244
|
-
def to_body
|
245
|
-
to_hash
|
246
|
-
end
|
247
|
-
|
248
|
-
# Returns the object in the form of hash
|
249
|
-
# @return [Hash] Returns the object in the form of hash
|
250
|
-
def to_hash
|
251
|
-
hash = {}
|
252
|
-
self.class.attribute_map.each_pair do |attr, param|
|
253
|
-
value = self.send(attr)
|
254
|
-
next if value.nil?
|
255
|
-
hash[param] = _to_hash(value)
|
256
|
-
end
|
257
|
-
hash
|
258
|
-
end
|
259
|
-
|
260
|
-
# Outputs non-array value in the form of hash
|
261
|
-
# For object, use to_hash. Otherwise, just return the value
|
262
|
-
# @param [Object] value Any valid value
|
263
|
-
# @return [Hash] Returns the value in the form of hash
|
264
|
-
def _to_hash(value)
|
265
|
-
if value.is_a?(Array)
|
266
|
-
value.compact.map { |v| _to_hash(v) }
|
267
|
-
elsif value.is_a?(Hash)
|
268
|
-
{}.tap do |hash|
|
269
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
270
|
-
end
|
271
|
-
elsif value.respond_to? :to_hash
|
272
|
-
value.to_hash
|
273
|
-
else
|
274
|
-
value
|
275
|
-
end
|
276
|
-
end
|
277
131
|
end
|
278
132
|
end
|
@@ -31,28 +31,6 @@ module AsposeSlidesCloud
|
|
31
31
|
# Description of the Summary Zoom Section object.
|
32
32
|
attr_accessor :description
|
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({
|
@@ -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, image_type, return_to_parent, show_background, image, transition_duration, target_section_index, title, description].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
|
@@ -31,28 +31,6 @@ module AsposeSlidesCloud
|
|
31
31
|
# Superscript
|
32
32
|
attr_accessor :superscript
|
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({
|
@@ -119,129 +97,5 @@ module AsposeSlidesCloud
|
|
119
97
|
def hash
|
120
98
|
[type, base, superscript].hash
|
121
99
|
end
|
122
|
-
|
123
|
-
# Builds the object from hash
|
124
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
-
# @return [Object] Returns the model itself
|
126
|
-
def build_from_hash(attributes)
|
127
|
-
return nil unless attributes.is_a?(Hash)
|
128
|
-
self.class.swagger_types.each_pair do |key, type|
|
129
|
-
mapKey = self.class.attribute_map[key]
|
130
|
-
if !mapKey.nil?
|
131
|
-
val = attributes[mapKey]
|
132
|
-
if val.nil?
|
133
|
-
mapKeyString = mapKey.to_s
|
134
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
135
|
-
mapKey = mapKeyString.to_sym
|
136
|
-
val = attributes[mapKey]
|
137
|
-
end
|
138
|
-
if !val.nil?
|
139
|
-
if type =~ /\AArray<(.*)>/i
|
140
|
-
# check to ensure the input is an array given that the the attribute
|
141
|
-
# is documented as an array but the input is not
|
142
|
-
if val.is_a?(Array)
|
143
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
144
|
-
end
|
145
|
-
else
|
146
|
-
self.send("#{key}=", _deserialize(type, val))
|
147
|
-
end
|
148
|
-
end
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
self
|
153
|
-
end
|
154
|
-
|
155
|
-
# Deserializes the data based on type
|
156
|
-
# @param string type Data type
|
157
|
-
# @param string value Value to be deserialized
|
158
|
-
# @return [Object] Deserialized data
|
159
|
-
def _deserialize(type, value)
|
160
|
-
if value.nil?
|
161
|
-
nil
|
162
|
-
else
|
163
|
-
case type.to_sym
|
164
|
-
when :DateTime
|
165
|
-
DateTime.parse(value)
|
166
|
-
when :Date
|
167
|
-
Date.parse(value)
|
168
|
-
when :String
|
169
|
-
value.to_s
|
170
|
-
when :Integer
|
171
|
-
value.to_i
|
172
|
-
when :Float
|
173
|
-
value.to_f
|
174
|
-
when :BOOLEAN
|
175
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
176
|
-
true
|
177
|
-
else
|
178
|
-
false
|
179
|
-
end
|
180
|
-
when :Object
|
181
|
-
# generic object (usually a Hash), return directly
|
182
|
-
value
|
183
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
184
|
-
inner_type = Regexp.last_match[:inner_type]
|
185
|
-
value.map { |v| _deserialize(inner_type, v) }
|
186
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
187
|
-
k_type = Regexp.last_match[:k_type]
|
188
|
-
v_type = Regexp.last_match[:v_type]
|
189
|
-
{}.tap do |hash|
|
190
|
-
value.each do |k, v|
|
191
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
192
|
-
end
|
193
|
-
end
|
194
|
-
else # model
|
195
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
196
|
-
if registry_type
|
197
|
-
type = registry_type
|
198
|
-
end
|
199
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
200
|
-
temp_model.build_from_hash(value)
|
201
|
-
end
|
202
|
-
end
|
203
|
-
end
|
204
|
-
|
205
|
-
# Returns the string representation of the object
|
206
|
-
# @return [String] String presentation of the object
|
207
|
-
def to_s
|
208
|
-
to_hash.to_s
|
209
|
-
end
|
210
|
-
|
211
|
-
# to_body is an alias to to_hash (backward compatibility)
|
212
|
-
# @return [Hash] Returns the object in the form of hash
|
213
|
-
def to_body
|
214
|
-
to_hash
|
215
|
-
end
|
216
|
-
|
217
|
-
# Returns the object in the form of hash
|
218
|
-
# @return [Hash] Returns the object in the form of hash
|
219
|
-
def to_hash
|
220
|
-
hash = {}
|
221
|
-
self.class.attribute_map.each_pair do |attr, param|
|
222
|
-
value = self.send(attr)
|
223
|
-
next if value.nil?
|
224
|
-
hash[param] = _to_hash(value)
|
225
|
-
end
|
226
|
-
hash
|
227
|
-
end
|
228
|
-
|
229
|
-
# Outputs non-array value in the form of hash
|
230
|
-
# For object, use to_hash. Otherwise, just return the value
|
231
|
-
# @param [Object] value Any valid value
|
232
|
-
# @return [Hash] Returns the value in the form of hash
|
233
|
-
def _to_hash(value)
|
234
|
-
if value.is_a?(Array)
|
235
|
-
value.compact.map { |v| _to_hash(v) }
|
236
|
-
elsif value.is_a?(Hash)
|
237
|
-
{}.tap do |hash|
|
238
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
239
|
-
end
|
240
|
-
elsif value.respond_to? :to_hash
|
241
|
-
value.to_hash
|
242
|
-
else
|
243
|
-
value
|
244
|
-
end
|
245
|
-
end
|
246
100
|
end
|
247
101
|
end
|