aspose_slides_cloud 20.7.0 → 21.2.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/TestData/test-unprotected.pptx +0 -0
- data/TestData/test.pdf +0 -0
- data/TestData/test.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +12 -5
- data/lib/aspose_slides_cloud/api/slides_api.rb +2130 -940
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +531 -31
- data/lib/aspose_slides_cloud/api_client.rb +25 -23
- data/lib/aspose_slides_cloud/configuration.rb +7 -2
- data/lib/aspose_slides_cloud/models/add_layout_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_master_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/add_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/api_info.rb +2 -2
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -238
- data/lib/aspose_slides_cloud/models/axes.rb +2 -2
- data/lib/aspose_slides_cloud/models/axis.rb +2 -2
- data/lib/aspose_slides_cloud/models/base64_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/blur_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +11 -216
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +10 -40
- data/lib/aspose_slides_cloud/models/bubble_series.rb +11 -205
- data/lib/aspose_slides_cloud/models/chart.rb +14 -214
- data/lib/aspose_slides_cloud/models/chart_category.rb +34 -12
- data/lib/aspose_slides_cloud/models/chart_title.rb +2 -2
- data/lib/aspose_slides_cloud/models/chart_wall.rb +2 -2
- data/lib/aspose_slides_cloud/models/color_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/connector.rb +12 -236
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
- data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +4 -14
- data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
- data/lib/aspose_slides_cloud/models/document.rb +15 -37
- data/lib/aspose_slides_cloud/models/document_properties.rb +10 -32
- data/lib/aspose_slides_cloud/models/document_property.rb +10 -32
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +10 -86
- data/lib/aspose_slides_cloud/models/effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/effect_format.rb +2 -2
- data/lib/aspose_slides_cloud/models/entity_exists.rb +2 -2
- data/lib/aspose_slides_cloud/models/error.rb +2 -2
- data/lib/aspose_slides_cloud/models/error_details.rb +2 -2
- data/lib/aspose_slides_cloud/models/export_options.rb +13 -3
- data/lib/aspose_slides_cloud/models/file_version.rb +10 -67
- data/lib/aspose_slides_cloud/models/file_versions.rb +2 -2
- data/lib/aspose_slides_cloud/models/files_list.rb +2 -2
- data/lib/aspose_slides_cloud/models/files_upload_result.rb +2 -2
- data/lib/aspose_slides_cloud/models/fill_format.rb +2 -2
- data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/font_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/font_set.rb +2 -2
- data/lib/aspose_slides_cloud/models/format_scheme.rb +10 -32
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +13 -204
- data/lib/aspose_slides_cloud/models/glow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +2 -2
- data/lib/aspose_slides_cloud/models/graphical_object.rb +11 -211
- data/lib/aspose_slides_cloud/models/group_shape.rb +11 -211
- data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
- data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -12
- data/lib/aspose_slides_cloud/models/image.rb +10 -32
- data/lib/aspose_slides_cloud/models/image_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/images.rb +10 -32
- data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/input.rb +2 -2
- data/lib/aspose_slides_cloud/models/input_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/interactive_sequence.rb +2 -2
- data/lib/aspose_slides_cloud/models/layout_slide.rb +11 -33
- data/lib/aspose_slides_cloud/models/layout_slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/legend.rb +2 -2
- data/lib/aspose_slides_cloud/models/line_format.rb +25 -3
- data/lib/aspose_slides_cloud/models/master_slide.rb +11 -33
- data/lib/aspose_slides_cloud/models/master_slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/merge.rb +11 -40
- data/lib/aspose_slides_cloud/models/merging_source.rb +2 -2
- data/lib/aspose_slides_cloud/models/no_fill.rb +9 -38
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +2 -2
- data/lib/aspose_slides_cloud/models/notes_slide.rb +10 -32
- data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
- data/lib/aspose_slides_cloud/models/object_exist.rb +2 -2
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -212
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +10 -12
- data/lib/aspose_slides_cloud/models/one_value_series.rb +11 -205
- data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +2 -2
- data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/output_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/paragraph.rb +10 -32
- data/lib/aspose_slides_cloud/models/paragraphs.rb +10 -32
- data/lib/aspose_slides_cloud/models/path_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/path_output_file.rb +11 -40
- data/lib/aspose_slides_cloud/models/pattern_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/picture_fill.rb +12 -41
- data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -238
- data/lib/aspose_slides_cloud/models/pipeline.rb +2 -2
- data/lib/aspose_slides_cloud/models/placeholder.rb +10 -32
- data/lib/aspose_slides_cloud/models/placeholders.rb +10 -32
- data/lib/aspose_slides_cloud/models/plot_area.rb +2 -2
- data/lib/aspose_slides_cloud/models/portion.rb +10 -32
- data/lib/aspose_slides_cloud/models/portions.rb +10 -32
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +2 -2
- data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +2 -2
- data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/protection_properties.rb +217 -0
- data/lib/aspose_slides_cloud/models/reflection_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/remove_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/remove_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/reorder_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/replace_text.rb +11 -40
- data/lib/aspose_slides_cloud/models/request_input_file.rb +11 -49
- data/lib/aspose_slides_cloud/models/reset_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/resource_base.rb +2 -2
- data/lib/aspose_slides_cloud/models/resource_uri.rb +2 -2
- data/lib/aspose_slides_cloud/models/response_output_file.rb +9 -38
- data/lib/aspose_slides_cloud/models/save.rb +11 -40
- data/lib/aspose_slides_cloud/models/save_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/save_slide.rb +11 -40
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +10 -12
- data/lib/aspose_slides_cloud/models/scatter_series.rb +11 -205
- 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 +4 -4
- data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
- data/lib/aspose_slides_cloud/models/shape.rb +12 -236
- data/lib/aspose_slides_cloud/models/shape_base.rb +11 -54
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +2 -2
- data/lib/aspose_slides_cloud/models/shapes.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide.rb +17 -39
- data/lib/aspose_slides_cloud/models/slide_animation.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_background.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_comment.rb +2 -2
- data/lib/aspose_slides_cloud/models/slide_comments.rb +10 -32
- data/lib/aspose_slides_cloud/models/slide_properties.rb +315 -0
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +10 -146
- data/lib/aspose_slides_cloud/models/slides.rb +10 -32
- data/lib/aspose_slides_cloud/models/smart_art.rb +12 -212
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +3 -3
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +10 -209
- data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +2 -2
- data/lib/aspose_slides_cloud/models/solid_fill.rb +11 -40
- data/lib/aspose_slides_cloud/models/split_document_result.rb +10 -32
- data/lib/aspose_slides_cloud/models/storage_exist.rb +2 -2
- data/lib/aspose_slides_cloud/models/storage_file.rb +2 -2
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/table.rb +12 -212
- data/lib/aspose_slides_cloud/models/table_cell.rb +2 -2
- data/lib/aspose_slides_cloud/models/table_column.rb +2 -2
- data/lib/aspose_slides_cloud/models/table_row.rb +2 -2
- data/lib/aspose_slides_cloud/models/task.rb +2 -2
- data/lib/aspose_slides_cloud/models/text_item.rb +2 -2
- data/lib/aspose_slides_cloud/models/text_items.rb +10 -32
- data/lib/aspose_slides_cloud/models/theme.rb +12 -34
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/update_background.rb +11 -40
- data/lib/aspose_slides_cloud/models/update_shape.rb +11 -40
- data/lib/aspose_slides_cloud/models/video_frame.rb +12 -238
- data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
- data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +11 -216
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/type_registry.rb +324 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +8664 -1406
- data/spec/extra/extra_spec.rb +70 -38
- data/spec/spec_utils.rb +10 -6
- data/testConfig.json +2 -2
- data/testRules.json +121 -80
- metadata +16 -3
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Slide shape.
|
27
|
-
class ShapeBase
|
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
|
-
|
27
|
+
class ShapeBase < ResourceBase
|
34
28
|
# Gets or sets the name.
|
35
29
|
attr_accessor :name
|
36
30
|
|
@@ -72,8 +66,6 @@ module AsposeSlidesCloud
|
|
72
66
|
|
73
67
|
attr_accessor :type
|
74
68
|
|
75
|
-
attr_accessor :shape_type
|
76
|
-
|
77
69
|
class EnumAttributeValidator
|
78
70
|
attr_reader :datatype
|
79
71
|
attr_reader :allowable_values
|
@@ -98,9 +90,7 @@ module AsposeSlidesCloud
|
|
98
90
|
|
99
91
|
# Attribute mapping from ruby-style variable name to JSON key.
|
100
92
|
def self.attribute_map
|
101
|
-
{
|
102
|
-
:'self_uri' => :'SelfUri',
|
103
|
-
:'alternate_links' => :'AlternateLinks',
|
93
|
+
super.merge({
|
104
94
|
:'name' => :'Name',
|
105
95
|
:'width' => :'Width',
|
106
96
|
:'height' => :'Height',
|
@@ -115,15 +105,12 @@ module AsposeSlidesCloud
|
|
115
105
|
:'effect_format' => :'EffectFormat',
|
116
106
|
:'line_format' => :'LineFormat',
|
117
107
|
:'type' => :'Type',
|
118
|
-
|
119
|
-
}
|
108
|
+
})
|
120
109
|
end
|
121
110
|
|
122
111
|
# Attribute type mapping.
|
123
112
|
def self.swagger_types
|
124
|
-
{
|
125
|
-
:'self_uri' => :'ResourceUri',
|
126
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
113
|
+
super.merge({
|
127
114
|
:'name' => :'String',
|
128
115
|
:'width' => :'Float',
|
129
116
|
:'height' => :'Float',
|
@@ -133,32 +120,18 @@ module AsposeSlidesCloud
|
|
133
120
|
:'x' => :'Float',
|
134
121
|
:'y' => :'Float',
|
135
122
|
:'z_order_position' => :'Integer',
|
136
|
-
:'shapes' => :'
|
123
|
+
:'shapes' => :'ResourceUri',
|
137
124
|
:'fill_format' => :'FillFormat',
|
138
125
|
:'effect_format' => :'EffectFormat',
|
139
126
|
:'line_format' => :'LineFormat',
|
140
127
|
:'type' => :'String',
|
141
|
-
|
142
|
-
}
|
128
|
+
})
|
143
129
|
end
|
144
130
|
|
145
131
|
# Initializes the object
|
146
132
|
# @param [Hash] attributes Model attributes in the form of hash
|
147
133
|
def initialize(attributes = {})
|
148
|
-
|
149
|
-
|
150
|
-
# convert string to symbol for hash key
|
151
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
152
|
-
|
153
|
-
if attributes.has_key?(:'SelfUri')
|
154
|
-
self.self_uri = attributes[:'SelfUri']
|
155
|
-
end
|
156
|
-
|
157
|
-
if attributes.has_key?(:'AlternateLinks')
|
158
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
159
|
-
self.alternate_links = value
|
160
|
-
end
|
161
|
-
end
|
134
|
+
super
|
162
135
|
|
163
136
|
if attributes.has_key?(:'Name')
|
164
137
|
self.name = attributes[:'Name']
|
@@ -215,16 +188,12 @@ module AsposeSlidesCloud
|
|
215
188
|
if attributes.has_key?(:'Type')
|
216
189
|
self.type = attributes[:'Type']
|
217
190
|
end
|
218
|
-
|
219
|
-
if attributes.has_key?(:'ShapeType')
|
220
|
-
self.shape_type = attributes[:'ShapeType']
|
221
|
-
end
|
222
191
|
end
|
223
192
|
|
224
193
|
# Show invalid properties with the reasons. Usually used together with valid?
|
225
194
|
# @return Array for valid properties with the reasons
|
226
195
|
def list_invalid_properties
|
227
|
-
invalid_properties =
|
196
|
+
invalid_properties = super
|
228
197
|
if @z_order_position.nil?
|
229
198
|
invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
|
230
199
|
end
|
@@ -235,11 +204,10 @@ module AsposeSlidesCloud
|
|
235
204
|
# Check to see if the all the properties in the model are valid
|
236
205
|
# @return true if the model is valid
|
237
206
|
def valid?
|
207
|
+
return false if !super
|
238
208
|
return false if @z_order_position.nil?
|
239
209
|
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
240
210
|
return false unless type_validator.valid?(@type)
|
241
|
-
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'])
|
242
|
-
return false unless shape_type_validator.valid?(@shape_type)
|
243
211
|
true
|
244
212
|
end
|
245
213
|
|
@@ -253,16 +221,6 @@ module AsposeSlidesCloud
|
|
253
221
|
@type = type
|
254
222
|
end
|
255
223
|
|
256
|
-
# Custom attribute writer method checking allowed values (enum).
|
257
|
-
# @param [Object] shape_type Object to be assigned
|
258
|
-
def shape_type=(shape_type)
|
259
|
-
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'])
|
260
|
-
unless validator.valid?(shape_type)
|
261
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
262
|
-
end
|
263
|
-
@shape_type = shape_type
|
264
|
-
end
|
265
|
-
|
266
224
|
# Checks equality by comparing each attribute.
|
267
225
|
# @param [Object] Object to be compared
|
268
226
|
def ==(o)
|
@@ -283,8 +241,7 @@ module AsposeSlidesCloud
|
|
283
241
|
fill_format == o.fill_format &&
|
284
242
|
effect_format == o.effect_format &&
|
285
243
|
line_format == o.line_format &&
|
286
|
-
type == o.type
|
287
|
-
shape_type == o.shape_type
|
244
|
+
type == o.type
|
288
245
|
end
|
289
246
|
|
290
247
|
# @see the `==` method
|
@@ -296,7 +253,7 @@ module AsposeSlidesCloud
|
|
296
253
|
# Calculates hash code according to all attributes.
|
297
254
|
# @return [Fixnum] Hash code
|
298
255
|
def hash
|
299
|
-
[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
|
256
|
+
[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].hash
|
300
257
|
end
|
301
258
|
|
302
259
|
# Builds the object from hash
|
@@ -65,7 +65,7 @@ module AsposeSlidesCloud
|
|
65
65
|
:'scale_x' => :'ScaleX',
|
66
66
|
:'scale_y' => :'ScaleY',
|
67
67
|
:'thumbnail_bounds' => :'ThumbnailBounds',
|
68
|
-
:'format' => :'Format'
|
68
|
+
:'format' => :'Format',
|
69
69
|
}
|
70
70
|
end
|
71
71
|
|
@@ -75,7 +75,7 @@ module AsposeSlidesCloud
|
|
75
75
|
:'scale_x' => :'Float',
|
76
76
|
:'scale_y' => :'Float',
|
77
77
|
:'thumbnail_bounds' => :'String',
|
78
|
-
:'format' => :'String'
|
78
|
+
:'format' => :'String',
|
79
79
|
}
|
80
80
|
end
|
81
81
|
|
@@ -24,51 +24,28 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents list of Links to Shapes resources
|
27
|
-
class Shapes
|
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
|
-
|
27
|
+
class Shapes < ResourceBase
|
34
28
|
# List of shape links.
|
35
29
|
attr_accessor :shapes_links
|
36
30
|
|
37
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
32
|
def self.attribute_map
|
39
|
-
{
|
40
|
-
:'
|
41
|
-
|
42
|
-
:'shapes_links' => :'ShapesLinks'
|
43
|
-
}
|
33
|
+
super.merge({
|
34
|
+
:'shapes_links' => :'ShapesLinks',
|
35
|
+
})
|
44
36
|
end
|
45
37
|
|
46
38
|
# Attribute type mapping.
|
47
39
|
def self.swagger_types
|
48
|
-
{
|
49
|
-
:'
|
50
|
-
|
51
|
-
:'shapes_links' => :'Array<ResourceUriElement>'
|
52
|
-
}
|
40
|
+
super.merge({
|
41
|
+
:'shapes_links' => :'Array<ResourceUri>',
|
42
|
+
})
|
53
43
|
end
|
54
44
|
|
55
45
|
# Initializes the object
|
56
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
57
47
|
def initialize(attributes = {})
|
58
|
-
|
59
|
-
|
60
|
-
# convert string to symbol for hash key
|
61
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
62
|
-
|
63
|
-
if attributes.has_key?(:'SelfUri')
|
64
|
-
self.self_uri = attributes[:'SelfUri']
|
65
|
-
end
|
66
|
-
|
67
|
-
if attributes.has_key?(:'AlternateLinks')
|
68
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
69
|
-
self.alternate_links = value
|
70
|
-
end
|
71
|
-
end
|
48
|
+
super
|
72
49
|
|
73
50
|
if attributes.has_key?(:'ShapesLinks')
|
74
51
|
if (value = attributes[:'ShapesLinks']).is_a?(Array)
|
@@ -80,13 +57,14 @@ module AsposeSlidesCloud
|
|
80
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
81
58
|
# @return Array for valid properties with the reasons
|
82
59
|
def list_invalid_properties
|
83
|
-
invalid_properties =
|
60
|
+
invalid_properties = super
|
84
61
|
invalid_properties
|
85
62
|
end
|
86
63
|
|
87
64
|
# Check to see if the all the properties in the model are valid
|
88
65
|
# @return true if the model is valid
|
89
66
|
def valid?
|
67
|
+
return false if !super
|
90
68
|
true
|
91
69
|
end
|
92
70
|
|
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Presentation slide.
|
27
|
-
class Slide
|
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
|
-
|
27
|
+
class Slide < ResourceBase
|
34
28
|
# Gets or sets the width.
|
35
29
|
attr_accessor :width
|
36
30
|
|
@@ -66,9 +60,7 @@ module AsposeSlidesCloud
|
|
66
60
|
|
67
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
68
62
|
def self.attribute_map
|
69
|
-
{
|
70
|
-
:'self_uri' => :'SelfUri',
|
71
|
-
:'alternate_links' => :'AlternateLinks',
|
63
|
+
super.merge({
|
72
64
|
:'width' => :'Width',
|
73
65
|
:'height' => :'Height',
|
74
66
|
:'show_master_shapes' => :'ShowMasterShapes',
|
@@ -79,46 +71,31 @@ module AsposeSlidesCloud
|
|
79
71
|
:'images' => :'Images',
|
80
72
|
:'comments' => :'Comments',
|
81
73
|
:'background' => :'Background',
|
82
|
-
:'notes_slide' => :'NotesSlide'
|
83
|
-
}
|
74
|
+
:'notes_slide' => :'NotesSlide',
|
75
|
+
})
|
84
76
|
end
|
85
77
|
|
86
78
|
# Attribute type mapping.
|
87
79
|
def self.swagger_types
|
88
|
-
{
|
89
|
-
:'self_uri' => :'ResourceUri',
|
90
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
80
|
+
super.merge({
|
91
81
|
:'width' => :'Float',
|
92
82
|
:'height' => :'Float',
|
93
83
|
:'show_master_shapes' => :'BOOLEAN',
|
94
|
-
:'layout_slide' => :'
|
95
|
-
:'shapes' => :'
|
96
|
-
:'theme' => :'
|
97
|
-
:'placeholders' => :'
|
98
|
-
:'images' => :'
|
99
|
-
:'comments' => :'
|
100
|
-
:'background' => :'
|
101
|
-
:'notes_slide' => :'
|
102
|
-
}
|
84
|
+
:'layout_slide' => :'ResourceUri',
|
85
|
+
:'shapes' => :'ResourceUri',
|
86
|
+
:'theme' => :'ResourceUri',
|
87
|
+
:'placeholders' => :'ResourceUri',
|
88
|
+
:'images' => :'ResourceUri',
|
89
|
+
:'comments' => :'ResourceUri',
|
90
|
+
:'background' => :'ResourceUri',
|
91
|
+
:'notes_slide' => :'ResourceUri',
|
92
|
+
})
|
103
93
|
end
|
104
94
|
|
105
95
|
# Initializes the object
|
106
96
|
# @param [Hash] attributes Model attributes in the form of hash
|
107
97
|
def initialize(attributes = {})
|
108
|
-
|
109
|
-
|
110
|
-
# convert string to symbol for hash key
|
111
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
112
|
-
|
113
|
-
if attributes.has_key?(:'SelfUri')
|
114
|
-
self.self_uri = attributes[:'SelfUri']
|
115
|
-
end
|
116
|
-
|
117
|
-
if attributes.has_key?(:'AlternateLinks')
|
118
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
119
|
-
self.alternate_links = value
|
120
|
-
end
|
121
|
-
end
|
98
|
+
super
|
122
99
|
|
123
100
|
if attributes.has_key?(:'Width')
|
124
101
|
self.width = attributes[:'Width']
|
@@ -168,7 +145,7 @@ module AsposeSlidesCloud
|
|
168
145
|
# Show invalid properties with the reasons. Usually used together with valid?
|
169
146
|
# @return Array for valid properties with the reasons
|
170
147
|
def list_invalid_properties
|
171
|
-
invalid_properties =
|
148
|
+
invalid_properties = super
|
172
149
|
if @width.nil?
|
173
150
|
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
174
151
|
end
|
@@ -187,6 +164,7 @@ module AsposeSlidesCloud
|
|
187
164
|
# Check to see if the all the properties in the model are valid
|
188
165
|
# @return true if the model is valid
|
189
166
|
def valid?
|
167
|
+
return false if !super
|
190
168
|
return false if @width.nil?
|
191
169
|
return false if @height.nil?
|
192
170
|
return false if @show_master_shapes.nil?
|
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents comments collection of slide
|
27
|
-
class SlideAnimation
|
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
|
-
|
27
|
+
class SlideAnimation < ResourceBase
|
34
28
|
# Main sequence.
|
35
29
|
attr_accessor :main_sequence
|
36
30
|
|
@@ -39,41 +33,24 @@ module AsposeSlidesCloud
|
|
39
33
|
|
40
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
35
|
def self.attribute_map
|
42
|
-
{
|
43
|
-
:'self_uri' => :'SelfUri',
|
44
|
-
:'alternate_links' => :'AlternateLinks',
|
36
|
+
super.merge({
|
45
37
|
:'main_sequence' => :'MainSequence',
|
46
|
-
:'interactive_sequences' => :'InteractiveSequences'
|
47
|
-
}
|
38
|
+
:'interactive_sequences' => :'InteractiveSequences',
|
39
|
+
})
|
48
40
|
end
|
49
41
|
|
50
42
|
# Attribute type mapping.
|
51
43
|
def self.swagger_types
|
52
|
-
{
|
53
|
-
:'self_uri' => :'ResourceUri',
|
54
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
44
|
+
super.merge({
|
55
45
|
:'main_sequence' => :'Array<Effect>',
|
56
|
-
:'interactive_sequences' => :'Array<InteractiveSequence>'
|
57
|
-
}
|
46
|
+
:'interactive_sequences' => :'Array<InteractiveSequence>',
|
47
|
+
})
|
58
48
|
end
|
59
49
|
|
60
50
|
# Initializes the object
|
61
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
62
52
|
def initialize(attributes = {})
|
63
|
-
|
64
|
-
|
65
|
-
# convert string to symbol for hash key
|
66
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
|
-
|
68
|
-
if attributes.has_key?(:'SelfUri')
|
69
|
-
self.self_uri = attributes[:'SelfUri']
|
70
|
-
end
|
71
|
-
|
72
|
-
if attributes.has_key?(:'AlternateLinks')
|
73
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
74
|
-
self.alternate_links = value
|
75
|
-
end
|
76
|
-
end
|
53
|
+
super
|
77
54
|
|
78
55
|
if attributes.has_key?(:'MainSequence')
|
79
56
|
if (value = attributes[:'MainSequence']).is_a?(Array)
|
@@ -91,13 +68,14 @@ module AsposeSlidesCloud
|
|
91
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
92
69
|
# @return Array for valid properties with the reasons
|
93
70
|
def list_invalid_properties
|
94
|
-
invalid_properties =
|
71
|
+
invalid_properties = super
|
95
72
|
invalid_properties
|
96
73
|
end
|
97
74
|
|
98
75
|
# Check to see if the all the properties in the model are valid
|
99
76
|
# @return true if the model is valid
|
100
77
|
def valid?
|
78
|
+
return false if !super
|
101
79
|
true
|
102
80
|
end
|
103
81
|
|
@@ -24,13 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents background of slide
|
27
|
-
class SlideBackground
|
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
|
-
|
27
|
+
class SlideBackground < ResourceBase
|
34
28
|
# Fill type.
|
35
29
|
attr_accessor :type
|
36
30
|
|
@@ -64,43 +58,26 @@ module AsposeSlidesCloud
|
|
64
58
|
|
65
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
60
|
def self.attribute_map
|
67
|
-
{
|
68
|
-
:'self_uri' => :'SelfUri',
|
69
|
-
:'alternate_links' => :'AlternateLinks',
|
61
|
+
super.merge({
|
70
62
|
:'type' => :'Type',
|
71
63
|
:'fill_format' => :'FillFormat',
|
72
|
-
:'effect_format' => :'EffectFormat'
|
73
|
-
}
|
64
|
+
:'effect_format' => :'EffectFormat',
|
65
|
+
})
|
74
66
|
end
|
75
67
|
|
76
68
|
# Attribute type mapping.
|
77
69
|
def self.swagger_types
|
78
|
-
{
|
79
|
-
:'self_uri' => :'ResourceUri',
|
80
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
70
|
+
super.merge({
|
81
71
|
:'type' => :'String',
|
82
72
|
:'fill_format' => :'FillFormat',
|
83
|
-
:'effect_format' => :'EffectFormat'
|
84
|
-
}
|
73
|
+
:'effect_format' => :'EffectFormat',
|
74
|
+
})
|
85
75
|
end
|
86
76
|
|
87
77
|
# Initializes the object
|
88
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
89
79
|
def initialize(attributes = {})
|
90
|
-
|
91
|
-
|
92
|
-
# convert string to symbol for hash key
|
93
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
94
|
-
|
95
|
-
if attributes.has_key?(:'SelfUri')
|
96
|
-
self.self_uri = attributes[:'SelfUri']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.has_key?(:'AlternateLinks')
|
100
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
101
|
-
self.alternate_links = value
|
102
|
-
end
|
103
|
-
end
|
80
|
+
super
|
104
81
|
|
105
82
|
if attributes.has_key?(:'Type')
|
106
83
|
self.type = attributes[:'Type']
|
@@ -118,7 +95,7 @@ module AsposeSlidesCloud
|
|
118
95
|
# Show invalid properties with the reasons. Usually used together with valid?
|
119
96
|
# @return Array for valid properties with the reasons
|
120
97
|
def list_invalid_properties
|
121
|
-
invalid_properties =
|
98
|
+
invalid_properties = super
|
122
99
|
if @type.nil?
|
123
100
|
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
124
101
|
end
|
@@ -129,6 +106,7 @@ module AsposeSlidesCloud
|
|
129
106
|
# Check to see if the all the properties in the model are valid
|
130
107
|
# @return true if the model is valid
|
131
108
|
def valid?
|
109
|
+
return false if !super
|
132
110
|
return false if @type.nil?
|
133
111
|
type_validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
134
112
|
return false unless type_validator.valid?(@type)
|