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.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/TestData/ChartTest.pptx +0 -0
  4. data/TestData/Sections.pptx +0 -0
  5. data/lib/aspose_slides_cloud.rb +12 -5
  6. data/lib/aspose_slides_cloud/api/slides_api.rb +4571 -1683
  7. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +1191 -185
  8. data/lib/aspose_slides_cloud/api_client.rb +30 -23
  9. data/lib/aspose_slides_cloud/configuration.rb +7 -2
  10. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
  11. data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
  12. data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
  13. data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
  14. data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
  15. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
  16. data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
  17. data/lib/aspose_slides_cloud/models/axes.rb +22 -10
  18. data/lib/aspose_slides_cloud/models/axis.rb +22 -10
  19. data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
  20. data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
  21. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
  22. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
  23. data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
  24. data/lib/aspose_slides_cloud/models/chart.rb +32 -220
  25. data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
  26. data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
  27. data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
  28. data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
  29. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
  30. data/lib/aspose_slides_cloud/models/connector.rb +32 -244
  31. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
  32. data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
  33. data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
  34. data/lib/aspose_slides_cloud/models/document.rb +35 -45
  35. data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
  36. data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
  37. data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
  38. data/lib/aspose_slides_cloud/models/effect.rb +22 -10
  39. data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
  40. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  41. data/lib/aspose_slides_cloud/models/error.rb +22 -10
  42. data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
  43. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  44. data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
  45. data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
  46. data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
  47. data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
  48. data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
  49. data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
  50. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
  51. data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
  52. data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
  53. data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
  54. data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
  55. data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
  56. data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
  57. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
  58. data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
  59. data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
  60. data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
  61. data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
  62. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
  63. data/lib/aspose_slides_cloud/models/image.rb +30 -40
  64. data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
  65. data/lib/aspose_slides_cloud/models/images.rb +30 -40
  66. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
  67. data/lib/aspose_slides_cloud/models/input.rb +22 -10
  68. data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
  69. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
  70. data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
  71. data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
  72. data/lib/aspose_slides_cloud/models/legend.rb +22 -10
  73. data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
  74. data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
  75. data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
  76. data/lib/aspose_slides_cloud/models/merge.rb +31 -48
  77. data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
  78. data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
  79. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
  80. data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
  81. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
  82. data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
  83. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
  84. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
  85. data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
  86. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
  87. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
  88. data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
  89. data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
  90. data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
  91. data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
  92. data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
  93. data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
  94. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +63 -35
  95. data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
  96. data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
  97. data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
  98. data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
  99. data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
  100. data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
  101. data/lib/aspose_slides_cloud/models/portion.rb +30 -40
  102. data/lib/aspose_slides_cloud/models/portions.rb +36 -46
  103. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
  104. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
  105. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
  106. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
  107. data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
  108. data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
  109. data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
  110. data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
  111. data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
  112. data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
  113. data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
  114. data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
  115. data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
  116. data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
  117. data/lib/aspose_slides_cloud/models/save.rb +33 -50
  118. data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
  119. data/lib/aspose_slides_cloud/models/save_slide.rb +33 -50
  120. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
  121. data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
  122. data/lib/aspose_slides_cloud/models/section.rb +234 -0
  123. data/lib/aspose_slides_cloud/models/sections.rb +209 -0
  124. data/lib/aspose_slides_cloud/models/series.rb +45 -12
  125. data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
  126. data/lib/aspose_slides_cloud/models/shape.rb +32 -244
  127. data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
  128. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
  129. data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
  130. data/lib/aspose_slides_cloud/models/slide.rb +37 -47
  131. data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
  132. data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
  133. data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
  134. data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
  135. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  136. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
  137. data/lib/aspose_slides_cloud/models/slides.rb +30 -40
  138. data/lib/aspose_slides_cloud/models/smart_art.rb +32 -220
  139. data/lib/aspose_slides_cloud/models/smart_art_node.rb +23 -11
  140. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +30 -217
  141. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
  142. data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
  143. data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
  144. data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
  145. data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
  146. data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
  147. data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
  148. data/lib/aspose_slides_cloud/models/table.rb +32 -220
  149. data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
  150. data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
  151. data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
  152. data/lib/aspose_slides_cloud/models/task.rb +22 -10
  153. data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
  154. data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
  155. data/lib/aspose_slides_cloud/models/theme.rb +32 -42
  156. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
  157. data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
  158. data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
  159. data/lib/aspose_slides_cloud/models/video_frame.rb +32 -246
  160. data/lib/aspose_slides_cloud/models/view_properties.rb +30 -40
  161. data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
  162. data/lib/aspose_slides_cloud/models/waterfall_series.rb +31 -222
  163. data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
  164. data/lib/aspose_slides_cloud/type_registry.rb +320 -0
  165. data/lib/aspose_slides_cloud/version.rb +1 -1
  166. data/spec/api/slides_api_spec.rb +25246 -14028
  167. data/spec/extra/extra_spec.rb +156 -22
  168. data/spec/spec_utils.rb +11 -4
  169. data/testConfig.json +2 -2
  170. data/testRules.json +172 -77
  171. metadata +12 -3
