aspose_slides_cloud 20.6.0 → 21.1.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/TestData/test-unprotected.pptx +0 -0
  6. data/TestData/test.pptx +0 -0
  7. data/lib/aspose_slides_cloud.rb +13 -5
  8. data/lib/aspose_slides_cloud/api/slides_api.rb +2432 -691
  9. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +609 -31
  10. data/lib/aspose_slides_cloud/api_client.rb +30 -24
  11. data/lib/aspose_slides_cloud/configuration.rb +7 -2
  12. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
  13. data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
  14. data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
  15. data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
  16. data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
  17. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
  18. data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -246
  19. data/lib/aspose_slides_cloud/models/axes.rb +22 -10
  20. data/lib/aspose_slides_cloud/models/axis.rb +22 -10
  21. data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
  22. data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
  23. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +31 -222
  24. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
  25. data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
  26. data/lib/aspose_slides_cloud/models/chart.rb +32 -220
  27. data/lib/aspose_slides_cloud/models/chart_category.rb +54 -20
  28. data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
  29. data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
  30. data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
  31. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +22 -10
  32. data/lib/aspose_slides_cloud/models/connector.rb +32 -244
  33. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
  34. data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +24 -22
  35. data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
  36. data/lib/aspose_slides_cloud/models/document.rb +35 -45
  37. data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
  38. data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
  39. data/lib/aspose_slides_cloud/models/document_replace_result.rb +30 -94
  40. data/lib/aspose_slides_cloud/models/effect.rb +22 -10
  41. data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
  42. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  43. data/lib/aspose_slides_cloud/models/error.rb +22 -10
  44. data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
  45. data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
  46. data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
  47. data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
  48. data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
  49. data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
  50. data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
  51. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
  52. data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
  53. data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
  54. data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
  55. data/lib/aspose_slides_cloud/models/geometry_shape.rb +33 -212
  56. data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
  57. data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
  58. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
  59. data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -219
  60. data/lib/aspose_slides_cloud/models/group_shape.rb +31 -219
  61. data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
  62. data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
  63. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -20
  64. data/lib/aspose_slides_cloud/models/image.rb +30 -40
  65. data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
  66. data/lib/aspose_slides_cloud/models/images.rb +30 -40
  67. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
  68. data/lib/aspose_slides_cloud/models/input.rb +22 -10
  69. data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
  70. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
  71. data/lib/aspose_slides_cloud/models/layout_slide.rb +31 -41
  72. data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
  73. data/lib/aspose_slides_cloud/models/legend.rb +22 -10
  74. data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
  75. data/lib/aspose_slides_cloud/models/master_slide.rb +31 -41
  76. data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
  77. data/lib/aspose_slides_cloud/models/merge.rb +31 -48
  78. data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
  79. data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
  80. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +22 -10
  81. data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
  82. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
  83. data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
  84. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -220
  85. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
  86. data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
  87. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
  88. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
  89. data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
  90. data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
  91. data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
  92. data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
  93. data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
  94. data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
  95. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -32
  96. data/lib/aspose_slides_cloud/models/picture_fill.rb +32 -49
  97. data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -246
  98. data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
  99. data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
  100. data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
  101. data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
  102. data/lib/aspose_slides_cloud/models/portion.rb +30 -40
  103. data/lib/aspose_slides_cloud/models/portions.rb +36 -46
  104. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
  105. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
  106. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
  107. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
  108. data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
  109. data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
  110. data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
  111. data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
  112. data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
  113. data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
  114. data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
  115. data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
  116. data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
  117. data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
  118. data/lib/aspose_slides_cloud/models/save.rb +31 -48
  119. data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
  120. data/lib/aspose_slides_cloud/models/save_slide.rb +31 -48
  121. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
  122. data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
  123. data/lib/aspose_slides_cloud/models/section.rb +234 -0
  124. data/lib/aspose_slides_cloud/models/sections.rb +209 -0
  125. data/lib/aspose_slides_cloud/models/series.rb +45 -12
  126. data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
  127. data/lib/aspose_slides_cloud/models/shape.rb +32 -244
  128. data/lib/aspose_slides_cloud/models/shape_base.rb +31 -62
  129. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
  130. data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
  131. data/lib/aspose_slides_cloud/models/slide.rb +37 -47
  132. data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
  133. data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
  134. data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
  135. data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
  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 +324 -0
  165. data/lib/aspose_slides_cloud/version.rb +1 -1
  166. data/spec/api/slides_api_spec.rb +22294 -14411
  167. data/spec/extra/extra_spec.rb +156 -22
  168. data/spec/spec_utils.rb +15 -4
  169. data/testConfig.json +2 -2
  170. data/testRules.json +141 -73
  171. metadata +14 -3
