aspose_slides_cloud 20.5.0 → 20.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/TestData/ChartTest.pptx +0 -0
- data/TestData/Sections.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +12 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +4571 -1683
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +1191 -185
- data/lib/aspose_slides_cloud/api_client.rb +30 -23
- data/lib/aspose_slides_cloud/configuration.rb +7 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/axes.rb +22 -10
- data/lib/aspose_slides_cloud/models/axis.rb +22 -10
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
- data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/chart.rb +32 -220
- data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
- data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
- data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
- data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/connector.rb +32 -244
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
- data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
- data/lib/aspose_slides_cloud/models/document.rb +35 -45
- data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
- data/lib/aspose_slides_cloud/models/effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
- data/lib/aspose_slides_cloud/models/error.rb +22 -10
- data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
- data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
- data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
- data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
- data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
- data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
- data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
- data/lib/aspose_slides_cloud/models/image.rb +30 -40
- data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/images.rb +30 -40
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/input.rb +22 -10
- data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
- data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/legend.rb +22 -10
- data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
- data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
- data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/merge.rb +31 -48
- data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
- data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
- data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
- data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
- data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +63 -35
- data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
- data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
- data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
- data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
- data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
- data/lib/aspose_slides_cloud/models/portion.rb +30 -40
- data/lib/aspose_slides_cloud/models/portions.rb +36 -46
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
- data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
- data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
- data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
- data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
- data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
- data/lib/aspose_slides_cloud/models/save.rb +33 -50
- data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/save_slide.rb +33 -50
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
- data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
- data/lib/aspose_slides_cloud/models/section.rb +234 -0
- data/lib/aspose_slides_cloud/models/sections.rb +209 -0
- data/lib/aspose_slides_cloud/models/series.rb +45 -12
- data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
- data/lib/aspose_slides_cloud/models/shape.rb +32 -244
- data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
- data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide.rb +37 -47
- data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
- data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
- data/lib/aspose_slides_cloud/models/slides.rb +30 -40
- data/lib/aspose_slides_cloud/models/smart_art.rb +32 -220
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +23 -11
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +30 -217
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
- data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
- data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
- data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
- data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/table.rb +32 -220
- data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
- data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
- data/lib/aspose_slides_cloud/models/task.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
- data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
- data/lib/aspose_slides_cloud/models/theme.rb +32 -42
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
- data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
- data/lib/aspose_slides_cloud/models/video_frame.rb +32 -246
- data/lib/aspose_slides_cloud/models/view_properties.rb +30 -40
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +31 -222
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
- data/lib/aspose_slides_cloud/type_registry.rb +320 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +25246 -14028
- data/spec/extra/extra_spec.rb +156 -22
- data/spec/spec_utils.rb +11 -4
- data/testConfig.json +2 -2
- data/testRules.json +172 -77
- metadata +12 -3
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Provides options that control how a presentation is saved in TIFF format.
|
27
|
-
class TiffExportOptions
|
28
|
-
# Export format.
|
29
|
-
attr_accessor :format
|
30
|
-
|
27
|
+
class TiffExportOptions < ExportOptions
|
31
28
|
# Compression type.
|
32
29
|
attr_accessor :compression
|
33
30
|
|
@@ -88,8 +85,7 @@ module AsposeSlidesCloud
|
|
88
85
|
|
89
86
|
# Attribute mapping from ruby-style variable name to JSON key.
|
90
87
|
def self.attribute_map
|
91
|
-
{
|
92
|
-
:'format' => :'Format',
|
88
|
+
super.merge({
|
93
89
|
:'compression' => :'Compression',
|
94
90
|
:'width' => :'Width',
|
95
91
|
:'height' => :'Height',
|
@@ -101,14 +97,13 @@ module AsposeSlidesCloud
|
|
101
97
|
:'comments_position' => :'CommentsPosition',
|
102
98
|
:'comments_area_width' => :'CommentsAreaWidth',
|
103
99
|
:'comments_area_color' => :'CommentsAreaColor',
|
104
|
-
:'show_comments_by_no_author' => :'ShowCommentsByNoAuthor'
|
105
|
-
}
|
100
|
+
:'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
|
101
|
+
})
|
106
102
|
end
|
107
103
|
|
108
104
|
# Attribute type mapping.
|
109
105
|
def self.swagger_types
|
110
|
-
{
|
111
|
-
:'format' => :'String',
|
106
|
+
super.merge({
|
112
107
|
:'compression' => :'String',
|
113
108
|
:'width' => :'Integer',
|
114
109
|
:'height' => :'Integer',
|
@@ -120,23 +115,14 @@ module AsposeSlidesCloud
|
|
120
115
|
:'comments_position' => :'String',
|
121
116
|
:'comments_area_width' => :'Integer',
|
122
117
|
:'comments_area_color' => :'String',
|
123
|
-
:'show_comments_by_no_author' => :'BOOLEAN'
|
124
|
-
}
|
118
|
+
:'show_comments_by_no_author' => :'BOOLEAN',
|
119
|
+
})
|
125
120
|
end
|
126
121
|
|
127
122
|
# Initializes the object
|
128
123
|
# @param [Hash] attributes Model attributes in the form of hash
|
129
124
|
def initialize(attributes = {})
|
130
|
-
|
131
|
-
|
132
|
-
# convert string to symbol for hash key
|
133
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
134
|
-
|
135
|
-
if attributes.has_key?(:'Format')
|
136
|
-
self.format = attributes[:'Format']
|
137
|
-
else
|
138
|
-
self.format = "tiff"
|
139
|
-
end
|
125
|
+
super
|
140
126
|
|
141
127
|
if attributes.has_key?(:'Compression')
|
142
128
|
self.compression = attributes[:'Compression']
|
@@ -185,12 +171,13 @@ module AsposeSlidesCloud
|
|
185
171
|
if attributes.has_key?(:'ShowCommentsByNoAuthor')
|
186
172
|
self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
|
187
173
|
end
|
174
|
+
self.format = "tiff"
|
188
175
|
end
|
189
176
|
|
190
177
|
# Show invalid properties with the reasons. Usually used together with valid?
|
191
178
|
# @return Array for valid properties with the reasons
|
192
179
|
def list_invalid_properties
|
193
|
-
invalid_properties =
|
180
|
+
invalid_properties = super
|
194
181
|
if @compression.nil?
|
195
182
|
invalid_properties.push('invalid value for "compression", compression cannot be nil.')
|
196
183
|
end
|
@@ -225,6 +212,7 @@ module AsposeSlidesCloud
|
|
225
212
|
# Check to see if the all the properties in the model are valid
|
226
213
|
# @return true if the model is valid
|
227
214
|
def valid?
|
215
|
+
return false if !super
|
228
216
|
return false if @compression.nil?
|
229
217
|
compression_validator = EnumAttributeValidator.new('String', ['Default', 'None', 'CCITT3', 'CCITT4', 'LZW', 'RLE'])
|
230
218
|
return false unless compression_validator.valid?(@compression)
|
@@ -288,6 +276,7 @@ module AsposeSlidesCloud
|
|
288
276
|
def ==(o)
|
289
277
|
return true if self.equal?(o)
|
290
278
|
self.class == o.class &&
|
279
|
+
default_regular_font == o.default_regular_font &&
|
291
280
|
format == o.format &&
|
292
281
|
compression == o.compression &&
|
293
282
|
width == o.width &&
|
@@ -312,7 +301,7 @@ module AsposeSlidesCloud
|
|
312
301
|
# Calculates hash code according to all attributes.
|
313
302
|
# @return [Fixnum] Hash code
|
314
303
|
def hash
|
315
|
-
[format, compression, width, height, 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
|
304
|
+
[default_regular_font, format, compression, width, height, 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
|
316
305
|
end
|
317
306
|
|
318
307
|
# Builds the object from hash
|
@@ -321,15 +310,27 @@ module AsposeSlidesCloud
|
|
321
310
|
def build_from_hash(attributes)
|
322
311
|
return nil unless attributes.is_a?(Hash)
|
323
312
|
self.class.swagger_types.each_pair do |key, type|
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
if
|
328
|
-
|
313
|
+
mapKey = self.class.attribute_map[key]
|
314
|
+
if !mapKey.nil?
|
315
|
+
val = attributes[mapKey]
|
316
|
+
if val.nil?
|
317
|
+
mapKeyString = mapKey.to_s
|
318
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
319
|
+
mapKey = mapKeyString.to_sym
|
320
|
+
val = attributes[mapKey]
|
321
|
+
end
|
322
|
+
if !val.nil?
|
323
|
+
if type =~ /\AArray<(.*)>/i
|
324
|
+
# check to ensure the input is an array given that the the attribute
|
325
|
+
# is documented as an array but the input is not
|
326
|
+
if val.is_a?(Array)
|
327
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
328
|
+
end
|
329
|
+
else
|
330
|
+
self.send("#{key}=", _deserialize(type, val))
|
331
|
+
end
|
329
332
|
end
|
330
|
-
|
331
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
332
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
333
|
+
end
|
333
334
|
end
|
334
335
|
|
335
336
|
self
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Update background task.
|
27
|
-
class UpdateBackground
|
28
|
-
# Task type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class UpdateBackground < Task
|
31
28
|
# List of slide indices.
|
32
29
|
attr_accessor :slides
|
33
30
|
|
@@ -58,35 +55,24 @@ module AsposeSlidesCloud
|
|
58
55
|
|
59
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
57
|
def self.attribute_map
|
61
|
-
{
|
62
|
-
:'type' => :'Type',
|
58
|
+
super.merge({
|
63
59
|
:'slides' => :'Slides',
|
64
|
-
:'background' => :'Background'
|
65
|
-
}
|
60
|
+
:'background' => :'Background',
|
61
|
+
})
|
66
62
|
end
|
67
63
|
|
68
64
|
# Attribute type mapping.
|
69
65
|
def self.swagger_types
|
70
|
-
{
|
71
|
-
:'type' => :'String',
|
66
|
+
super.merge({
|
72
67
|
:'slides' => :'Array<Integer>',
|
73
|
-
:'background' => :'SlideBackground'
|
74
|
-
}
|
68
|
+
:'background' => :'SlideBackground',
|
69
|
+
})
|
75
70
|
end
|
76
71
|
|
77
72
|
# Initializes the object
|
78
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
74
|
def initialize(attributes = {})
|
80
|
-
|
81
|
-
|
82
|
-
# convert string to symbol for hash key
|
83
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
84
|
-
|
85
|
-
if attributes.has_key?(:'Type')
|
86
|
-
self.type = attributes[:'Type']
|
87
|
-
else
|
88
|
-
self.type = "UpdateBackground"
|
89
|
-
end
|
75
|
+
super
|
90
76
|
|
91
77
|
if attributes.has_key?(:'Slides')
|
92
78
|
if (value = attributes[:'Slides']).is_a?(Array)
|
@@ -97,38 +83,23 @@ module AsposeSlidesCloud
|
|
97
83
|
if attributes.has_key?(:'Background')
|
98
84
|
self.background = attributes[:'Background']
|
99
85
|
end
|
86
|
+
self.type = "UpdateBackground"
|
100
87
|
end
|
101
88
|
|
102
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
103
90
|
# @return Array for valid properties with the reasons
|
104
91
|
def list_invalid_properties
|
105
|
-
invalid_properties =
|
106
|
-
if @type.nil?
|
107
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
108
|
-
end
|
109
|
-
|
92
|
+
invalid_properties = super
|
110
93
|
invalid_properties
|
111
94
|
end
|
112
95
|
|
113
96
|
# Check to see if the all the properties in the model are valid
|
114
97
|
# @return true if the model is valid
|
115
98
|
def valid?
|
116
|
-
return false if
|
117
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
118
|
-
return false unless type_validator.valid?(@type)
|
99
|
+
return false if !super
|
119
100
|
true
|
120
101
|
end
|
121
102
|
|
122
|
-
# Custom attribute writer method checking allowed values (enum).
|
123
|
-
# @param [Object] type Object to be assigned
|
124
|
-
def type=(type)
|
125
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
126
|
-
unless validator.valid?(type)
|
127
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
128
|
-
end
|
129
|
-
@type = type
|
130
|
-
end
|
131
|
-
|
132
103
|
# Checks equality by comparing each attribute.
|
133
104
|
# @param [Object] Object to be compared
|
134
105
|
def ==(o)
|
@@ -157,15 +128,27 @@ module AsposeSlidesCloud
|
|
157
128
|
def build_from_hash(attributes)
|
158
129
|
return nil unless attributes.is_a?(Hash)
|
159
130
|
self.class.swagger_types.each_pair do |key, type|
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
if
|
164
|
-
|
131
|
+
mapKey = self.class.attribute_map[key]
|
132
|
+
if !mapKey.nil?
|
133
|
+
val = attributes[mapKey]
|
134
|
+
if val.nil?
|
135
|
+
mapKeyString = mapKey.to_s
|
136
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
137
|
+
mapKey = mapKeyString.to_sym
|
138
|
+
val = attributes[mapKey]
|
139
|
+
end
|
140
|
+
if !val.nil?
|
141
|
+
if type =~ /\AArray<(.*)>/i
|
142
|
+
# check to ensure the input is an array given that the the attribute
|
143
|
+
# is documented as an array but the input is not
|
144
|
+
if val.is_a?(Array)
|
145
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
146
|
+
end
|
147
|
+
else
|
148
|
+
self.send("#{key}=", _deserialize(type, val))
|
149
|
+
end
|
165
150
|
end
|
166
|
-
|
167
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
168
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
151
|
+
end
|
169
152
|
end
|
170
153
|
|
171
154
|
self
|
@@ -24,10 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Update shape task.
|
27
|
-
class UpdateShape
|
28
|
-
# Task type.
|
29
|
-
attr_accessor :type
|
30
|
-
|
27
|
+
class UpdateShape < Task
|
31
28
|
# Shape DTO.
|
32
29
|
attr_accessor :shape
|
33
30
|
|
@@ -58,35 +55,24 @@ module AsposeSlidesCloud
|
|
58
55
|
|
59
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
57
|
def self.attribute_map
|
61
|
-
{
|
62
|
-
:'type' => :'Type',
|
58
|
+
super.merge({
|
63
59
|
:'shape' => :'Shape',
|
64
|
-
:'shape_path' => :'ShapePath'
|
65
|
-
}
|
60
|
+
:'shape_path' => :'ShapePath',
|
61
|
+
})
|
66
62
|
end
|
67
63
|
|
68
64
|
# Attribute type mapping.
|
69
65
|
def self.swagger_types
|
70
|
-
{
|
71
|
-
:'type' => :'String',
|
66
|
+
super.merge({
|
72
67
|
:'shape' => :'ShapeBase',
|
73
|
-
:'shape_path' => :'String'
|
74
|
-
}
|
68
|
+
:'shape_path' => :'String',
|
69
|
+
})
|
75
70
|
end
|
76
71
|
|
77
72
|
# Initializes the object
|
78
73
|
# @param [Hash] attributes Model attributes in the form of hash
|
79
74
|
def initialize(attributes = {})
|
80
|
-
|
81
|
-
|
82
|
-
# convert string to symbol for hash key
|
83
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
84
|
-
|
85
|
-
if attributes.has_key?(:'Type')
|
86
|
-
self.type = attributes[:'Type']
|
87
|
-
else
|
88
|
-
self.type = "UpdateShape"
|
89
|
-
end
|
75
|
+
super
|
90
76
|
|
91
77
|
if attributes.has_key?(:'Shape')
|
92
78
|
self.shape = attributes[:'Shape']
|
@@ -95,38 +81,23 @@ module AsposeSlidesCloud
|
|
95
81
|
if attributes.has_key?(:'ShapePath')
|
96
82
|
self.shape_path = attributes[:'ShapePath']
|
97
83
|
end
|
84
|
+
self.type = "UpdateShape"
|
98
85
|
end
|
99
86
|
|
100
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
101
88
|
# @return Array for valid properties with the reasons
|
102
89
|
def list_invalid_properties
|
103
|
-
invalid_properties =
|
104
|
-
if @type.nil?
|
105
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
106
|
-
end
|
107
|
-
|
90
|
+
invalid_properties = super
|
108
91
|
invalid_properties
|
109
92
|
end
|
110
93
|
|
111
94
|
# Check to see if the all the properties in the model are valid
|
112
95
|
# @return true if the model is valid
|
113
96
|
def valid?
|
114
|
-
return false if
|
115
|
-
type_validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
116
|
-
return false unless type_validator.valid?(@type)
|
97
|
+
return false if !super
|
117
98
|
true
|
118
99
|
end
|
119
100
|
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] type Object to be assigned
|
122
|
-
def type=(type)
|
123
|
-
validator = EnumAttributeValidator.new('String', ['Save', 'SaveSlide', 'SaveShape', 'AddSlide', 'AddMasterSlide', 'AddLayoutSlide', 'RemoveSlide', 'ReoderSlide', 'Merge', 'UpdateBackground', 'ResetSlide', 'AddShape', 'RemoveShape', 'UpdateShape', 'ReplaceText'])
|
124
|
-
unless validator.valid?(type)
|
125
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
126
|
-
end
|
127
|
-
@type = type
|
128
|
-
end
|
129
|
-
|
130
101
|
# Checks equality by comparing each attribute.
|
131
102
|
# @param [Object] Object to be compared
|
132
103
|
def ==(o)
|
@@ -155,15 +126,27 @@ module AsposeSlidesCloud
|
|
155
126
|
def build_from_hash(attributes)
|
156
127
|
return nil unless attributes.is_a?(Hash)
|
157
128
|
self.class.swagger_types.each_pair do |key, type|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
if
|
162
|
-
|
129
|
+
mapKey = self.class.attribute_map[key]
|
130
|
+
if !mapKey.nil?
|
131
|
+
val = attributes[mapKey]
|
132
|
+
if val.nil?
|
133
|
+
mapKeyString = mapKey.to_s
|
134
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
135
|
+
mapKey = mapKeyString.to_sym
|
136
|
+
val = attributes[mapKey]
|
137
|
+
end
|
138
|
+
if !val.nil?
|
139
|
+
if type =~ /\AArray<(.*)>/i
|
140
|
+
# check to ensure the input is an array given that the the attribute
|
141
|
+
# is documented as an array but the input is not
|
142
|
+
if val.is_a?(Array)
|
143
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
144
|
+
end
|
145
|
+
else
|
146
|
+
self.send("#{key}=", _deserialize(type, val))
|
147
|
+
end
|
163
148
|
end
|
164
|
-
|
165
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
166
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
149
|
+
end
|
167
150
|
end
|
168
151
|
|
169
152
|
self
|
@@ -24,61 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents VideoFrame resource.
|
27
|
-
class VideoFrame
|
28
|
-
# Gets or sets the link to this resource.
|
29
|
-
attr_accessor :self_uri
|
30
|
-
|
31
|
-
# List of alternate links.
|
32
|
-
attr_accessor :alternate_links
|
33
|
-
|
34
|
-
# Gets or sets the name.
|
35
|
-
attr_accessor :name
|
36
|
-
|
37
|
-
# Gets or sets the width.
|
38
|
-
attr_accessor :width
|
39
|
-
|
40
|
-
# Gets or sets the height.
|
41
|
-
attr_accessor :height
|
42
|
-
|
43
|
-
# Gets or sets the alternative text.
|
44
|
-
attr_accessor :alternative_text
|
45
|
-
|
46
|
-
# The title of alternative text associated with the shape.
|
47
|
-
attr_accessor :alternative_text_title
|
48
|
-
|
49
|
-
# Gets or sets a value indicating whether this ShapeBase is hidden.
|
50
|
-
attr_accessor :hidden
|
51
|
-
|
52
|
-
# Gets or sets the X
|
53
|
-
attr_accessor :x
|
54
|
-
|
55
|
-
# Gets or sets the Y.
|
56
|
-
attr_accessor :y
|
57
|
-
|
58
|
-
# Gets z-order position of shape
|
59
|
-
attr_accessor :z_order_position
|
60
|
-
|
61
|
-
# Gets or sets the link to shapes.
|
62
|
-
attr_accessor :shapes
|
63
|
-
|
64
|
-
# Gets or sets the fill format.
|
65
|
-
attr_accessor :fill_format
|
66
|
-
|
67
|
-
# Gets or sets the effect format.
|
68
|
-
attr_accessor :effect_format
|
69
|
-
|
70
|
-
# Gets or sets the line format.
|
71
|
-
attr_accessor :line_format
|
72
|
-
|
73
|
-
# Shape type.
|
74
|
-
attr_accessor :type
|
75
|
-
|
76
|
-
# Combined shape type.
|
77
|
-
attr_accessor :shape_type
|
78
|
-
|
79
|
-
# Geometry shape type.
|
80
|
-
attr_accessor :geometry_shape_type
|
81
|
-
|
27
|
+
class VideoFrame < GeometryShape
|
82
28
|
# Determines whether a video is shown in full screen mode.
|
83
29
|
attr_accessor :full_screen_mode
|
84
30
|
|
@@ -124,151 +70,34 @@ module AsposeSlidesCloud
|
|
124
70
|
|
125
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
126
72
|
def self.attribute_map
|
127
|
-
{
|
128
|
-
:'self_uri' => :'SelfUri',
|
129
|
-
:'alternate_links' => :'AlternateLinks',
|
130
|
-
:'name' => :'Name',
|
131
|
-
:'width' => :'Width',
|
132
|
-
:'height' => :'Height',
|
133
|
-
:'alternative_text' => :'AlternativeText',
|
134
|
-
:'alternative_text_title' => :'AlternativeTextTitle',
|
135
|
-
:'hidden' => :'Hidden',
|
136
|
-
:'x' => :'X',
|
137
|
-
:'y' => :'Y',
|
138
|
-
:'z_order_position' => :'ZOrderPosition',
|
139
|
-
:'shapes' => :'Shapes',
|
140
|
-
:'fill_format' => :'FillFormat',
|
141
|
-
:'effect_format' => :'EffectFormat',
|
142
|
-
:'line_format' => :'LineFormat',
|
143
|
-
:'type' => :'Type',
|
144
|
-
:'shape_type' => :'ShapeType',
|
145
|
-
:'geometry_shape_type' => :'GeometryShapeType',
|
73
|
+
super.merge({
|
146
74
|
:'full_screen_mode' => :'FullScreenMode',
|
147
75
|
:'hide_at_showing' => :'HideAtShowing',
|
148
76
|
:'play_loop_mode' => :'PlayLoopMode',
|
149
77
|
:'play_mode' => :'PlayMode',
|
150
78
|
:'rewind_video' => :'RewindVideo',
|
151
79
|
:'volume' => :'Volume',
|
152
|
-
:'base64_data' => :'Base64Data'
|
153
|
-
}
|
80
|
+
:'base64_data' => :'Base64Data',
|
81
|
+
})
|
154
82
|
end
|
155
83
|
|
156
84
|
# Attribute type mapping.
|
157
85
|
def self.swagger_types
|
158
|
-
{
|
159
|
-
:'self_uri' => :'ResourceUri',
|
160
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
161
|
-
:'name' => :'String',
|
162
|
-
:'width' => :'Float',
|
163
|
-
:'height' => :'Float',
|
164
|
-
:'alternative_text' => :'String',
|
165
|
-
:'alternative_text_title' => :'String',
|
166
|
-
:'hidden' => :'BOOLEAN',
|
167
|
-
:'x' => :'Float',
|
168
|
-
:'y' => :'Float',
|
169
|
-
:'z_order_position' => :'Integer',
|
170
|
-
:'shapes' => :'ResourceUriElement',
|
171
|
-
:'fill_format' => :'FillFormat',
|
172
|
-
:'effect_format' => :'EffectFormat',
|
173
|
-
:'line_format' => :'LineFormat',
|
174
|
-
:'type' => :'String',
|
175
|
-
:'shape_type' => :'String',
|
176
|
-
:'geometry_shape_type' => :'String',
|
86
|
+
super.merge({
|
177
87
|
:'full_screen_mode' => :'BOOLEAN',
|
178
88
|
:'hide_at_showing' => :'BOOLEAN',
|
179
89
|
:'play_loop_mode' => :'BOOLEAN',
|
180
90
|
:'play_mode' => :'String',
|
181
91
|
:'rewind_video' => :'BOOLEAN',
|
182
92
|
:'volume' => :'String',
|
183
|
-
:'base64_data' => :'String'
|
184
|
-
}
|
93
|
+
:'base64_data' => :'String',
|
94
|
+
})
|
185
95
|
end
|
186
96
|
|
187
97
|
# Initializes the object
|
188
98
|
# @param [Hash] attributes Model attributes in the form of hash
|
189
99
|
def initialize(attributes = {})
|
190
|
-
|
191
|
-
|
192
|
-
# convert string to symbol for hash key
|
193
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
194
|
-
|
195
|
-
if attributes.has_key?(:'SelfUri')
|
196
|
-
self.self_uri = attributes[:'SelfUri']
|
197
|
-
end
|
198
|
-
|
199
|
-
if attributes.has_key?(:'AlternateLinks')
|
200
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
201
|
-
self.alternate_links = value
|
202
|
-
end
|
203
|
-
end
|
204
|
-
|
205
|
-
if attributes.has_key?(:'Name')
|
206
|
-
self.name = attributes[:'Name']
|
207
|
-
end
|
208
|
-
|
209
|
-
if attributes.has_key?(:'Width')
|
210
|
-
self.width = attributes[:'Width']
|
211
|
-
end
|
212
|
-
|
213
|
-
if attributes.has_key?(:'Height')
|
214
|
-
self.height = attributes[:'Height']
|
215
|
-
end
|
216
|
-
|
217
|
-
if attributes.has_key?(:'AlternativeText')
|
218
|
-
self.alternative_text = attributes[:'AlternativeText']
|
219
|
-
end
|
220
|
-
|
221
|
-
if attributes.has_key?(:'AlternativeTextTitle')
|
222
|
-
self.alternative_text_title = attributes[:'AlternativeTextTitle']
|
223
|
-
end
|
224
|
-
|
225
|
-
if attributes.has_key?(:'Hidden')
|
226
|
-
self.hidden = attributes[:'Hidden']
|
227
|
-
end
|
228
|
-
|
229
|
-
if attributes.has_key?(:'X')
|
230
|
-
self.x = attributes[:'X']
|
231
|
-
end
|
232
|
-
|
233
|
-
if attributes.has_key?(:'Y')
|
234
|
-
self.y = attributes[:'Y']
|
235
|
-
end
|
236
|
-
|
237
|
-
if attributes.has_key?(:'ZOrderPosition')
|
238
|
-
self.z_order_position = attributes[:'ZOrderPosition']
|
239
|
-
end
|
240
|
-
|
241
|
-
if attributes.has_key?(:'Shapes')
|
242
|
-
self.shapes = attributes[:'Shapes']
|
243
|
-
end
|
244
|
-
|
245
|
-
if attributes.has_key?(:'FillFormat')
|
246
|
-
self.fill_format = attributes[:'FillFormat']
|
247
|
-
end
|
248
|
-
|
249
|
-
if attributes.has_key?(:'EffectFormat')
|
250
|
-
self.effect_format = attributes[:'EffectFormat']
|
251
|
-
end
|
252
|
-
|
253
|
-
if attributes.has_key?(:'LineFormat')
|
254
|
-
self.line_format = attributes[:'LineFormat']
|
255
|
-
end
|
256
|
-
|
257
|
-
if attributes.has_key?(:'Type')
|
258
|
-
self.type = attributes[:'Type']
|
259
|
-
else
|
260
|
-
self.type = "VideoFrame"
|
261
|
-
end
|
262
|
-
|
263
|
-
if attributes.has_key?(:'ShapeType')
|
264
|
-
self.shape_type = attributes[:'ShapeType']
|
265
|
-
else
|
266
|
-
self.shape_type = "VideoFrame"
|
267
|
-
end
|
268
|
-
|
269
|
-
if attributes.has_key?(:'GeometryShapeType')
|
270
|
-
self.geometry_shape_type = attributes[:'GeometryShapeType']
|
271
|
-
end
|
100
|
+
super
|
272
101
|
|
273
102
|
if attributes.has_key?(:'FullScreenMode')
|
274
103
|
self.full_screen_mode = attributes[:'FullScreenMode']
|
@@ -297,44 +126,20 @@ module AsposeSlidesCloud
|
|
297
126
|
if attributes.has_key?(:'Base64Data')
|
298
127
|
self.base64_data = attributes[:'Base64Data']
|
299
128
|
end
|
129
|
+
self.type = "VideoFrame"
|
300
130
|
end
|
301
131
|
|
302
132
|
# Show invalid properties with the reasons. Usually used together with valid?
|
303
133
|
# @return Array for valid properties with the reasons
|
304
134
|
def list_invalid_properties
|
305
|
-
invalid_properties =
|
306
|
-
if @z_order_position.nil?
|
307
|
-
invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
|
308
|
-
end
|
309
|
-
|
310
|
-
if @type.nil?
|
311
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
312
|
-
end
|
313
|
-
|
314
|
-
if @shape_type.nil?
|
315
|
-
invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
|
316
|
-
end
|
317
|
-
|
318
|
-
if @geometry_shape_type.nil?
|
319
|
-
invalid_properties.push('invalid value for "geometry_shape_type", geometry_shape_type cannot be nil.')
|
320
|
-
end
|
321
|
-
|
135
|
+
invalid_properties = super
|
322
136
|
invalid_properties
|
323
137
|
end
|
324
138
|
|
325
139
|
# Check to see if the all the properties in the model are valid
|
326
140
|
# @return true if the model is valid
|
327
141
|
def valid?
|
328
|
-
return false if
|
329
|
-
return false if @type.nil?
|
330
|
-
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
331
|
-
return false unless type_validator.valid?(@type)
|
332
|
-
return false if @shape_type.nil?
|
333
|
-
shape_type_validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'Diagram', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'NotDefined'])
|
334
|
-
return false unless shape_type_validator.valid?(@shape_type)
|
335
|
-
return false if @geometry_shape_type.nil?
|
336
|
-
geometry_shape_type_validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'NotDefined'])
|
337
|
-
return false unless geometry_shape_type_validator.valid?(@geometry_shape_type)
|
142
|
+
return false if !super
|
338
143
|
play_mode_validator = EnumAttributeValidator.new('String', ['Auto', 'OnClick', 'AllSlides', 'Mixed'])
|
339
144
|
return false unless play_mode_validator.valid?(@play_mode)
|
340
145
|
volume_validator = EnumAttributeValidator.new('String', ['Mute', 'Low', 'Medium', 'Loud', 'Mixed'])
|
@@ -342,36 +147,6 @@ module AsposeSlidesCloud
|
|
342
147
|
true
|
343
148
|
end
|
344
149
|
|
345
|
-
# Custom attribute writer method checking allowed values (enum).
|
346
|
-
# @param [Object] type Object to be assigned
|
347
|
-
def type=(type)
|
348
|
-
validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
349
|
-
unless validator.valid?(type)
|
350
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
351
|
-
end
|
352
|
-
@type = type
|
353
|
-
end
|
354
|
-
|
355
|
-
# Custom attribute writer method checking allowed values (enum).
|
356
|
-
# @param [Object] shape_type Object to be assigned
|
357
|
-
def shape_type=(shape_type)
|
358
|
-
validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'Diagram', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'NotDefined'])
|
359
|
-
unless validator.valid?(shape_type)
|
360
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
361
|
-
end
|
362
|
-
@shape_type = shape_type
|
363
|
-
end
|
364
|
-
|
365
|
-
# Custom attribute writer method checking allowed values (enum).
|
366
|
-
# @param [Object] geometry_shape_type Object to be assigned
|
367
|
-
def geometry_shape_type=(geometry_shape_type)
|
368
|
-
validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'NotDefined'])
|
369
|
-
unless validator.valid?(geometry_shape_type)
|
370
|
-
fail ArgumentError, 'invalid value for "geometry_shape_type", must be one of #{validator.allowable_values}.'
|
371
|
-
end
|
372
|
-
@geometry_shape_type = geometry_shape_type
|
373
|
-
end
|
374
|
-
|
375
150
|
# Custom attribute writer method checking allowed values (enum).
|
376
151
|
# @param [Object] play_mode Object to be assigned
|
377
152
|
def play_mode=(play_mode)
|
@@ -414,7 +189,6 @@ module AsposeSlidesCloud
|
|
414
189
|
line_format == o.line_format &&
|
415
190
|
type == o.type &&
|
416
191
|
shape_type == o.shape_type &&
|
417
|
-
geometry_shape_type == o.geometry_shape_type &&
|
418
192
|
full_screen_mode == o.full_screen_mode &&
|
419
193
|
hide_at_showing == o.hide_at_showing &&
|
420
194
|
play_loop_mode == o.play_loop_mode &&
|
@@ -433,7 +207,7 @@ module AsposeSlidesCloud
|
|
433
207
|
# Calculates hash code according to all attributes.
|
434
208
|
# @return [Fixnum] Hash code
|
435
209
|
def hash
|
436
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type,
|
210
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type, full_screen_mode, hide_at_showing, play_loop_mode, play_mode, rewind_video, volume, base64_data].hash
|
437
211
|
end
|
438
212
|
|
439
213
|
# Builds the object from hash
|
@@ -442,15 +216,27 @@ module AsposeSlidesCloud
|
|
442
216
|
def build_from_hash(attributes)
|
443
217
|
return nil unless attributes.is_a?(Hash)
|
444
218
|
self.class.swagger_types.each_pair do |key, type|
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
if
|
449
|
-
|
219
|
+
mapKey = self.class.attribute_map[key]
|
220
|
+
if !mapKey.nil?
|
221
|
+
val = attributes[mapKey]
|
222
|
+
if val.nil?
|
223
|
+
mapKeyString = mapKey.to_s
|
224
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
225
|
+
mapKey = mapKeyString.to_sym
|
226
|
+
val = attributes[mapKey]
|
450
227
|
end
|
451
|
-
|
452
|
-
|
453
|
-
|
228
|
+
if !val.nil?
|
229
|
+
if type =~ /\AArray<(.*)>/i
|
230
|
+
# check to ensure the input is an array given that the the attribute
|
231
|
+
# is documented as an array but the input is not
|
232
|
+
if val.is_a?(Array)
|
233
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
234
|
+
end
|
235
|
+
else
|
236
|
+
self.send("#{key}=", _deserialize(type, val))
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
454
240
|
end
|
455
241
|
|
456
242
|
self
|