@@ -24,58 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents SmartArt shape resource.
27
- class SmartArt
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
34
- # Gets or sets the name.
35
- attr_accessor :name
36
-
37
- # Gets or sets the width.
38
- attr_accessor :width
39
-
40
- # Gets or sets the height.
41
- attr_accessor :height
42
-
43
- # Gets or sets the alternative text.
44
- attr_accessor :alternative_text
45
-
46
- # The title of alternative text associated with the shape.
47
- attr_accessor :alternative_text_title
48
-
49
- # Gets or sets a value indicating whether this ShapeBase is hidden.
50
- attr_accessor :hidden
51
-
52
- # Gets or sets the X
53
- attr_accessor :x
54
-
55
- # Gets or sets the Y.
56
- attr_accessor :y
57
-
58
- # Gets z-order position of shape
59
- attr_accessor :z_order_position
60
-
61
- # Gets or sets the link to shapes.
62
- attr_accessor :shapes
63
-
64
- # Gets or sets the fill format.
65
- attr_accessor :fill_format
66
-
67
- # Gets or sets the effect format.
68
- attr_accessor :effect_format
69
-
70
- # Gets or sets the line format.
71
- attr_accessor :line_format
72
-
73
- # Shape type.
74
- attr_accessor :type
75
-
76
- # Combined shape type.
77
- attr_accessor :shape_type
78
-
27
+ class SmartArt < ShapeBase
79
28
  # Layout type.
80
29
  attr_accessor :layout
81
30
 
@@ -115,141 +64,30 @@ module AsposeSlidesCloud
115
64
 
116
65
  # Attribute mapping from ruby-style variable name to JSON key.
117
66
  def self.attribute_map
118
- {
119
- :'self_uri' => :'SelfUri',
120
- :'alternate_links' => :'AlternateLinks',
121
- :'name' => :'Name',
122
- :'width' => :'Width',
123
- :'height' => :'Height',
124
- :'alternative_text' => :'AlternativeText',
125
- :'alternative_text_title' => :'AlternativeTextTitle',
126
- :'hidden' => :'Hidden',
127
- :'x' => :'X',
128
- :'y' => :'Y',
129
- :'z_order_position' => :'ZOrderPosition',
130
- :'shapes' => :'Shapes',
131
- :'fill_format' => :'FillFormat',
132
- :'effect_format' => :'EffectFormat',
133
- :'line_format' => :'LineFormat',
134
- :'type' => :'Type',
135
- :'shape_type' => :'ShapeType',
67
+ super.merge({
136
68
  :'layout' => :'Layout',
137
69
  :'quick_style' => :'QuickStyle',
138
70
  :'color_style' => :'ColorStyle',
139
71
  :'nodes' => :'Nodes',
140
- :'is_reversed' => :'IsReversed'
141
- }
72
+ :'is_reversed' => :'IsReversed',
73
+ })
142
74
  end
143
75
 
144
76
  # Attribute type mapping.
145
77
  def self.swagger_types
146
- {
147
- :'self_uri' => :'ResourceUri',
148
- :'alternate_links' => :'Array<ResourceUri>',
149
- :'name' => :'String',
150
- :'width' => :'Float',
151
- :'height' => :'Float',
152
- :'alternative_text' => :'String',
153
- :'alternative_text_title' => :'String',
154
- :'hidden' => :'BOOLEAN',
155
- :'x' => :'Float',
156
- :'y' => :'Float',
157
- :'z_order_position' => :'Integer',
158
- :'shapes' => :'ResourceUriElement',
159
- :'fill_format' => :'FillFormat',
160
- :'effect_format' => :'EffectFormat',
161
- :'line_format' => :'LineFormat',
162
- :'type' => :'String',
163
- :'shape_type' => :'String',
78
+ super.merge({
164
79
  :'layout' => :'String',
165
80
  :'quick_style' => :'String',
166
81
  :'color_style' => :'String',
167
82
  :'nodes' => :'Array<SmartArtNode>',
168
- :'is_reversed' => :'BOOLEAN'
169
- }
83
+ :'is_reversed' => :'BOOLEAN',
84
+ })
170
85
  end