@@ -35,7 +35,7 @@ module AsposeSlidesCloud
35
35
  def self.attribute_map
36
36
  {
37
37
  :'color' => :'Color',
38
- :'position' => :'Position'
38
+ :'position' => :'Position',
39
39
  }
40
40
  end
41
41
 
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  def self.swagger_types
44
44
  {
45
45
  :'color' => :'String',
46
- :'position' => :'Float'
46
+ :'position' => :'Float',
47
47
  }
48
48
  end
49
49
 
@@ -109,15 +109,27 @@ module AsposeSlidesCloud
109
109
  def build_from_hash(attributes)
110
110
  return nil unless attributes.is_a?(Hash)
111
111
  self.class.swagger_types.each_pair do |key, type|
112
- if type =~ /\AArray<(.*)>/i
113
- # check to ensure the input is an array given that the the attribute
114
- # is documented as an array but the input is not
115
- if attributes[self.class.attribute_map[key]].is_a?(Array)
116
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
112
+ mapKey = self.class.attribute_map[key]
113
+ if !mapKey.nil?
114
+ val = attributes[mapKey]
115
+ if val.nil?
116
+ mapKeyString = mapKey.to_s
117
+ mapKeyString[0] = mapKeyString[0].downcase
118
+ mapKey = mapKeyString.to_sym
119
+ val = attributes[mapKey]
117
120
  end
118
- elsif !attributes[self.class.attribute_map[key]].nil?
119
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
- end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ if !val.nil?
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the the attribute
124
+ # is documented as an array but the input is not
125
+ if val.is_a?(Array)
126
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
127
+ end
128
+ else
129
+ self.send("#{key}=", _deserialize(type, val))
130
+ end
131
+ end
132
+ end
121
133
  end
122
134
 
123
135
  self
@@ -24,58 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents AudioFrame resource.
27
- class GraphicalObject
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
34
- # Gets or sets the name.
35
- attr_accessor :name
36
-
37
- # Gets or sets the width.
38
- attr_accessor :width
39
-
40
- # Gets or sets the height.
41
- attr_accessor :height
42
-
43
- # Gets or sets the alternative text.
44
- attr_accessor :alternative_text
45
-
46
- # The title of alternative text associated with the shape.
47
- attr_accessor :alternative_text_title
48
-
49
- # Gets or sets a value indicating whether this ShapeBase is hidden.
50
- attr_accessor :hidden
51
-
52
- # Gets or sets the X
53
- attr_accessor :x
54
-
55
- # Gets or sets the Y.
56
- attr_accessor :y
57
-
58
- # Gets z-order position of shape
59
- attr_accessor :z_order_position
60
-
61
- # Gets or sets the link to shapes.
62
- attr_accessor :shapes
63
-
64
- # Gets or sets the fill format.
65
- attr_accessor :fill_format
66
-
67
- # Gets or sets the effect format.
68
- attr_accessor :effect_format
69
-
70
- # Gets or sets the line format.
71
- attr_accessor :line_format
72
-
73
- # Shape type.
74
- attr_accessor :type
75
-
76
- # Combined shape type.
77
- attr_accessor :shape_type
78
-
27
+ class GraphicalObject < ShapeBase
79
28
  class EnumAttributeValidator
