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
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents text bounds within a paragraph or portion.
|
27
|
-
class TextBounds
|
27
|
+
class TextBounds < BaseObject
|
28
28
|
# X coordinate of the text bounds.
|
29
29
|
attr_accessor :x
|
30
30
|
|
@@ -137,129 +137,5 @@ module AsposeSlidesCloud
|
|
137
137
|
def hash
|
138
138
|
[x, y, width, height].hash
|
139
139
|
end
|
140
|
-
|
141
|
-
# Builds the object from hash
|
142
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
143
|
-
# @return [Object] Returns the model itself
|
144
|
-
def build_from_hash(attributes)
|
145
|
-
return nil unless attributes.is_a?(Hash)
|
146
|
-
self.class.swagger_types.each_pair do |key, type|
|
147
|
-
mapKey = self.class.attribute_map[key]
|
148
|
-
if !mapKey.nil?
|
149
|
-
val = attributes[mapKey]
|
150
|
-
if val.nil?
|
151
|
-
mapKeyString = mapKey.to_s
|
152
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
153
|
-
mapKey = mapKeyString.to_sym
|
154
|
-
val = attributes[mapKey]
|
155
|
-
end
|
156
|
-
if !val.nil?
|
157
|
-
if type =~ /\AArray<(.*)>/i
|
158
|
-
# check to ensure the input is an array given that the the attribute
|
159
|
-
# is documented as an array but the input is not
|
160
|
-
if val.is_a?(Array)
|
161
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
162
|
-
end
|
163
|
-
else
|
164
|
-
self.send("#{key}=", _deserialize(type, val))
|
165
|
-
end
|
166
|
-
end
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
|
-
self
|
171
|
-
end
|
172
|
-
|
173
|
-
# Deserializes the data based on type
|
174
|
-
# @param string type Data type
|
175
|
-
# @param string value Value to be deserialized
|
176
|
-
# @return [Object] Deserialized data
|
177
|
-
def _deserialize(type, value)
|
178
|
-
if value.nil?
|
179
|
-
nil
|
180
|
-
else
|
181
|
-
case type.to_sym
|
182
|
-
when :DateTime
|
183
|
-
DateTime.parse(value)
|
184
|
-
when :Date
|
185
|
-
Date.parse(value)
|
186
|
-
when :String
|
187
|
-
value.to_s
|
188
|
-
when :Integer
|
189
|
-
value.to_i
|
190
|
-
when :Float
|
191
|
-
value.to_f
|
192
|
-
when :BOOLEAN
|
193
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
194
|
-
true
|
195
|
-
else
|
196
|
-
false
|
197
|
-
end
|
198
|
-
when :Object
|
199
|
-
# generic object (usually a Hash), return directly
|
200
|
-
value
|
201
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
202
|
-
inner_type = Regexp.last_match[:inner_type]
|
203
|
-
value.map { |v| _deserialize(inner_type, v) }
|
204
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
205
|
-
k_type = Regexp.last_match[:k_type]
|
206
|
-
v_type = Regexp.last_match[:v_type]
|
207
|
-
{}.tap do |hash|
|
208
|
-
value.each do |k, v|
|
209
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
210
|
-
end
|
211
|
-
end
|
212
|
-
else # model
|
213
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
214
|
-
if registry_type
|
215
|
-
type = registry_type
|
216
|
-
end
|
217
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
218
|
-
temp_model.build_from_hash(value)
|
219
|
-
end
|
220
|
-
end
|
221
|
-
end
|
222
|
-
|
223
|
-
# Returns the string representation of the object
|
224
|
-
# @return [String] String presentation of the object
|
225
|
-
def to_s
|
226
|
-
to_hash.to_s
|
227
|
-
end
|
228
|
-
|
229
|
-
# to_body is an alias to to_hash (backward compatibility)
|
230
|
-
# @return [Hash] Returns the object in the form of hash
|
231
|
-
def to_body
|
232
|
-
to_hash
|
233
|
-
end
|
234
|
-
|
235
|
-
# Returns the object in the form of hash
|
236
|
-
# @return [Hash] Returns the object in the form of hash
|
237
|
-
def to_hash
|
238
|
-
hash = {}
|
239
|
-
self.class.attribute_map.each_pair do |attr, param|
|
240
|
-
value = self.send(attr)
|
241
|
-
next if value.nil?
|
242
|
-
hash[param] = _to_hash(value)
|
243
|
-
end
|
244
|
-
hash
|
245
|
-
end
|
246
|
-
|
247
|
-
# Outputs non-array value in the form of hash
|
248
|
-
# For object, use to_hash. Otherwise, just return the value
|
249
|
-
# @param [Object] value Any valid value
|
250
|
-
# @return [Hash] Returns the value in the form of hash
|
251
|
-
def _to_hash(value)
|
252
|
-
if value.is_a?(Array)
|
253
|
-
value.compact.map { |v| _to_hash(v) }
|
254
|
-
elsif value.is_a?(Hash)
|
255
|
-
{}.tap do |hash|
|
256
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
257
|
-
end
|
258
|
-
elsif value.respond_to? :to_hash
|
259
|
-
value.to_hash
|
260
|
-
else
|
261
|
-
value
|
262
|
-
end
|
263
|
-
end
|
264
140
|
end
|
265
141
|
end
|
@@ -28,28 +28,6 @@ module AsposeSlidesCloud
|
|
28
28
|
# Value
|
29
29
|
attr_accessor :value
|
30
30
|
|
31
|
-
class EnumAttributeValidator
|
32
|
-
attr_reader :datatype
|
33
|
-
attr_reader :allowable_values
|
34
|
-
|
35
|
-
def initialize(datatype, allowable_values)
|
36
|
-
@allowable_values = allowable_values.map do |value|
|
37
|
-
case datatype.to_s
|
38
|
-
when /Integer/i
|
39
|
-
value.to_i
|
40
|
-
when /Float/i
|
41
|
-
value.to_f
|
42
|
-
else
|
43
|
-
value
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def valid?(value)
|
49
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
32
|
def self.attribute_map
|
55
33
|
super.merge({
|
@@ -109,129 +87,5 @@ module AsposeSlidesCloud
|
|
109
87
|
def hash
|
110
88
|
[type, value].hash
|
111
89
|
end
|
112
|
-
|
113
|
-
# Builds the object from hash
|
114
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
-
# @return [Object] Returns the model itself
|
116
|
-
def build_from_hash(attributes)
|
117
|
-
return nil unless attributes.is_a?(Hash)
|
118
|
-
self.class.swagger_types.each_pair do |key, type|
|
119
|
-
mapKey = self.class.attribute_map[key]
|
120
|
-
if !mapKey.nil?
|
121
|
-
val = attributes[mapKey]
|
122
|
-
if val.nil?
|
123
|
-
mapKeyString = mapKey.to_s
|
124
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
125
|
-
mapKey = mapKeyString.to_sym
|
126
|
-
val = attributes[mapKey]
|
127
|
-
end
|
128
|
-
if !val.nil?
|
129
|
-
if type =~ /\AArray<(.*)>/i
|
130
|
-
# check to ensure the input is an array given that the the attribute
|
131
|
-
# is documented as an array but the input is not
|
132
|
-
if val.is_a?(Array)
|
133
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
134
|
-
end
|
135
|
-
else
|
136
|
-
self.send("#{key}=", _deserialize(type, val))
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
self
|
143
|
-
end
|
144
|
-
|
145
|
-
# Deserializes the data based on type
|
146
|
-
# @param string type Data type
|
147
|
-
# @param string value Value to be deserialized
|
148
|
-
# @return [Object] Deserialized data
|
149
|
-
def _deserialize(type, value)
|
150
|
-
if value.nil?
|
151
|
-
nil
|
152
|
-
else
|
153
|
-
case type.to_sym
|
154
|
-
when :DateTime
|
155
|
-
DateTime.parse(value)
|
156
|
-
when :Date
|
157
|
-
Date.parse(value)
|
158
|
-
when :String
|
159
|
-
value.to_s
|
160
|
-
when :Integer
|
161
|
-
value.to_i
|
162
|
-
when :Float
|
163
|
-
value.to_f
|
164
|
-
when :BOOLEAN
|
165
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
166
|
-
true
|
167
|
-
else
|
168
|
-
false
|
169
|
-
end
|
170
|
-
when :Object
|
171
|
-
# generic object (usually a Hash), return directly
|
172
|
-
value
|
173
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
174
|
-
inner_type = Regexp.last_match[:inner_type]
|
175
|
-
value.map { |v| _deserialize(inner_type, v) }
|
176
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
177
|
-
k_type = Regexp.last_match[:k_type]
|
178
|
-
v_type = Regexp.last_match[:v_type]
|
179
|
-
{}.tap do |hash|
|
180
|
-
value.each do |k, v|
|
181
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
182
|
-
end
|
183
|
-
end
|
184
|
-
else # model
|
185
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
186
|
-
if registry_type
|
187
|
-
type = registry_type
|
188
|
-
end
|
189
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
190
|
-
temp_model.build_from_hash(value)
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
# Returns the string representation of the object
|
196
|
-
# @return [String] String presentation of the object
|
197
|
-
def to_s
|
198
|
-
to_hash.to_s
|
199
|
-
end
|
200
|
-
|
201
|
-
# to_body is an alias to to_hash (backward compatibility)
|
202
|
-
# @return [Hash] Returns the object in the form of hash
|
203
|
-
def to_body
|
204
|
-
to_hash
|
205
|
-
end
|
206
|
-
|
207
|
-
# Returns the object in the form of hash
|
208
|
-
# @return [Hash] Returns the object in the form of hash
|
209
|
-
def to_hash
|
210
|
-
hash = {}
|
211
|
-
self.class.attribute_map.each_pair do |attr, param|
|
212
|
-
value = self.send(attr)
|
213
|
-
next if value.nil?
|
214
|
-
hash[param] = _to_hash(value)
|
215
|
-
end
|
216
|
-
hash
|
217
|
-
end
|
218
|
-
|
219
|
-
# Outputs non-array value in the form of hash
|
220
|
-
# For object, use to_hash. Otherwise, just return the value
|
221
|
-
# @param [Object] value Any valid value
|
222
|
-
# @return [Hash] Returns the value in the form of hash
|
223
|
-
def _to_hash(value)
|
224
|
-
if value.is_a?(Array)
|
225
|
-
value.compact.map { |v| _to_hash(v) }
|
226
|
-
elsif value.is_a?(Hash)
|
227
|
-
{}.tap do |hash|
|
228
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
229
|
-
end
|
230
|
-
elsif value.respond_to? :to_hash
|
231
|
-
value.to_hash
|
232
|
-
else
|
233
|
-
value
|
234
|
-
end
|
235
|
-
end
|
236
90
|
end
|
237
91
|
end
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Contains the TextFrame's formatting properties.
|
27
|
-
class TextFrameFormat
|
27
|
+
class TextFrameFormat < BaseObject
|
28
28
|
# Represents 3d effect properties for a text.
|
29
29
|
attr_accessor :three_d_format
|
30
30
|
|
@@ -73,28 +73,6 @@ module AsposeSlidesCloud
|
|
73
73
|
# Default portion format.
|
74
74
|
attr_accessor :default_paragraph_format
|
75
75
|
|
76
|
-
class EnumAttributeValidator
|
77
|
-
attr_reader :datatype
|
78
|
-
attr_reader :allowable_values
|
79
|
-
|
80
|
-
def initialize(datatype, allowable_values)
|
81
|
-
@allowable_values = allowable_values.map do |value|
|
82
|
-
case datatype.to_s
|
83
|
-
when /Integer/i
|
84
|
-
value.to_i
|
85
|
-
when /Float/i
|
86
|
-
value.to_f
|
87
|
-
else
|
88
|
-
value
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
def valid?(value)
|
94
|
-
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
99
77
|
def self.attribute_map
|
100
78
|
{
|
@@ -331,129 +309,5 @@ module AsposeSlidesCloud
|
|
331
309
|
def hash
|
332
310
|
[three_d_format, transform, margin_left, margin_right, margin_top, margin_bottom, wrap_text, anchoring_type, center_text, text_vertical_type, autofit_type, column_count, column_spacing, keep_text_flat, rotation_angle, default_paragraph_format].hash
|
333
311
|
end
|
334
|
-
|
335
|
-
# Builds the object from hash
|
336
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
337
|
-
# @return [Object] Returns the model itself
|
338
|
-
def build_from_hash(attributes)
|
339
|
-
return nil unless attributes.is_a?(Hash)
|
340
|
-
self.class.swagger_types.each_pair do |key, type|
|
341
|
-
mapKey = self.class.attribute_map[key]
|
342
|
-
if !mapKey.nil?
|
343
|
-
val = attributes[mapKey]
|
344
|
-
if val.nil?
|
345
|
-
mapKeyString = mapKey.to_s
|
346
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
347
|
-
mapKey = mapKeyString.to_sym
|
348
|
-
val = attributes[mapKey]
|
349
|
-
end
|
350
|
-
if !val.nil?
|
351
|
-
if type =~ /\AArray<(.*)>/i
|
352
|
-
# check to ensure the input is an array given that the the attribute
|
353
|
-
# is documented as an array but the input is not
|
354
|
-
if val.is_a?(Array)
|
355
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
356
|
-
end
|
357
|
-
else
|
358
|
-
self.send("#{key}=", _deserialize(type, val))
|
359
|
-
end
|
360
|
-
end
|
361
|
-
end
|
362
|
-
end
|
363
|
-
|
364
|
-
self
|
365
|
-
end
|
366
|
-
|
367
|
-
# Deserializes the data based on type
|
368
|
-
# @param string type Data type
|
369
|
-
# @param string value Value to be deserialized
|
370
|
-
# @return [Object] Deserialized data
|
371
|
-
def _deserialize(type, value)
|
372
|
-
if value.nil?
|
373
|
-
nil
|
374
|
-
else
|
375
|
-
case type.to_sym
|
376
|
-
when :DateTime
|
377
|
-
DateTime.parse(value)
|
378
|
-
when :Date
|
379
|
-
Date.parse(value)
|
380
|
-
when :String
|
381
|
-
value.to_s
|
382
|
-
when :Integer
|
383
|
-
value.to_i
|
384
|
-
when :Float
|
385
|
-
value.to_f
|
386
|
-
when :BOOLEAN
|
387
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
388
|
-
true
|
389
|
-
else
|
390
|
-
false
|
391
|
-
end
|
392
|
-
when :Object
|
393
|
-
# generic object (usually a Hash), return directly
|
394
|
-
value
|
395
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
396
|
-
inner_type = Regexp.last_match[:inner_type]
|
397
|
-
value.map { |v| _deserialize(inner_type, v) }
|
398
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
399
|
-
k_type = Regexp.last_match[:k_type]
|
400
|
-
v_type = Regexp.last_match[:v_type]
|
401
|
-
{}.tap do |hash|
|
402
|
-
value.each do |k, v|
|
403
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
404
|
-
end
|
405
|
-
end
|
406
|
-
else # model
|
407
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
408
|
-
if registry_type
|
409
|
-
type = registry_type
|
410
|
-
end
|
411
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
412
|
-
temp_model.build_from_hash(value)
|
413
|
-
end
|
414
|
-
end
|
415
|
-
end
|
416
|
-
|
417
|
-
# Returns the string representation of the object
|
418
|
-
# @return [String] String presentation of the object
|
419
|
-
def to_s
|
420
|
-
to_hash.to_s
|
421
|
-
end
|
422
|
-
|
423
|
-
# to_body is an alias to to_hash (backward compatibility)
|
424
|
-
# @return [Hash] Returns the object in the form of hash
|
425
|
-
def to_body
|
426
|
-
to_hash
|
427
|
-
end
|
428
|
-
|
429
|
-
# Returns the object in the form of hash
|
430
|
-
# @return [Hash] Returns the object in the form of hash
|
431
|
-
def to_hash
|
432
|
-
hash = {}
|
433
|
-
self.class.attribute_map.each_pair do |attr, param|
|
434
|
-
value = self.send(attr)
|
435
|
-
next if value.nil?
|
436
|
-
hash[param] = _to_hash(value)
|
437
|
-
end
|
438
|
-
hash
|
439
|
-
end
|
440
|
-
|
441
|
-
# Outputs non-array value in the form of hash
|
442
|
-
# For object, use to_hash. Otherwise, just return the value
|
443
|
-
# @param [Object] value Any valid value
|
444
|
-
# @return [Hash] Returns the value in the form of hash
|
445
|
-
def _to_hash(value)
|
446
|
-
if value.is_a?(Array)
|
447
|
-
value.compact.map { |v| _to_hash(v) }
|
448
|
-
elsif value.is_a?(Hash)
|
449
|
-
{}.tap do |hash|
|
450
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
451
|
-
end
|
452
|
-
elsif value.respond_to? :to_hash
|
453
|
-
value.to_hash
|
454
|
-
else
|
455
|
-
value
|
456
|
-
end
|
457
|
-
end
|
458
312
|
end
|
459
313
|
end
|
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents text item, referenced by TextItems
|
27
|
-
class TextItem
|
27
|
+
class TextItem < BaseObject
|
28
28
|
# Gets or sets the URI to resource that contains text
|
29
29
|
attr_accessor :uri
|
30
30
|
|
@@ -97,129 +97,5 @@ module AsposeSlidesCloud
|
|
97
97
|
def hash
|
98
98
|
[uri, text].hash
|
99
99
|
end
|
100
|
-
|
101
|
-
# Builds the object from hash
|
102
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
-
# @return [Object] Returns the model itself
|
104
|
-
def build_from_hash(attributes)
|
105
|
-
return nil unless attributes.is_a?(Hash)
|
106
|
-
self.class.swagger_types.each_pair do |key, type|
|
107
|
-
mapKey = self.class.attribute_map[key]
|
108
|
-
if !mapKey.nil?
|
109
|
-
val = attributes[mapKey]
|
110
|
-
if val.nil?
|
111
|
-
mapKeyString = mapKey.to_s
|
112
|
-
mapKeyString[0] = mapKeyString[0].downcase
|
113
|
-
mapKey = mapKeyString.to_sym
|
114
|
-
val = attributes[mapKey]
|
115
|
-
end
|
116
|
-
if !val.nil?
|
117
|
-
if type =~ /\AArray<(.*)>/i
|
118
|
-
# check to ensure the input is an array given that the the attribute
|
119
|
-
# is documented as an array but the input is not
|
120
|
-
if val.is_a?(Array)
|
121
|
-
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
122
|
-
end
|
123
|
-
else
|
124
|
-
self.send("#{key}=", _deserialize(type, val))
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
self
|
131
|
-
end
|
132
|
-
|
133
|
-
# Deserializes the data based on type
|
134
|
-
# @param string type Data type
|
135
|
-
# @param string value Value to be deserialized
|
136
|
-
# @return [Object] Deserialized data
|
137
|
-
def _deserialize(type, value)
|
138
|
-
if value.nil?
|
139
|
-
nil
|
140
|
-
else
|
141
|
-
case type.to_sym
|
142
|
-
when :DateTime
|
143
|
-
DateTime.parse(value)
|
144
|
-
when :Date
|
145
|
-
Date.parse(value)
|
146
|
-
when :String
|
147
|
-
value.to_s
|
148
|
-
when :Integer
|
149
|
-
value.to_i
|
150
|
-
when :Float
|
151
|
-
value.to_f
|
152
|
-
when :BOOLEAN
|
153
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
154
|
-
true
|
155
|
-
else
|
156
|
-
false
|
157
|
-
end
|
158
|
-
when :Object
|
159
|
-
# generic object (usually a Hash), return directly
|
160
|
-
value
|
161
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
162
|
-
inner_type = Regexp.last_match[:inner_type]
|
163
|
-
value.map { |v| _deserialize(inner_type, v) }
|
164
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
165
|
-
k_type = Regexp.last_match[:k_type]
|
166
|
-
v_type = Regexp.last_match[:v_type]
|
167
|
-
{}.tap do |hash|
|
168
|
-
value.each do |k, v|
|
169
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
170
|
-
end
|
171
|
-
end
|
172
|
-
else # model
|
173
|
-
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
174
|
-
if registry_type
|
175
|
-
type = registry_type
|
176
|
-
end
|
177
|
-
temp_model = AsposeSlidesCloud.const_get(type).new
|
178
|
-
temp_model.build_from_hash(value)
|
179
|
-
end
|
180
|
-
end
|
181
|
-
end
|
182
|
-
|
183
|
-
# Returns the string representation of the object
|
184
|
-
# @return [String] String presentation of the object
|
185
|
-
def to_s
|
186
|
-
to_hash.to_s
|
187
|
-
end
|
188
|
-
|
189
|
-
# to_body is an alias to to_hash (backward compatibility)
|
190
|
-
# @return [Hash] Returns the object in the form of hash
|
191
|
-
def to_body
|
192
|
-
to_hash
|
193
|
-
end
|
194
|
-
|
195
|
-
# Returns the object in the form of hash
|
196
|
-
# @return [Hash] Returns the object in the form of hash
|
197
|
-
def to_hash
|
198
|
-
hash = {}
|
199
|
-
self.class.attribute_map.each_pair do |attr, param|
|
200
|
-
value = self.send(attr)
|
201
|
-
next if value.nil?
|
202
|
-
hash[param] = _to_hash(value)
|
203
|
-
end
|
204
|
-
hash
|
205
|
-
end
|
206
|
-
|
207
|
-
# Outputs non-array value in the form of hash
|
208
|
-
# For object, use to_hash. Otherwise, just return the value
|
209
|
-
# @param [Object] value Any valid value
|
210
|
-
# @return [Hash] Returns the value in the form of hash
|
211
|
-
def _to_hash(value)
|
212
|
-
if value.is_a?(Array)
|
213
|
-
value.compact.map { |v| _to_hash(v) }
|
214
|
-
elsif value.is_a?(Hash)
|
215
|
-
{}.tap do |hash|
|
216
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
217
|
-
end
|
218
|
-
elsif value.respond_to? :to_hash
|
219
|
-
value.to_hash
|
220
|
-
else
|
221
|
-
value
|
222
|
-
end
|
223
|
-
end
|
224
100
|
end
|
225
101
|
end
|