171
86
 
172
87
  # Initializes the object
173
88
  # @param [Hash] attributes Model attributes in the form of hash
174
89
  def initialize(attributes = {})
175
- return unless attributes.is_a?(Hash)
176
-
177
- # convert string to symbol for hash key
178
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
179
-
180
- if attributes.has_key?(:'SelfUri')
181
- self.self_uri = attributes[:'SelfUri']
182
- end
183
-
184
- if attributes.has_key?(:'AlternateLinks')
185
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
186
- self.alternate_links = value
187
- end
188
- end
189
-
190
- if attributes.has_key?(:'Name')
191
- self.name = attributes[:'Name']
192
- end
193
-
194
- if attributes.has_key?(:'Width')
195
- self.width = attributes[:'Width']
196
- end
197
-
198
- if attributes.has_key?(:'Height')
199
- self.height = attributes[:'Height']
200
- end
201
-
202
- if attributes.has_key?(:'AlternativeText')
203
- self.alternative_text = attributes[:'AlternativeText']
204
- end
205
-
206
- if attributes.has_key?(:'AlternativeTextTitle')
207
- self.alternative_text_title = attributes[:'AlternativeTextTitle']
208
- end
209
-
210
- if attributes.has_key?(:'Hidden')
211
- self.hidden = attributes[:'Hidden']
212
- end
213
-
214
- if attributes.has_key?(:'X')
215
- self.x = attributes[:'X']
216
- end
217
-
218
- if attributes.has_key?(:'Y')
219
- self.y = attributes[:'Y']
220
- end
221
-
222
- if attributes.has_key?(:'ZOrderPosition')
223
- self.z_order_position = attributes[:'ZOrderPosition']
224
- end
225
-
226
- if attributes.has_key?(:'Shapes')
227
- self.shapes = attributes[:'Shapes']
228
- end
229
-
230
- if attributes.has_key?(:'FillFormat')
231
- self.fill_format = attributes[:'FillFormat']
232
- end
233
-
234
- if attributes.has_key?(:'EffectFormat')
235
- self.effect_format = attributes[:'EffectFormat']
236
- end
237
-
238
- if attributes.has_key?(:'LineFormat')
239
- self.line_format = attributes[:'LineFormat']
240
- end
241
-
242
- if attributes.has_key?(:'Type')
243
- self.type = attributes[:'Type']
244
- else
245
- self.type = "SmartArt"
246
- end
247
-
248
- if attributes.has_key?(:'ShapeType')
249
- self.shape_type = attributes[:'ShapeType']
250
- else
251
- self.shape_type = "Diagram"
252
- end
90
+ super
253
91
 
254
92
  if attributes.has_key?(:'Layout')
255
93
  self.layout = attributes[:'Layout']
@@ -272,24 +110,13 @@ module AsposeSlidesCloud
272
110
  if attributes.has_key?(:'IsReversed')
273
111
  self.is_reversed = attributes[:'IsReversed']
274
112
  end
113
+ self.type = "SmartArt"
275
114
  end
276
115
 
277
116
  # Show invalid properties with the reasons. Usually used together with valid?
278
117
  # @return Array for valid properties with the reasons
279
118
  def list_invalid_properties
280
- invalid_properties = Array.new
281
- if @z_order_position.nil?
282
- invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
283
- end
284
-
285
- if @type.nil?
286
- invalid_properties.push('invalid value for "type", type cannot be nil.')
287
- end
288
-
289
- if @shape_type.nil?
290
- invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
291
- end
292
-
119
+ invalid_properties = super
293
120
  if @layout.nil?
294
121
  invalid_properties.push('invalid value for "layout", layout cannot be nil.')
295
122
  end
@@ -312,13 +139,7 @@ module AsposeSlidesCloud
312
139
  # Check to see if the all the properties in the model are valid
313
140
  # @return true if the model is valid
314
141
  def valid?
315
- return false if @z_order_position.nil?
316
- return false if @type.nil?
317
- type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
318
- return false unless type_validator.valid?(@type)
319
- return false if @shape_type.nil?
320
- shape_type_validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'Diagram', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'NotDefined'])
321
- return false unless shape_type_validator.valid?(@shape_type)
142
+ return false if !super
322
143
  return false if @layout.nil?
