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,51 +24,28 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Slide list.
|
27
|
-
class Slides
|
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 Slides < ResourceBase
|
34
28
|
# List of slide links.
|
35
29
|
attr_accessor :slide_list
|
36
30
|
|
37
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
32
|
def self.attribute_map
|
39
|
-
{
|
40
|
-
:'
|
41
|
-
|
42
|
-
:'slide_list' => :'SlideList'
|
43
|
-
}
|
33
|
+
super.merge({
|
34
|
+
:'slide_list' => :'SlideList',
|
35
|
+
})
|
44
36
|
end
|
45
37
|
|
46
38
|
# Attribute type mapping.
|
47
39
|
def self.swagger_types
|
48
|
-
{
|
49
|
-
:'
|
50
|
-
|
51
|
-
:'slide_list' => :'Array<ResourceUriElement>'
|
52
|
-
}
|
40
|
+
super.merge({
|
41
|
+
:'slide_list' => :'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?(:'SlideList')
|
74
51
|
if (value = attributes[:'SlideList']).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,58 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents SmartArt shape resource.
|
27
|
-
class SmartArt
|
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
|
-
|
27
|
+
class SmartArt < ShapeBase
|
79
28
|
# Layout type.
|
80
29
|
attr_accessor :layout
|
81
30
|
|
@@ -115,141 +64,30 @@ module AsposeSlidesCloud
|
|
115
64
|
|
116
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
117
66
|
def self.attribute_map
|
118
|
-
{
|
119
|
-
:'self_uri' => :'SelfUri',
|
120
|
-
:'alternate_links' => :'AlternateLinks',
|
121
|
-
:'name' => :'Name',
|
122
|
-
:'width' => :'Width',
|
123
|
-
:'height' => :'Height',
|
124
|
-
:'alternative_text' => :'AlternativeText',
|
125
|
-
:'alternative_text_title' => :'AlternativeTextTitle',
|
126
|
-
:'hidden' => :'Hidden',
|
127
|
-
:'x' => :'X',
|
128
|
-
:'y' => :'Y',
|
129
|
-
:'z_order_position' => :'ZOrderPosition',
|
130
|
-
:'shapes' => :'Shapes',
|
131
|
-
:'fill_format' => :'FillFormat',
|
132
|
-
:'effect_format' => :'EffectFormat',
|
133
|
-
:'line_format' => :'LineFormat',
|
134
|
-
:'type' => :'Type',
|
135
|
-
:'shape_type' => :'ShapeType',
|
67
|
+
super.merge({
|
136
68
|
:'layout' => :'Layout',
|
137
69
|
:'quick_style' => :'QuickStyle',
|
138
70
|
:'color_style' => :'ColorStyle',
|
139
71
|
:'nodes' => :'Nodes',
|
140
|
-
:'is_reversed' => :'IsReversed'
|
141
|
-
}
|
72
|
+
:'is_reversed' => :'IsReversed',
|
73
|
+
})
|
142
74
|
end
|
143
75
|
|
144
76
|
# Attribute type mapping.
|
145
77
|
def self.swagger_types
|
146
|
-
{
|
147
|
-
:'self_uri' => :'ResourceUri',
|
148
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
149
|
-
:'name' => :'String',
|
150
|
-
:'width' => :'Float',
|
151
|
-
:'height' => :'Float',
|
152
|
-
:'alternative_text' => :'String',
|
153
|
-
:'alternative_text_title' => :'String',
|
154
|
-
:'hidden' => :'BOOLEAN',
|
155
|
-
:'x' => :'Float',
|
156
|
-
:'y' => :'Float',
|
157
|
-
:'z_order_position' => :'Integer',
|
158
|
-
:'shapes' => :'ResourceUriElement',
|
159
|
-
:'fill_format' => :'FillFormat',
|
160
|
-
:'effect_format' => :'EffectFormat',
|
161
|
-
:'line_format' => :'LineFormat',
|
162
|
-
:'type' => :'String',
|
163
|
-
:'shape_type' => :'String',
|
78
|
+
super.merge({
|
164
79
|
:'layout' => :'String',
|
165
80
|
:'quick_style' => :'String',
|
166
81
|
:'color_style' => :'String',
|
167
82
|
:'nodes' => :'Array<SmartArtNode>',
|
168
|
-
:'is_reversed' => :'BOOLEAN'
|
169
|
-
}
|
83
|
+
:'is_reversed' => :'BOOLEAN',
|
84
|
+
})
|
170
85
|
end
|
171
86
|
|
172
87
|
# Initializes the object
|
173
88
|
# @param [Hash] attributes Model attributes in the form of hash
|
174
89
|
def initialize(attributes = {})
|
175
|
-
|
176
|
-
|
177
|
-
# convert string to symbol for hash key
|
178
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
179
|
-
|
180
|
-
if attributes.has_key?(:'SelfUri')
|
181
|
-
self.self_uri = attributes[:'SelfUri']
|
182
|
-
end
|
183
|
-
|
184
|
-
if attributes.has_key?(:'AlternateLinks')
|
185
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
186
|
-
self.alternate_links = value
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
if attributes.has_key?(:'Name')
|
191
|
-
self.name = attributes[:'Name']
|
192
|
-
end
|
193
|
-
|
194
|
-
if attributes.has_key?(:'Width')
|
195
|
-
self.width = attributes[:'Width']
|
196
|
-
end
|
197
|
-
|
198
|
-
if attributes.has_key?(:'Height')
|
199
|
-
self.height = attributes[:'Height']
|
200
|
-
end
|
201
|
-
|
202
|
-
if attributes.has_key?(:'AlternativeText')
|
203
|
-
self.alternative_text = attributes[:'AlternativeText']
|
204
|
-
end
|
205
|
-
|
206
|
-
if attributes.has_key?(:'AlternativeTextTitle')
|
207
|
-
self.alternative_text_title = attributes[:'AlternativeTextTitle']
|
208
|
-
end
|
209
|
-
|
210
|
-
if attributes.has_key?(:'Hidden')
|
211
|
-
self.hidden = attributes[:'Hidden']
|
212
|
-
end
|
213
|
-
|
214
|
-
if attributes.has_key?(:'X')
|
215
|
-
self.x = attributes[:'X']
|
216
|
-
end
|
217
|
-
|
218
|
-
if attributes.has_key?(:'Y')
|
219
|
-
self.y = attributes[:'Y']
|
220
|
-
end
|
221
|
-
|
222
|
-
if attributes.has_key?(:'ZOrderPosition')
|
223
|
-
self.z_order_position = attributes[:'ZOrderPosition']
|
224
|
-
end
|
225
|
-
|
226
|
-
if attributes.has_key?(:'Shapes')
|
227
|
-
self.shapes = attributes[:'Shapes']
|
228
|
-
end
|
229
|
-
|
230
|
-
if attributes.has_key?(:'FillFormat')
|
231
|
-
self.fill_format = attributes[:'FillFormat']
|
232
|
-
end
|
233
|
-
|
234
|
-
if attributes.has_key?(:'EffectFormat')
|
235
|
-
self.effect_format = attributes[:'EffectFormat']
|
236
|
-
end
|
237
|
-
|
238
|
-
if attributes.has_key?(:'LineFormat')
|
239
|
-
self.line_format = attributes[:'LineFormat']
|
240
|
-
end
|
241
|
-
|
242
|
-
if attributes.has_key?(:'Type')
|
243
|
-
self.type = attributes[:'Type']
|
244
|
-
else
|
245
|
-
self.type = "SmartArt"
|
246
|
-
end
|
247
|
-
|
248
|
-
if attributes.has_key?(:'ShapeType')
|
249
|
-
self.shape_type = attributes[:'ShapeType']
|
250
|
-
else
|
251
|
-
self.shape_type = "Diagram"
|
252
|
-
end
|
90
|
+
super
|
253
91
|
|
254
92
|
if attributes.has_key?(:'Layout')
|
255
93
|
self.layout = attributes[:'Layout']
|
@@ -272,24 +110,13 @@ module AsposeSlidesCloud
|
|
272
110
|
if attributes.has_key?(:'IsReversed')
|
273
111
|
self.is_reversed = attributes[:'IsReversed']
|
274
112
|
end
|
113
|
+
self.type = "SmartArt"
|
275
114
|
end
|
276
115
|
|
277
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
278
117
|
# @return Array for valid properties with the reasons
|
279
118
|
def list_invalid_properties
|
280
|
-
invalid_properties =
|
281
|
-
if @z_order_position.nil?
|
282
|
-
invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
|
283
|
-
end
|
284
|
-
|
285
|
-
if @type.nil?
|
286
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
287
|
-
end
|
288
|
-
|
289
|
-
if @shape_type.nil?
|
290
|
-
invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
|
291
|
-
end
|
292
|
-
|
119
|
+
invalid_properties = super
|
293
120
|
if @layout.nil?
|
294
121
|
invalid_properties.push('invalid value for "layout", layout cannot be nil.')
|
295
122
|
end
|
@@ -312,13 +139,7 @@ module AsposeSlidesCloud
|
|
312
139
|
# Check to see if the all the properties in the model are valid
|
313
140
|
# @return true if the model is valid
|
314
141
|
def valid?
|
315
|
-
return false if
|
316
|
-
return false if @type.nil?
|
317
|
-
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
318
|
-
return false unless type_validator.valid?(@type)
|
319
|
-
return false if @shape_type.nil?
|
320
|
-
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'])
|
321
|
-
return false unless shape_type_validator.valid?(@shape_type)
|
142
|
+
return false if !super
|
322
143
|
return false if @layout.nil?
|
323
144
|
layout_validator = EnumAttributeValidator.new('String', ['AccentProcess', 'AccentedPicture', 'AlternatingFlow', 'AlternatingHexagons', 'AlternatingPictureBlocks', 'AlternatingPictureCircles', 'ArrowRibbon', 'AscendingPictureAccentProcess', 'Balance', 'BasicBendingProcess', 'BasicBlockList', 'BasicChevronProcess', 'BasicCycle', 'BasicMatrix', 'BasicPie', 'BasicProcess', 'BasicPyramid', 'BasicRadial', 'BasicTarget', 'BasicTimeline', 'BasicVenn', 'BendingPictureAccentList', 'BendingPictureBlocks', 'BendingPictureCaption', 'BendingPictureCaptionList', 'BendingPictureSemiTransparentText', 'BlockCycle', 'BubblePictureList', 'CaptionedPictures', 'ChevronList', 'CircleAccentTimeline', 'CircleArrowProcess', 'CirclePictureHierarchy', 'CircleRelationship', 'CircularBendingProcess', 'CircularPictureCallout', 'ClosedChevronProcess', 'ContinuousArrowProcess', 'ContinuousBlockProcess', 'ContinuousCycle', 'ContinuousPictureList', 'ConvergingArrows', 'ConvergingRadial', 'CounterbalanceArrows', 'CycleMatrix', 'DescendingBlockList', 'DescendingProcess', 'DetailedProcess', 'DivergingArrows', 'DivergingRadial', 'Equation', 'FramedTextPicture', 'Funnel', 'Gear', 'GridMatrix', 'GroupedList', 'HalfCircleOrganizationChart', 'HexagonCluster', 'Hierarchy', 'HierarchyList', 'HorizontalBulletList', 'HorizontalHierarchy', 'HorizontalLabeledHierarchy', 'HorizontalMultiLevelHierarchy', 'HorizontalOrganizationChart', 'HorizontalPictureList', 'IncreasingArrowsProcess', 'IncreasingCircleProcess', 'InvertedPyramid', 'LabeledHierarchy', 'LinearVenn', 'LinedList', 'MultidirectionalCycle', 'NameandTitleOrganizationChart', 'NestedTarget', 'NondirectionalCycle', 'OpposingArrows', 'OpposingIdeas', 'OrganizationChart', 'PhasedProcess', 'PictureAccentBlocks', 'PictureAccentList', 'PictureAccentProcess', 'PictureCaptionList', 'PictureGrid', 'PictureLineup', 'PictureStrips', 'PieProcess', 'PlusandMinus', 'ProcessArrows', 'ProcessList', 'PyramidList', 'RadialCluster', 'RadialCycle', 'RadialList', 'RadialVenn', 'RandomToResultProcess', 'RepeatingBendingProcess', 'ReverseList', 'SegmentedCycle', 'SegmentedProcess', 'SegmentedPyramid', 'SnapshotPictureList', 'SpiralPicture', 'SquareAccentList', 'StackedList', 'StackedVenn', 'StaggeredProcess', 'StepDownProcess', 'StepUpProcess', 'SubStepProcess', 'TableHierarchy', 'TableList', 'TargetList', 'TextCycle', 'TitlePictureLineup', 'TitledMatrix', 'TitledPictureAccentList', 'TitledPictureBlocks', 'TrapezoidList', 'UpwardArrow', 'VerticalAccentList', 'VerticalArrowList', 'VerticalBendingProcess', 'VerticalBlockList', 'VerticalBoxList', 'VerticalBulletList', 'VerticalChevronList', 'VerticalCircleList', 'VerticalCurvedList', 'VerticalEquation', 'VerticalPictureAccentList', 'VerticalPictureList', 'VerticalProcess', 'Custom', 'PictureOrganizationChart'])
|
324
145
|
return false unless layout_validator.valid?(@layout)
|
@@ -332,26 +153,6 @@ module AsposeSlidesCloud
|
|
332
153
|
true
|
333
154
|
end
|
334
155
|
|
335
|
-
# Custom attribute writer method checking allowed values (enum).
|
336
|
-
# @param [Object] type Object to be assigned
|
337
|
-
def type=(type)
|
338
|
-
validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
339
|
-
unless validator.valid?(type)
|
340
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
341
|
-
end
|
342
|
-
@type = type
|
343
|
-
end
|
344
|
-
|
345
|
-
# Custom attribute writer method checking allowed values (enum).
|
346
|
-
# @param [Object] shape_type Object to be assigned
|
347
|
-
def shape_type=(shape_type)
|
348
|
-
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'])
|
349
|
-
unless validator.valid?(shape_type)
|
350
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
351
|
-
end
|
352
|
-
@shape_type = shape_type
|
353
|
-
end
|
354
|
-
|
355
156
|
# Custom attribute writer method checking allowed values (enum).
|
356
157
|
# @param [Object] layout Object to be assigned
|
357
158
|
def layout=(layout)
|
@@ -403,7 +204,6 @@ module AsposeSlidesCloud
|
|
403
204
|
effect_format == o.effect_format &&
|
404
205
|
line_format == o.line_format &&
|
405
206
|
type == o.type &&
|
406
|
-
shape_type == o.shape_type &&
|
407
207
|
layout == o.layout &&
|
408
208
|
quick_style == o.quick_style &&
|
409
209
|
color_style == o.color_style &&
|
@@ -420,7 +220,7 @@ module AsposeSlidesCloud
|
|
420
220
|
# Calculates hash code according to all attributes.
|
421
221
|
# @return [Fixnum] Hash code
|
422
222
|
def hash
|
423
|
-
[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,
|
223
|
+
[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, layout, quick_style, color_style, nodes, is_reversed].hash
|
424
224
|
end
|
425
225
|
|
426
226
|
# Builds the object from hash
|
@@ -69,7 +69,7 @@ module AsposeSlidesCloud
|
|
69
69
|
:'shapes' => :'Shapes',
|
70
70
|
:'is_assistant' => :'IsAssistant',
|
71
71
|
:'text' => :'Text',
|
72
|
-
:'org_chart_layout' => :'OrgChartLayout'
|
72
|
+
:'org_chart_layout' => :'OrgChartLayout',
|
73
73
|
}
|
74
74
|
end
|
75
75
|
|
@@ -77,10 +77,10 @@ module AsposeSlidesCloud
|
|
77
77
|
def self.swagger_types
|
78
78
|
{
|
79
79
|
:'nodes' => :'Array<SmartArtNode>',
|
80
|
-
:'shapes' => :'
|
80
|
+
:'shapes' => :'ResourceUri',
|
81
81
|
:'is_assistant' => :'BOOLEAN',
|
82
82
|
:'text' => :'String',
|
83
|
-
:'org_chart_layout' => :'String'
|
83
|
+
:'org_chart_layout' => :'String',
|
84
84
|
}
|
85
85
|
end
|
86
86
|
|
@@ -24,58 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Represents SmartArt resource.
|
27
|
-
class SmartArtShape
|
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
|
-
|
27
|
+
class SmartArtShape < GeometryShape
|
79
28
|
class EnumAttributeValidator
|
80
29
|
attr_reader :datatype
|
81
30
|
attr_reader :allowable_values
|
@@ -100,185 +49,37 @@ module AsposeSlidesCloud
|
|
100
49
|
|
101
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
102
51
|
def self.attribute_map
|
103
|
-
{
|
104
|
-
|
105
|
-
:'alternate_links' => :'AlternateLinks',
|
106
|
-
:'name' => :'Name',
|
107
|
-
:'width' => :'Width',
|
108
|
-
:'height' => :'Height',
|
109
|
-
:'alternative_text' => :'AlternativeText',
|
110
|
-
:'alternative_text_title' => :'AlternativeTextTitle',
|
111
|
-
:'hidden' => :'Hidden',
|
112
|
-
:'x' => :'X',
|
113
|
-
:'y' => :'Y',
|
114
|
-
:'z_order_position' => :'ZOrderPosition',
|
115
|
-
:'shapes' => :'Shapes',
|
116
|
-
:'fill_format' => :'FillFormat',
|
117
|
-
:'effect_format' => :'EffectFormat',
|
118
|
-
:'line_format' => :'LineFormat',
|
119
|
-
:'type' => :'Type',
|
120
|
-
:'shape_type' => :'ShapeType'
|
121
|
-
}
|
52
|
+
super.merge({
|
53
|
+
})
|
122
54
|
end
|
123
55
|
|
124
56
|
# Attribute type mapping.
|
125
57
|
def self.swagger_types
|
126
|
-
{
|
127
|
-
|
128
|
-
:'alternate_links' => :'Array<ResourceUri>',
|
129
|
-
:'name' => :'String',
|
130
|
-
:'width' => :'Float',
|
131
|
-
:'height' => :'Float',
|
132
|
-
:'alternative_text' => :'String',
|
133
|
-
:'alternative_text_title' => :'String',
|
134
|
-
:'hidden' => :'BOOLEAN',
|
135
|
-
:'x' => :'Float',
|
136
|
-
:'y' => :'Float',
|
137
|
-
:'z_order_position' => :'Integer',
|
138
|
-
:'shapes' => :'ResourceUriElement',
|
139
|
-
:'fill_format' => :'FillFormat',
|
140
|
-
:'effect_format' => :'EffectFormat',
|
141
|
-
:'line_format' => :'LineFormat',
|
142
|
-
:'type' => :'String',
|
143
|
-
:'shape_type' => :'String'
|
144
|
-
}
|
58
|
+
super.merge({
|
59
|
+
})
|
145
60
|
end
|
146
61
|
|
147
62
|
# Initializes the object
|
148
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
149
64
|
def initialize(attributes = {})
|
150
|
-
|
151
|
-
|
152
|
-
# convert string to symbol for hash key
|
153
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
154
|
-
|
155
|
-
if attributes.has_key?(:'SelfUri')
|
156
|
-
self.self_uri = attributes[:'SelfUri']
|
157
|
-
end
|
158
|
-
|
159
|
-
if attributes.has_key?(:'AlternateLinks')
|
160
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
161
|
-
self.alternate_links = value
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
if attributes.has_key?(:'Name')
|
166
|
-
self.name = attributes[:'Name']
|
167
|
-
end
|
168
|
-
|
169
|
-
if attributes.has_key?(:'Width')
|
170
|
-
self.width = attributes[:'Width']
|
171
|
-
end
|
172
|
-
|
173
|
-
if attributes.has_key?(:'Height')
|
174
|
-
self.height = attributes[:'Height']
|
175
|
-
end
|
176
|
-
|
177
|
-
if attributes.has_key?(:'AlternativeText')
|
178
|
-
self.alternative_text = attributes[:'AlternativeText']
|
179
|
-
end
|
180
|
-
|
181
|
-
if attributes.has_key?(:'AlternativeTextTitle')
|
182
|
-
self.alternative_text_title = attributes[:'AlternativeTextTitle']
|
183
|
-
end
|
184
|
-
|
185
|
-
if attributes.has_key?(:'Hidden')
|
186
|
-
self.hidden = attributes[:'Hidden']
|
187
|
-
end
|
188
|
-
|
189
|
-
if attributes.has_key?(:'X')
|
190
|
-
self.x = attributes[:'X']
|
191
|
-
end
|
192
|
-
|
193
|
-
if attributes.has_key?(:'Y')
|
194
|
-
self.y = attributes[:'Y']
|
195
|
-
end
|
196
|
-
|
197
|
-
if attributes.has_key?(:'ZOrderPosition')
|
198
|
-
self.z_order_position = attributes[:'ZOrderPosition']
|
199
|
-
end
|
200
|
-
|
201
|
-
if attributes.has_key?(:'Shapes')
|
202
|
-
self.shapes = attributes[:'Shapes']
|
203
|
-
end
|
204
|
-
|
205
|
-
if attributes.has_key?(:'FillFormat')
|
206
|
-
self.fill_format = attributes[:'FillFormat']
|
207
|
-
end
|
208
|
-
|
209
|
-
if attributes.has_key?(:'EffectFormat')
|
210
|
-
self.effect_format = attributes[:'EffectFormat']
|
211
|
-
end
|
212
|
-
|
213
|
-
if attributes.has_key?(:'LineFormat')
|
214
|
-
self.line_format = attributes[:'LineFormat']
|
215
|
-
end
|
216
|
-
|
217
|
-
if attributes.has_key?(:'Type')
|
218
|
-
self.type = attributes[:'Type']
|
219
|
-
else
|
220
|
-
self.type = "SmartArtShape"
|
221
|
-
end
|
222
|
-
|
223
|
-
if attributes.has_key?(:'ShapeType')
|
224
|
-
self.shape_type = attributes[:'ShapeType']
|
225
|
-
else
|
226
|
-
self.shape_type = "Custom"
|
227
|
-
end
|
65
|
+
super
|
66
|
+
self.type = "SmartArtShape"
|
228
67
|
end
|
229
68
|
|
230
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
231
70
|
# @return Array for valid properties with the reasons
|
232
71
|
def list_invalid_properties
|
233
|
-
invalid_properties =
|
234
|
-
if @z_order_position.nil?
|
235
|
-
invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
|
236
|
-
end
|
237
|
-
|
238
|
-
if @type.nil?
|
239
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
240
|
-
end
|
241
|
-
|
242
|
-
if @shape_type.nil?
|
243
|
-
invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
|
244
|
-
end
|
245
|
-
|
72
|
+
invalid_properties = super
|
246
73
|
invalid_properties
|
247
74
|
end
|
248
75
|
|
249
76
|
# Check to see if the all the properties in the model are valid
|
250
77
|
# @return true if the model is valid
|
251
78
|
def valid?
|
252
|
-
return false if
|
253
|
-
return false if @type.nil?
|
254
|
-
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
255
|
-
return false unless type_validator.valid?(@type)
|
256
|
-
return false if @shape_type.nil?
|
257
|
-
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'])
|
258
|
-
return false unless shape_type_validator.valid?(@shape_type)
|
79
|
+
return false if !super
|
259
80
|
true
|
260
81
|
end
|
261
82
|
|
262
|
-
# Custom attribute writer method checking allowed values (enum).
|
263
|
-
# @param [Object] type Object to be assigned
|
264
|
-
def type=(type)
|
265
|
-
validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
266
|
-
unless validator.valid?(type)
|
267
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
268
|
-
end
|
269
|
-
@type = type
|
270
|
-
end
|
271
|
-
|
272
|
-
# Custom attribute writer method checking allowed values (enum).
|
273
|
-
# @param [Object] shape_type Object to be assigned
|
274
|
-
def shape_type=(shape_type)
|
275
|
-
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'])
|
276
|
-
unless validator.valid?(shape_type)
|
277
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
278
|
-
end
|
279
|
-
@shape_type = shape_type
|
280
|
-
end
|
281
|
-
|
282
83
|
# Checks equality by comparing each attribute.
|
283
84
|
# @param [Object] Object to be compared
|
284
85
|
def ==(o)
|
@@ -312,7 +113,7 @@ module AsposeSlidesCloud
|
|
312
113
|
# Calculates hash code according to all attributes.
|
313
114
|
# @return [Fixnum] Hash code
|
314
115
|
def hash
|
315
|
-
[self_uri,
|
116
|
+
[self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, typeshape_type].hash
|
316
117
|
end
|
317
118
|
|
318
119
|
# Builds the object from hash
|