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
@@ -89,129 +89,5 @@ module AsposeSlidesCloud
|
|
89
89
|
def hash
|
90
90
|
[self_uri, alternate_links, slide_list].hash
|
91
91
|
end
|
92
|
-
|
93
|
-
# Builds the object from hash
|
94
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
95
|
-
# @return [Object] Returns the model itself
|
96
|
-
def build_from_hash(attributes)
|
97
|
-
return nil unless attributes.is_a?(Hash)
|
98
|
-
self.class.swagger_types.each_pair do |key, type|
|
99
|
-
mapKey = self.class.attribute_map[key]
|
100
|
-
if !mapKey.nil?
|
101
|
-
val = attributes[mapKey]
|
102
|
-
if val.nil?
|
103
|
-
mapKeyString = mapKey.to_s
|
104
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
105
|
-
mapKey = mapKeyString.to_sym
|
106
|
-
val = attributes[mapKey]
|
107
|
-
end
|
108
|
-
if !val.nil?
|
109
|
-
if type =~ /\AArray<(.*)>/i
|
110
|
-
# check to ensure the input is an array given that the the attribute
|
111
|
-
# is documented as an array but the input is not
|
112
|
-
if val.is_a?(Array)
|
113
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
114
|
-
end
|
115
|
-
else
|
116
|
-
self.send("#{key}=", _deserialize(type, val))
|
117
|
-
end
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
self
|
123
|
-
end
|
124
|
-
|
125
|
-
# Deserializes the data based on type
|
126
|
-
# @param string type Data type
|
127
|
-
# @param string value Value to be deserialized
|
128
|
-
# @return [Object] Deserialized data
|
129
|
-
def _deserialize(type, value)
|
130
|
-
if value.nil?
|
131
|
-
nil
|
132
|
-
else
|
133
|
-
case type.to_sym
|
134
|
-
when :DateTime
|
135
|
-
DateTime.parse(value)
|
136
|
-
when :Date
|
137
|
-
Date.parse(value)
|
138
|
-
when :String
|
139
|
-
value.to_s
|
140
|
-
when :Integer
|
141
|
-
value.to_i
|
142
|
-
when :Float
|
143
|
-
value.to_f
|
144
|
-
when :BOOLEAN
|
145
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
-
true
|
147
|
-
else
|
148
|
-
false
|
149
|
-
end
|
150
|
-
when :Object
|
151
|
-
# generic object (usually a Hash), return directly
|
152
|
-
value
|
153
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
-
inner_type = Regexp.last_match[:inner_type]
|
155
|
-
value.map { |v| _deserialize(inner_type, v) }
|
156
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
-
k_type = Regexp.last_match[:k_type]
|
158
|
-
v_type = Regexp.last_match[:v_type]
|
159
|
-
{}.tap do |hash|
|
160
|
-
value.each do |k, v|
|
161
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
-
end
|
163
|
-
end
|
164
|
-
else # model
|
165
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
166
|
-
if registry_type
|
167
|
-
type = registry_type
|
168
|
-
end
|
169
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
170
|
-
temp_model.build_from_hash(value)
|
171
|
-
end
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
# Returns the string representation of the object
|
176
|
-
# @return [String] String presentation of the object
|
177
|
-
def to_s
|
178
|
-
to_hash.to_s
|
179
|
-
end
|
180
|
-
|
181
|
-
# to_body is an alias to to_hash (backward compatibility)
|
182
|
-
# @return [Hash] Returns the object in the form of hash
|
183
|
-
def to_body
|
184
|
-
to_hash
|
185
|
-
end
|
186
|
-
|
187
|
-
# Returns the object in the form of hash
|
188
|
-
# @return [Hash] Returns the object in the form of hash
|
189
|
-
def to_hash
|
190
|
-
hash = {}
|
191
|
-
self.class.attribute_map.each_pair do |attr, param|
|
192
|
-
value = self.send(attr)
|
193
|
-
next if value.nil?
|
194
|
-
hash[param] = _to_hash(value)
|
195
|
-
end
|
196
|
-
hash
|
197
|
-
end
|
198
|
-
|
199
|
-
# Outputs non-array value in the form of hash
|
200
|
-
# For object, use to_hash. Otherwise, just return the value
|
201
|
-
# @param [Object] value Any valid value
|
202
|
-
# @return [Hash] Returns the value in the form of hash
|
203
|
-
def _to_hash(value)
|
204
|
-
if value.is_a?(Array)
|
205
|
-
value.compact.map { |v| _to_hash(v) }
|
206
|
-
elsif value.is_a?(Hash)
|
207
|
-
{}.tap do |hash|
|
208
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
-
end
|
210
|
-
elsif value.respond_to? :to_hash
|
211
|
-
value.to_hash
|
212
|
-
else
|
213
|
-
value
|
214
|
-
end
|
215
|
-
end
|
216
92
|
end
|
217
93
|
end
|
@@ -34,28 +34,6 @@ module AsposeSlidesCloud
|
|
34
34
|
# Superscript
|
35
35
|
attr_accessor :superscript
|
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({
|
@@ -129,129 +107,5 @@ module AsposeSlidesCloud
|
|
129
107
|
def hash
|
130
108
|
[type, base, subscript, superscript].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
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents a chart legend
|
27
|
-
class Legend
|
27
|
+
class Legend < BaseObject
|
28
28
|
# position
|
29
29
|
attr_accessor :position
|
30
30
|
|
@@ -55,28 +55,6 @@ module AsposeSlidesCloud
|
|
55
55
|
# Get or sets value determines the visibility of legend
|
56
56
|
attr_accessor :has_legend
|
57
57
|
|
58
|
-
class EnumAttributeValidator
|
59
|
-
attr_reader :datatype
|
60
|
-
attr_reader :allowable_values
|
61
|
-
|
62
|
-
def initialize(datatype, allowable_values)
|
63
|
-
@allowable_values = allowable_values.map do |value|
|
64
|
-
case datatype.to_s
|
65
|
-
when /Integer/i
|
66
|
-
value.to_i
|
67
|
-
when /Float/i
|
68
|
-
value.to_f
|
69
|
-
else
|
70
|
-
value
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
def valid?(value)
|
76
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
81
59
|
def self.attribute_map
|
82
60
|
{
|
@@ -211,129 +189,5 @@ module AsposeSlidesCloud
|
|
211
189
|
def hash
|
212
190
|
[position, x, y, width, height, overlay, fill_format, effect_format, line_format, has_legend].hash
|
213
191
|
end
|
214
|
-
|
215
|
-
# Builds the object from hash
|
216
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
217
|
-
# @return [Object] Returns the model itself
|
218
|
-
def build_from_hash(attributes)
|
219
|
-
return nil unless attributes.is_a?(Hash)
|
220
|
-
self.class.swagger_types.each_pair do |key, type|
|
221
|
-
mapKey = self.class.attribute_map[key]
|
222
|
-
if !mapKey.nil?
|
223
|
-
val = attributes[mapKey]
|
224
|
-
if val.nil?
|
225
|
-
mapKeyString = mapKey.to_s
|
226
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
227
|
-
mapKey = mapKeyString.to_sym
|
228
|
-
val = attributes[mapKey]
|
229
|
-
end
|
230
|
-
if !val.nil?
|
231
|
-
if type =~ /\AArray<(.*)>/i
|
232
|
-
# check to ensure the input is an array given that the the attribute
|
233
|
-
# is documented as an array but the input is not
|
234
|
-
if val.is_a?(Array)
|
235
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
236
|
-
end
|
237
|
-
else
|
238
|
-
self.send("#{key}=", _deserialize(type, val))
|
239
|
-
end
|
240
|
-
end
|
241
|
-
end
|
242
|
-
end
|
243
|
-
|
244
|
-
self
|
245
|
-
end
|
246
|
-
|
247
|
-
# Deserializes the data based on type
|
248
|
-
# @param string type Data type
|
249
|
-
# @param string value Value to be deserialized
|
250
|
-
# @return [Object] Deserialized data
|
251
|
-
def _deserialize(type, value)
|
252
|
-
if value.nil?
|
253
|
-
nil
|
254
|
-
else
|
255
|
-
case type.to_sym
|
256
|
-
when :DateTime
|
257
|
-
DateTime.parse(value)
|
258
|
-
when :Date
|
259
|
-
Date.parse(value)
|
260
|
-
when :String
|
261
|
-
value.to_s
|
262
|
-
when :Integer
|
263
|
-
value.to_i
|
264
|
-
when :Float
|
265
|
-
value.to_f
|
266
|
-
when :BOOLEAN
|
267
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
268
|
-
true
|
269
|
-
else
|
270
|
-
false
|
271
|
-
end
|
272
|
-
when :Object
|
273
|
-
# generic object (usually a Hash), return directly
|
274
|
-
value
|
275
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
276
|
-
inner_type = Regexp.last_match[:inner_type]
|
277
|
-
value.map { |v| _deserialize(inner_type, v) }
|
278
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
279
|
-
k_type = Regexp.last_match[:k_type]
|
280
|
-
v_type = Regexp.last_match[:v_type]
|
281
|
-
{}.tap do |hash|
|
282
|
-
value.each do |k, v|
|
283
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
284
|
-
end
|
285
|
-
end
|
286
|
-
else # model
|
287
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
288
|
-
if registry_type
|
289
|
-
type = registry_type
|
290
|
-
end
|
291
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
292
|
-
temp_model.build_from_hash(value)
|
293
|
-
end
|
294
|
-
end
|
295
|
-
end
|
296
|
-
|
297
|
-
# Returns the string representation of the object
|
298
|
-
# @return [String] String presentation of the object
|
299
|
-
def to_s
|
300
|
-
to_hash.to_s
|
301
|
-
end
|
302
|
-
|
303
|
-
# to_body is an alias to to_hash (backward compatibility)
|
304
|
-
# @return [Hash] Returns the object in the form of hash
|
305
|
-
def to_body
|
306
|
-
to_hash
|
307
|
-
end
|
308
|
-
|
309
|
-
# Returns the object in the form of hash
|
310
|
-
# @return [Hash] Returns the object in the form of hash
|
311
|
-
def to_hash
|
312
|
-
hash = {}
|
313
|
-
self.class.attribute_map.each_pair do |attr, param|
|
314
|
-
value = self.send(attr)
|
315
|
-
next if value.nil?
|
316
|
-
hash[param] = _to_hash(value)
|
317
|
-
end
|
318
|
-
hash
|
319
|
-
end
|
320
|
-
|
321
|
-
# Outputs non-array value in the form of hash
|
322
|
-
# For object, use to_hash. Otherwise, just return the value
|
323
|
-
# @param [Object] value Any valid value
|
324
|
-
# @return [Hash] Returns the value in the form of hash
|
325
|
-
def _to_hash(value)
|
326
|
-
if value.is_a?(Array)
|
327
|
-
value.compact.map { |v| _to_hash(v) }
|
328
|
-
elsif value.is_a?(Hash)
|
329
|
-
{}.tap do |hash|
|
330
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
331
|
-
end
|
332
|
-
elsif value.respond_to? :to_hash
|
333
|
-
value.to_hash
|
334
|
-
else
|
335
|
-
value
|
336
|
-
end
|
337
|
-
end
|
338
192
|
end
|
339
193
|
end
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Light rig
|
27
|
-
class LightRig
|
27
|
+
class LightRig < BaseObject
|
28
28
|
# Light direction
|
29
29
|
attr_accessor :direction
|
30
30
|
|
@@ -40,28 +40,6 @@ module AsposeSlidesCloud
|
|
40
40
|
# ZRotation
|
41
41
|
attr_accessor :z_rotation
|
42
42
|
|
43
|
-
class EnumAttributeValidator
|
44
|
-
attr_reader :datatype
|
45
|
-
attr_reader :allowable_values
|
46
|
-
|
47
|
-
def initialize(datatype, allowable_values)
|
48
|
-
@allowable_values = allowable_values.map do |value|
|
49
|
-
case datatype.to_s
|
50
|
-
when /Integer/i
|
51
|
-
value.to_i
|
52
|
-
when /Float/i
|
53
|
-
value.to_f
|
54
|
-
else
|
55
|
-
value
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
def valid?(value)
|
61
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
44
|
def self.attribute_map
|
67
45
|
{
|
@@ -173,129 +151,5 @@ module AsposeSlidesCloud
|
|
173
151
|
def hash
|
174
152
|
[direction, light_type, x_rotation, y_rotation, z_rotation].hash
|
175
153
|
end
|
176
|
-
|
177
|
-
# Builds the object from hash
|
178
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
179
|
-
# @return [Object] Returns the model itself
|
180
|
-
def build_from_hash(attributes)
|
181
|
-
return nil unless attributes.is_a?(Hash)
|
182
|
-
self.class.swagger_types.each_pair do |key, type|
|
183
|
-
mapKey = self.class.attribute_map[key]
|
184
|
-
if !mapKey.nil?
|
185
|
-
val = attributes[mapKey]
|
186
|
-
if val.nil?
|
187
|
-
mapKeyString = mapKey.to_s
|
188
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
189
|
-
mapKey = mapKeyString.to_sym
|
190
|
-
val = attributes[mapKey]
|
191
|
-
end
|
192
|
-
if !val.nil?
|
193
|
-
if type =~ /\AArray<(.*)>/i
|
194
|
-
# check to ensure the input is an array given that the the attribute
|
195
|
-
# is documented as an array but the input is not
|
196
|
-
if val.is_a?(Array)
|
197
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
198
|
-
end
|
199
|
-
else
|
200
|
-
self.send("#{key}=", _deserialize(type, val))
|
201
|
-
end
|
202
|
-
end
|
203
|
-
end
|
204
|
-
end
|
205
|
-
|
206
|
-
self
|
207
|
-
end
|
208
|
-
|
209
|
-
# Deserializes the data based on type
|
210
|
-
# @param string type Data type
|
211
|
-
# @param string value Value to be deserialized
|
212
|
-
# @return [Object] Deserialized data
|
213
|
-
def _deserialize(type, value)
|
214
|
-
if value.nil?
|
215
|
-
nil
|
216
|
-
else
|
217
|
-
case type.to_sym
|
218
|
-
when :DateTime
|
219
|
-
DateTime.parse(value)
|
220
|
-
when :Date
|
221
|
-
Date.parse(value)
|
222
|
-
when :String
|
223
|
-
value.to_s
|
224
|
-
when :Integer
|
225
|
-
value.to_i
|
226
|
-
when :Float
|
227
|
-
value.to_f
|
228
|
-
when :BOOLEAN
|
229
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
230
|
-
true
|
231
|
-
else
|
232
|
-
false
|
233
|
-
end
|
234
|
-
when :Object
|
235
|
-
# generic object (usually a Hash), return directly
|
236
|
-
value
|
237
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
238
|
-
inner_type = Regexp.last_match[:inner_type]
|
239
|
-
value.map { |v| _deserialize(inner_type, v) }
|
240
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
241
|
-
k_type = Regexp.last_match[:k_type]
|
242
|
-
v_type = Regexp.last_match[:v_type]
|
243
|
-
{}.tap do |hash|
|
244
|
-
value.each do |k, v|
|
245
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
246
|
-
end
|
247
|
-
end
|
248
|
-
else # model
|
249
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
250
|
-
if registry_type
|
251
|
-
type = registry_type
|
252
|
-
end
|
253
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
254
|
-
temp_model.build_from_hash(value)
|
255
|
-
end
|
256
|
-
end
|
257
|
-
end
|
258
|
-
|
259
|
-
# Returns the string representation of the object
|
260
|
-
# @return [String] String presentation of the object
|
261
|
-
def to_s
|
262
|
-
to_hash.to_s
|
263
|
-
end
|
264
|
-
|
265
|
-
# to_body is an alias to to_hash (backward compatibility)
|
266
|
-
# @return [Hash] Returns the object in the form of hash
|
267
|
-
def to_body
|
268
|
-
to_hash
|
269
|
-
end
|
270
|
-
|
271
|
-
# Returns the object in the form of hash
|
272
|
-
# @return [Hash] Returns the object in the form of hash
|
273
|
-
def to_hash
|
274
|
-
hash = {}
|
275
|
-
self.class.attribute_map.each_pair do |attr, param|
|
276
|
-
value = self.send(attr)
|
277
|
-
next if value.nil?
|
278
|
-
hash[param] = _to_hash(value)
|
279
|
-
end
|
280
|
-
hash
|
281
|
-
end
|
282
|
-
|
283
|
-
# Outputs non-array value in the form of hash
|
284
|
-
# For object, use to_hash. Otherwise, just return the value
|
285
|
-
# @param [Object] value Any valid value
|
286
|
-
# @return [Hash] Returns the value in the form of hash
|
287
|
-
def _to_hash(value)
|
288
|
-
if value.is_a?(Array)
|
289
|
-
value.compact.map { |v| _to_hash(v) }
|
290
|
-
elsif value.is_a?(Hash)
|
291
|
-
{}.tap do |hash|
|
292
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
293
|
-
end
|
294
|
-
elsif value.respond_to? :to_hash
|
295
|
-
value.to_hash
|
296
|
-
else
|
297
|
-
value
|
298
|
-
end
|
299
|
-
end
|
300
154
|
end
|
301
155
|
end
|