323
144
  layout_validator = EnumAttributeValidator.new('String', ['AccentProcess', 'AccentedPicture', 'AlternatingFlow', 'AlternatingHexagons', 'AlternatingPictureBlocks', 'AlternatingPictureCircles', 'ArrowRibbon', 'AscendingPictureAccentProcess', 'Balance', 'BasicBendingProcess', 'BasicBlockList', 'BasicChevronProcess', 'BasicCycle', 'BasicMatrix', 'BasicPie', 'BasicProcess', 'BasicPyramid', 'BasicRadial', 'BasicTarget', 'BasicTimeline', 'BasicVenn', 'BendingPictureAccentList', 'BendingPictureBlocks', 'BendingPictureCaption', 'BendingPictureCaptionList', 'BendingPictureSemiTransparentText', 'BlockCycle', 'BubblePictureList', 'CaptionedPictures', 'ChevronList', 'CircleAccentTimeline', 'CircleArrowProcess', 'CirclePictureHierarchy', 'CircleRelationship', 'CircularBendingProcess', 'CircularPictureCallout', 'ClosedChevronProcess', 'ContinuousArrowProcess', 'ContinuousBlockProcess', 'ContinuousCycle', 'ContinuousPictureList', 'ConvergingArrows', 'ConvergingRadial', 'CounterbalanceArrows', 'CycleMatrix', 'DescendingBlockList', 'DescendingProcess', 'DetailedProcess', 'DivergingArrows', 'DivergingRadial', 'Equation', 'FramedTextPicture', 'Funnel', 'Gear', 'GridMatrix', 'GroupedList', 'HalfCircleOrganizationChart', 'HexagonCluster', 'Hierarchy', 'HierarchyList', 'HorizontalBulletList', 'HorizontalHierarchy', 'HorizontalLabeledHierarchy', 'HorizontalMultiLevelHierarchy', 'HorizontalOrganizationChart', 'HorizontalPictureList', 'IncreasingArrowsProcess', 'IncreasingCircleProcess', 'InvertedPyramid', 'LabeledHierarchy', 'LinearVenn', 'LinedList', 'MultidirectionalCycle', 'NameandTitleOrganizationChart', 'NestedTarget', 'NondirectionalCycle', 'OpposingArrows', 'OpposingIdeas', 'OrganizationChart', 'PhasedProcess', 'PictureAccentBlocks', 'PictureAccentList', 'PictureAccentProcess', 'PictureCaptionList', 'PictureGrid', 'PictureLineup', 'PictureStrips', 'PieProcess', 'PlusandMinus', 'ProcessArrows', 'ProcessList', 'PyramidList', 'RadialCluster', 'RadialCycle', 'RadialList', 'RadialVenn', 'RandomToResultProcess', 'RepeatingBendingProcess', 'ReverseList', 'SegmentedCycle', 'SegmentedProcess', 'SegmentedPyramid', 'SnapshotPictureList', 'SpiralPicture', 'SquareAccentList', 'StackedList', 'StackedVenn', 'StaggeredProcess', 'StepDownProcess', 'StepUpProcess', 'SubStepProcess', 'TableHierarchy', 'TableList', 'TargetList', 'TextCycle', 'TitlePictureLineup', 'TitledMatrix', 'TitledPictureAccentList', 'TitledPictureBlocks', 'TrapezoidList', 'UpwardArrow', 'VerticalAccentList', 'VerticalArrowList', 'VerticalBendingProcess', 'VerticalBlockList', 'VerticalBoxList', 'VerticalBulletList', 'VerticalChevronList', 'VerticalCircleList', 'VerticalCurvedList', 'VerticalEquation', 'VerticalPictureAccentList', 'VerticalPictureList', 'VerticalProcess', 'Custom', 'PictureOrganizationChart'])
324
145
  return false unless layout_validator.valid?(@layout)
@@ -332,26 +153,6 @@ module AsposeSlidesCloud
332
153
  true
333
154
  end
334
155
 
335
- # Custom attribute writer method checking allowed values (enum).
336
- # @param [Object] type Object to be assigned
337
- def type=(type)
338
- validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
339
- unless validator.valid?(type)
340
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
341
- end
342
- @type = type
343
- end
344
-
345
- # Custom attribute writer method checking allowed values (enum).
346
- # @param [Object] shape_type Object to be assigned
347
- def shape_type=(shape_type)
348
- validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'Diagram', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'NotDefined'])
349
- unless validator.valid?(shape_type)
350
- fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
351
- end
352
- @shape_type = shape_type
353
- end
354
-
355
156
  # Custom attribute writer method checking allowed values (enum).
