aspose_slides_cloud 20.2.0 → 20.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/TestData/ChartTest.pptx +0 -0
  4. data/lib/aspose_slides_cloud.rb +13 -3
  5. data/lib/aspose_slides_cloud/api/slides_api.rb +3254 -1024
  6. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +970 -137
  7. data/lib/aspose_slides_cloud/api_client.rb +8 -5
  8. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
  9. data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
  10. data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
  11. data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
  12. data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
  13. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
  14. data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -244
  15. data/lib/aspose_slides_cloud/models/axes.rb +22 -10
  16. data/lib/aspose_slides_cloud/models/axis.rb +22 -10
  17. data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
  18. data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
  19. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +299 -0
  20. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
  21. data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
  22. data/lib/aspose_slides_cloud/models/chart.rb +35 -221
  23. data/lib/aspose_slides_cloud/models/chart_category.rb +261 -0
  24. data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
  25. data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
  26. data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
  27. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
  28. data/lib/aspose_slides_cloud/models/connector.rb +31 -242
  29. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
  30. data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
  31. data/lib/aspose_slides_cloud/models/document.rb +41 -41
  32. data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
  33. data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
  34. data/lib/aspose_slides_cloud/models/document_replace_result.rb +32 -86
  35. data/lib/aspose_slides_cloud/models/effect.rb +22 -10
  36. data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
  37. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  38. data/lib/aspose_slides_cloud/models/error.rb +22 -10
  39. data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
  40. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  41. data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
  42. data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
  43. data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
  44. data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
  45. data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
  46. data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
  47. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
  48. data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
  49. data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
  50. data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
  51. data/lib/aspose_slides_cloud/models/geometry_shape.rb +30 -208
  52. data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
  53. data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
  54. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
  55. data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -217
  56. data/lib/aspose_slides_cloud/models/group_shape.rb +31 -217
  57. data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
  58. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -10
  59. data/lib/aspose_slides_cloud/models/image.rb +30 -40
  60. data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
  61. data/lib/aspose_slides_cloud/models/images.rb +30 -40
  62. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
  63. data/lib/aspose_slides_cloud/models/input.rb +22 -10
  64. data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
  65. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
  66. data/lib/aspose_slides_cloud/models/layout_slide.rb +30 -40
  67. data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
  68. data/lib/aspose_slides_cloud/models/legend.rb +22 -10
  69. data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
  70. data/lib/aspose_slides_cloud/models/master_slide.rb +30 -40
  71. data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
  72. data/lib/aspose_slides_cloud/models/merge.rb +31 -48
  73. data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
  74. data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
  75. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +217 -0
  76. data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
  77. data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
  78. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -218
  79. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
  80. data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
  81. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
  82. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
  83. data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
  84. data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
  85. data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
  86. data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
  87. data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
  88. data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
  89. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +63 -35
  90. data/lib/aspose_slides_cloud/models/picture_fill.rb +31 -48
  91. data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -244
  92. data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
  93. data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
  94. data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
  95. data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
  96. data/lib/aspose_slides_cloud/models/portion.rb +30 -40
  97. data/lib/aspose_slides_cloud/models/portions.rb +36 -46
  98. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
  99. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
  100. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
  101. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
  102. data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
  103. data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
  104. data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
  105. data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
  106. data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
  107. data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
  108. data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
  109. data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
  110. data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
  111. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +22 -10
  112. data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
  113. data/lib/aspose_slides_cloud/models/save.rb +33 -50
  114. data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
  115. data/lib/aspose_slides_cloud/models/save_slide.rb +33 -50
  116. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
  117. data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
  118. data/lib/aspose_slides_cloud/models/series.rb +47 -14
  119. data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
  120. data/lib/aspose_slides_cloud/models/shape.rb +31 -242
  121. data/lib/aspose_slides_cloud/models/shape_base.rb +30 -40
  122. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
  123. data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
  124. data/lib/aspose_slides_cloud/models/slide.rb +30 -40
  125. data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
  126. data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
  127. data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
  128. data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
  129. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  130. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
  131. data/lib/aspose_slides_cloud/models/slides.rb +30 -40
  132. data/lib/aspose_slides_cloud/models/smart_art.rb +32 -218
  133. data/lib/aspose_slides_cloud/models/smart_art_node.rb +22 -10
  134. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +31 -217
  135. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
  136. data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
  137. data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
  138. data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
  139. data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
  140. data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
  141. data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
  142. data/lib/aspose_slides_cloud/models/table.rb +32 -218
  143. data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
  144. data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
  145. data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
  146. data/lib/aspose_slides_cloud/models/task.rb +22 -10
  147. data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
  148. data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
  149. data/lib/aspose_slides_cloud/models/theme.rb +30 -40
  150. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
  151. data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
  152. data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
  153. data/lib/aspose_slides_cloud/models/video_frame.rb +32 -244
  154. data/lib/aspose_slides_cloud/models/view_properties.rb +357 -0
  155. data/lib/aspose_slides_cloud/models/waterfall_series.rb +247 -0
  156. data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
  157. data/lib/aspose_slides_cloud/type_registry.rb +313 -0
  158. data/lib/aspose_slides_cloud/version.rb +1 -1
  159. data/spec/api/slides_api_spec.rb +20595 -14073
  160. data/spec/extra/extra_spec.rb +155 -20
  161. data/spec/spec_utils.rb +8 -1
  162. data/testRules.json +111 -8
  163. metadata +11 -2
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Slide shape.
27
- class ShapeBase
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
27
+ class ShapeBase < ResourceBase
34
28
  # Gets or sets the name.