80
29
  attr_reader :datatype
81
30
  attr_reader :allowable_values
@@ -100,185 +49,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 = "GraphicalObject"
221
- end
222
-
223
- if attributes.has_key?(:'ShapeType')
224
- self.shape_type = attributes[:'ShapeType']
225
- else
226
- self.shape_type = "GraphicalObject"
227
- end
65
+ super
66
+ self.type = "GraphicalObject"
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)
@@ -299,8 +100,7 @@ module AsposeSlidesCloud
299
100
  fill_format == o.fill_format &&
300
101
  effect_format == o.effect_format &&
301
102
  line_format == o.line_format &&
302
- type == o.type &&
303
- shape_type == o.shape_type
103
+ type == o.type
304
104
  end
305
105
 
306
106
  # @see the `==` method
@@ -312,7 +112,7 @@ module AsposeSlidesCloud
312
112
  # Calculates hash code according to all attributes.
313
113
  # @return [Fixnum] Hash code
314
114
  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
115
+ [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type].hash
316
116
  end
317
117
 
318
118
  # Builds the object from hash
@@ -321,15 +121,27 @@ module AsposeSlidesCloud
321
121
  def build_from_hash(attributes)
322
122
  return nil unless attributes.is_a?(Hash)
323
123
  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) })
124
+ mapKey = self.class.attribute_map[key]
125
+ if !mapKey.nil?
126
+ val = attributes[mapKey]
127
+ if val.nil?
128
+ mapKeyString = mapKey.to_s
129
+ mapKeyString[0] = mapKeyString[0].downcase
130
+ mapKey = mapKeyString.to_sym
131
+ val = attributes[mapKey]
329
132
  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
133
+ if !val.nil?
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if val.is_a?(Array)
138
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
139
+ end
140
+ else
141
+ self.send("#{key}=", _deserialize(type, val))
142
+ end
143
+ end
144
+ end
333
145
  end
334
146
 
335
147
  self
@@ -24,58 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents GroupShape resource.
27
- class GroupShape
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 GroupShape < ShapeBase
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 = "GroupShape"
221
- end
222
-
223
- if attributes.has_key?(:'ShapeType')
224
- self.shape_type = attributes[:'ShapeType']
225
- else
226
- self.shape_type = "GroupShape"
227
- end
65
+ super
66
+ self.type = "GroupShape"
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)
@@ -299,8 +100,7 @@ module AsposeSlidesCloud
299
100
  fill_format == o.fill_format &&
300
101
  effect_format == o.effect_format &&
301
102
  line_format == o.line_format &&
302
- type == o.type &&
303
- shape_type == o.shape_type
103
+ type == o.type
304
104
  end
305
105
 
306
106
  # @see the `==` method
@@ -312,7 +112,7 @@ module AsposeSlidesCloud
312
112
  # Calculates hash code according to all attributes.
313
113
  # @return [Fixnum] Hash code
314
114
  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
115
+ [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type].hash
316
116
  end
317
117
 
318
118
  # Builds the object from hash
@@ -321,15 +121,27 @@ module AsposeSlidesCloud
321
121
  def build_from_hash(attributes)
322
122
  return nil unless attributes.is_a?(Hash)
323
123
  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) })
124
+ mapKey = self.class.attribute_map[key]
125
+ if !mapKey.nil?
126
+ val = attributes[mapKey]
127
+ if val.nil?
128
+ mapKeyString = mapKey.to_s
129
+ mapKeyString[0] = mapKeyString[0].downcase
130
+ mapKey = mapKeyString.to_sym
131
+ val = attributes[mapKey]
329
132
  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
133
+ if !val.nil?
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if val.is_a?(Array)
138
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
139
+ end
140
+ else
141
+ self.send("#{key}=", _deserialize(type, val))
142
+ end
143
+ end
144
+ end
333
145
  end
334
146
 
335
147
  self