356
157
  # @param [Object] layout Object to be assigned
357
158
  def layout=(layout)
@@ -403,7 +204,6 @@ module AsposeSlidesCloud
403
204
  effect_format == o.effect_format &&
404
205
  line_format == o.line_format &&
405
206
  type == o.type &&
406
- shape_type == o.shape_type &&
407
207
  layout == o.layout &&
408
208
  quick_style == o.quick_style &&
409
209
  color_style == o.color_style &&
@@ -420,7 +220,7 @@ module AsposeSlidesCloud
420
220
  # Calculates hash code according to all attributes.
421
221
  # @return [Fixnum] Hash code
422
222
  def hash
423
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type, layout, quick_style, color_style, nodes, is_reversed].hash
223
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, layout, quick_style, color_style, nodes, is_reversed].hash
424
224
  end
425
225
 
426
226
  # Builds the object from hash
@@ -429,15 +229,27 @@ module AsposeSlidesCloud
429
229
  def build_from_hash(attributes)
430
230
  return nil unless attributes.is_a?(Hash)
431
231
  self.class.swagger_types.each_pair do |key, type|
432
- if type =~ /\AArray<(.*)>/i
433
- # check to ensure the input is an array given that the the attribute
434
- # is documented as an array but the input is not
435
- if attributes[self.class.attribute_map[key]].is_a?(Array)
436
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
232
+ mapKey = self.class.attribute_map[key]
233
+ if !mapKey.nil?
234
+ val = attributes[mapKey]
235
+ if val.nil?
236
+ mapKeyString = mapKey.to_s
237
+ mapKeyString[0] = mapKeyString[0].downcase
238
+ mapKey = mapKeyString.to_sym
239
+ val = attributes[mapKey]
437
240
  end
438
- elsif !attributes[self.class.attribute_map[key]].nil?
439
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
440
- end # or else data not found in attributes(hash), not an issue as the data can be optional
241
+ if !val.nil?
242
+ if type =~ /\AArray<(.*)>/i
243
+ # check to ensure the input is an array given that the the attribute
244
+ # is documented as an array but the input is not
245
+ if val.is_a?(Array)
246
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
247
+ end
248
+ else
249
+ self.send("#{key}=", _deserialize(type, val))
250
+ end
251
+ end
252
+ end
441
253
  end
442
254
 
443
255
  self
@@ -69,7 +69,7 @@ module AsposeSlidesCloud
69
69
  :'shapes' => :'Shapes',
70
70
  :'is_assistant' => :'IsAssistant',
71
71
  :'text' => :'Text',
72
- :'org_chart_layout' => :'OrgChartLayout'
72
+ :'org_chart_layout' => :'OrgChartLayout',
73
73
  }
74
74
  end
75
75
 
@@ -77,10 +77,10 @@ module AsposeSlidesCloud
77
77
  def self.swagger_types
78
78
  {
79
79
  :'nodes' => :'Array<SmartArtNode>',
80
- :'shapes' => :'ResourceUriElement',
80
+ :'shapes' => :'ResourceUri',
81
81
  :'is_assistant' => :'BOOLEAN',
82
82
  :'text' => :'String',
83
- :'org_chart_layout' => :'String'
83
+ :'org_chart_layout' => :'String',
84
84
  }
85
85
  end
86
86
 
@@ -180,15 +180,27 @@ module AsposeSlidesCloud
180
180
  def build_from_hash(attributes)
181
181
  return nil unless attributes.is_a?(Hash)
182
182
  self.class.swagger_types.each_pair do |key, type|
183
- if type =~ /\AArray<(.*)>/i
184
- # check to ensure the input is an array given that the the attribute
185
- # is documented as an array but the input is not
186
- if attributes[self.class.attribute_map[key]].is_a?(Array)
187
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
183
+ mapKey = self.class.attribute_map[key]
184
+ if !mapKey.nil?
185
+ val = attributes[mapKey]
186
+ if val.nil?
187
+ mapKeyString = mapKey.to_s
188
+ mapKeyString[0] = mapKeyString[0].downcase
189
+ mapKey = mapKeyString.to_sym
190
+ val = attributes[mapKey]
188
191
  end
