aspose_slides_cloud 20.7.0 → 20.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/TestData/ChartTest.pptx +0 -0
- data/lib/aspose_slides_cloud.rb +5 -3
- data/lib/aspose_slides_cloud/api/slides_api.rb +407 -0
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +165 -0
- data/lib/aspose_slides_cloud/api_client.rb +1 -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 -236
- 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 +12 -210
- data/lib/aspose_slides_cloud/models/chart_category.rb +16 -4
- 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 +11 -234
- data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
- data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
- data/lib/aspose_slides_cloud/models/document.rb +10 -32
- 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 +10 -200
- 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 -209
- data/lib/aspose_slides_cloud/models/group_shape.rb +11 -209
- data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
- data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -2
- 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 +10 -32
- 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 +2 -2
- data/lib/aspose_slides_cloud/models/master_slide.rb +10 -32
- 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/object_exist.rb +2 -2
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -210
- 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 +11 -40
- data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -236
- 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/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/resource_uri_element.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/series.rb +2 -2
- data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
- data/lib/aspose_slides_cloud/models/shape.rb +11 -234
- data/lib/aspose_slides_cloud/models/shape_base.rb +10 -32
- 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 +10 -32
- 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_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 -210
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +2 -2
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +11 -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 -210
- 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 +10 -32
- 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 -236
- data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
- 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 +313 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +1417 -63
- data/spec/extra/extra_spec.rb +66 -33
- data/testRules.json +31 -0
- metadata +4 -2
|
@@ -24,57 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Represents GeometryShape resource.
|
|
27
|
-
class GeometryShape
|
|
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
|
-
attr_accessor :type
|
|
74
|
-
|
|
75
|
-
# Shape type.
|
|
76
|
-
attr_accessor :shape_type
|
|
77
|
-
|
|
27
|
+
class GeometryShape < ShapeBase
|
|
78
28
|
# Geometry shape type.
|
|
79
29
|
attr_accessor :geometry_shape_type
|
|
80
30
|
|
|
@@ -102,129 +52,22 @@ module AsposeSlidesCloud
|
|
|
102
52
|
|
|
103
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
104
54
|
def self.attribute_map
|
|
105
|
-
{
|
|
106
|
-
:'
|
|
107
|
-
|
|
108
|
-
:'name' => :'Name',
|
|
109
|
-
:'width' => :'Width',
|
|
110
|
-
:'height' => :'Height',
|
|
111
|
-
:'alternative_text' => :'AlternativeText',
|
|
112
|
-
:'alternative_text_title' => :'AlternativeTextTitle',
|
|
113
|
-
:'hidden' => :'Hidden',
|
|
114
|
-
:'x' => :'X',
|
|
115
|
-
:'y' => :'Y',
|
|
116
|
-
:'z_order_position' => :'ZOrderPosition',
|
|
117
|
-
:'shapes' => :'Shapes',
|
|
118
|
-
:'fill_format' => :'FillFormat',
|
|
119
|
-
:'effect_format' => :'EffectFormat',
|
|
120
|
-
:'line_format' => :'LineFormat',
|
|
121
|
-
:'type' => :'Type',
|
|
122
|
-
:'shape_type' => :'ShapeType',
|
|
123
|
-
:'geometry_shape_type' => :'GeometryShapeType'
|
|
124
|
-
}
|
|
55
|
+
super.merge({
|
|
56
|
+
:'geometry_shape_type' => :'GeometryShapeType',
|
|
57
|
+
})
|
|
125
58
|
end
|
|
126
59
|
|
|
127
60
|
# Attribute type mapping.
|
|
128
61
|
def self.swagger_types
|
|
129
|
-
{
|
|
130
|
-
:'
|
|
131
|
-
|
|
132
|
-
:'name' => :'String',
|
|
133
|
-
:'width' => :'Float',
|
|
134
|
-
:'height' => :'Float',
|
|
135
|
-
:'alternative_text' => :'String',
|
|
136
|
-
:'alternative_text_title' => :'String',
|
|
137
|
-
:'hidden' => :'BOOLEAN',
|
|
138
|
-
:'x' => :'Float',
|
|
139
|
-
:'y' => :'Float',
|
|
140
|
-
:'z_order_position' => :'Integer',
|
|
141
|
-
:'shapes' => :'ResourceUriElement',
|
|
142
|
-
:'fill_format' => :'FillFormat',
|
|
143
|
-
:'effect_format' => :'EffectFormat',
|
|
144
|
-
:'line_format' => :'LineFormat',
|
|
145
|
-
:'type' => :'String',
|
|
146
|
-
:'shape_type' => :'String',
|
|
147
|
-
:'geometry_shape_type' => :'String'
|
|
148
|
-
}
|
|
62
|
+
super.merge({
|
|
63
|
+
:'geometry_shape_type' => :'String',
|
|
64
|
+
})
|
|
149
65
|
end
|
|
150
66
|
|
|
151
67
|
# Initializes the object
|
|
152
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
153
69
|
def initialize(attributes = {})
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
# convert string to symbol for hash key
|
|
157
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
158
|
-
|
|
159
|
-
if attributes.has_key?(:'SelfUri')
|
|
160
|
-
self.self_uri = attributes[:'SelfUri']
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
if attributes.has_key?(:'AlternateLinks')
|
|
164
|
-
if (value = attributes[:'AlternateLinks']).is_a?(Array)
|
|
165
|
-
self.alternate_links = value
|
|
166
|
-
end
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
if attributes.has_key?(:'Name')
|
|
170
|
-
self.name = attributes[:'Name']
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
if attributes.has_key?(:'Width')
|
|
174
|
-
self.width = attributes[:'Width']
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
if attributes.has_key?(:'Height')
|
|
178
|
-
self.height = attributes[:'Height']
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
if attributes.has_key?(:'AlternativeText')
|
|
182
|
-
self.alternative_text = attributes[:'AlternativeText']
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
if attributes.has_key?(:'AlternativeTextTitle')
|
|
186
|
-
self.alternative_text_title = attributes[:'AlternativeTextTitle']
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
if attributes.has_key?(:'Hidden')
|
|
190
|
-
self.hidden = attributes[:'Hidden']
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
if attributes.has_key?(:'X')
|
|
194
|
-
self.x = attributes[:'X']
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
if attributes.has_key?(:'Y')
|
|
198
|
-
self.y = attributes[:'Y']
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
if attributes.has_key?(:'ZOrderPosition')
|
|
202
|
-
self.z_order_position = attributes[:'ZOrderPosition']
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
if attributes.has_key?(:'Shapes')
|
|
206
|
-
self.shapes = attributes[:'Shapes']
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
if attributes.has_key?(:'FillFormat')
|
|
210
|
-
self.fill_format = attributes[:'FillFormat']
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
if attributes.has_key?(:'EffectFormat')
|
|
214
|
-
self.effect_format = attributes[:'EffectFormat']
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
if attributes.has_key?(:'LineFormat')
|
|
218
|
-
self.line_format = attributes[:'LineFormat']
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
if attributes.has_key?(:'Type')
|
|
222
|
-
self.type = attributes[:'Type']
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
if attributes.has_key?(:'ShapeType')
|
|
226
|
-
self.shape_type = attributes[:'ShapeType']
|
|
227
|
-
end
|
|
70
|
+
super
|
|
228
71
|
|
|
229
72
|
if attributes.has_key?(:'GeometryShapeType')
|
|
230
73
|
self.geometry_shape_type = attributes[:'GeometryShapeType']
|
|
@@ -234,15 +77,7 @@ module AsposeSlidesCloud
|
|
|
234
77
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
235
78
|
# @return Array for valid properties with the reasons
|
|
236
79
|
def list_invalid_properties
|
|
237
|
-
invalid_properties =
|
|
238
|
-
if @z_order_position.nil?
|
|
239
|
-
invalid_properties.push('invalid value for "z_order_position", z_order_position 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
|
-
|
|
80
|
+
invalid_properties = super
|
|
246
81
|
if @geometry_shape_type.nil?
|
|
247
82
|
invalid_properties.push('invalid value for "geometry_shape_type", geometry_shape_type cannot be nil.')
|
|
248
83
|
end
|
|
@@ -253,38 +88,13 @@ module AsposeSlidesCloud
|
|
|
253
88
|
# Check to see if the all the properties in the model are valid
|
|
254
89
|
# @return true if the model is valid
|
|
255
90
|
def valid?
|
|
256
|
-
return false if
|
|
257
|
-
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
|
258
|
-
return false unless type_validator.valid?(@type)
|
|
259
|
-
return false if @shape_type.nil?
|
|
260
|
-
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'])
|
|
261
|
-
return false unless shape_type_validator.valid?(@shape_type)
|
|
91
|
+
return false if !super
|
|
262
92
|
return false if @geometry_shape_type.nil?
|
|
263
93
|
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'])
|
|
264
94
|
return false unless geometry_shape_type_validator.valid?(@geometry_shape_type)
|
|
265
95
|
true
|
|
266
96
|
end
|
|
267
97
|
|
|
268
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
269
|
-
# @param [Object] type Object to be assigned
|
|
270
|
-
def type=(type)
|
|
271
|
-
validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
|
|
272
|
-
unless validator.valid?(type)
|
|
273
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
274
|
-
end
|
|
275
|
-
@type = type
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
279
|
-
# @param [Object] shape_type Object to be assigned
|
|
280
|
-
def shape_type=(shape_type)
|
|
281
|
-
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'])
|
|
282
|
-
unless validator.valid?(shape_type)
|
|
283
|
-
fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
|
|
284
|
-
end
|
|
285
|
-
@shape_type = shape_type
|
|
286
|
-
end
|
|
287
|
-
|
|
288
98
|
# Custom attribute writer method checking allowed values (enum).
|
|
289
99
|
# @param [Object] geometry_shape_type Object to be assigned
|
|
290
100
|
def geometry_shape_type=(geometry_shape_type)
|
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
37
|
:'radius' => :'Radius',
|
|
38
|
-
:'color' => :'Color'
|
|
38
|
+
:'color' => :'Color',
|
|
39
39
|
}
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
|
43
43
|
def self.swagger_types
|
|
44
44
|
{
|
|
45
45
|
:'radius' => :'Float',
|
|
46
|
-
:'color' => :'String'
|
|
46
|
+
:'color' => :'String',
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -24,10 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Represents gradient fill format
|
|
27
|
-
class GradientFill
|
|
28
|
-
# Type of fill.
|
|
29
|
-
attr_accessor :type
|
|
30
|
-
|
|
27
|
+
class GradientFill < FillFormat
|
|
31
28
|
# Gradient style.
|
|
32
29
|
attr_accessor :direction
|
|
33
30
|
|
|
@@ -70,43 +67,32 @@ module AsposeSlidesCloud
|
|
|
70
67
|
|
|
71
68
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
69
|
def self.attribute_map
|
|
73
|
-
{
|
|
74
|
-
:'type' => :'Type',
|
|
70
|
+
super.merge({
|
|
75
71
|
:'direction' => :'Direction',
|
|
76
72
|
:'shape' => :'Shape',
|
|
77
73
|
:'stops' => :'Stops',
|
|
78
74
|
:'linear_angle' => :'LinearAngle',
|
|
79
75
|
:'is_scaled' => :'IsScaled',
|
|
80
|
-
:'tile_flip' => :'TileFlip'
|
|
81
|
-
}
|
|
76
|
+
:'tile_flip' => :'TileFlip',
|
|
77
|
+
})
|
|
82
78
|
end
|
|
83
79
|
|
|
84
80
|
# Attribute type mapping.
|
|
85
81
|
def self.swagger_types
|
|
86
|
-
{
|
|
87
|
-
:'type' => :'String',
|
|
82
|
+
super.merge({
|
|
88
83
|
:'direction' => :'String',
|
|
89
84
|
:'shape' => :'String',
|
|
90
85
|
:'stops' => :'Array<GradientFillStop>',
|
|
91
86
|
:'linear_angle' => :'Float',
|
|
92
87
|
:'is_scaled' => :'BOOLEAN',
|
|
93
|
-
:'tile_flip' => :'String'
|
|
94
|
-
}
|
|
88
|
+
:'tile_flip' => :'String',
|
|
89
|
+
})
|
|
95
90
|
end
|
|
96
91
|
|
|
97
92
|
# Initializes the object
|
|
98
93
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
99
94
|
def initialize(attributes = {})
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
# convert string to symbol for hash key
|
|
103
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
104
|
-
|
|
105
|
-
if attributes.has_key?(:'Type')
|
|
106
|
-
self.type = attributes[:'Type']
|
|
107
|
-
else
|
|
108
|
-
self.type = "Gradient"
|
|
109
|
-
end
|
|
95
|
+
super
|
|
110
96
|
|
|
111
97
|
if attributes.has_key?(:'Direction')
|
|
112
98
|
self.direction = attributes[:'Direction']
|
|
@@ -133,16 +119,13 @@ module AsposeSlidesCloud
|
|
|
133
119
|
if attributes.has_key?(:'TileFlip')
|
|
134
120
|
self.tile_flip = attributes[:'TileFlip']
|
|
135
121
|
end
|
|
122
|
+
self.type = "Gradient"
|
|
136
123
|
end
|
|
137
124
|
|
|
138
125
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
139
126
|
# @return Array for valid properties with the reasons
|
|
140
127
|
def list_invalid_properties
|
|
141
|
-
invalid_properties =
|
|
142
|
-
if @type.nil?
|
|
143
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
144
|
-
end
|
|
145
|
-
|
|
128
|
+
invalid_properties = super
|
|
146
129
|
if @direction.nil?
|
|
147
130
|
invalid_properties.push('invalid value for "direction", direction cannot be nil.')
|
|
148
131
|
end
|
|
@@ -169,9 +152,7 @@ module AsposeSlidesCloud
|
|
|
169
152
|
# Check to see if the all the properties in the model are valid
|
|
170
153
|
# @return true if the model is valid
|
|
171
154
|
def valid?
|
|
172
|
-
return false if
|
|
173
|
-
type_validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
|
174
|
-
return false unless type_validator.valid?(@type)
|
|
155
|
+
return false if !super
|
|
175
156
|
return false if @direction.nil?
|
|
176
157
|
direction_validator = EnumAttributeValidator.new('String', ['FromCorner1', 'FromCorner2', 'FromCorner3', 'FromCorner4', 'FromCenter', 'NotDefined'])
|
|
177
158
|
return false unless direction_validator.valid?(@direction)
|
|
@@ -186,16 +167,6 @@ module AsposeSlidesCloud
|
|
|
186
167
|
true
|
|
187
168
|
end
|
|
188
169
|
|
|
189
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
190
|
-
# @param [Object] type Object to be assigned
|
|
191
|
-
def type=(type)
|
|
192
|
-
validator = EnumAttributeValidator.new('String', ['NoFill', 'Solid', 'Gradient', 'Pattern', 'Picture', 'NotDefined'])
|
|
193
|
-
unless validator.valid?(type)
|
|
194
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
195
|
-
end
|
|
196
|
-
@type = type
|
|
197
|
-
end
|
|
198
|
-
|
|
199
170
|
# Custom attribute writer method checking allowed values (enum).
|
|
200
171
|
# @param [Object] direction Object to be assigned
|
|
201
172
|
def direction=(direction)
|
|
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
|
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
37
|
:'color' => :'Color',
|
|
38
|
-
:'position' => :'Position'
|
|
38
|
+
:'position' => :'Position',
|
|
39
39
|
}
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
|
|
|
43
43
|
def self.swagger_types
|
|
44
44
|
{
|
|
45
45
|
:'color' => :'String',
|
|
46
|
-
:'position' => :'Float'
|
|
46
|
+
:'position' => :'Float',
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -24,58 +24,7 @@ require 'date'
|
|
|
24
24
|
|
|
25
25
|
module AsposeSlidesCloud
|
|
26
26
|
# Represents AudioFrame resource.
|
|
27
|
-
class GraphicalObject
|
|
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 GraphicalObject < ShapeBase
|
|
79
28
|
class EnumAttributeValidator
|
|
80
29
|
attr_reader :datatype
|
|
81
30
|
attr_reader :allowable_values
|
|
@@ -100,185 +49,38 @@ 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
|
-
|
|
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 = "GraphicalObject"
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
if attributes.has_key?(:'ShapeType')
|
|
224
|
-
self.shape_type = attributes[:'ShapeType']
|
|
225
|
-
else
|
|
226
|
-
self.shape_type = "GraphicalObject"
|
|
227
|
-
end
|
|
65
|
+
super
|
|
66
|
+
self.type = "GraphicalObject"
|
|
67
|
+
self.shape_type = "GraphicalObject"
|
|
228
68
|
end
|
|
229
69
|
|
|
230
70
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
231
71
|
# @return Array for valid properties with the reasons
|
|
232
72
|
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
|
-
|
|
73
|
+
invalid_properties = super
|
|
246
74
|
invalid_properties
|
|
247
75
|
end
|
|
248
76
|
|
|
249
77
|
# Check to see if the all the properties in the model are valid
|
|
250
78
|
# @return true if the model is valid
|
|
251
79
|
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)
|
|
80
|
+
return false if !super
|
|
259
81
|
true
|
|
260
82
|
end
|
|
261
83
|
|
|
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
84
|
# Checks equality by comparing each attribute.
|
|
283
85
|
# @param [Object] Object to be compared
|
|
284
86
|
def ==(o)
|
|
@@ -312,7 +114,7 @@ module AsposeSlidesCloud
|
|
|
312
114
|
# Calculates hash code according to all attributes.
|
|
313
115
|
# @return [Fixnum] Hash code
|
|
314
116
|
def hash
|
|
315
|
-
[self_uri,
|
|
117
|
+
[self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type].hash
|
|
316
118
|
end
|
|
317
119
|
|
|
318
120
|
# Builds the object from hash
|