35
29
  attr_accessor :name
36
30
 
@@ -98,9 +92,7 @@ module AsposeSlidesCloud
98
92
 
99
93
  # Attribute mapping from ruby-style variable name to JSON key.
100
94
  def self.attribute_map
101
- {
102
- :'self_uri' => :'SelfUri',
103
- :'alternate_links' => :'AlternateLinks',
95
+ super.merge({
104
96
  :'name' => :'Name',
105
97
  :'width' => :'Width',
106
98
  :'height' => :'Height',
@@ -115,15 +107,13 @@ module AsposeSlidesCloud
115
107
  :'effect_format' => :'EffectFormat',
116
108
  :'line_format' => :'LineFormat',
117
109
  :'type' => :'Type',
118
- :'shape_type' => :'ShapeType'
119
- }
110
+ :'shape_type' => :'ShapeType',
111
+ })
120
112
  end
121
113
 
122
114
  # Attribute type mapping.
123
115
  def self.swagger_types
124
- {
125
- :'self_uri' => :'ResourceUri',
126
- :'alternate_links' => :'Array<ResourceUri>',
116
+ super.merge({
127
117
  :'name' => :'String',
128
118
  :'width' => :'Float',
129
119
  :'height' => :'Float',
@@ -138,27 +128,14 @@ module AsposeSlidesCloud
138
128
  :'effect_format' => :'EffectFormat',
139
129
  :'line_format' => :'LineFormat',
140
130
  :'type' => :'String',
141
- :'shape_type' => :'String'
142
- }
131
+ :'shape_type' => :'String',
132
+ })
143
133
  end
144
134
 
145
135
  # Initializes the object
146
136
  # @param [Hash] attributes Model attributes in the form of hash
147
137
  def initialize(attributes = {})
148
- return unless attributes.is_a?(Hash)
149
-
150
- # convert string to symbol for hash key
151
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
152
-
153
- if attributes.has_key?(:'SelfUri')
154
- self.self_uri = attributes[:'SelfUri']
155
- end
156
-
157
- if attributes.has_key?(:'AlternateLinks')
158
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
159
- self.alternate_links = value
160
- end
161
- end
138
+ super
162
139
 
163
140
  if attributes.has_key?(:'Name')
164
141
  self.name = attributes[:'Name']
@@ -224,7 +201,7 @@ module AsposeSlidesCloud
224
201
  # Show invalid properties with the reasons. Usually used together with valid?
225
202
  # @return Array for valid properties with the reasons
226
203
  def list_invalid_properties
227
- invalid_properties = Array.new
204
+ invalid_properties = super
228
205
  if @z_order_position.nil?