189
- elsif !attributes[self.class.attribute_map[key]].nil?
190
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
191
- end # or else data not found in attributes(hash), not an issue as the data can be optional
192
+ if !val.nil?
193
+ if type =~ /\AArray<(.*)>/i
194
+ # check to ensure the input is an array given that the the attribute
195
+ # is documented as an array but the input is not
196
+ if val.is_a?(Array)
197
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
198
+ end
199
+ else
200
+ self.send("#{key}=", _deserialize(type, val))
201
+ end
202
+ end
203
+ end
192
204
  end
193
205
 
194
206
  self
@@ -24,58 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents SmartArt resource.
27
- class SmartArtShape
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
34
- # Gets or sets the name.
35
- attr_accessor :name
36
-
37
- # Gets or sets the width.
38
- attr_accessor :width
39
-
40
- # Gets or sets the height.
41
- attr_accessor :height
42
-
43
- # Gets or sets the alternative text.
44
- attr_accessor :alternative_text
45
-
46
- # The title of alternative text associated with the shape.
47
- attr_accessor :alternative_text_title
48
-
49
- # Gets or sets a value indicating whether this ShapeBase is hidden.
50
- attr_accessor :hidden
51
-
52
- # Gets or sets the X
53
- attr_accessor :x
54
-
55
- # Gets or sets the Y.
56
- attr_accessor :y
57
-
58
- # Gets z-order position of shape
59
- attr_accessor :z_order_position
60
-
61
- # Gets or sets the link to shapes.
62
- attr_accessor :shapes
63
-
64
- # Gets or sets the fill format.
65
- attr_accessor :fill_format
66
-
67
- # Gets or sets the effect format.
68
- attr_accessor :effect_format
69
-
70
- # Gets or sets the line format.
71
- attr_accessor :line_format
72
-
73
- # Shape type.
74
- attr_accessor :type
75
-
76
- # Combined shape type.
77
- attr_accessor :shape_type
78
-
27
+ class SmartArtShape < GeometryShape
79
28
  class EnumAttributeValidator
80
29
  attr_reader :datatype
81
30
  attr_reader :allowable_values
@@ -100,185 +49,37 @@ module AsposeSlidesCloud
100
49
 
101
50
  # Attribute mapping from ruby-style variable name to JSON key.
102
51
  def self.attribute_map
103
- {
104
- :'self_uri' => :'SelfUri',
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
- :'self_uri' => :'ResourceUri',
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
- return unless attributes.is_a?(Hash)
151
-
152
- # convert string to symbol for hash key
153
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
154
-
155
- if attributes.has_key?(:'SelfUri')
156
- self.self_uri = attributes[:'SelfUri']
157
- end
158
-
159
- if attributes.has_key?(:'AlternateLinks')
160
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
161
- self.alternate_links = value
162
- end
163
- end
164
-
165
- if attributes.has_key?(:'Name')
166
- self.name = attributes[:'Name']
167
- end
168
-
169
- if attributes.has_key?(:'Width')
170
- self.width = attributes[:'Width']
171
- end
172
-
173
- if attributes.has_key?(:'Height')
174
- self.height = attributes[:'Height']
175
- end
176
-
177
- if attributes.has_key?(:'AlternativeText')
178
- self.alternative_text = attributes[:'AlternativeText']
179
- end
180
-
181
- if attributes.has_key?(:'AlternativeTextTitle')
182
- self.alternative_text_title = attributes[:'AlternativeTextTitle']
183
- end
184
-
185
- if attributes.has_key?(:'Hidden')
186
- self.hidden = attributes[:'Hidden']
187
- end
188
-
189
- if attributes.has_key?(:'X')
190
- self.x = attributes[:'X']
191
- end
192
-
193
- if attributes.has_key?(:'Y')
194
- self.y = attributes[:'Y']
195
- end
196
-
197
- if attributes.has_key?(:'ZOrderPosition')
198
- self.z_order_position = attributes[:'ZOrderPosition']
199
- end
200
-
201
- if attributes.has_key?(:'Shapes')
202
- self.shapes = attributes[:'Shapes']
203
- end
204
-
205
- if attributes.has_key?(:'FillFormat')
206
- self.fill_format = attributes[:'FillFormat']
207
- end
208
-
209
- if attributes.has_key?(:'EffectFormat')
210
- self.effect_format = attributes[:'EffectFormat']
211
- end
212
-
213
- if attributes.has_key?(:'LineFormat')
214
- self.line_format = attributes[:'LineFormat']
215
- end
216
-
217
- if attributes.has_key?(:'Type')
218
- self.type = attributes[:'Type']
219
- else
220
- self.type = "SmartArtShape"
221
- end
222
-
223
- if attributes.has_key?(:'ShapeType')
224
- self.shape_type = attributes[:'ShapeType']
225
- else
226
- self.shape_type = "Custom"
227
- end
65
+ super
66
+ self.type = "SmartArtShape"
228
67
  end
229
68
 
230
69
  # Show invalid properties with the reasons. Usually used together with valid?
231
70
  # @return Array for valid properties with the reasons
232
71
  def list_invalid_properties
233
- invalid_properties = Array.new
234
- if @z_order_position.nil?
235
- invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
236
- end
237
-
238
- if @type.nil?
239
- invalid_properties.push('invalid value for "type", type cannot be nil.')
240
- end
241
-
242
- if @shape_type.nil?
243
- invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
244
- end
245
-
72
+ invalid_properties = super
246
73
  invalid_properties
247
74
  end
248
75
 
249
76
  # Check to see if the all the properties in the model are valid
250
77
  # @return true if the model is valid
251
78
  def valid?
252
- return false if @z_order_position.nil?
253
- return false if @type.nil?
254
- type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
255
- return false unless type_validator.valid?(@type)
256
- return false if @shape_type.nil?
257
- shape_type_validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'Diagram', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'NotDefined'])
258
- return false unless shape_type_validator.valid?(@shape_type)
79
+ return false if !super
259
80
  true
