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
@@ -34,28 +34,6 @@ module AsposeSlidesCloud
|
|
34
34
|
# Row index of the first value.
|
35
35
|
attr_accessor :row_index
|
36
36
|
|
37
|
-
class EnumAttributeValidator
|
38
|
-
attr_reader :datatype
|
39
|
-
attr_reader :allowable_values
|
40
|
-
|
41
|
-
def initialize(datatype, allowable_values)
|
42
|
-
@allowable_values = allowable_values.map do |value|
|
43
|
-
case datatype.to_s
|
44
|
-
when /Integer/i
|
45
|
-
value.to_i
|
46
|
-
when /Float/i
|
47
|
-
value.to_f
|
48
|
-
else
|
49
|
-
value
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
def valid?(value)
|
55
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
38
|
def self.attribute_map
|
61
39
|
super.merge({
|
@@ -144,129 +122,5 @@ module AsposeSlidesCloud
|
|
144
122
|
def hash
|
145
123
|
[type, worksheet_index, column_index, row_index].hash
|
146
124
|
end
|
147
|
-
|
148
|
-
# Builds the object from hash
|
149
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
150
|
-
# @return [Object] Returns the model itself
|
151
|
-
def build_from_hash(attributes)
|
152
|
-
return nil unless attributes.is_a?(Hash)
|
153
|
-
self.class.swagger_types.each_pair do |key, type|
|
154
|
-
mapKey = self.class.attribute_map[key]
|
155
|
-
if !mapKey.nil?
|
156
|
-
val = attributes[mapKey]
|
157
|
-
if val.nil?
|
158
|
-
mapKeyString = mapKey.to_s
|
159
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
160
|
-
mapKey = mapKeyString.to_sym
|
161
|
-
val = attributes[mapKey]
|
162
|
-
end
|
163
|
-
if !val.nil?
|
164
|
-
if type =~ /\AArray<(.*)>/i
|
165
|
-
# check to ensure the input is an array given that the the attribute
|
166
|
-
# is documented as an array but the input is not
|
167
|
-
if val.is_a?(Array)
|
168
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
169
|
-
end
|
170
|
-
else
|
171
|
-
self.send("#{key}=", _deserialize(type, val))
|
172
|
-
end
|
173
|
-
end
|
174
|
-
end
|
175
|
-
end
|
176
|
-
|
177
|
-
self
|
178
|
-
end
|
179
|
-
|
180
|
-
# Deserializes the data based on type
|
181
|
-
# @param string type Data type
|
182
|
-
# @param string value Value to be deserialized
|
183
|
-
# @return [Object] Deserialized data
|
184
|
-
def _deserialize(type, value)
|
185
|
-
if value.nil?
|
186
|
-
nil
|
187
|
-
else
|
188
|
-
case type.to_sym
|
189
|
-
when :DateTime
|
190
|
-
DateTime.parse(value)
|
191
|
-
when :Date
|
192
|
-
Date.parse(value)
|
193
|
-
when :String
|
194
|
-
value.to_s
|
195
|
-
when :Integer
|
196
|
-
value.to_i
|
197
|
-
when :Float
|
198
|
-
value.to_f
|
199
|
-
when :BOOLEAN
|
200
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
201
|
-
true
|
202
|
-
else
|
203
|
-
false
|
204
|
-
end
|
205
|
-
when :Object
|
206
|
-
# generic object (usually a Hash), return directly
|
207
|
-
value
|
208
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
209
|
-
inner_type = Regexp.last_match[:inner_type]
|
210
|
-
value.map { |v| _deserialize(inner_type, v) }
|
211
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
212
|
-
k_type = Regexp.last_match[:k_type]
|
213
|
-
v_type = Regexp.last_match[:v_type]
|
214
|
-
{}.tap do |hash|
|
215
|
-
value.each do |k, v|
|
216
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
217
|
-
end
|
218
|
-
end
|
219
|
-
else # model
|
220
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
221
|
-
if registry_type
|
222
|
-
type = registry_type
|
223
|
-
end
|
224
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
225
|
-
temp_model.build_from_hash(value)
|
226
|
-
end
|
227
|
-
end
|
228
|
-
end
|
229
|
-
|
230
|
-
# Returns the string representation of the object
|
231
|
-
# @return [String] String presentation of the object
|
232
|
-
def to_s
|
233
|
-
to_hash.to_s
|
234
|
-
end
|
235
|
-
|
236
|
-
# to_body is an alias to to_hash (backward compatibility)
|
237
|
-
# @return [Hash] Returns the object in the form of hash
|
238
|
-
def to_body
|
239
|
-
to_hash
|
240
|
-
end
|
241
|
-
|
242
|
-
# Returns the object in the form of hash
|
243
|
-
# @return [Hash] Returns the object in the form of hash
|
244
|
-
def to_hash
|
245
|
-
hash = {}
|
246
|
-
self.class.attribute_map.each_pair do |attr, param|
|
247
|
-
value = self.send(attr)
|
248
|
-
next if value.nil?
|
249
|
-
hash[param] = _to_hash(value)
|
250
|
-
end
|
251
|
-
hash
|
252
|
-
end
|
253
|
-
|
254
|
-
# Outputs non-array value in the form of hash
|
255
|
-
# For object, use to_hash. Otherwise, just return the value
|
256
|
-
# @param [Object] value Any valid value
|
257
|
-
# @return [Hash] Returns the value in the form of hash
|
258
|
-
def _to_hash(value)
|
259
|
-
if value.is_a?(Array)
|
260
|
-
value.compact.map { |v| _to_hash(v) }
|
261
|
-
elsif value.is_a?(Hash)
|
262
|
-
{}.tap do |hash|
|
263
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
264
|
-
end
|
265
|
-
elsif value.respond_to? :to_hash
|
266
|
-
value.to_hash
|
267
|
-
else
|
268
|
-
value
|
269
|
-
end
|
270
|
-
end
|
271
125
|
end
|
272
126
|
end
|
@@ -90,129 +90,5 @@ module AsposeSlidesCloud
|
|
90
90
|
def hash
|
91
91
|
[default_regular_font, font_fallback_rules, font_subst_rules, format, export_hidden_slides].hash
|
92
92
|
end
|
93
|
-
|
94
|
-
# Builds the object from hash
|
95
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
96
|
-
# @return [Object] Returns the model itself
|
97
|
-
def build_from_hash(attributes)
|
98
|
-
return nil unless attributes.is_a?(Hash)
|
99
|
-
self.class.swagger_types.each_pair do |key, type|
|
100
|
-
mapKey = self.class.attribute_map[key]
|
101
|
-
if !mapKey.nil?
|
102
|
-
val = attributes[mapKey]
|
103
|
-
if val.nil?
|
104
|
-
mapKeyString = mapKey.to_s
|
105
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
106
|
-
mapKey = mapKeyString.to_sym
|
107
|
-
val = attributes[mapKey]
|
108
|
-
end
|
109
|
-
if !val.nil?
|
110
|
-
if type =~ /\AArray<(.*)>/i
|
111
|
-
# check to ensure the input is an array given that the the attribute
|
112
|
-
# is documented as an array but the input is not
|
113
|
-
if val.is_a?(Array)
|
114
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
115
|
-
end
|
116
|
-
else
|
117
|
-
self.send("#{key}=", _deserialize(type, val))
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
self
|
124
|
-
end
|
125
|
-
|
126
|
-
# Deserializes the data based on type
|
127
|
-
# @param string type Data type
|
128
|
-
# @param string value Value to be deserialized
|
129
|
-
# @return [Object] Deserialized data
|
130
|
-
def _deserialize(type, value)
|
131
|
-
if value.nil?
|
132
|
-
nil
|
133
|
-
else
|
134
|
-
case type.to_sym
|
135
|
-
when :DateTime
|
136
|
-
DateTime.parse(value)
|
137
|
-
when :Date
|
138
|
-
Date.parse(value)
|
139
|
-
when :String
|
140
|
-
value.to_s
|
141
|
-
when :Integer
|
142
|
-
value.to_i
|
143
|
-
when :Float
|
144
|
-
value.to_f
|
145
|
-
when :BOOLEAN
|
146
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
-
true
|
148
|
-
else
|
149
|
-
false
|
150
|
-
end
|
151
|
-
when :Object
|
152
|
-
# generic object (usually a Hash), return directly
|
153
|
-
value
|
154
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
-
inner_type = Regexp.last_match[:inner_type]
|
156
|
-
value.map { |v| _deserialize(inner_type, v) }
|
157
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
-
k_type = Regexp.last_match[:k_type]
|
159
|
-
v_type = Regexp.last_match[:v_type]
|
160
|
-
{}.tap do |hash|
|
161
|
-
value.each do |k, v|
|
162
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
-
end
|
164
|
-
end
|
165
|
-
else # model
|
166
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
167
|
-
if registry_type
|
168
|
-
type = registry_type
|
169
|
-
end
|
170
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
171
|
-
temp_model.build_from_hash(value)
|
172
|
-
end
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
# Returns the string representation of the object
|
177
|
-
# @return [String] String presentation of the object
|
178
|
-
def to_s
|
179
|
-
to_hash.to_s
|
180
|
-
end
|
181
|
-
|
182
|
-
# to_body is an alias to to_hash (backward compatibility)
|
183
|
-
# @return [Hash] Returns the object in the form of hash
|
184
|
-
def to_body
|
185
|
-
to_hash
|
186
|
-
end
|
187
|
-
|
188
|
-
# Returns the object in the form of hash
|
189
|
-
# @return [Hash] Returns the object in the form of hash
|
190
|
-
def to_hash
|
191
|
-
hash = {}
|
192
|
-
self.class.attribute_map.each_pair do |attr, param|
|
193
|
-
value = self.send(attr)
|
194
|
-
next if value.nil?
|
195
|
-
hash[param] = _to_hash(value)
|
196
|
-
end
|
197
|
-
hash
|
198
|
-
end
|
199
|
-
|
200
|
-
# Outputs non-array value in the form of hash
|
201
|
-
# For object, use to_hash. Otherwise, just return the value
|
202
|
-
# @param [Object] value Any valid value
|
203
|
-
# @return [Hash] Returns the value in the form of hash
|
204
|
-
def _to_hash(value)
|
205
|
-
if value.is_a?(Array)
|
206
|
-
value.compact.map { |v| _to_hash(v) }
|
207
|
-
elsif value.is_a?(Hash)
|
208
|
-
{}.tap do |hash|
|
209
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
210
|
-
end
|
211
|
-
elsif value.respond_to? :to_hash
|
212
|
-
value.to_hash
|
213
|
-
else
|
214
|
-
value
|
215
|
-
end
|
216
|
-
end
|
217
93
|
end
|
218
94
|
end
|
@@ -110,129 +110,5 @@ module AsposeSlidesCloud
|
|
110
110
|
def hash
|
111
111
|
[default_regular_font, font_fallback_rules, font_subst_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
|
112
112
|
end
|
113
|
-
|
114
|
-
# Builds the object from hash
|
115
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
-
# @return [Object] Returns the model itself
|
117
|
-
def build_from_hash(attributes)
|
118
|
-
return nil unless attributes.is_a?(Hash)
|
119
|
-
self.class.swagger_types.each_pair do |key, type|
|
120
|
-
mapKey = self.class.attribute_map[key]
|
121
|
-
if !mapKey.nil?
|
122
|
-
val = attributes[mapKey]
|
123
|
-
if val.nil?
|
124
|
-
mapKeyString = mapKey.to_s
|
125
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
126
|
-
mapKey = mapKeyString.to_sym
|
127
|
-
val = attributes[mapKey]
|
128
|
-
end
|
129
|
-
if !val.nil?
|
130
|
-
if type =~ /\AArray<(.*)>/i
|
131
|
-
# check to ensure the input is an array given that the the attribute
|
132
|
-
# is documented as an array but the input is not
|
133
|
-
if val.is_a?(Array)
|
134
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
135
|
-
end
|
136
|
-
else
|
137
|
-
self.send("#{key}=", _deserialize(type, val))
|
138
|
-
end
|
139
|
-
end
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
self
|
144
|
-
end
|
145
|
-
|
146
|
-
# Deserializes the data based on type
|
147
|
-
# @param string type Data type
|
148
|
-
# @param string value Value to be deserialized
|
149
|
-
# @return [Object] Deserialized data
|
150
|
-
def _deserialize(type, value)
|
151
|
-
if value.nil?
|
152
|
-
nil
|
153
|
-
else
|
154
|
-
case type.to_sym
|
155
|
-
when :DateTime
|
156
|
-
DateTime.parse(value)
|
157
|
-
when :Date
|
158
|
-
Date.parse(value)
|
159
|
-
when :String
|
160
|
-
value.to_s
|
161
|
-
when :Integer
|
162
|
-
value.to_i
|
163
|
-
when :Float
|
164
|
-
value.to_f
|
165
|
-
when :BOOLEAN
|
166
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
167
|
-
true
|
168
|
-
else
|
169
|
-
false
|
170
|
-
end
|
171
|
-
when :Object
|
172
|
-
# generic object (usually a Hash), return directly
|
173
|
-
value
|
174
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
175
|
-
inner_type = Regexp.last_match[:inner_type]
|
176
|
-
value.map { |v| _deserialize(inner_type, v) }
|
177
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
178
|
-
k_type = Regexp.last_match[:k_type]
|
179
|
-
v_type = Regexp.last_match[:v_type]
|
180
|
-
{}.tap do |hash|
|
181
|
-
value.each do |k, v|
|
182
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
183
|
-
end
|
184
|
-
end
|
185
|
-
else # model
|
186
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
187
|
-
if registry_type
|
188
|
-
type = registry_type
|
189
|
-
end
|
190
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
191
|
-
temp_model.build_from_hash(value)
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
|
-
# Returns the string representation of the object
|
197
|
-
# @return [String] String presentation of the object
|
198
|
-
def to_s
|
199
|
-
to_hash.to_s
|
200
|
-
end
|
201
|
-
|
202
|
-
# to_body is an alias to to_hash (backward compatibility)
|
203
|
-
# @return [Hash] Returns the object in the form of hash
|
204
|
-
def to_body
|
205
|
-
to_hash
|
206
|
-
end
|
207
|
-
|
208
|
-
# Returns the object in the form of hash
|
209
|
-
# @return [Hash] Returns the object in the form of hash
|
210
|
-
def to_hash
|
211
|
-
hash = {}
|
212
|
-
self.class.attribute_map.each_pair do |attr, param|
|
213
|
-
value = self.send(attr)
|
214
|
-
next if value.nil?
|
215
|
-
hash[param] = _to_hash(value)
|
216
|
-
end
|
217
|
-
hash
|
218
|
-
end
|
219
|
-
|
220
|
-
# Outputs non-array value in the form of hash
|
221
|
-
# For object, use to_hash. Otherwise, just return the value
|
222
|
-
# @param [Object] value Any valid value
|
223
|
-
# @return [Hash] Returns the value in the form of hash
|
224
|
-
def _to_hash(value)
|
225
|
-
if value.is_a?(Array)
|
226
|
-
value.compact.map { |v| _to_hash(v) }
|
227
|
-
elsif value.is_a?(Hash)
|
228
|
-
{}.tap do |hash|
|
229
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
230
|
-
end
|
231
|
-
elsif value.respond_to? :to_hash
|
232
|
-
value.to_hash
|
233
|
-
else
|
234
|
-
value
|
235
|
-
end
|
236
|
-
end
|
237
113
|
end
|
238
114
|
end
|
@@ -37,28 +37,6 @@ module AsposeSlidesCloud
|
|
37
37
|
# Data source type for Y Values.
|
38
38
|
attr_accessor :data_source_for_y_values
|
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({
|
@@ -152,129 +130,5 @@ module AsposeSlidesCloud
|
|
152
130
|
def hash
|
153
131
|
[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].hash
|
154
132
|
end
|
155
|
-
|
156
|
-
# Builds the object from hash
|
157
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
-
# @return [Object] Returns the model itself
|
159
|
-
def build_from_hash(attributes)
|
160
|
-
return nil unless attributes.is_a?(Hash)
|
161
|
-
self.class.swagger_types.each_pair do |key, type|
|
162
|
-
mapKey = self.class.attribute_map[key]
|
163
|
-
if !mapKey.nil?
|
164
|
-
val = attributes[mapKey]
|
165
|
-
if val.nil?
|
166
|
-
mapKeyString = mapKey.to_s
|
167
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
168
|
-
mapKey = mapKeyString.to_sym
|
169
|
-
val = attributes[mapKey]
|
170
|
-
end
|
171
|
-
if !val.nil?
|
172
|
-
if type =~ /\AArray<(.*)>/i
|
173
|
-
# check to ensure the input is an array given that the the attribute
|
174
|
-
# is documented as an array but the input is not
|
175
|
-
if val.is_a?(Array)
|
176
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
177
|
-
end
|
178
|
-
else
|
179
|
-
self.send("#{key}=", _deserialize(type, val))
|
180
|
-
end
|
181
|
-
end
|
182
|
-
end
|
183
|
-
end
|
184
|
-
|
185
|
-
self
|
186
|
-
end
|
187
|
-
|
188
|
-
# Deserializes the data based on type
|
189
|
-
# @param string type Data type
|
190
|
-
# @param string value Value to be deserialized
|
191
|
-
# @return [Object] Deserialized data
|
192
|
-
def _deserialize(type, value)
|
193
|
-
if value.nil?
|
194
|
-
nil
|
195
|
-
else
|
196
|
-
case type.to_sym
|
197
|
-
when :DateTime
|
198
|
-
DateTime.parse(value)
|
199
|
-
when :Date
|
200
|
-
Date.parse(value)
|
201
|
-
when :String
|
202
|
-
value.to_s
|
203
|
-
when :Integer
|
204
|
-
value.to_i
|
205
|
-
when :Float
|
206
|
-
value.to_f
|
207
|
-
when :BOOLEAN
|
208
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
209
|
-
true
|
210
|
-
else
|
211
|
-
false
|
212
|
-
end
|
213
|
-
when :Object
|
214
|
-
# generic object (usually a Hash), return directly
|
215
|
-
value
|
216
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
217
|
-
inner_type = Regexp.last_match[:inner_type]
|
218
|
-
value.map { |v| _deserialize(inner_type, v) }
|
219
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
220
|
-
k_type = Regexp.last_match[:k_type]
|
221
|
-
v_type = Regexp.last_match[:v_type]
|
222
|
-
{}.tap do |hash|
|
223
|
-
value.each do |k, v|
|
224
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
225
|
-
end
|
226
|
-
end
|
227
|
-
else # model
|
228
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
229
|
-
if registry_type
|
230
|
-
type = registry_type
|
231
|
-
end
|
232
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
233
|
-
temp_model.build_from_hash(value)
|
234
|
-
end
|
235
|
-
end
|
236
|
-
end
|
237
|
-
|
238
|
-
# Returns the string representation of the object
|
239
|
-
# @return [String] String presentation of the object
|
240
|
-
def to_s
|
241
|
-
to_hash.to_s
|
242
|
-
end
|
243
|
-
|
244
|
-
# to_body is an alias to to_hash (backward compatibility)
|
245
|
-
# @return [Hash] Returns the object in the form of hash
|
246
|
-
def to_body
|
247
|
-
to_hash
|
248
|
-
end
|
249
|
-
|
250
|
-
# Returns the object in the form of hash
|
251
|
-
# @return [Hash] Returns the object in the form of hash
|
252
|
-
def to_hash
|
253
|
-
hash = {}
|
254
|
-
self.class.attribute_map.each_pair do |attr, param|
|
255
|
-
value = self.send(attr)
|
256
|
-
next if value.nil?
|
257
|
-
hash[param] = _to_hash(value)
|
258
|
-
end
|
259
|
-
hash
|
260
|
-
end
|
261
|
-
|
262
|
-
# Outputs non-array value in the form of hash
|
263
|
-
# For object, use to_hash. Otherwise, just return the value
|
264
|
-
# @param [Object] value Any valid value
|
265
|
-
# @return [Hash] Returns the value in the form of hash
|
266
|
-
def _to_hash(value)
|
267
|
-
if value.is_a?(Array)
|
268
|
-
value.compact.map { |v| _to_hash(v) }
|
269
|
-
elsif value.is_a?(Hash)
|
270
|
-
{}.tap do |hash|
|
271
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
272
|
-
end
|
273
|
-
elsif value.respond_to? :to_hash
|
274
|
-
value.to_hash
|
275
|
-
else
|
276
|
-
value
|
277
|
-
end
|
278
|
-
end
|
279
133
|
end
|
280
134
|
end
|