229
206
  invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
230
207
  end
@@ -235,6 +212,7 @@ module AsposeSlidesCloud
235
212
  # Check to see if the all the properties in the model are valid
236
213
  # @return true if the model is valid
237
214
  def valid?
215
+ return false if !super
238
216
  return false if @z_order_position.nil?
239
217
  type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
240
218
  return false unless type_validator.valid?(@type)
@@ -305,15 +283,27 @@ module AsposeSlidesCloud
305
283
  def build_from_hash(attributes)
306
284
  return nil unless attributes.is_a?(Hash)
307
285
  self.class.swagger_types.each_pair do |key, type|
308
- if type =~ /\AArray<(.*)>/i
309
- # check to ensure the input is an array given that the the attribute
310
- # is documented as an array but the input is not
311
- if attributes[self.class.attribute_map[key]].is_a?(Array)
312
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
286
+ mapKey = self.class.attribute_map[key]
287
+ if !mapKey.nil?
288
+ val = attributes[mapKey]
289
+ if val.nil?
290
+ mapKeyString = mapKey.to_s
291
+ mapKeyString[0] = mapKeyString[0].downcase
292
+ mapKey = mapKeyString.to_sym
293
+ val = attributes[mapKey]
313
294
  end
314
- elsif !attributes[self.class.attribute_map[key]].nil?
315
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
316
- end # or else data not found in attributes(hash), not an issue as the data can be optional
295
+ if !val.nil?
296
+ if type =~ /\AArray<(.*)>/i
297
+ # check to ensure the input is an array given that the the attribute
298
+ # is documented as an array but the input is not
299
+ if val.is_a?(Array)
300
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
301
+ end
302
+ else
303
+ self.send("#{key}=", _deserialize(type, val))
304
+ end
305
+ end
306
+ end
317
307
  end
318
308
 
319
309
  self
@@ -65,7 +65,7 @@ module AsposeSlidesCloud
65
65
  :'scale_x' => :'ScaleX',
66
66
  :'scale_y' => :'ScaleY',
67
67
  :'thumbnail_bounds' => :'ThumbnailBounds',
68
- :'format' => :'Format'
68
+ :'format' => :'Format',
69
69
  }
70
70
  end
71
71
 
@@ -75,7 +75,7 @@ module AsposeSlidesCloud
75
75
  :'scale_x' => :'Float',
76
76
  :'scale_y' => :'Float',
77
77
  :'thumbnail_bounds' => :'String',
78
- :'format' => :'String'
78
+ :'format' => :'String',
79
79
  }
80
80
  end
81
81
 
@@ -173,15 +173,27 @@ module AsposeSlidesCloud
173
173
  def build_from_hash(attributes)
174
174
  return nil unless attributes.is_a?(Hash)
175
175
  self.class.swagger_types.each_pair do |key, type|
176
- if type =~ /\AArray<(.*)>/i
177
- # check to ensure the input is an array given that the the attribute
178
- # is documented as an array but the input is not
179
- if attributes[self.class.attribute_map[key]].is_a?(Array)
180
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
176
+ mapKey = self.class.attribute_map[key]
177
+ if !mapKey.nil?
178
+ val = attributes[mapKey]
179
+ if val.nil?
180
+ mapKeyString = mapKey.to_s
181
+ mapKeyString[0] = mapKeyString[0].downcase
182
+ mapKey = mapKeyString.to_sym
183
+ val = attributes[mapKey]
181
184
  end
182
- elsif !attributes[self.class.attribute_map[key]].nil?
183
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
184
- end # or else data not found in attributes(hash), not an issue as the data can be optional
185
+ if !val.nil?
186
+ if type =~ /\AArray<(.*)>/i
187
+ # check to ensure the input is an array given that the the attribute
188
+ # is documented as an array but the input is not
189
+ if val.is_a?(Array)
190
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
191
+ end
192
+ else
193
+ self.send("#{key}=", _deserialize(type, val))
194
+ end
195
+ end
196
+ end
185
197
  end
186
198
 
187
199
  self
