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, items].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
|
@@ -117,129 +117,5 @@ module AsposeSlidesCloud
|
|
117
117
|
def hash
|
118
118
|
[self_uri, alternate_links, name, color_scheme, font_scheme, format_scheme].hash
|
119
119
|
end
|
120
|
-
|
121
|
-
# Builds the object from hash
|
122
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
123
|
-
# @return [Object] Returns the model itself
|
124
|
-
def build_from_hash(attributes)
|
125
|
-
return nil unless attributes.is_a?(Hash)
|
126
|
-
self.class.swagger_types.each_pair do |key, type|
|
127
|
-
mapKey = self.class.attribute_map[key]
|
128
|
-
if !mapKey.nil?
|
129
|
-
val = attributes[mapKey]
|
130
|
-
if val.nil?
|
131
|
-
mapKeyString = mapKey.to_s
|
132
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
133
|
-
mapKey = mapKeyString.to_sym
|
134
|
-
val = attributes[mapKey]
|
135
|
-
end
|
136
|
-
if !val.nil?
|
137
|
-
if type =~ /\AArray<(.*)>/i
|
138
|
-
# check to ensure the input is an array given that the the attribute
|
139
|
-
# is documented as an array but the input is not
|
140
|
-
if val.is_a?(Array)
|
141
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
142
|
-
end
|
143
|
-
else
|
144
|
-
self.send("#{key}=", _deserialize(type, val))
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|
148
|
-
end
|
149
|
-
|
150
|
-
self
|
151
|
-
end
|
152
|
-
|
153
|
-
# Deserializes the data based on type
|
154
|
-
# @param string type Data type
|
155
|
-
# @param string value Value to be deserialized
|
156
|
-
# @return [Object] Deserialized data
|
157
|
-
def _deserialize(type, value)
|
158
|
-
if value.nil?
|
159
|
-
nil
|
160
|
-
else
|
161
|
-
case type.to_sym
|
162
|
-
when :DateTime
|
163
|
-
DateTime.parse(value)
|
164
|
-
when :Date
|
165
|
-
Date.parse(value)
|
166
|
-
when :String
|
167
|
-
value.to_s
|
168
|
-
when :Integer
|
169
|
-
value.to_i
|
170
|
-
when :Float
|
171
|
-
value.to_f
|
172
|
-
when :BOOLEAN
|
173
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
174
|
-
true
|
175
|
-
else
|
176
|
-
false
|
177
|
-
end
|
178
|
-
when :Object
|
179
|
-
# generic object (usually a Hash), return directly
|
180
|
-
value
|
181
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
182
|
-
inner_type = Regexp.last_match[:inner_type]
|
183
|
-
value.map { |v| _deserialize(inner_type, v) }
|
184
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
185
|
-
k_type = Regexp.last_match[:k_type]
|
186
|
-
v_type = Regexp.last_match[:v_type]
|
187
|
-
{}.tap do |hash|
|
188
|
-
value.each do |k, v|
|
189
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
190
|
-
end
|
191
|
-
end
|
192
|
-
else # model
|
193
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
194
|
-
if registry_type
|
195
|
-
type = registry_type
|
196
|
-
end
|
197
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
198
|
-
temp_model.build_from_hash(value)
|
199
|
-
end
|
200
|
-
end
|
201
|
-
end
|
202
|
-
|
203
|
-
# Returns the string representation of the object
|
204
|
-
# @return [String] String presentation of the object
|
205
|
-
def to_s
|
206
|
-
to_hash.to_s
|
207
|
-
end
|
208
|
-
|
209
|
-
# to_body is an alias to to_hash (backward compatibility)
|
210
|
-
# @return [Hash] Returns the object in the form of hash
|
211
|
-
def to_body
|
212
|
-
to_hash
|
213
|
-
end
|
214
|
-
|
215
|
-
# Returns the object in the form of hash
|
216
|
-
# @return [Hash] Returns the object in the form of hash
|
217
|
-
def to_hash
|
218
|
-
hash = {}
|
219
|
-
self.class.attribute_map.each_pair do |attr, param|
|
220
|
-
value = self.send(attr)
|
221
|
-
next if value.nil?
|
222
|
-
hash[param] = _to_hash(value)
|
223
|
-
end
|
224
|
-
hash
|
225
|
-
end
|
226
|
-
|
227
|
-
# Outputs non-array value in the form of hash
|
228
|
-
# For object, use to_hash. Otherwise, just return the value
|
229
|
-
# @param [Object] value Any valid value
|
230
|
-
# @return [Hash] Returns the value in the form of hash
|
231
|
-
def _to_hash(value)
|
232
|
-
if value.is_a?(Array)
|
233
|
-
value.compact.map { |v| _to_hash(v) }
|
234
|
-
elsif value.is_a?(Hash)
|
235
|
-
{}.tap do |hash|
|
236
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
237
|
-
end
|
238
|
-
elsif value.respond_to? :to_hash
|
239
|
-
value.to_hash
|
240
|
-
else
|
241
|
-
value
|
242
|
-
end
|
243
|
-
end
|
244
120
|
end
|
245
121
|
end
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# ThreeDFormat
|
27
|
-
class ThreeDFormat
|
27
|
+
class ThreeDFormat < BaseObject
|
28
28
|
# Type of a bottom 3D bevel.
|
29
29
|
attr_accessor :bevel_bottom
|
30
30
|
|
@@ -55,28 +55,6 @@ module AsposeSlidesCloud
|
|
55
55
|
# Material
|
56
56
|
attr_accessor :material
|
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
|
[bevel_bottom, bevel_top, camera, contour_color, contour_width, depth, extrusion_color, extrusion_height, light_rig, material].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
|
@@ -55,28 +55,6 @@ module AsposeSlidesCloud
|
|
55
55
|
# True if comments that have no author are displayed. (Applies only if comments are displayed).
|
56
56
|
attr_accessor :show_comments_by_no_author
|
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
|
super.merge({
|
@@ -252,129 +230,5 @@ module AsposeSlidesCloud
|
|
252
230
|
def hash
|
253
231
|
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
254
232
|
end
|
255
|
-
|
256
|
-
# Builds the object from hash
|
257
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
258
|
-
# @return [Object] Returns the model itself
|
259
|
-
def build_from_hash(attributes)
|
260
|
-
return nil unless attributes.is_a?(Hash)
|
261
|
-
self.class.swagger_types.each_pair do |key, type|
|
262
|
-
mapKey = self.class.attribute_map[key]
|
263
|
-
if !mapKey.nil?
|
264
|
-
val = attributes[mapKey]
|
265
|
-
if val.nil?
|
266
|
-
mapKeyString = mapKey.to_s
|
267
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
268
|
-
mapKey = mapKeyString.to_sym
|
269
|
-
val = attributes[mapKey]
|
270
|
-
end
|
271
|
-
if !val.nil?
|
272
|
-
if type =~ /\AArray<(.*)>/i
|
273
|
-
# check to ensure the input is an array given that the the attribute
|
274
|
-
# is documented as an array but the input is not
|
275
|
-
if val.is_a?(Array)
|
276
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
277
|
-
end
|
278
|
-
else
|
279
|
-
self.send("#{key}=", _deserialize(type, val))
|
280
|
-
end
|
281
|
-
end
|
282
|
-
end
|
283
|
-
end
|
284
|
-
|
285
|
-
self
|
286
|
-
end
|
287
|
-
|
288
|
-
# Deserializes the data based on type
|
289
|
-
# @param string type Data type
|
290
|
-
# @param string value Value to be deserialized
|
291
|
-
# @return [Object] Deserialized data
|
292
|
-
def _deserialize(type, value)
|
293
|
-
if value.nil?
|
294
|
-
nil
|
295
|
-
else
|
296
|
-
case type.to_sym
|
297
|
-
when :DateTime
|
298
|
-
DateTime.parse(value)
|
299
|
-
when :Date
|
300
|
-
Date.parse(value)
|
301
|
-
when :String
|
302
|
-
value.to_s
|
303
|
-
when :Integer
|
304
|
-
value.to_i
|
305
|
-
when :Float
|
306
|
-
value.to_f
|
307
|
-
when :BOOLEAN
|
308
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
309
|
-
true
|
310
|
-
else
|
311
|
-
false
|
312
|
-
end
|
313
|
-
when :Object
|
314
|
-
# generic object (usually a Hash), return directly
|
315
|
-
value
|
316
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
317
|
-
inner_type = Regexp.last_match[:inner_type]
|
318
|
-
value.map { |v| _deserialize(inner_type, v) }
|
319
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
320
|
-
k_type = Regexp.last_match[:k_type]
|
321
|
-
v_type = Regexp.last_match[:v_type]
|
322
|
-
{}.tap do |hash|
|
323
|
-
value.each do |k, v|
|
324
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
325
|
-
end
|
326
|
-
end
|
327
|
-
else # model
|
328
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
329
|
-
if registry_type
|
330
|
-
type = registry_type
|
331
|
-
end
|
332
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
333
|
-
temp_model.build_from_hash(value)
|
334
|
-
end
|
335
|
-
end
|
336
|
-
end
|
337
|
-
|
338
|
-
# Returns the string representation of the object
|
339
|
-
# @return [String] String presentation of the object
|
340
|
-
def to_s
|
341
|
-
to_hash.to_s
|
342
|
-
end
|
343
|
-
|
344
|
-
# to_body is an alias to to_hash (backward compatibility)
|
345
|
-
# @return [Hash] Returns the object in the form of hash
|
346
|
-
def to_body
|
347
|
-
to_hash
|
348
|
-
end
|
349
|
-
|
350
|
-
# Returns the object in the form of hash
|
351
|
-
# @return [Hash] Returns the object in the form of hash
|
352
|
-
def to_hash
|
353
|
-
hash = {}
|
354
|
-
self.class.attribute_map.each_pair do |attr, param|
|
355
|
-
value = self.send(attr)
|
356
|
-
next if value.nil?
|
357
|
-
hash[param] = _to_hash(value)
|
358
|
-
end
|
359
|
-
hash
|
360
|
-
end
|
361
|
-
|
362
|
-
# Outputs non-array value in the form of hash
|
363
|
-
# For object, use to_hash. Otherwise, just return the value
|
364
|
-
# @param [Object] value Any valid value
|
365
|
-
# @return [Hash] Returns the value in the form of hash
|
366
|
-
def _to_hash(value)
|
367
|
-
if value.is_a?(Array)
|
368
|
-
value.compact.map { |v| _to_hash(v) }
|
369
|
-
elsif value.is_a?(Hash)
|
370
|
-
{}.tap do |hash|
|
371
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
372
|
-
end
|
373
|
-
elsif value.respond_to? :to_hash
|
374
|
-
value.to_hash
|
375
|
-
else
|
376
|
-
value
|
377
|
-
end
|
378
|
-
end
|
379
233
|
end
|
380
234
|
end
|