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
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Gradient stop.
|
27
|
-
class GradientFillStop
|
27
|
+
class GradientFillStop < BaseObject
|
28
28
|
# Color.
|
29
29
|
attr_accessor :color
|
30
30
|
|
@@ -102,129 +102,5 @@ module AsposeSlidesCloud
|
|
102
102
|
def hash
|
103
103
|
[color, position].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
|
@@ -25,28 +25,6 @@ require 'date'
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents AudioFrame resource.
|
27
27
|
class GraphicalObject < ShapeBase
|
28
|
-
class EnumAttributeValidator
|
29
|
-
attr_reader :datatype
|
30
|
-
attr_reader :allowable_values
|
31
|
-
|
32
|
-
def initialize(datatype, allowable_values)
|
33
|
-
@allowable_values = allowable_values.map do |value|
|
34
|
-
case datatype.to_s
|
35
|
-
when /Integer/i
|
36
|
-
value.to_i
|
37
|
-
when /Float/i
|
38
|
-
value.to_f
|
39
|
-
else
|
40
|
-
value
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def valid?(value)
|
46
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
29
|
def self.attribute_map
|
52
30
|
super.merge({
|
@@ -116,129 +94,5 @@ module AsposeSlidesCloud
|
|
116
94
|
def hash
|
117
95
|
[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].hash
|
118
96
|
end
|
119
|
-
|
120
|
-
# Builds the object from hash
|
121
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
122
|
-
# @return [Object] Returns the model itself
|
123
|
-
def build_from_hash(attributes)
|
124
|
-
return nil unless attributes.is_a?(Hash)
|
125
|
-
self.class.swagger_types.each_pair do |key, type|
|
126
|
-
mapKey = self.class.attribute_map[key]
|
127
|
-
if !mapKey.nil?
|
128
|
-
val = attributes[mapKey]
|
129
|
-
if val.nil?
|
130
|
-
mapKeyString = mapKey.to_s
|
131
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
132
|
-
mapKey = mapKeyString.to_sym
|
133
|
-
val = attributes[mapKey]
|
134
|
-
end
|
135
|
-
if !val.nil?
|
136
|
-
if type =~ /\AArray<(.*)>/i
|
137
|
-
# check to ensure the input is an array given that the the attribute
|
138
|
-
# is documented as an array but the input is not
|
139
|
-
if val.is_a?(Array)
|
140
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
141
|
-
end
|
142
|
-
else
|
143
|
-
self.send("#{key}=", _deserialize(type, val))
|
144
|
-
end
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|
148
|
-
|
149
|
-
self
|
150
|
-
end
|
151
|
-
|
152
|
-
# Deserializes the data based on type
|
153
|
-
# @param string type Data type
|
154
|
-
# @param string value Value to be deserialized
|
155
|
-
# @return [Object] Deserialized data
|
156
|
-
def _deserialize(type, value)
|
157
|
-
if value.nil?
|
158
|
-
nil
|
159
|
-
else
|
160
|
-
case type.to_sym
|
161
|
-
when :DateTime
|
162
|
-
DateTime.parse(value)
|
163
|
-
when :Date
|
164
|
-
Date.parse(value)
|
165
|
-
when :String
|
166
|
-
value.to_s
|
167
|
-
when :Integer
|
168
|
-
value.to_i
|
169
|
-
when :Float
|
170
|
-
value.to_f
|
171
|
-
when :BOOLEAN
|
172
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
173
|
-
true
|
174
|
-
else
|
175
|
-
false
|
176
|
-
end
|
177
|
-
when :Object
|
178
|
-
# generic object (usually a Hash), return directly
|
179
|
-
value
|
180
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
181
|
-
inner_type = Regexp.last_match[:inner_type]
|
182
|
-
value.map { |v| _deserialize(inner_type, v) }
|
183
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
184
|
-
k_type = Regexp.last_match[:k_type]
|
185
|
-
v_type = Regexp.last_match[:v_type]
|
186
|
-
{}.tap do |hash|
|
187
|
-
value.each do |k, v|
|
188
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
189
|
-
end
|
190
|
-
end
|
191
|
-
else # model
|
192
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
193
|
-
if registry_type
|
194
|
-
type = registry_type
|
195
|
-
end
|
196
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
197
|
-
temp_model.build_from_hash(value)
|
198
|
-
end
|
199
|
-
end
|
200
|
-
end
|
201
|
-
|
202
|
-
# Returns the string representation of the object
|
203
|
-
# @return [String] String presentation of the object
|
204
|
-
def to_s
|
205
|
-
to_hash.to_s
|
206
|
-
end
|
207
|
-
|
208
|
-
# to_body is an alias to to_hash (backward compatibility)
|
209
|
-
# @return [Hash] Returns the object in the form of hash
|
210
|
-
def to_body
|
211
|
-
to_hash
|
212
|
-
end
|
213
|
-
|
214
|
-
# Returns the object in the form of hash
|
215
|
-
# @return [Hash] Returns the object in the form of hash
|
216
|
-
def to_hash
|
217
|
-
hash = {}
|
218
|
-
self.class.attribute_map.each_pair do |attr, param|
|
219
|
-
value = self.send(attr)
|
220
|
-
next if value.nil?
|
221
|
-
hash[param] = _to_hash(value)
|
222
|
-
end
|
223
|
-
hash
|
224
|
-
end
|
225
|
-
|
226
|
-
# Outputs non-array value in the form of hash
|
227
|
-
# For object, use to_hash. Otherwise, just return the value
|
228
|
-
# @param [Object] value Any valid value
|
229
|
-
# @return [Hash] Returns the value in the form of hash
|
230
|
-
def _to_hash(value)
|
231
|
-
if value.is_a?(Array)
|
232
|
-
value.compact.map { |v| _to_hash(v) }
|
233
|
-
elsif value.is_a?(Hash)
|
234
|
-
{}.tap do |hash|
|
235
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
236
|
-
end
|
237
|
-
elsif value.respond_to? :to_hash
|
238
|
-
value.to_hash
|
239
|
-
else
|
240
|
-
value
|
241
|
-
end
|
242
|
-
end
|
243
97
|
end
|
244
98
|
end
|
@@ -25,28 +25,6 @@ require 'date'
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents an Gray Scale effect.
|
27
27
|
class GrayScaleEffect < ImageTransformEffect
|
28
|
-
class EnumAttributeValidator
|
29
|
-
attr_reader :datatype
|
30
|
-
attr_reader :allowable_values
|
31
|
-
|
32
|
-
def initialize(datatype, allowable_values)
|
33
|
-
@allowable_values = allowable_values.map do |value|
|
34
|
-
case datatype.to_s
|
35
|
-
when /Integer/i
|
36
|
-
value.to_i
|
37
|
-
when /Float/i
|
38
|
-
value.to_f
|
39
|
-
else
|
40
|
-
value
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def valid?(value)
|
46
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
29
|
def self.attribute_map
|
52
30
|
super.merge({
|
@@ -99,129 +77,5 @@ module AsposeSlidesCloud
|
|
99
77
|
def hash
|
100
78
|
[type].hash
|
101
79
|
end
|
102
|
-
|
103
|
-
# Builds the object from hash
|
104
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
-
# @return [Object] Returns the model itself
|
106
|
-
def build_from_hash(attributes)
|
107
|
-
return nil unless attributes.is_a?(Hash)
|
108
|
-
self.class.swagger_types.each_pair do |key, type|
|
109
|
-
mapKey = self.class.attribute_map[key]
|
110
|
-
if !mapKey.nil?
|
111
|
-
val = attributes[mapKey]
|
112
|
-
if val.nil?
|
113
|
-
mapKeyString = mapKey.to_s
|
114
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
115
|
-
mapKey = mapKeyString.to_sym
|
116
|
-
val = attributes[mapKey]
|
117
|
-
end
|
118
|
-
if !val.nil?
|
119
|
-
if type =~ /\AArray<(.*)>/i
|
120
|
-
# check to ensure the input is an array given that the the attribute
|
121
|
-
# is documented as an array but the input is not
|
122
|
-
if val.is_a?(Array)
|
123
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
124
|
-
end
|
125
|
-
else
|
126
|
-
self.send("#{key}=", _deserialize(type, val))
|
127
|
-
end
|
128
|
-
end
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
self
|
133
|
-
end
|
134
|
-
|
135
|
-
# Deserializes the data based on type
|
136
|
-
# @param string type Data type
|
137
|
-
# @param string value Value to be deserialized
|
138
|
-
# @return [Object] Deserialized data
|
139
|
-
def _deserialize(type, value)
|
140
|
-
if value.nil?
|
141
|
-
nil
|
142
|
-
else
|
143
|
-
case type.to_sym
|
144
|
-
when :DateTime
|
145
|
-
DateTime.parse(value)
|
146
|
-
when :Date
|
147
|
-
Date.parse(value)
|
148
|
-
when :String
|
149
|
-
value.to_s
|
150
|
-
when :Integer
|
151
|
-
value.to_i
|
152
|
-
when :Float
|
153
|
-
value.to_f
|
154
|
-
when :BOOLEAN
|
155
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
-
true
|
157
|
-
else
|
158
|
-
false
|
159
|
-
end
|
160
|
-
when :Object
|
161
|
-
# generic object (usually a Hash), return directly
|
162
|
-
value
|
163
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
-
inner_type = Regexp.last_match[:inner_type]
|
165
|
-
value.map { |v| _deserialize(inner_type, v) }
|
166
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
-
k_type = Regexp.last_match[:k_type]
|
168
|
-
v_type = Regexp.last_match[:v_type]
|
169
|
-
{}.tap do |hash|
|
170
|
-
value.each do |k, v|
|
171
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
-
end
|
173
|
-
end
|
174
|
-
else # model
|
175
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
176
|
-
if registry_type
|
177
|
-
type = registry_type
|
178
|
-
end
|
179
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
180
|
-
temp_model.build_from_hash(value)
|
181
|
-
end
|
182
|
-
end
|
183
|
-
end
|
184
|
-
|
185
|
-
# Returns the string representation of the object
|
186
|
-
# @return [String] String presentation of the object
|
187
|
-
def to_s
|
188
|
-
to_hash.to_s
|
189
|
-
end
|
190
|
-
|
191
|
-
# to_body is an alias to to_hash (backward compatibility)
|
192
|
-
# @return [Hash] Returns the object in the form of hash
|
193
|
-
def to_body
|
194
|
-
to_hash
|
195
|
-
end
|
196
|
-
|
197
|
-
# Returns the object in the form of hash
|
198
|
-
# @return [Hash] Returns the object in the form of hash
|
199
|
-
def to_hash
|
200
|
-
hash = {}
|
201
|
-
self.class.attribute_map.each_pair do |attr, param|
|
202
|
-
value = self.send(attr)
|
203
|
-
next if value.nil?
|
204
|
-
hash[param] = _to_hash(value)
|
205
|
-
end
|
206
|
-
hash
|
207
|
-
end
|
208
|
-
|
209
|
-
# Outputs non-array value in the form of hash
|
210
|
-
# For object, use to_hash. Otherwise, just return the value
|
211
|
-
# @param [Object] value Any valid value
|
212
|
-
# @return [Hash] Returns the value in the form of hash
|
213
|
-
def _to_hash(value)
|
214
|
-
if value.is_a?(Array)
|
215
|
-
value.compact.map { |v| _to_hash(v) }
|
216
|
-
elsif value.is_a?(Hash)
|
217
|
-
{}.tap do |hash|
|
218
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
219
|
-
end
|
220
|
-
elsif value.respond_to? :to_hash
|
221
|
-
value.to_hash
|
222
|
-
else
|
223
|
-
value
|
224
|
-
end
|
225
|
-
end
|
226
80
|
end
|
227
81
|
end
|
@@ -28,28 +28,6 @@ module AsposeSlidesCloud
|
|
28
28
|
# Gets or sets the link to shapes.
|
29
29
|
attr_accessor :shapes
|
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({
|
@@ -126,129 +104,5 @@ module AsposeSlidesCloud
|
|
126
104
|
def hash
|
127
105
|
[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, shapes].hash
|
128
106
|
end
|
129
|
-
|
130
|
-
# Builds the object from hash
|
131
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
-
# @return [Object] Returns the model itself
|
133
|
-
def build_from_hash(attributes)
|
134
|
-
return nil unless attributes.is_a?(Hash)
|
135
|
-
self.class.swagger_types.each_pair do |key, type|
|
136
|
-
mapKey = self.class.attribute_map[key]
|
137
|
-
if !mapKey.nil?
|
138
|
-
val = attributes[mapKey]
|
139
|
-
if val.nil?
|
140
|
-
mapKeyString = mapKey.to_s
|
141
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
142
|
-
mapKey = mapKeyString.to_sym
|
143
|
-
val = attributes[mapKey]
|
144
|
-
end
|
145
|
-
if !val.nil?
|
146
|
-
if type =~ /\AArray<(.*)>/i
|
147
|
-
# check to ensure the input is an array given that the the attribute
|
148
|
-
# is documented as an array but the input is not
|
149
|
-
if val.is_a?(Array)
|
150
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
151
|
-
end
|
152
|
-
else
|
153
|
-
self.send("#{key}=", _deserialize(type, val))
|
154
|
-
end
|
155
|
-
end
|
156
|
-
end
|
157
|
-
end
|
158
|
-
|
159
|
-
self
|
160
|
-
end
|
161
|
-
|
162
|
-
# Deserializes the data based on type
|
163
|
-
# @param string type Data type
|
164
|
-
# @param string value Value to be deserialized
|
165
|
-
# @return [Object] Deserialized data
|
166
|
-
def _deserialize(type, value)
|
167
|
-
if value.nil?
|
168
|
-
nil
|
169
|
-
else
|
170
|
-
case type.to_sym
|
171
|
-
when :DateTime
|
172
|
-
DateTime.parse(value)
|
173
|
-
when :Date
|
174
|
-
Date.parse(value)
|
175
|
-
when :String
|
176
|
-
value.to_s
|
177
|
-
when :Integer
|
178
|
-
value.to_i
|
179
|
-
when :Float
|
180
|
-
value.to_f
|
181
|
-
when :BOOLEAN
|
182
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
183
|
-
true
|
184
|
-
else
|
185
|
-
false
|
186
|
-
end
|
187
|
-
when :Object
|
188
|
-
# generic object (usually a Hash), return directly
|
189
|
-
value
|
190
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
191
|
-
inner_type = Regexp.last_match[:inner_type]
|
192
|
-
value.map { |v| _deserialize(inner_type, v) }
|
193
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
194
|
-
k_type = Regexp.last_match[:k_type]
|
195
|
-
v_type = Regexp.last_match[:v_type]
|
196
|
-
{}.tap do |hash|
|
197
|
-
value.each do |k, v|
|
198
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
199
|
-
end
|
200
|
-
end
|
201
|
-
else # model
|
202
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
203
|
-
if registry_type
|
204
|
-
type = registry_type
|
205
|
-
end
|
206
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
207
|
-
temp_model.build_from_hash(value)
|
208
|
-
end
|
209
|
-
end
|
210
|
-
end
|
211
|
-
|
212
|
-
# Returns the string representation of the object
|
213
|
-
# @return [String] String presentation of the object
|
214
|
-
def to_s
|
215
|
-
to_hash.to_s
|
216
|
-
end
|
217
|
-
|
218
|
-
# to_body is an alias to to_hash (backward compatibility)
|
219
|
-
# @return [Hash] Returns the object in the form of hash
|
220
|
-
def to_body
|
221
|
-
to_hash
|
222
|
-
end
|
223
|
-
|
224
|
-
# Returns the object in the form of hash
|
225
|
-
# @return [Hash] Returns the object in the form of hash
|
226
|
-
def to_hash
|
227
|
-
hash = {}
|
228
|
-
self.class.attribute_map.each_pair do |attr, param|
|
229
|
-
value = self.send(attr)
|
230
|
-
next if value.nil?
|
231
|
-
hash[param] = _to_hash(value)
|
232
|
-
end
|
233
|
-
hash
|
234
|
-
end
|
235
|
-
|
236
|
-
# Outputs non-array value in the form of hash
|
237
|
-
# For object, use to_hash. Otherwise, just return the value
|
238
|
-
# @param [Object] value Any valid value
|
239
|
-
# @return [Hash] Returns the value in the form of hash
|
240
|
-
def _to_hash(value)
|
241
|
-
if value.is_a?(Array)
|
242
|
-
value.compact.map { |v| _to_hash(v) }
|
243
|
-
elsif value.is_a?(Hash)
|
244
|
-
{}.tap do |hash|
|
245
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
246
|
-
end
|
247
|
-
elsif value.respond_to? :to_hash
|
248
|
-
value.to_hash
|
249
|
-
else
|
250
|
-
value
|
251
|
-
end
|
252
|
-
end
|
253
107
|
end
|
254
108
|
end
|