@@ -24,51 +24,28 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents list of Links to Shapes resources
27
- class Shapes
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
27
+ class Shapes < ResourceBase
34
28
  # List of shape links.
35
29
  attr_accessor :shapes_links
36
30
 
37
31
  # Attribute mapping from ruby-style variable name to JSON key.
38
32
  def self.attribute_map
39
- {
40
- :'self_uri' => :'SelfUri',
41
- :'alternate_links' => :'AlternateLinks',
42
- :'shapes_links' => :'ShapesLinks'
43
- }
33
+ super.merge({
34
+ :'shapes_links' => :'ShapesLinks',
35
+ })
44
36
  end
45
37
 
46
38
  # Attribute type mapping.
47
39
  def self.swagger_types
48
- {
49
- :'self_uri' => :'ResourceUri',
50
- :'alternate_links' => :'Array<ResourceUri>',
51
- :'shapes_links' => :'Array<ResourceUriElement>'
52
- }
40
+ super.merge({
41
+ :'shapes_links' => :'Array<ResourceUriElement>',
42
+ })
53
43
  end
54
44
 
55
45
  # Initializes the object
56
46
  # @param [Hash] attributes Model attributes in the form of hash
57
47
  def initialize(attributes = {})
58
- return unless attributes.is_a?(Hash)
59
-
60
- # convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
-
63
- if attributes.has_key?(:'SelfUri')
64
- self.self_uri = attributes[:'SelfUri']
65
- end
66
-
67
- if attributes.has_key?(:'AlternateLinks')
68
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
69
- self.alternate_links = value
70
- end
71
- end
48
+ super
72
49
 
73
50
  if attributes.has_key?(:'ShapesLinks')
74
51
  if (value = attributes[:'ShapesLinks']).is_a?(Array)
@@ -80,13 +57,14 @@ module AsposeSlidesCloud
80
57
  # Show invalid properties with the reasons. Usually used together with valid?
81
58
  # @return Array for valid properties with the reasons
82
59
  def list_invalid_properties
83
- invalid_properties = Array.new
60
+ invalid_properties = super
84
61
  invalid_properties
85
62
  end
86
63
 
87
64
  # Check to see if the all the properties in the model are valid
88
65
  # @return true if the model is valid
89
66
  def valid?
67
+ return false if !super
90
68
  true
91
69
  end
92
70
 
@@ -118,15 +96,27 @@ module AsposeSlidesCloud
118
96
  def build_from_hash(attributes)
119
97
  return nil unless attributes.is_a?(Hash)
120
98
  self.class.swagger_types.each_pair do |key, type|
121
- if type =~ /\AArray<(.*)>/i
122
- # check to ensure the input is an array given that the the attribute
123
- # is documented as an array but the input is not
124
- if attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
99
+ mapKey = self.class.attribute_map[key]
100
+ if !mapKey.nil?
101
+ val = attributes[mapKey]
102
+ if val.nil?
103
+ mapKeyString = mapKey.to_s
104
+ mapKeyString[0] = mapKeyString[0].downcase
105
+ mapKey = mapKeyString.to_sym
106
+ val = attributes[mapKey]
126
107
  end
127
- elsif !attributes[self.class.attribute_map[key]].nil?
128
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
- end # or else data not found in attributes(hash), not an issue as the data can be optional
108
+ if !val.nil?
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the the attribute
111
+ # is documented as an array but the input is not
112
+ if val.is_a?(Array)
113
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
114
+ end
115
+ else
116
+ self.send("#{key}=", _deserialize(type, val))
117
+ end
118
+ end
119
+ end
130
120
  end
131
121
 
132
122
  self
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Presentation slide.
27
- class Slide
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
27
+ class Slide < ResourceBase
34
28
  # Gets or sets the width.
35
29
  attr_accessor :width
36
30
 
@@ -66,9 +60,7 @@ module AsposeSlidesCloud
66
60
 
67
61
  # Attribute mapping from ruby-style variable name to JSON key.
68
62
  def self.attribute_map
