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