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, placeholder_links].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
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents the plot area
|
27
|
-
class PlotArea
|
27
|
+
class PlotArea < BaseObject
|
28
28
|
# the X location
|
29
29
|
attr_accessor :x
|
30
30
|
|
@@ -49,28 +49,6 @@ module AsposeSlidesCloud
|
|
49
49
|
# Get or sets the line format.
|
50
50
|
attr_accessor :line_format
|
51
51
|
|
52
|
-
class EnumAttributeValidator
|
53
|
-
attr_reader :datatype
|
54
|
-
attr_reader :allowable_values
|
55
|
-
|
56
|
-
def initialize(datatype, allowable_values)
|
57
|
-
@allowable_values = allowable_values.map do |value|
|
58
|
-
case datatype.to_s
|
59
|
-
when /Integer/i
|
60
|
-
value.to_i
|
61
|
-
when /Float/i
|
62
|
-
value.to_f
|
63
|
-
else
|
64
|
-
value
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
def valid?(value)
|
70
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
75
53
|
def self.attribute_map
|
76
54
|
{
|
@@ -191,129 +169,5 @@ module AsposeSlidesCloud
|
|
191
169
|
def hash
|
192
170
|
[x, y, width, height, layout_target_type, fill_format, effect_format, line_format].hash
|
193
171
|
end
|
194
|
-
|
195
|
-
# Builds the object from hash
|
196
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
197
|
-
# @return [Object] Returns the model itself
|
198
|
-
def build_from_hash(attributes)
|
199
|
-
return nil unless attributes.is_a?(Hash)
|
200
|
-
self.class.swagger_types.each_pair do |key, type|
|
201
|
-
mapKey = self.class.attribute_map[key]
|
202
|
-
if !mapKey.nil?
|
203
|
-
val = attributes[mapKey]
|
204
|
-
if val.nil?
|
205
|
-
mapKeyString = mapKey.to_s
|
206
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
207
|
-
mapKey = mapKeyString.to_sym
|
208
|
-
val = attributes[mapKey]
|
209
|
-
end
|
210
|
-
if !val.nil?
|
211
|
-
if type =~ /\AArray<(.*)>/i
|
212
|
-
# check to ensure the input is an array given that the the attribute
|
213
|
-
# is documented as an array but the input is not
|
214
|
-
if val.is_a?(Array)
|
215
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
216
|
-
end
|
217
|
-
else
|
218
|
-
self.send("#{key}=", _deserialize(type, val))
|
219
|
-
end
|
220
|
-
end
|
221
|
-
end
|
222
|
-
end
|
223
|
-
|
224
|
-
self
|
225
|
-
end
|
226
|
-
|
227
|
-
# Deserializes the data based on type
|
228
|
-
# @param string type Data type
|
229
|
-
# @param string value Value to be deserialized
|
230
|
-
# @return [Object] Deserialized data
|
231
|
-
def _deserialize(type, value)
|
232
|
-
if value.nil?
|
233
|
-
nil
|
234
|
-
else
|
235
|
-
case type.to_sym
|
236
|
-
when :DateTime
|
237
|
-
DateTime.parse(value)
|
238
|
-
when :Date
|
239
|
-
Date.parse(value)
|
240
|
-
when :String
|
241
|
-
value.to_s
|
242
|
-
when :Integer
|
243
|
-
value.to_i
|
244
|
-
when :Float
|
245
|
-
value.to_f
|
246
|
-
when :BOOLEAN
|
247
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
248
|
-
true
|
249
|
-
else
|
250
|
-
false
|
251
|
-
end
|
252
|
-
when :Object
|
253
|
-
# generic object (usually a Hash), return directly
|
254
|
-
value
|
255
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
256
|
-
inner_type = Regexp.last_match[:inner_type]
|
257
|
-
value.map { |v| _deserialize(inner_type, v) }
|
258
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
259
|
-
k_type = Regexp.last_match[:k_type]
|
260
|
-
v_type = Regexp.last_match[:v_type]
|
261
|
-
{}.tap do |hash|
|
262
|
-
value.each do |k, v|
|
263
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
264
|
-
end
|
265
|
-
end
|
266
|
-
else # model
|
267
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
268
|
-
if registry_type
|
269
|
-
type = registry_type
|
270
|
-
end
|
271
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
272
|
-
temp_model.build_from_hash(value)
|
273
|
-
end
|
274
|
-
end
|
275
|
-
end
|
276
|
-
|
277
|
-
# Returns the string representation of the object
|
278
|
-
# @return [String] String presentation of the object
|
279
|
-
def to_s
|
280
|
-
to_hash.to_s
|
281
|
-
end
|
282
|
-
|
283
|
-
# to_body is an alias to to_hash (backward compatibility)
|
284
|
-
# @return [Hash] Returns the object in the form of hash
|
285
|
-
def to_body
|
286
|
-
to_hash
|
287
|
-
end
|
288
|
-
|
289
|
-
# Returns the object in the form of hash
|
290
|
-
# @return [Hash] Returns the object in the form of hash
|
291
|
-
def to_hash
|
292
|
-
hash = {}
|
293
|
-
self.class.attribute_map.each_pair do |attr, param|
|
294
|
-
value = self.send(attr)
|
295
|
-
next if value.nil?
|
296
|
-
hash[param] = _to_hash(value)
|
297
|
-
end
|
298
|
-
hash
|
299
|
-
end
|
300
|
-
|
301
|
-
# Outputs non-array value in the form of hash
|
302
|
-
# For object, use to_hash. Otherwise, just return the value
|
303
|
-
# @param [Object] value Any valid value
|
304
|
-
# @return [Hash] Returns the value in the form of hash
|
305
|
-
def _to_hash(value)
|
306
|
-
if value.is_a?(Array)
|
307
|
-
value.compact.map { |v| _to_hash(v) }
|
308
|
-
elsif value.is_a?(Hash)
|
309
|
-
{}.tap do |hash|
|
310
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
311
|
-
end
|
312
|
-
elsif value.respond_to? :to_hash
|
313
|
-
value.to_hash
|
314
|
-
else
|
315
|
-
value
|
316
|
-
end
|
317
|
-
end
|
318
172
|
end
|
319
173
|
end
|
@@ -118,28 +118,6 @@ module AsposeSlidesCloud
|
|
118
118
|
# Returns or sets the complex script font info.
|
119
119
|
attr_accessor :complex_script_font
|
120
120
|
|
121
|
-
class EnumAttributeValidator
|
122
|
-
attr_reader :datatype
|
123
|
-
attr_reader :allowable_values
|
124
|
-
|
125
|
-
def initialize(datatype, allowable_values)
|
126
|
-
@allowable_values = allowable_values.map do |value|
|
127
|
-
case datatype.to_s
|
128
|
-
when /Integer/i
|
129
|
-
value.to_i
|
130
|
-
when /Float/i
|
131
|
-
value.to_f
|
132
|
-
else
|
133
|
-
value
|
134
|
-
end
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
def valid?(value)
|
139
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
121
|
# Attribute mapping from ruby-style variable name to JSON key.
|
144
122
|
def self.attribute_map
|
145
123
|
super.merge({
|
@@ -529,129 +507,5 @@ module AsposeSlidesCloud
|
|
529
507
|
def hash
|
530
508
|
[self_uri, alternate_links, text, math_paragraph, font_bold, font_italic, font_underline, strikethrough_type, text_cap_type, escapement, spacing, font_color, highlight_color, font_height, normalise_height, proof_disabled, smart_tag_clean, kerning_minimal_size, kumimoji, language_id, alternative_language_id, is_hard_underline_fill, is_hard_underline_line, fill_format, effect_format, line_format, underline_fill_format, underline_line_format, hyperlink_click, hyperlink_mouse_over, latin_font, east_asian_font, complex_script_font].hash
|
531
509
|
end
|
532
|
-
|
533
|
-
# Builds the object from hash
|
534
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
535
|
-
# @return [Object] Returns the model itself
|
536
|
-
def build_from_hash(attributes)
|
537
|
-
return nil unless attributes.is_a?(Hash)
|
538
|
-
self.class.swagger_types.each_pair do |key, type|
|
539
|
-
mapKey = self.class.attribute_map[key]
|
540
|
-
if !mapKey.nil?
|
541
|
-
val = attributes[mapKey]
|
542
|
-
if val.nil?
|
543
|
-
mapKeyString = mapKey.to_s
|
544
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
545
|
-
mapKey = mapKeyString.to_sym
|
546
|
-
val = attributes[mapKey]
|
547
|
-
end
|
548
|
-
if !val.nil?
|
549
|
-
if type =~ /\AArray<(.*)>/i
|
550
|
-
# check to ensure the input is an array given that the the attribute
|
551
|
-
# is documented as an array but the input is not
|
552
|
-
if val.is_a?(Array)
|
553
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
554
|
-
end
|
555
|
-
else
|
556
|
-
self.send("#{key}=", _deserialize(type, val))
|
557
|
-
end
|
558
|
-
end
|
559
|
-
end
|
560
|
-
end
|
561
|
-
|
562
|
-
self
|
563
|
-
end
|
564
|
-
|
565
|
-
# Deserializes the data based on type
|
566
|
-
# @param string type Data type
|
567
|
-
# @param string value Value to be deserialized
|
568
|
-
# @return [Object] Deserialized data
|
569
|
-
def _deserialize(type, value)
|
570
|
-
if value.nil?
|
571
|
-
nil
|
572
|
-
else
|
573
|
-
case type.to_sym
|
574
|
-
when :DateTime
|
575
|
-
DateTime.parse(value)
|
576
|
-
when :Date
|
577
|
-
Date.parse(value)
|
578
|
-
when :String
|
579
|
-
value.to_s
|
580
|
-
when :Integer
|
581
|
-
value.to_i
|
582
|
-
when :Float
|
583
|
-
value.to_f
|
584
|
-
when :BOOLEAN
|
585
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
586
|
-
true
|
587
|
-
else
|
588
|
-
false
|
589
|
-
end
|
590
|
-
when :Object
|
591
|
-
# generic object (usually a Hash), return directly
|
592
|
-
value
|
593
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
594
|
-
inner_type = Regexp.last_match[:inner_type]
|
595
|
-
value.map { |v| _deserialize(inner_type, v) }
|
596
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
597
|
-
k_type = Regexp.last_match[:k_type]
|
598
|
-
v_type = Regexp.last_match[:v_type]
|
599
|
-
{}.tap do |hash|
|
600
|
-
value.each do |k, v|
|
601
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
602
|
-
end
|
603
|
-
end
|
604
|
-
else # model
|
605
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
606
|
-
if registry_type
|
607
|
-
type = registry_type
|
608
|
-
end
|
609
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
610
|
-
temp_model.build_from_hash(value)
|
611
|
-
end
|
612
|
-
end
|
613
|
-
end
|
614
|
-
|
615
|
-
# Returns the string representation of the object
|
616
|
-
# @return [String] String presentation of the object
|
617
|
-
def to_s
|
618
|
-
to_hash.to_s
|
619
|
-
end
|
620
|
-
|
621
|
-
# to_body is an alias to to_hash (backward compatibility)
|
622
|
-
# @return [Hash] Returns the object in the form of hash
|
623
|
-
def to_body
|
624
|
-
to_hash
|
625
|
-
end
|
626
|
-
|
627
|
-
# Returns the object in the form of hash
|
628
|
-
# @return [Hash] Returns the object in the form of hash
|
629
|
-
def to_hash
|
630
|
-
hash = {}
|
631
|
-
self.class.attribute_map.each_pair do |attr, param|
|
632
|
-
value = self.send(attr)
|
633
|
-
next if value.nil?
|
634
|
-
hash[param] = _to_hash(value)
|
635
|
-
end
|
636
|
-
hash
|
637
|
-
end
|
638
|
-
|
639
|
-
# Outputs non-array value in the form of hash
|
640
|
-
# For object, use to_hash. Otherwise, just return the value
|
641
|
-
# @param [Object] value Any valid value
|
642
|
-
# @return [Hash] Returns the value in the form of hash
|
643
|
-
def _to_hash(value)
|
644
|
-
if value.is_a?(Array)
|
645
|
-
value.compact.map { |v| _to_hash(v) }
|
646
|
-
elsif value.is_a?(Hash)
|
647
|
-
{}.tap do |hash|
|
648
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
649
|
-
end
|
650
|
-
elsif value.respond_to? :to_hash
|
651
|
-
value.to_hash
|
652
|
-
else
|
653
|
-
value
|
654
|
-
end
|
655
|
-
end
|
656
510
|
end
|
657
511
|
end
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents portion format.
|
27
|
-
class PortionFormat
|
27
|
+
class PortionFormat < BaseObject
|
28
28
|
# True for bold font.
|
29
29
|
attr_accessor :font_bold
|
30
30
|
|
@@ -112,28 +112,6 @@ module AsposeSlidesCloud
|
|
112
112
|
# Returns or sets the complex script font info.
|
113
113
|
attr_accessor :complex_script_font
|
114
114
|
|
115
|
-
class EnumAttributeValidator
|
116
|
-
attr_reader :datatype
|
117
|
-
attr_reader :allowable_values
|
118
|
-
|
119
|
-
def initialize(datatype, allowable_values)
|
120
|
-
@allowable_values = allowable_values.map do |value|
|
121
|
-
case datatype.to_s
|
122
|
-
when /Integer/i
|
123
|
-
value.to_i
|
124
|
-
when /Float/i
|
125
|
-
value.to_f
|
126
|
-
else
|
127
|
-
value
|
128
|
-
end
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
def valid?(value)
|
133
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
134
|
-
end
|
135
|
-
end
|
136
|
-
|
137
115
|
# Attribute mapping from ruby-style variable name to JSON key.
|
138
116
|
def self.attribute_map
|
139
117
|
{
|
@@ -509,129 +487,5 @@ module AsposeSlidesCloud
|
|
509
487
|
def hash
|
510
488
|
[font_bold, font_italic, font_underline, strikethrough_type, text_cap_type, escapement, spacing, font_color, highlight_color, font_height, normalise_height, proof_disabled, smart_tag_clean, kerning_minimal_size, kumimoji, language_id, alternative_language_id, is_hard_underline_fill, is_hard_underline_line, fill_format, effect_format, line_format, underline_fill_format, underline_line_format, hyperlink_click, hyperlink_mouse_over, latin_font, east_asian_font, complex_script_font].hash
|
511
489
|
end
|
512
|
-
|
513
|
-
# Builds the object from hash
|
514
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
515
|
-
# @return [Object] Returns the model itself
|
516
|
-
def build_from_hash(attributes)
|
517
|
-
return nil unless attributes.is_a?(Hash)
|
518
|
-
self.class.swagger_types.each_pair do |key, type|
|
519
|
-
mapKey = self.class.attribute_map[key]
|
520
|
-
if !mapKey.nil?
|
521
|
-
val = attributes[mapKey]
|
522
|
-
if val.nil?
|
523
|
-
mapKeyString = mapKey.to_s
|
524
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
525
|
-
mapKey = mapKeyString.to_sym
|
526
|
-
val = attributes[mapKey]
|
527
|
-
end
|
528
|
-
if !val.nil?
|
529
|
-
if type =~ /\AArray<(.*)>/i
|
530
|
-
# check to ensure the input is an array given that the the attribute
|
531
|
-
# is documented as an array but the input is not
|
532
|
-
if val.is_a?(Array)
|
533
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
534
|
-
end
|
535
|
-
else
|
536
|
-
self.send("#{key}=", _deserialize(type, val))
|
537
|
-
end
|
538
|
-
end
|
539
|
-
end
|
540
|
-
end
|
541
|
-
|
542
|
-
self
|
543
|
-
end
|
544
|
-
|
545
|
-
# Deserializes the data based on type
|
546
|
-
# @param string type Data type
|
547
|
-
# @param string value Value to be deserialized
|
548
|
-
# @return [Object] Deserialized data
|
549
|
-
def _deserialize(type, value)
|
550
|
-
if value.nil?
|
551
|
-
nil
|
552
|
-
else
|
553
|
-
case type.to_sym
|
554
|
-
when :DateTime
|
555
|
-
DateTime.parse(value)
|
556
|
-
when :Date
|
557
|
-
Date.parse(value)
|
558
|
-
when :String
|
559
|
-
value.to_s
|
560
|
-
when :Integer
|
561
|
-
value.to_i
|
562
|
-
when :Float
|
563
|
-
value.to_f
|
564
|
-
when :BOOLEAN
|
565
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
566
|
-
true
|
567
|
-
else
|
568
|
-
false
|
569
|
-
end
|
570
|
-
when :Object
|
571
|
-
# generic object (usually a Hash), return directly
|
572
|
-
value
|
573
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
574
|
-
inner_type = Regexp.last_match[:inner_type]
|
575
|
-
value.map { |v| _deserialize(inner_type, v) }
|
576
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
577
|
-
k_type = Regexp.last_match[:k_type]
|
578
|
-
v_type = Regexp.last_match[:v_type]
|
579
|
-
{}.tap do |hash|
|
580
|
-
value.each do |k, v|
|
581
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
582
|
-
end
|
583
|
-
end
|
584
|
-
else # model
|
585
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
586
|
-
if registry_type
|
587
|
-
type = registry_type
|
588
|
-
end
|
589
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
590
|
-
temp_model.build_from_hash(value)
|
591
|
-
end
|
592
|
-
end
|
593
|
-
end
|
594
|
-
|
595
|
-
# Returns the string representation of the object
|
596
|
-
# @return [String] String presentation of the object
|
597
|
-
def to_s
|
598
|
-
to_hash.to_s
|
599
|
-
end
|
600
|
-
|
601
|
-
# to_body is an alias to to_hash (backward compatibility)
|
602
|
-
# @return [Hash] Returns the object in the form of hash
|
603
|
-
def to_body
|
604
|
-
to_hash
|
605
|
-
end
|
606
|
-
|
607
|
-
# Returns the object in the form of hash
|
608
|
-
# @return [Hash] Returns the object in the form of hash
|
609
|
-
def to_hash
|
610
|
-
hash = {}
|
611
|
-
self.class.attribute_map.each_pair do |attr, param|
|
612
|
-
value = self.send(attr)
|
613
|
-
next if value.nil?
|
614
|
-
hash[param] = _to_hash(value)
|
615
|
-
end
|
616
|
-
hash
|
617
|
-
end
|
618
|
-
|
619
|
-
# Outputs non-array value in the form of hash
|
620
|
-
# For object, use to_hash. Otherwise, just return the value
|
621
|
-
# @param [Object] value Any valid value
|
622
|
-
# @return [Hash] Returns the value in the form of hash
|
623
|
-
def _to_hash(value)
|
624
|
-
if value.is_a?(Array)
|
625
|
-
value.compact.map { |v| _to_hash(v) }
|
626
|
-
elsif value.is_a?(Hash)
|
627
|
-
{}.tap do |hash|
|
628
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
629
|
-
end
|
630
|
-
elsif value.respond_to? :to_hash
|
631
|
-
value.to_hash
|
632
|
-
else
|
633
|
-
value
|
634
|
-
end
|
635
|
-
end
|
636
490
|
end
|
637
491
|
end
|