69
- {
70
- :'self_uri' => :'SelfUri',
71
- :'alternate_links' => :'AlternateLinks',
63
+ super.merge({
72
64
  :'width' => :'Width',
73
65
  :'height' => :'Height',
74
66
  :'show_master_shapes' => :'ShowMasterShapes',
@@ -79,15 +71,13 @@ module AsposeSlidesCloud
79
71
  :'images' => :'Images',
80
72
  :'comments' => :'Comments',
81
73
  :'background' => :'Background',
82
- :'notes_slide' => :'NotesSlide'
83
- }
74
+ :'notes_slide' => :'NotesSlide',
75
+ })
84
76
  end
85
77
 
86
78
  # Attribute type mapping.
87
79
  def self.swagger_types
88
- {
89
- :'self_uri' => :'ResourceUri',
90
- :'alternate_links' => :'Array<ResourceUri>',
80
+ super.merge({
91
81
  :'width' => :'Float',
92
82
  :'height' => :'Float',
93
83
  :'show_master_shapes' => :'BOOLEAN',
@@ -98,27 +88,14 @@ module AsposeSlidesCloud
98
88
  :'images' => :'ResourceUriElement',
99
89
  :'comments' => :'ResourceUriElement',
100
90
  :'background' => :'ResourceUriElement',
101
- :'notes_slide' => :'ResourceUriElement'
102
- }
91
+ :'notes_slide' => :'ResourceUriElement',
92
+ })
103
93
  end
104
94
 
105
95
  # Initializes the object
106
96
  # @param [Hash] attributes Model attributes in the form of hash
107
97
  def initialize(attributes = {})
108
- return unless attributes.is_a?(Hash)
109
-
110
- # convert string to symbol for hash key
111
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
112
-
113
- if attributes.has_key?(:'SelfUri')
114
- self.self_uri = attributes[:'SelfUri']
115
- end
116
-
117
- if attributes.has_key?(:'AlternateLinks')
118
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
119
- self.alternate_links = value
120
- end
121
- end
98
+ super
122
99
 
123
100
  if attributes.has_key?(:'Width')
124
101
  self.width = attributes[:'Width']
@@ -168,7 +145,7 @@ module AsposeSlidesCloud
168
145
  # Show invalid properties with the reasons. Usually used together with valid?
169
146
  # @return Array for valid properties with the reasons
170
147
  def list_invalid_properties
171
- invalid_properties = Array.new
148
+ invalid_properties = super
172
149
  if @width.nil?
173
150
  invalid_properties.push('invalid value for "width", width cannot be nil.')
174
151
  end
@@ -187,6 +164,7 @@ module AsposeSlidesCloud
187
164
  # Check to see if the all the properties in the model are valid
188
165
  # @return true if the model is valid
189
166
  def valid?
167
+ return false if !super
190
168
  return false if @width.nil?
191
169
  return false if @height.nil?
192
170
  return false if @show_master_shapes.nil?
@@ -231,15 +209,27 @@ module AsposeSlidesCloud
231
209
  def build_from_hash(attributes)
232
210
  return nil unless attributes.is_a?(Hash)
233
211
  self.class.swagger_types.each_pair do |key, type|
234
- if type =~ /\AArray<(.*)>/i
235
- # check to ensure the input is an array given that the the attribute
236
- # is documented as an array but the input is not
237
- if attributes[self.class.attribute_map[key]].is_a?(Array)
238
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
212
+ mapKey = self.class.attribute_map[key]
213
+ if !mapKey.nil?
214
+ val = attributes[mapKey]
215
+ if val.nil?
216
+ mapKeyString = mapKey.to_s
217
+ mapKeyString[0] = mapKeyString[0].downcase
218
+ mapKey = mapKeyString.to_sym
219
+ val = attributes[mapKey]
239
220
  end
240
- elsif !attributes[self.class.attribute_map[key]].nil?
241
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
242
- end # or else data not found in attributes(hash), not an issue as the data can be optional
221
+ if !val.nil?
222
+ if type =~ /\AArray<(.*)>/i
223
+ # check to ensure the input is an array given that the the attribute
224
+ # is documented as an array but the input is not
225
+ if val.is_a?(Array)
226
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
227
+ end
228
+ else
229
+ self.send("#{key}=", _deserialize(type, val))
230
+ end
231
+ end
232
+ end
243
233
  end