260
81
  end
261
82
 
262
- # Custom attribute writer method checking allowed values (enum).
263
- # @param [Object] type Object to be assigned
264
- def type=(type)
265
- validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
266
- unless validator.valid?(type)
267
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
268
- end
269
- @type = type
270
- end
271
-
272
- # Custom attribute writer method checking allowed values (enum).
273
- # @param [Object] shape_type Object to be assigned
274
- def shape_type=(shape_type)
275
- validator = EnumAttributeValidator.new('String', ['Custom', 'Line', 'LineInverse', 'Triangle', 'RightTriangle', 'Rectangle', 'Diamond', 'Parallelogram', 'Trapezoid', 'NonIsoscelesTrapezoid', 'Pentagon', 'Hexagon', 'Heptagon', 'Octagon', 'Decagon', 'Dodecagon', 'FourPointedStar', 'FivePointedStar', 'SixPointedStar', 'SevenPointedStar', 'EightPointedStar', 'TenPointedStar', 'TwelvePointedStar', 'SixteenPointedStar', 'TwentyFourPointedStar', 'ThirtyTwoPointedStar', 'RoundCornerRectangle', 'OneRoundCornerRectangle', 'TwoSamesideRoundCornerRectangle', 'TwoDiagonalRoundCornerRectangle', 'OneSnipOneRoundCornerRectangle', 'OneSnipCornerRectangle', 'TwoSamesideSnipCornerRectangle', 'TwoDiagonalSnipCornerRectangle', 'Plaque', 'Ellipse', 'Teardrop', 'HomePlate', 'Chevron', 'PieWedge', 'Pie', 'BlockArc', 'Donut', 'NoSmoking', 'RightArrow', 'LeftArrow', 'UpArrow', 'DownArrow', 'StripedRightArrow', 'NotchedRightArrow', 'BentUpArrow', 'LeftRightArrow', 'UpDownArrow', 'LeftUpArrow', 'LeftRightUpArrow', 'QuadArrow', 'CalloutLeftArrow', 'CalloutRightArrow', 'CalloutUpArrow', 'CalloutDownArrow', 'CalloutLeftRightArrow', 'CalloutUpDownArrow', 'CalloutQuadArrow', 'BentArrow', 'UTurnArrow', 'CircularArrow', 'LeftCircularArrow', 'LeftRightCircularArrow', 'CurvedRightArrow', 'CurvedLeftArrow', 'CurvedUpArrow', 'CurvedDownArrow', 'SwooshArrow', 'Cube', 'Can', 'LightningBolt', 'Heart', 'Sun', 'Moon', 'SmileyFace', 'IrregularSeal1', 'IrregularSeal2', 'FoldedCorner', 'Bevel', 'Frame', 'HalfFrame', 'Corner', 'DiagonalStripe', 'Chord', 'CurvedArc', 'LeftBracket', 'RightBracket', 'LeftBrace', 'RightBrace', 'BracketPair', 'BracePair', 'StraightConnector1', 'BentConnector2', 'BentConnector3', 'BentConnector4', 'BentConnector5', 'CurvedConnector2', 'CurvedConnector3', 'CurvedConnector4', 'CurvedConnector5', 'Callout1', 'Callout2', 'Callout3', 'Callout1WithAccent', 'Callout2WithAccent', 'Callout3WithAccent', 'Callout1WithBorder', 'Callout2WithBorder', 'Callout3WithBorder', 'Callout1WithBorderAndAccent', 'Callout2WithBorderAndAccent', 'Callout3WithBorderAndAccent', 'CalloutWedgeRectangle', 'CalloutWedgeRoundRectangle', 'CalloutWedgeEllipse', 'CalloutCloud', 'Cloud', 'Ribbon', 'Ribbon2', 'EllipseRibbon', 'EllipseRibbon2', 'LeftRightRibbon', 'VerticalScroll', 'HorizontalScroll', 'Wave', 'DoubleWave', 'Plus', 'ProcessFlow', 'DecisionFlow', 'InputOutputFlow', 'PredefinedProcessFlow', 'InternalStorageFlow', 'DocumentFlow', 'MultiDocumentFlow', 'TerminatorFlow', 'PreparationFlow', 'ManualInputFlow', 'ManualOperationFlow', 'ConnectorFlow', 'PunchedCardFlow', 'PunchedTapeFlow', 'SummingJunctionFlow', 'OrFlow', 'CollateFlow', 'SortFlow', 'ExtractFlow', 'MergeFlow', 'OfflineStorageFlow', 'OnlineStorageFlow', 'MagneticTapeFlow', 'MagneticDiskFlow', 'MagneticDrumFlow', 'DisplayFlow', 'DelayFlow', 'AlternateProcessFlow', 'OffPageConnectorFlow', 'BlankButton', 'HomeButton', 'HelpButton', 'InformationButton', 'ForwardOrNextButton', 'BackOrPreviousButton', 'EndButton', 'BeginningButton', 'ReturnButton', 'DocumentButton', 'SoundButton', 'MovieButton', 'Gear6', 'Gear9', 'Funnel', 'PlusMath', 'MinusMath', 'MultiplyMath', 'DivideMath', 'EqualMath', 'NotEqualMath', 'CornerTabs', 'SquareTabs', 'PlaqueTabs', 'ChartX', 'ChartStar', 'ChartPlus', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'Diagram', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'NotDefined'])
276
- unless validator.valid?(shape_type)
277
- fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
278
- end
279
- @shape_type = shape_type
280
- end
281
-
282
83
  # Checks equality by comparing each attribute.
