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
@@ -98,129 +98,5 @@ module AsposeSlidesCloud
|
|
98
98
|
def hash
|
99
99
|
[self_uri, alternate_links, document_properties, view_properties, slides, images, layout_slides, master_slides, matches].hash
|
100
100
|
end
|
101
|
-
|
102
|
-
# Builds the object from hash
|
103
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
-
# @return [Object] Returns the model itself
|
105
|
-
def build_from_hash(attributes)
|
106
|
-
return nil unless attributes.is_a?(Hash)
|
107
|
-
self.class.swagger_types.each_pair do |key, type|
|
108
|
-
mapKey = self.class.attribute_map[key]
|
109
|
-
if !mapKey.nil?
|
110
|
-
val = attributes[mapKey]
|
111
|
-
if val.nil?
|
112
|
-
mapKeyString = mapKey.to_s
|
113
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
114
|
-
mapKey = mapKeyString.to_sym
|
115
|
-
val = attributes[mapKey]
|
116
|
-
end
|
117
|
-
if !val.nil?
|
118
|
-
if type =~ /\AArray<(.*)>/i
|
119
|
-
# check to ensure the input is an array given that the the attribute
|
120
|
-
# is documented as an array but the input is not
|
121
|
-
if val.is_a?(Array)
|
122
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
123
|
-
end
|
124
|
-
else
|
125
|
-
self.send("#{key}=", _deserialize(type, val))
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
|
-
self
|
132
|
-
end
|
133
|
-
|
134
|
-
# Deserializes the data based on type
|
135
|
-
# @param string type Data type
|
136
|
-
# @param string value Value to be deserialized
|
137
|
-
# @return [Object] Deserialized data
|
138
|
-
def _deserialize(type, value)
|
139
|
-
if value.nil?
|
140
|
-
nil
|
141
|
-
else
|
142
|
-
case type.to_sym
|
143
|
-
when :DateTime
|
144
|
-
DateTime.parse(value)
|
145
|
-
when :Date
|
146
|
-
Date.parse(value)
|
147
|
-
when :String
|
148
|
-
value.to_s
|
149
|
-
when :Integer
|
150
|
-
value.to_i
|
151
|
-
when :Float
|
152
|
-
value.to_f
|
153
|
-
when :BOOLEAN
|
154
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
155
|
-
true
|
156
|
-
else
|
157
|
-
false
|
158
|
-
end
|
159
|
-
when :Object
|
160
|
-
# generic object (usually a Hash), return directly
|
161
|
-
value
|
162
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
163
|
-
inner_type = Regexp.last_match[:inner_type]
|
164
|
-
value.map { |v| _deserialize(inner_type, v) }
|
165
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
166
|
-
k_type = Regexp.last_match[:k_type]
|
167
|
-
v_type = Regexp.last_match[:v_type]
|
168
|
-
{}.tap do |hash|
|
169
|
-
value.each do |k, v|
|
170
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
171
|
-
end
|
172
|
-
end
|
173
|
-
else # model
|
174
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
175
|
-
if registry_type
|
176
|
-
type = registry_type
|
177
|
-
end
|
178
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
179
|
-
temp_model.build_from_hash(value)
|
180
|
-
end
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
# Returns the string representation of the object
|
185
|
-
# @return [String] String presentation of the object
|
186
|
-
def to_s
|
187
|
-
to_hash.to_s
|
188
|
-
end
|
189
|
-
|
190
|
-
# to_body is an alias to to_hash (backward compatibility)
|
191
|
-
# @return [Hash] Returns the object in the form of hash
|
192
|
-
def to_body
|
193
|
-
to_hash
|
194
|
-
end
|
195
|
-
|
196
|
-
# Returns the object in the form of hash
|
197
|
-
# @return [Hash] Returns the object in the form of hash
|
198
|
-
def to_hash
|
199
|
-
hash = {}
|
200
|
-
self.class.attribute_map.each_pair do |attr, param|
|
201
|
-
value = self.send(attr)
|
202
|
-
next if value.nil?
|
203
|
-
hash[param] = _to_hash(value)
|
204
|
-
end
|
205
|
-
hash
|
206
|
-
end
|
207
|
-
|
208
|
-
# Outputs non-array value in the form of hash
|
209
|
-
# For object, use to_hash. Otherwise, just return the value
|
210
|
-
# @param [Object] value Any valid value
|
211
|
-
# @return [Hash] Returns the value in the form of hash
|
212
|
-
def _to_hash(value)
|
213
|
-
if value.is_a?(Array)
|
214
|
-
value.compact.map { |v| _to_hash(v) }
|
215
|
-
elsif value.is_a?(Hash)
|
216
|
-
{}.tap do |hash|
|
217
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
218
|
-
end
|
219
|
-
elsif value.respond_to? :to_hash
|
220
|
-
value.to_hash
|
221
|
-
else
|
222
|
-
value
|
223
|
-
end
|
224
|
-
end
|
225
101
|
end
|
226
102
|
end
|
@@ -31,28 +31,6 @@ module AsposeSlidesCloud
|
|
31
31
|
# Returns target color format for light pixels.
|
32
32
|
attr_accessor :color2
|
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, color1, color2].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
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents comment of slide
|
27
|
-
class Effect
|
27
|
+
class Effect < BaseObject
|
28
28
|
# Effect type.
|
29
29
|
attr_accessor :type
|
30
30
|
|
@@ -79,28 +79,6 @@ module AsposeSlidesCloud
|
|
79
79
|
# This attribute specifies if the animation effect stops the previous sound.
|
80
80
|
attr_accessor :stop_previous_sound
|
81
81
|
|
82
|
-
class EnumAttributeValidator
|
83
|
-
attr_reader :datatype
|
84
|
-
attr_reader :allowable_values
|
85
|
-
|
86
|
-
def initialize(datatype, allowable_values)
|
87
|
-
@allowable_values = allowable_values.map do |value|
|
88
|
-
case datatype.to_s
|
89
|
-
when /Integer/i
|
90
|
-
value.to_i
|
91
|
-
when /Float/i
|
92
|
-
value.to_f
|
93
|
-
else
|
94
|
-
value
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
def valid?(value)
|
100
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
105
83
|
def self.attribute_map
|
106
84
|
{
|
@@ -344,129 +322,5 @@ module AsposeSlidesCloud
|
|
344
322
|
def hash
|
345
323
|
[type, subtype, preset_class_type, shape_index, paragraph_index, trigger_type, accelerate, auto_reverse, decelerate, duration, repeat_count, repeat_duration, restart, speed, trigger_delay_time, repeat_until_end_slide, repeat_until_next_click, stop_previous_sound].hash
|
346
324
|
end
|
347
|
-
|
348
|
-
# Builds the object from hash
|
349
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
350
|
-
# @return [Object] Returns the model itself
|
351
|
-
def build_from_hash(attributes)
|
352
|
-
return nil unless attributes.is_a?(Hash)
|
353
|
-
self.class.swagger_types.each_pair do |key, type|
|
354
|
-
mapKey = self.class.attribute_map[key]
|
355
|
-
if !mapKey.nil?
|
356
|
-
val = attributes[mapKey]
|
357
|
-
if val.nil?
|
358
|
-
mapKeyString = mapKey.to_s
|
359
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
360
|
-
mapKey = mapKeyString.to_sym
|
361
|
-
val = attributes[mapKey]
|
362
|
-
end
|
363
|
-
if !val.nil?
|
364
|
-
if type =~ /\AArray<(.*)>/i
|
365
|
-
# check to ensure the input is an array given that the the attribute
|
366
|
-
# is documented as an array but the input is not
|
367
|
-
if val.is_a?(Array)
|
368
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
369
|
-
end
|
370
|
-
else
|
371
|
-
self.send("#{key}=", _deserialize(type, val))
|
372
|
-
end
|
373
|
-
end
|
374
|
-
end
|
375
|
-
end
|
376
|
-
|
377
|
-
self
|
378
|
-
end
|
379
|
-
|
380
|
-
# Deserializes the data based on type
|
381
|
-
# @param string type Data type
|
382
|
-
# @param string value Value to be deserialized
|
383
|
-
# @return [Object] Deserialized data
|
384
|
-
def _deserialize(type, value)
|
385
|
-
if value.nil?
|
386
|
-
nil
|
387
|
-
else
|
388
|
-
case type.to_sym
|
389
|
-
when :DateTime
|
390
|
-
DateTime.parse(value)
|
391
|
-
when :Date
|
392
|
-
Date.parse(value)
|
393
|
-
when :String
|
394
|
-
value.to_s
|
395
|
-
when :Integer
|
396
|
-
value.to_i
|
397
|
-
when :Float
|
398
|
-
value.to_f
|
399
|
-
when :BOOLEAN
|
400
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
401
|
-
true
|
402
|
-
else
|
403
|
-
false
|
404
|
-
end
|
405
|
-
when :Object
|
406
|
-
# generic object (usually a Hash), return directly
|
407
|
-
value
|
408
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
409
|
-
inner_type = Regexp.last_match[:inner_type]
|
410
|
-
value.map { |v| _deserialize(inner_type, v) }
|
411
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
412
|
-
k_type = Regexp.last_match[:k_type]
|
413
|
-
v_type = Regexp.last_match[:v_type]
|
414
|
-
{}.tap do |hash|
|
415
|
-
value.each do |k, v|
|
416
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
417
|
-
end
|
418
|
-
end
|
419
|
-
else # model
|
420
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
421
|
-
if registry_type
|
422
|
-
type = registry_type
|
423
|
-
end
|
424
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
425
|
-
temp_model.build_from_hash(value)
|
426
|
-
end
|
427
|
-
end
|
428
|
-
end
|
429
|
-
|
430
|
-
# Returns the string representation of the object
|
431
|
-
# @return [String] String presentation of the object
|
432
|
-
def to_s
|
433
|
-
to_hash.to_s
|
434
|
-
end
|
435
|
-
|
436
|
-
# to_body is an alias to to_hash (backward compatibility)
|
437
|
-
# @return [Hash] Returns the object in the form of hash
|
438
|
-
def to_body
|
439
|
-
to_hash
|
440
|
-
end
|
441
|
-
|
442
|
-
# Returns the object in the form of hash
|
443
|
-
# @return [Hash] Returns the object in the form of hash
|
444
|
-
def to_hash
|
445
|
-
hash = {}
|
446
|
-
self.class.attribute_map.each_pair do |attr, param|
|
447
|
-
value = self.send(attr)
|
448
|
-
next if value.nil?
|
449
|
-
hash[param] = _to_hash(value)
|
450
|
-
end
|
451
|
-
hash
|
452
|
-
end
|
453
|
-
|
454
|
-
# Outputs non-array value in the form of hash
|
455
|
-
# For object, use to_hash. Otherwise, just return the value
|
456
|
-
# @param [Object] value Any valid value
|
457
|
-
# @return [Hash] Returns the value in the form of hash
|
458
|
-
def _to_hash(value)
|
459
|
-
if value.is_a?(Array)
|
460
|
-
value.compact.map { |v| _to_hash(v) }
|
461
|
-
elsif value.is_a?(Hash)
|
462
|
-
{}.tap do |hash|
|
463
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
464
|
-
end
|
465
|
-
elsif value.respond_to? :to_hash
|
466
|
-
value.to_hash
|
467
|
-
else
|
468
|
-
value
|
469
|
-
end
|
470
|
-
end
|
471
325
|
end
|
472
326
|
end
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Effect format
|
27
|
-
class EffectFormat
|
27
|
+
class EffectFormat < BaseObject
|
28
28
|
# blur effect
|
29
29
|
attr_accessor :blur
|
30
30
|
|
@@ -157,129 +157,5 @@ module AsposeSlidesCloud
|
|
157
157
|
def hash
|
158
158
|
[blur, glow, inner_shadow, outer_shadow, preset_shadow, soft_edge, reflection, fill_overlay].hash
|
159
159
|
end
|
160
|
-
|
161
|
-
# Builds the object from hash
|
162
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
163
|
-
# @return [Object] Returns the model itself
|
164
|
-
def build_from_hash(attributes)
|
165
|
-
return nil unless attributes.is_a?(Hash)
|
166
|
-
self.class.swagger_types.each_pair do |key, type|
|
167
|
-
mapKey = self.class.attribute_map[key]
|
168
|
-
if !mapKey.nil?
|
169
|
-
val = attributes[mapKey]
|
170
|
-
if val.nil?
|
171
|
-
mapKeyString = mapKey.to_s
|
172
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
173
|
-
mapKey = mapKeyString.to_sym
|
174
|
-
val = attributes[mapKey]
|
175
|
-
end
|
176
|
-
if !val.nil?
|
177
|
-
if type =~ /\AArray<(.*)>/i
|
178
|
-
# check to ensure the input is an array given that the the attribute
|
179
|
-
# is documented as an array but the input is not
|
180
|
-
if val.is_a?(Array)
|
181
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
182
|
-
end
|
183
|
-
else
|
184
|
-
self.send("#{key}=", _deserialize(type, val))
|
185
|
-
end
|
186
|
-
end
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
self
|
191
|
-
end
|
192
|
-
|
193
|
-
# Deserializes the data based on type
|
194
|
-
# @param string type Data type
|
195
|
-
# @param string value Value to be deserialized
|
196
|
-
# @return [Object] Deserialized data
|
197
|
-
def _deserialize(type, value)
|
198
|
-
if value.nil?
|
199
|
-
nil
|
200
|
-
else
|
201
|
-
case type.to_sym
|
202
|
-
when :DateTime
|
203
|
-
DateTime.parse(value)
|
204
|
-
when :Date
|
205
|
-
Date.parse(value)
|
206
|
-
when :String
|
207
|
-
value.to_s
|
208
|
-
when :Integer
|
209
|
-
value.to_i
|
210
|
-
when :Float
|
211
|
-
value.to_f
|
212
|
-
when :BOOLEAN
|
213
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
214
|
-
true
|
215
|
-
else
|
216
|
-
false
|
217
|
-
end
|
218
|
-
when :Object
|
219
|
-
# generic object (usually a Hash), return directly
|
220
|
-
value
|
221
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
222
|
-
inner_type = Regexp.last_match[:inner_type]
|
223
|
-
value.map { |v| _deserialize(inner_type, v) }
|
224
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
225
|
-
k_type = Regexp.last_match[:k_type]
|
226
|
-
v_type = Regexp.last_match[:v_type]
|
227
|
-
{}.tap do |hash|
|
228
|
-
value.each do |k, v|
|
229
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
230
|
-
end
|
231
|
-
end
|
232
|
-
else # model
|
233
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
234
|
-
if registry_type
|
235
|
-
type = registry_type
|
236
|
-
end
|
237
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
238
|
-
temp_model.build_from_hash(value)
|
239
|
-
end
|
240
|
-
end
|
241
|
-
end
|
242
|
-
|
243
|
-
# Returns the string representation of the object
|
244
|
-
# @return [String] String presentation of the object
|
245
|
-
def to_s
|
246
|
-
to_hash.to_s
|
247
|
-
end
|
248
|
-
|
249
|
-
# to_body is an alias to to_hash (backward compatibility)
|
250
|
-
# @return [Hash] Returns the object in the form of hash
|
251
|
-
def to_body
|
252
|
-
to_hash
|
253
|
-
end
|
254
|
-
|
255
|
-
# Returns the object in the form of hash
|
256
|
-
# @return [Hash] Returns the object in the form of hash
|
257
|
-
def to_hash
|
258
|
-
hash = {}
|
259
|
-
self.class.attribute_map.each_pair do |attr, param|
|
260
|
-
value = self.send(attr)
|
261
|
-
next if value.nil?
|
262
|
-
hash[param] = _to_hash(value)
|
263
|
-
end
|
264
|
-
hash
|
265
|
-
end
|
266
|
-
|
267
|
-
# Outputs non-array value in the form of hash
|
268
|
-
# For object, use to_hash. Otherwise, just return the value
|
269
|
-
# @param [Object] value Any valid value
|
270
|
-
# @return [Hash] Returns the value in the form of hash
|
271
|
-
def _to_hash(value)
|
272
|
-
if value.is_a?(Array)
|
273
|
-
value.compact.map { |v| _to_hash(v) }
|
274
|
-
elsif value.is_a?(Hash)
|
275
|
-
{}.tap do |hash|
|
276
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
277
|
-
end
|
278
|
-
elsif value.respond_to? :to_hash
|
279
|
-
value.to_hash
|
280
|
-
else
|
281
|
-
value
|
282
|
-
end
|
283
|
-
end
|
284
160
|
end
|
285
161
|
end
|