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
@@ -37,28 +37,6 @@ module AsposeSlidesCloud
|
|
37
37
|
# Save options.
|
38
38
|
attr_accessor :options
|
39
39
|
|
40
|
-
class EnumAttributeValidator
|
41
|
-
attr_reader :datatype
|
42
|
-
attr_reader :allowable_values
|
43
|
-
|
44
|
-
def initialize(datatype, allowable_values)
|
45
|
-
@allowable_values = allowable_values.map do |value|
|
46
|
-
case datatype.to_s
|
47
|
-
when /Integer/i
|
48
|
-
value.to_i
|
49
|
-
when /Float/i
|
50
|
-
value.to_f
|
51
|
-
else
|
52
|
-
value
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
def valid?(value)
|
58
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
41
|
def self.attribute_map
|
64
42
|
super.merge({
|
@@ -156,129 +134,5 @@ module AsposeSlidesCloud
|
|
156
134
|
def hash
|
157
135
|
[type, format, shape_path, output, options].hash
|
158
136
|
end
|
159
|
-
|
160
|
-
# Builds the object from hash
|
161
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
162
|
-
# @return [Object] Returns the model itself
|
163
|
-
def build_from_hash(attributes)
|
164
|
-
return nil unless attributes.is_a?(Hash)
|
165
|
-
self.class.swagger_types.each_pair do |key, type|
|
166
|
-
mapKey = self.class.attribute_map[key]
|
167
|
-
if !mapKey.nil?
|
168
|
-
val = attributes[mapKey]
|
169
|
-
if val.nil?
|
170
|
-
mapKeyString = mapKey.to_s
|
171
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
172
|
-
mapKey = mapKeyString.to_sym
|
173
|
-
val = attributes[mapKey]
|
174
|
-
end
|
175
|
-
if !val.nil?
|
176
|
-
if type =~ /\AArray<(.*)>/i
|
177
|
-
# check to ensure the input is an array given that the the attribute
|
178
|
-
# is documented as an array but the input is not
|
179
|
-
if val.is_a?(Array)
|
180
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
181
|
-
end
|
182
|
-
else
|
183
|
-
self.send("#{key}=", _deserialize(type, val))
|
184
|
-
end
|
185
|
-
end
|
186
|
-
end
|
187
|
-
end
|
188
|
-
|
189
|
-
self
|
190
|
-
end
|
191
|
-
|
192
|
-
# Deserializes the data based on type
|
193
|
-
# @param string type Data type
|
194
|
-
# @param string value Value to be deserialized
|
195
|
-
# @return [Object] Deserialized data
|
196
|
-
def _deserialize(type, value)
|
197
|
-
if value.nil?
|
198
|
-
nil
|
199
|
-
else
|
200
|
-
case type.to_sym
|
201
|
-
when :DateTime
|
202
|
-
DateTime.parse(value)
|
203
|
-
when :Date
|
204
|
-
Date.parse(value)
|
205
|
-
when :String
|
206
|
-
value.to_s
|
207
|
-
when :Integer
|
208
|
-
value.to_i
|
209
|
-
when :Float
|
210
|
-
value.to_f
|
211
|
-
when :BOOLEAN
|
212
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
213
|
-
true
|
214
|
-
else
|
215
|
-
false
|
216
|
-
end
|
217
|
-
when :Object
|
218
|
-
# generic object (usually a Hash), return directly
|
219
|
-
value
|
220
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
221
|
-
inner_type = Regexp.last_match[:inner_type]
|
222
|
-
value.map { |v| _deserialize(inner_type, v) }
|
223
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
224
|
-
k_type = Regexp.last_match[:k_type]
|
225
|
-
v_type = Regexp.last_match[:v_type]
|
226
|
-
{}.tap do |hash|
|
227
|
-
value.each do |k, v|
|
228
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
229
|
-
end
|
230
|
-
end
|
231
|
-
else # model
|
232
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
233
|
-
if registry_type
|
234
|
-
type = registry_type
|
235
|
-
end
|
236
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
237
|
-
temp_model.build_from_hash(value)
|
238
|
-
end
|
239
|
-
end
|
240
|
-
end
|
241
|
-
|
242
|
-
# Returns the string representation of the object
|
243
|
-
# @return [String] String presentation of the object
|
244
|
-
def to_s
|
245
|
-
to_hash.to_s
|
246
|
-
end
|
247
|
-
|
248
|
-
# to_body is an alias to to_hash (backward compatibility)
|
249
|
-
# @return [Hash] Returns the object in the form of hash
|
250
|
-
def to_body
|
251
|
-
to_hash
|
252
|
-
end
|
253
|
-
|
254
|
-
# Returns the object in the form of hash
|
255
|
-
# @return [Hash] Returns the object in the form of hash
|
256
|
-
def to_hash
|
257
|
-
hash = {}
|
258
|
-
self.class.attribute_map.each_pair do |attr, param|
|
259
|
-
value = self.send(attr)
|
260
|
-
next if value.nil?
|
261
|
-
hash[param] = _to_hash(value)
|
262
|
-
end
|
263
|
-
hash
|
264
|
-
end
|
265
|
-
|
266
|
-
# Outputs non-array value in the form of hash
|
267
|
-
# For object, use to_hash. Otherwise, just return the value
|
268
|
-
# @param [Object] value Any valid value
|
269
|
-
# @return [Hash] Returns the value in the form of hash
|
270
|
-
def _to_hash(value)
|
271
|
-
if value.is_a?(Array)
|
272
|
-
value.compact.map { |v| _to_hash(v) }
|
273
|
-
elsif value.is_a?(Hash)
|
274
|
-
{}.tap do |hash|
|
275
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
276
|
-
end
|
277
|
-
elsif value.respond_to? :to_hash
|
278
|
-
value.to_hash
|
279
|
-
else
|
280
|
-
value
|
281
|
-
end
|
282
|
-
end
|
283
137
|
end
|
284
138
|
end
|
@@ -43,28 +43,6 @@ module AsposeSlidesCloud
|
|
43
43
|
# Slide index.
|
44
44
|
attr_accessor :position
|
45
45
|
|
46
|
-
class EnumAttributeValidator
|
47
|
-
attr_reader :datatype
|
48
|
-
attr_reader :allowable_values
|
49
|
-
|
50
|
-
def initialize(datatype, allowable_values)
|
51
|
-
@allowable_values = allowable_values.map do |value|
|
52
|
-
case datatype.to_s
|
53
|
-
when /Integer/i
|
54
|
-
value.to_i
|
55
|
-
when /Float/i
|
56
|
-
value.to_f
|
57
|
-
else
|
58
|
-
value
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
def valid?(value)
|
64
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
69
47
|
def self.attribute_map
|
70
48
|
super.merge({
|
@@ -181,129 +159,5 @@ module AsposeSlidesCloud
|
|
181
159
|
def hash
|
182
160
|
[type, output, format, options, width, height, position].hash
|
183
161
|
end
|
184
|
-
|
185
|
-
# Builds the object from hash
|
186
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
187
|
-
# @return [Object] Returns the model itself
|
188
|
-
def build_from_hash(attributes)
|
189
|
-
return nil unless attributes.is_a?(Hash)
|
190
|
-
self.class.swagger_types.each_pair do |key, type|
|
191
|
-
mapKey = self.class.attribute_map[key]
|
192
|
-
if !mapKey.nil?
|
193
|
-
val = attributes[mapKey]
|
194
|
-
if val.nil?
|
195
|
-
mapKeyString = mapKey.to_s
|
196
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
197
|
-
mapKey = mapKeyString.to_sym
|
198
|
-
val = attributes[mapKey]
|
199
|
-
end
|
200
|
-
if !val.nil?
|
201
|
-
if type =~ /\AArray<(.*)>/i
|
202
|
-
# check to ensure the input is an array given that the the attribute
|
203
|
-
# is documented as an array but the input is not
|
204
|
-
if val.is_a?(Array)
|
205
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
206
|
-
end
|
207
|
-
else
|
208
|
-
self.send("#{key}=", _deserialize(type, val))
|
209
|
-
end
|
210
|
-
end
|
211
|
-
end
|
212
|
-
end
|
213
|
-
|
214
|
-
self
|
215
|
-
end
|
216
|
-
|
217
|
-
# Deserializes the data based on type
|
218
|
-
# @param string type Data type
|
219
|
-
# @param string value Value to be deserialized
|
220
|
-
# @return [Object] Deserialized data
|
221
|
-
def _deserialize(type, value)
|
222
|
-
if value.nil?
|
223
|
-
nil
|
224
|
-
else
|
225
|
-
case type.to_sym
|
226
|
-
when :DateTime
|
227
|
-
DateTime.parse(value)
|
228
|
-
when :Date
|
229
|
-
Date.parse(value)
|
230
|
-
when :String
|
231
|
-
value.to_s
|
232
|
-
when :Integer
|
233
|
-
value.to_i
|
234
|
-
when :Float
|
235
|
-
value.to_f
|
236
|
-
when :BOOLEAN
|
237
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
238
|
-
true
|
239
|
-
else
|
240
|
-
false
|
241
|
-
end
|
242
|
-
when :Object
|
243
|
-
# generic object (usually a Hash), return directly
|
244
|
-
value
|
245
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
246
|
-
inner_type = Regexp.last_match[:inner_type]
|
247
|
-
value.map { |v| _deserialize(inner_type, v) }
|
248
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
249
|
-
k_type = Regexp.last_match[:k_type]
|
250
|
-
v_type = Regexp.last_match[:v_type]
|
251
|
-
{}.tap do |hash|
|
252
|
-
value.each do |k, v|
|
253
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
254
|
-
end
|
255
|
-
end
|
256
|
-
else # model
|
257
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
258
|
-
if registry_type
|
259
|
-
type = registry_type
|
260
|
-
end
|
261
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
262
|
-
temp_model.build_from_hash(value)
|
263
|
-
end
|
264
|
-
end
|
265
|
-
end
|
266
|
-
|
267
|
-
# Returns the string representation of the object
|
268
|
-
# @return [String] String presentation of the object
|
269
|
-
def to_s
|
270
|
-
to_hash.to_s
|
271
|
-
end
|
272
|
-
|
273
|
-
# to_body is an alias to to_hash (backward compatibility)
|
274
|
-
# @return [Hash] Returns the object in the form of hash
|
275
|
-
def to_body
|
276
|
-
to_hash
|
277
|
-
end
|
278
|
-
|
279
|
-
# Returns the object in the form of hash
|
280
|
-
# @return [Hash] Returns the object in the form of hash
|
281
|
-
def to_hash
|
282
|
-
hash = {}
|
283
|
-
self.class.attribute_map.each_pair do |attr, param|
|
284
|
-
value = self.send(attr)
|
285
|
-
next if value.nil?
|
286
|
-
hash[param] = _to_hash(value)
|
287
|
-
end
|
288
|
-
hash
|
289
|
-
end
|
290
|
-
|
291
|
-
# Outputs non-array value in the form of hash
|
292
|
-
# For object, use to_hash. Otherwise, just return the value
|
293
|
-
# @param [Object] value Any valid value
|
294
|
-
# @return [Hash] Returns the value in the form of hash
|
295
|
-
def _to_hash(value)
|
296
|
-
if value.is_a?(Array)
|
297
|
-
value.compact.map { |v| _to_hash(v) }
|
298
|
-
elsif value.is_a?(Hash)
|
299
|
-
{}.tap do |hash|
|
300
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
301
|
-
end
|
302
|
-
elsif value.respond_to? :to_hash
|
303
|
-
value.to_hash
|
304
|
-
else
|
305
|
-
value
|
306
|
-
end
|
307
|
-
end
|
308
162
|
end
|
309
163
|
end
|
@@ -37,28 +37,6 @@ module AsposeSlidesCloud
|
|
37
37
|
# Spreadsheet formula in A1-style.
|
38
38
|
attr_accessor :y_value_formula
|
39
39
|
|
40
|
-
class EnumAttributeValidator
|
41
|
-
attr_reader :datatype
|
42
|
-
attr_reader :allowable_values
|
43
|
-
|
44
|
-
def initialize(datatype, allowable_values)
|
45
|
-
@allowable_values = allowable_values.map do |value|
|
46
|
-
case datatype.to_s
|
47
|
-
when /Integer/i
|
48
|
-
value.to_i
|
49
|
-
when /Float/i
|
50
|
-
value.to_f
|
51
|
-
else
|
52
|
-
value
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
def valid?(value)
|
58
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
41
|
def self.attribute_map
|
64
42
|
super.merge({
|
@@ -143,129 +121,5 @@ module AsposeSlidesCloud
|
|
143
121
|
def hash
|
144
122
|
[fill_format, effect_format, three_d_format, line_format, type, x_value, y_value, x_value_formula, y_value_formula].hash
|
145
123
|
end
|
146
|
-
|
147
|
-
# Builds the object from hash
|
148
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
149
|
-
# @return [Object] Returns the model itself
|
150
|
-
def build_from_hash(attributes)
|
151
|
-
return nil unless attributes.is_a?(Hash)
|
152
|
-
self.class.swagger_types.each_pair do |key, type|
|
153
|
-
mapKey = self.class.attribute_map[key]
|
154
|
-
if !mapKey.nil?
|
155
|
-
val = attributes[mapKey]
|
156
|
-
if val.nil?
|
157
|
-
mapKeyString = mapKey.to_s
|
158
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
159
|
-
mapKey = mapKeyString.to_sym
|
160
|
-
val = attributes[mapKey]
|
161
|
-
end
|
162
|
-
if !val.nil?
|
163
|
-
if type =~ /\AArray<(.*)>/i
|
164
|
-
# check to ensure the input is an array given that the the attribute
|
165
|
-
# is documented as an array but the input is not
|
166
|
-
if val.is_a?(Array)
|
167
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
168
|
-
end
|
169
|
-
else
|
170
|
-
self.send("#{key}=", _deserialize(type, val))
|
171
|
-
end
|
172
|
-
end
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
self
|
177
|
-
end
|
178
|
-
|
179
|
-
# Deserializes the data based on type
|
180
|
-
# @param string type Data type
|
181
|
-
# @param string value Value to be deserialized
|
182
|
-
# @return [Object] Deserialized data
|
183
|
-
def _deserialize(type, value)
|
184
|
-
if value.nil?
|
185
|
-
nil
|
186
|
-
else
|
187
|
-
case type.to_sym
|
188
|
-
when :DateTime
|
189
|
-
DateTime.parse(value)
|
190
|
-
when :Date
|
191
|
-
Date.parse(value)
|
192
|
-
when :String
|
193
|
-
value.to_s
|
194
|
-
when :Integer
|
195
|
-
value.to_i
|
196
|
-
when :Float
|
197
|
-
value.to_f
|
198
|
-
when :BOOLEAN
|
199
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
200
|
-
true
|
201
|
-
else
|
202
|
-
false
|
203
|
-
end
|
204
|
-
when :Object
|
205
|
-
# generic object (usually a Hash), return directly
|
206
|
-
value
|
207
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
208
|
-
inner_type = Regexp.last_match[:inner_type]
|
209
|
-
value.map { |v| _deserialize(inner_type, v) }
|
210
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
211
|
-
k_type = Regexp.last_match[:k_type]
|
212
|
-
v_type = Regexp.last_match[:v_type]
|
213
|
-
{}.tap do |hash|
|
214
|
-
value.each do |k, v|
|
215
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
216
|
-
end
|
217
|
-
end
|
218
|
-
else # model
|
219
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
220
|
-
if registry_type
|
221
|
-
type = registry_type
|
222
|
-
end
|
223
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
224
|
-
temp_model.build_from_hash(value)
|
225
|
-
end
|
226
|
-
end
|
227
|
-
end
|
228
|
-
|
229
|
-
# Returns the string representation of the object
|
230
|
-
# @return [String] String presentation of the object
|
231
|
-
def to_s
|
232
|
-
to_hash.to_s
|
233
|
-
end
|
234
|
-
|
235
|
-
# to_body is an alias to to_hash (backward compatibility)
|
236
|
-
# @return [Hash] Returns the object in the form of hash
|
237
|
-
def to_body
|
238
|
-
to_hash
|
239
|
-
end
|
240
|
-
|
241
|
-
# Returns the object in the form of hash
|
242
|
-
# @return [Hash] Returns the object in the form of hash
|
243
|
-
def to_hash
|
244
|
-
hash = {}
|
245
|
-
self.class.attribute_map.each_pair do |attr, param|
|
246
|
-
value = self.send(attr)
|
247
|
-
next if value.nil?
|
248
|
-
hash[param] = _to_hash(value)
|
249
|
-
end
|
250
|
-
hash
|
251
|
-
end
|
252
|
-
|
253
|
-
# Outputs non-array value in the form of hash
|
254
|
-
# For object, use to_hash. Otherwise, just return the value
|
255
|
-
# @param [Object] value Any valid value
|
256
|
-
# @return [Hash] Returns the value in the form of hash
|
257
|
-
def _to_hash(value)
|
258
|
-
if value.is_a?(Array)
|
259
|
-
value.compact.map { |v| _to_hash(v) }
|
260
|
-
elsif value.is_a?(Hash)
|
261
|
-
{}.tap do |hash|
|
262
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
263
|
-
end
|
264
|
-
elsif value.respond_to? :to_hash
|
265
|
-
value.to_hash
|
266
|
-
else
|
267
|
-
value
|
268
|
-
end
|
269
|
-
end
|
270
124
|
end
|
271
125
|
end
|
@@ -28,28 +28,6 @@ module AsposeSlidesCloud
|
|
28
28
|
# Gets or sets the values.
|
29
29
|
attr_accessor :data_points
|
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({
|
@@ -129,129 +107,5 @@ module AsposeSlidesCloud
|
|
129
107
|
def hash
|
130
108
|
[type, name, data_source_for_series_name, is_color_varied, inverted_solid_fill_color, smooth, plot_on_second_axis, order, invert_if_negative, explosion, marker, fill_format, effect_format, line_format, data_point_type, number_format_of_y_values, number_format_of_x_values, data_source_for_x_values, data_source_for_y_values, data_points].hash
|
131
109
|
end
|
132
|
-
|
133
|
-
# Builds the object from hash
|
134
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
-
# @return [Object] Returns the model itself
|
136
|
-
def build_from_hash(attributes)
|
137
|
-
return nil unless attributes.is_a?(Hash)
|
138
|
-
self.class.swagger_types.each_pair do |key, type|
|
139
|
-
mapKey = self.class.attribute_map[key]
|
140
|
-
if !mapKey.nil?
|
141
|
-
val = attributes[mapKey]
|
142
|
-
if val.nil?
|
143
|
-
mapKeyString = mapKey.to_s
|
144
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
145
|
-
mapKey = mapKeyString.to_sym
|
146
|
-
val = attributes[mapKey]
|
147
|
-
end
|
148
|
-
if !val.nil?
|
149
|
-
if type =~ /\AArray<(.*)>/i
|
150
|
-
# check to ensure the input is an array given that the the attribute
|
151
|
-
# is documented as an array but the input is not
|
152
|
-
if val.is_a?(Array)
|
153
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
154
|
-
end
|
155
|
-
else
|
156
|
-
self.send("#{key}=", _deserialize(type, val))
|
157
|
-
end
|
158
|
-
end
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
self
|
163
|
-
end
|
164
|
-
|
165
|
-
# Deserializes the data based on type
|
166
|
-
# @param string type Data type
|
167
|
-
# @param string value Value to be deserialized
|
168
|
-
# @return [Object] Deserialized data
|
169
|
-
def _deserialize(type, value)
|
170
|
-
if value.nil?
|
171
|
-
nil
|
172
|
-
else
|
173
|
-
case type.to_sym
|
174
|
-
when :DateTime
|
175
|
-
DateTime.parse(value)
|
176
|
-
when :Date
|
177
|
-
Date.parse(value)
|
178
|
-
when :String
|
179
|
-
value.to_s
|
180
|
-
when :Integer
|
181
|
-
value.to_i
|
182
|
-
when :Float
|
183
|
-
value.to_f
|
184
|
-
when :BOOLEAN
|
185
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
186
|
-
true
|
187
|
-
else
|
188
|
-
false
|
189
|
-
end
|
190
|
-
when :Object
|
191
|
-
# generic object (usually a Hash), return directly
|
192
|
-
value
|
193
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
194
|
-
inner_type = Regexp.last_match[:inner_type]
|
195
|
-
value.map { |v| _deserialize(inner_type, v) }
|
196
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
197
|
-
k_type = Regexp.last_match[:k_type]
|
198
|
-
v_type = Regexp.last_match[:v_type]
|
199
|
-
{}.tap do |hash|
|
200
|
-
value.each do |k, v|
|
201
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
202
|
-
end
|
203
|
-
end
|
204
|
-
else # model
|
205
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
206
|
-
if registry_type
|
207
|
-
type = registry_type
|
208
|
-
end
|
209
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
210
|
-
temp_model.build_from_hash(value)
|
211
|
-
end
|
212
|
-
end
|
213
|
-
end
|
214
|
-
|
215
|
-
# Returns the string representation of the object
|
216
|
-
# @return [String] String presentation of the object
|
217
|
-
def to_s
|
218
|
-
to_hash.to_s
|
219
|
-
end
|
220
|
-
|
221
|
-
# to_body is an alias to to_hash (backward compatibility)
|
222
|
-
# @return [Hash] Returns the object in the form of hash
|
223
|
-
def to_body
|
224
|
-
to_hash
|
225
|
-
end
|
226
|
-
|
227
|
-
# Returns the object in the form of hash
|
228
|
-
# @return [Hash] Returns the object in the form of hash
|
229
|
-
def to_hash
|
230
|
-
hash = {}
|
231
|
-
self.class.attribute_map.each_pair do |attr, param|
|
232
|
-
value = self.send(attr)
|
233
|
-
next if value.nil?
|
234
|
-
hash[param] = _to_hash(value)
|
235
|
-
end
|
236
|
-
hash
|
237
|
-
end
|
238
|
-
|
239
|
-
# Outputs non-array value in the form of hash
|
240
|
-
# For object, use to_hash. Otherwise, just return the value
|
241
|
-
# @param [Object] value Any valid value
|
242
|
-
# @return [Hash] Returns the value in the form of hash
|
243
|
-
def _to_hash(value)
|
244
|
-
if value.is_a?(Array)
|
245
|
-
value.compact.map { |v| _to_hash(v) }
|
246
|
-
elsif value.is_a?(Hash)
|
247
|
-
{}.tap do |hash|
|
248
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
249
|
-
end
|
250
|
-
elsif value.respond_to? :to_hash
|
251
|
-
value.to_hash
|
252
|
-
else
|
253
|
-
value
|
254
|
-
end
|
255
|
-
end
|
256
110
|
end
|
257
111
|
end
|