283
84
  # @param [Object] Object to be compared
284
85
  def ==(o)
@@ -312,7 +113,7 @@ module AsposeSlidesCloud
312
113
  # Calculates hash code according to all attributes.
313
114
  # @return [Fixnum] Hash code
314
115
  def hash
315
- [self_uri, 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].hash
116
+ [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, typeshape_type].hash
316
117
  end
317
118
 
318
119
  # Builds the object from hash
@@ -321,15 +122,27 @@ module AsposeSlidesCloud
321
122
  def build_from_hash(attributes)
322
123
  return nil unless attributes.is_a?(Hash)
323
124
  self.class.swagger_types.each_pair do |key, type|
324
- if type =~ /\AArray<(.*)>/i
325
- # check to ensure the input is an array given that the the attribute
326
- # is documented as an array but the input is not
327
- if attributes[self.class.attribute_map[key]].is_a?(Array)
328
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
+ mapKey = self.class.attribute_map[key]
126
+ if !mapKey.nil?
127
+ val = attributes[mapKey]
128
+ if val.nil?
129
+ mapKeyString = mapKey.to_s
130
+ mapKeyString[0] = mapKeyString[0].downcase
131
+ mapKey = mapKeyString.to_sym
132
+ val = attributes[mapKey]
329
133
  end
330
- elsif !attributes[self.class.attribute_map[key]].nil?
331
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
332
- end # or else data not found in attributes(hash), not an issue as the data can be optional
134
+ if !val.nil?
135
+ if type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the the attribute
137
+ # is documented as an array but the input is not
138
+ if val.is_a?(Array)
139
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
140
+ end
141
+ else
142
+ self.send("#{key}=", _deserialize(type, val))
143
+ end
144
+ end
145
+ end
333
146
  end
334
147
 
335
148
  self