244
234
 
245
235
  self
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents comments collection of slide
27
- class SlideAnimation
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
27
+ class SlideAnimation < ResourceBase
34
28
  # Main sequence.
35
29
  attr_accessor :main_sequence
36
30
 
@@ -39,41 +33,24 @@ module AsposeSlidesCloud
39
33
 
40
34
  # Attribute mapping from ruby-style variable name to JSON key.
41
35
  def self.attribute_map
42
- {
43
- :'self_uri' => :'SelfUri',
44
- :'alternate_links' => :'AlternateLinks',
36
+ super.merge({
45
37
  :'main_sequence' => :'MainSequence',
46
- :'interactive_sequences' => :'InteractiveSequences'
47
- }
38
+ :'interactive_sequences' => :'InteractiveSequences',
39
+ })
48
40
  end
49
41
 
50
42
  # Attribute type mapping.
51
43
  def self.swagger_types
52
- {
53
- :'self_uri' => :'ResourceUri',
54
- :'alternate_links' => :'Array<ResourceUri>',
44
+ super.merge({
55
45
  :'main_sequence' => :'Array<Effect>',
56
- :'interactive_sequences' => :'Array<InteractiveSequence>'
57
- }
46
+ :'interactive_sequences' => :'Array<InteractiveSequence>',
47
+ })
58
48
  end
59
49
 
60
50
  # Initializes the object
61
51
  # @param [Hash] attributes Model attributes in the form of hash
62
52
  def initialize(attributes = {})
63
- return unless attributes.is_a?(Hash)
64
-
65
- # convert string to symbol for hash key
66
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
-
68
- if attributes.has_key?(:'SelfUri')
69
- self.self_uri = attributes[:'SelfUri']
70
- end
71
-
72
- if attributes.has_key?(:'AlternateLinks')
73
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
74
- self.alternate_links = value
75
- end
76
- end
53
+ super
77
54
 
78
55
  if attributes.has_key?(:'MainSequence')
79
56
  if (value = attributes[:'MainSequence']).is_a?(Array)
@@ -91,13 +68,14 @@ module AsposeSlidesCloud
91
68
  # Show invalid properties with the reasons. Usually used together with valid?
92
69
  # @return Array for valid properties with the reasons
93
70
  def list_invalid_properties
94
- invalid_properties = Array.new
71
+ invalid_properties = super
95
72
  invalid_properties
96
73
  end
97
74
 
98
75
  # Check to see if the all the properties in the model are valid
99
76
  # @return true if the model is valid
100
77
  def valid?
78
+ return false if !super
101
79
  true
102
80
  end
103
81
 
@@ -130,15 +108,27 @@ module AsposeSlidesCloud
130
108
  def build_from_hash(attributes)
131
109
  return nil unless attributes.is_a?(Hash)
132
110
  self.class.swagger_types.each_pair do |key, type|
133
- if type =~ /\AArray<(.*)>/i
134
- # check to ensure the input is an array given that the the attribute
135
- # is documented as an array but the input is not
136
- if attributes[self.class.attribute_map[key]].is_a?(Array)
137
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
111
+ mapKey = self.class.attribute_map[key]
112
+ if !mapKey.nil?
113
+ val = attributes[mapKey]
114
+ if val.nil?
115
+ mapKeyString = mapKey.to_s
116
+ mapKeyString[0] = mapKeyString[0].downcase
117
+ mapKey = mapKeyString.to_sym
118
+ val = attributes[mapKey]
138
119
  end
139
- elsif !attributes[self.class.attribute_map[key]].nil?
140
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
141
- end # or else data not found in attributes(hash), not an issue as the data can be optional
120
+ if !val.nil?
121
+ if type =~ /\AArray<(.*)>/i
122
+ # check to ensure the input is an array given that the the attribute
123
+ # is documented as an array but the input is not
124
+ if val.is_a?(Array)
125
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
126
+ end
127
+ else
128
+ self.send("#{key}=", _deserialize(type, val))
129
+ end
130
+ end
131
+ end
142
132
  end
143
133
 
144
134
  self