aspose_slides_cloud 19.12.0 → 20.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/lib/aspose_slides_cloud.rb +8 -0
  4. data/lib/aspose_slides_cloud/api/slides_api.rb +2156 -525
  5. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +792 -124
  6. data/lib/aspose_slides_cloud/api_client.rb +7 -3
  7. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +20 -8
  8. data/lib/aspose_slides_cloud/models/add_master_slide.rb +20 -8
  9. data/lib/aspose_slides_cloud/models/add_shape.rb +20 -8
  10. data/lib/aspose_slides_cloud/models/add_slide.rb +20 -8
  11. data/lib/aspose_slides_cloud/models/api_info.rb +20 -8
  12. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +20 -23
  13. data/lib/aspose_slides_cloud/models/audio_frame.rb +20 -8
  14. data/lib/aspose_slides_cloud/models/axes.rb +20 -8
  15. data/lib/aspose_slides_cloud/models/axis.rb +20 -168
  16. data/lib/aspose_slides_cloud/models/base64_input_file.rb +20 -8
  17. data/lib/aspose_slides_cloud/models/blur_effect.rb +20 -8
  18. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +504 -0
  19. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +20 -8
  20. data/lib/aspose_slides_cloud/models/bubble_series.rb +24 -45
  21. data/lib/aspose_slides_cloud/models/chart.rb +23 -11
  22. data/lib/aspose_slides_cloud/models/chart_category.rb +249 -0
  23. data/lib/aspose_slides_cloud/models/chart_title.rb +20 -8
  24. data/lib/aspose_slides_cloud/models/chart_wall.rb +20 -18
  25. data/lib/aspose_slides_cloud/models/color_scheme.rb +20 -8
  26. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
  27. data/lib/aspose_slides_cloud/models/connector.rb +20 -8
  28. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +20 -8
  29. data/lib/aspose_slides_cloud/models/disc_usage.rb +20 -8
  30. data/lib/aspose_slides_cloud/models/document.rb +31 -9
  31. data/lib/aspose_slides_cloud/models/document_properties.rb +20 -8
  32. data/lib/aspose_slides_cloud/models/document_property.rb +20 -8
  33. data/lib/aspose_slides_cloud/models/document_replace_result.rb +31 -9
  34. data/lib/aspose_slides_cloud/models/effect.rb +20 -8
  35. data/lib/aspose_slides_cloud/models/effect_format.rb +20 -8
  36. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  37. data/lib/aspose_slides_cloud/models/error.rb +20 -8
  38. data/lib/aspose_slides_cloud/models/error_details.rb +20 -8
  39. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  40. data/lib/aspose_slides_cloud/models/export_options.rb +20 -8
  41. data/lib/aspose_slides_cloud/models/file_version.rb +20 -8
  42. data/lib/aspose_slides_cloud/models/file_versions.rb +20 -8
  43. data/lib/aspose_slides_cloud/models/files_list.rb +20 -8
  44. data/lib/aspose_slides_cloud/models/files_upload_result.rb +20 -8
  45. data/lib/aspose_slides_cloud/models/fill_format.rb +20 -8
  46. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +20 -8
  47. data/lib/aspose_slides_cloud/models/font_scheme.rb +20 -8
  48. data/lib/aspose_slides_cloud/models/font_set.rb +20 -8
  49. data/lib/aspose_slides_cloud/models/format_scheme.rb +20 -8
  50. data/lib/aspose_slides_cloud/models/geometry_shape.rb +20 -8
  51. data/lib/aspose_slides_cloud/models/glow_effect.rb +20 -8
  52. data/lib/aspose_slides_cloud/models/gradient_fill.rb +20 -8
  53. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +20 -8
  54. data/lib/aspose_slides_cloud/models/graphical_object.rb +20 -8
  55. data/lib/aspose_slides_cloud/models/group_shape.rb +20 -8
  56. data/lib/aspose_slides_cloud/models/html_export_options.rb +20 -8
  57. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +20 -8
  58. data/lib/aspose_slides_cloud/models/image.rb +20 -8
  59. data/lib/aspose_slides_cloud/models/image_export_options.rb +20 -8
  60. data/lib/aspose_slides_cloud/models/images.rb +20 -8
  61. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +20 -8
  62. data/lib/aspose_slides_cloud/models/input.rb +20 -8
  63. data/lib/aspose_slides_cloud/models/input_file.rb +20 -8
  64. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +20 -8
  65. data/lib/aspose_slides_cloud/models/layout_slide.rb +20 -8
  66. data/lib/aspose_slides_cloud/models/layout_slides.rb +20 -8
  67. data/lib/aspose_slides_cloud/models/legend.rb +20 -38
  68. data/lib/aspose_slides_cloud/models/line_format.rb +20 -43
  69. data/lib/aspose_slides_cloud/models/master_slide.rb +20 -8
  70. data/lib/aspose_slides_cloud/models/master_slides.rb +20 -8
  71. data/lib/aspose_slides_cloud/models/merge.rb +20 -8
  72. data/lib/aspose_slides_cloud/models/merging_source.rb +20 -8
  73. data/lib/aspose_slides_cloud/models/no_fill.rb +20 -8
  74. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +217 -0
  75. data/lib/aspose_slides_cloud/models/notes_slide.rb +20 -8
  76. data/lib/aspose_slides_cloud/models/object_exist.rb +20 -8
  77. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +20 -8
  78. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +20 -8
  79. data/lib/aspose_slides_cloud/models/one_value_series.rb +24 -45
  80. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +20 -8
  81. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +20 -8
  82. data/lib/aspose_slides_cloud/models/output_file.rb +20 -8
  83. data/lib/aspose_slides_cloud/models/paragraph.rb +21 -9
  84. data/lib/aspose_slides_cloud/models/paragraphs.rb +20 -8
  85. data/lib/aspose_slides_cloud/models/path_input_file.rb +20 -8
  86. data/lib/aspose_slides_cloud/models/path_output_file.rb +20 -8
  87. data/lib/aspose_slides_cloud/models/pattern_fill.rb +20 -8
  88. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +53 -14
  89. data/lib/aspose_slides_cloud/models/picture_fill.rb +20 -8
  90. data/lib/aspose_slides_cloud/models/picture_frame.rb +20 -8
  91. data/lib/aspose_slides_cloud/models/pipeline.rb +20 -8
  92. data/lib/aspose_slides_cloud/models/placeholder.rb +20 -8
  93. data/lib/aspose_slides_cloud/models/placeholders.rb +20 -8
  94. data/lib/aspose_slides_cloud/models/plot_area.rb +20 -33
  95. data/lib/aspose_slides_cloud/models/portion.rb +20 -8
  96. data/lib/aspose_slides_cloud/models/portions.rb +28 -16
  97. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +20 -8
  98. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +20 -8
  99. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +20 -8
  100. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +20 -8
  101. data/lib/aspose_slides_cloud/models/reflection_effect.rb +20 -8
  102. data/lib/aspose_slides_cloud/models/remove_shape.rb +20 -8
  103. data/lib/aspose_slides_cloud/models/remove_slide.rb +20 -8
  104. data/lib/aspose_slides_cloud/models/reorder_slide.rb +20 -8
  105. data/lib/aspose_slides_cloud/models/replace_text.rb +20 -8
  106. data/lib/aspose_slides_cloud/models/request_input_file.rb +20 -8
  107. data/lib/aspose_slides_cloud/models/reset_slide.rb +20 -8
  108. data/lib/aspose_slides_cloud/models/resource_base.rb +20 -8
  109. data/lib/aspose_slides_cloud/models/resource_uri.rb +20 -8
  110. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +20 -8
  111. data/lib/aspose_slides_cloud/models/response_output_file.rb +20 -8
  112. data/lib/aspose_slides_cloud/models/save.rb +22 -10
  113. data/lib/aspose_slides_cloud/models/save_shape.rb +20 -8
  114. data/lib/aspose_slides_cloud/models/save_slide.rb +22 -10
  115. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +20 -8
  116. data/lib/aspose_slides_cloud/models/scatter_series.rb +24 -45
  117. data/lib/aspose_slides_cloud/models/series.rb +47 -49
  118. data/lib/aspose_slides_cloud/models/series_marker.rb +20 -18
  119. data/lib/aspose_slides_cloud/models/shape.rb +20 -8
  120. data/lib/aspose_slides_cloud/models/shape_base.rb +20 -8
  121. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +20 -8
  122. data/lib/aspose_slides_cloud/models/shapes.rb +20 -8
  123. data/lib/aspose_slides_cloud/models/slide.rb +20 -8
  124. data/lib/aspose_slides_cloud/models/slide_animation.rb +20 -8
  125. data/lib/aspose_slides_cloud/models/slide_background.rb +20 -8
  126. data/lib/aspose_slides_cloud/models/slide_comment.rb +20 -8
  127. data/lib/aspose_slides_cloud/models/slide_comments.rb +20 -8
  128. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  129. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +20 -8
  130. data/lib/aspose_slides_cloud/models/slides.rb +20 -8
  131. data/lib/aspose_slides_cloud/models/smart_art.rb +20 -8
  132. data/lib/aspose_slides_cloud/models/smart_art_node.rb +20 -8
  133. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +20 -8
  134. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +20 -8
  135. data/lib/aspose_slides_cloud/models/solid_fill.rb +20 -8
  136. data/lib/aspose_slides_cloud/models/split_document_result.rb +20 -8
  137. data/lib/aspose_slides_cloud/models/storage_exist.rb +20 -8
  138. data/lib/aspose_slides_cloud/models/storage_file.rb +20 -8
  139. data/lib/aspose_slides_cloud/models/svg_export_options.rb +20 -8
  140. data/lib/aspose_slides_cloud/models/swf_export_options.rb +20 -8
  141. data/lib/aspose_slides_cloud/models/table.rb +20 -48
  142. data/lib/aspose_slides_cloud/models/table_cell.rb +20 -48
  143. data/lib/aspose_slides_cloud/models/table_column.rb +20 -8
  144. data/lib/aspose_slides_cloud/models/table_row.rb +20 -8
  145. data/lib/aspose_slides_cloud/models/task.rb +20 -8
  146. data/lib/aspose_slides_cloud/models/text_item.rb +20 -8
  147. data/lib/aspose_slides_cloud/models/text_items.rb +20 -8
  148. data/lib/aspose_slides_cloud/models/theme.rb +20 -8
  149. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +20 -8
  150. data/lib/aspose_slides_cloud/models/update_background.rb +20 -8
  151. data/lib/aspose_slides_cloud/models/update_shape.rb +20 -8
  152. data/lib/aspose_slides_cloud/models/video_frame.rb +20 -8
  153. data/lib/aspose_slides_cloud/models/view_properties.rb +379 -0
  154. data/lib/aspose_slides_cloud/models/waterfall_series.rb +452 -0
  155. data/lib/aspose_slides_cloud/models/xps_export_options.rb +20 -8
  156. data/lib/aspose_slides_cloud/version.rb +1 -1
  157. data/spec/api/slides_api_spec.rb +17214 -12046
  158. data/spec/extra/extra_spec.rb +111 -9
  159. data/spec/spec_utils.rb +8 -1
  160. data/testRules.json +80 -8
  161. metadata +9 -2
@@ -358,15 +358,27 @@ module AsposeSlidesCloud
358
358
  def build_from_hash(attributes)
359
359
  return nil unless attributes.is_a?(Hash)
360
360
  self.class.swagger_types.each_pair do |key, type|
361
- if type =~ /\AArray<(.*)>/i
362
- # check to ensure the input is an array given that the the attribute
363
- # is documented as an array but the input is not
364
- if attributes[self.class.attribute_map[key]].is_a?(Array)
365
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
361
+ mapKey = self.class.attribute_map[key]
362
+ if !mapKey.nil?
363
+ val = attributes[mapKey]
364
+ if val.nil?
365
+ mapKeyString = mapKey.to_s
366
+ mapKeyString[0] = mapKeyString[0].downcase
367
+ mapKey = mapKeyString.to_sym
368
+ val = attributes[mapKey]
366
369
  end
367
- elsif !attributes[self.class.attribute_map[key]].nil?
368
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
369
- end # or else data not found in attributes(hash), not an issue as the data can be optional
370
+ if !val.nil?
371
+ if type =~ /\AArray<(.*)>/i
372
+ # check to ensure the input is an array given that the the attribute
373
+ # is documented as an array but the input is not
374
+ if val.is_a?(Array)
375
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
376
+ end
377
+ else
378
+ self.send("#{key}=", _deserialize(type, val))
379
+ end
380
+ end
381
+ end
370
382
  end
371
383
 
372
384
  self
@@ -106,15 +106,27 @@ module AsposeSlidesCloud
106
106
  def build_from_hash(attributes)
107
107
  return nil unless attributes.is_a?(Hash)
108
108
  self.class.swagger_types.each_pair do |key, type|
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 attributes[self.class.attribute_map[key]].is_a?(Array)
113
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
109
+ mapKey = self.class.attribute_map[key]
110
+ if !mapKey.nil?
111
+ val = attributes[mapKey]
112
+ if val.nil?
113
+ mapKeyString = mapKey.to_s
114
+ mapKeyString[0] = mapKeyString[0].downcase
115
+ mapKey = mapKeyString.to_sym
116
+ val = attributes[mapKey]
114
117
  end
115
- elsif !attributes[self.class.attribute_map[key]].nil?
116
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
- end # or else data not found in attributes(hash), not an issue as the data can be optional
118
+ if !val.nil?
119
+ if type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the the attribute
121
+ # is documented as an array but the input is not
122
+ if val.is_a?(Array)
123
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
124
+ end
125
+ else
126
+ self.send("#{key}=", _deserialize(type, val))
127
+ end
128
+ end
129
+ end
118
130
  end
119
131
 
120
132
  self
@@ -234,15 +234,27 @@ module AsposeSlidesCloud
234
234
  def build_from_hash(attributes)
235
235
  return nil unless attributes.is_a?(Hash)
236
236
  self.class.swagger_types.each_pair do |key, type|
237
- if type =~ /\AArray<(.*)>/i
238
- # check to ensure the input is an array given that the the attribute
239
- # is documented as an array but the input is not
240
- if attributes[self.class.attribute_map[key]].is_a?(Array)
241
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
237
+ mapKey = self.class.attribute_map[key]
238
+ if !mapKey.nil?
239
+ val = attributes[mapKey]
240
+ if val.nil?
241
+ mapKeyString = mapKey.to_s
242
+ mapKeyString[0] = mapKeyString[0].downcase
243
+ mapKey = mapKeyString.to_sym
244
+ val = attributes[mapKey]
242
245
  end
243
- elsif !attributes[self.class.attribute_map[key]].nil?
244
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
245
- end # or else data not found in attributes(hash), not an issue as the data can be optional
246
+ if !val.nil?
247
+ if type =~ /\AArray<(.*)>/i
248
+ # check to ensure the input is an array given that the the attribute
249
+ # is documented as an array but the input is not
250
+ if val.is_a?(Array)
251
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
252
+ end
253
+ else
254
+ self.send("#{key}=", _deserialize(type, val))
255
+ end
256
+ end
257
+ end
246
258
  end
247
259
 
248
260
  self
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
118
118
  def build_from_hash(attributes)
119
119
  return nil unless attributes.is_a?(Hash)
120
120
  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) })
121
+ mapKey = self.class.attribute_map[key]
122
+ if !mapKey.nil?
123
+ val = attributes[mapKey]
124
+ if val.nil?
125
+ mapKeyString = mapKey.to_s
126
+ mapKeyString[0] = mapKeyString[0].downcase
127
+ mapKey = mapKeyString.to_sym
128
+ val = attributes[mapKey]
126
129
  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
130
+ if !val.nil?
131
+ if type =~ /\AArray<(.*)>/i
132
+ # check to ensure the input is an array given that the the attribute
133
+ # is documented as an array but the input is not
134
+ if val.is_a?(Array)
135
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
136
+ end
137
+ else
138
+ self.send("#{key}=", _deserialize(type, val))
139
+ end
140
+ end
141
+ end
130
142
  end
131
143
 
132
144
  self
@@ -144,37 +144,12 @@ module AsposeSlidesCloud
144
144
  # @return Array for valid properties with the reasons
145
145
  def list_invalid_properties
146
146
  invalid_properties = Array.new
147
- if @x.nil?
148
- invalid_properties.push('invalid value for "x", x cannot be nil.')
149
- end
150
-
151
- if @y.nil?
152
- invalid_properties.push('invalid value for "y", y cannot be nil.')
153
- end
154
-
155
- if @width.nil?
156
- invalid_properties.push('invalid value for "width", width cannot be nil.')
157
- end
158
-
159
- if @height.nil?
160
- invalid_properties.push('invalid value for "height", height cannot be nil.')
161
- end
162
-
163
- if @layout_target_type.nil?
164
- invalid_properties.push('invalid value for "layout_target_type", layout_target_type cannot be nil.')
165
- end
166
-
167
147
  invalid_properties
168
148
  end
169
149
 
170
150
  # Check to see if the all the properties in the model are valid
171
151
  # @return true if the model is valid
172
152
  def valid?
173
- return false if @x.nil?
174
- return false if @y.nil?
175
- return false if @width.nil?
176
- return false if @height.nil?
177
- return false if @layout_target_type.nil?
178
153
  layout_target_type_validator = EnumAttributeValidator.new('String', ['Inner', 'Outer'])
179
154
  return false unless layout_target_type_validator.valid?(@layout_target_type)
180
155
  true
@@ -223,15 +198,27 @@ module AsposeSlidesCloud
223
198
  def build_from_hash(attributes)
224
199
  return nil unless attributes.is_a?(Hash)
225
200
  self.class.swagger_types.each_pair do |key, type|
226
- if type =~ /\AArray<(.*)>/i
227
- # check to ensure the input is an array given that the the attribute
228
- # is documented as an array but the input is not
229
- if attributes[self.class.attribute_map[key]].is_a?(Array)
230
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
201
+ mapKey = self.class.attribute_map[key]
202
+ if !mapKey.nil?
203
+ val = attributes[mapKey]
204
+ if val.nil?
205
+ mapKeyString = mapKey.to_s
206
+ mapKeyString[0] = mapKeyString[0].downcase
207
+ mapKey = mapKeyString.to_sym
208
+ val = attributes[mapKey]
209
+ end
210
+ if !val.nil?
211
+ if type =~ /\AArray<(.*)>/i
212
+ # check to ensure the input is an array given that the the attribute
213
+ # is documented as an array but the input is not
214
+ if val.is_a?(Array)
215
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
216
+ end
217
+ else
218
+ self.send("#{key}=", _deserialize(type, val))
219
+ end
231
220
  end
232
- elsif !attributes[self.class.attribute_map[key]].nil?
233
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
234
- end # or else data not found in attributes(hash), not an issue as the data can be optional
221
+ end
235
222
  end
236
223
 
237
224
  self
@@ -498,15 +498,27 @@ module AsposeSlidesCloud
498
498
  def build_from_hash(attributes)
499
499
  return nil unless attributes.is_a?(Hash)
500
500
  self.class.swagger_types.each_pair do |key, type|
501
- if type =~ /\AArray<(.*)>/i
502
- # check to ensure the input is an array given that the the attribute
503
- # is documented as an array but the input is not
504
- if attributes[self.class.attribute_map[key]].is_a?(Array)
505
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
501
+ mapKey = self.class.attribute_map[key]
502
+ if !mapKey.nil?
503
+ val = attributes[mapKey]
504
+ if val.nil?
505
+ mapKeyString = mapKey.to_s
506
+ mapKeyString[0] = mapKeyString[0].downcase
507
+ mapKey = mapKeyString.to_sym
508
+ val = attributes[mapKey]
506
509
  end
507
- elsif !attributes[self.class.attribute_map[key]].nil?
508
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
509
- end # or else data not found in attributes(hash), not an issue as the data can be optional
510
+ if !val.nil?
511
+ if type =~ /\AArray<(.*)>/i
512
+ # check to ensure the input is an array given that the the attribute
513
+ # is documented as an array but the input is not
514
+ if val.is_a?(Array)
515
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
516
+ end
517
+ else
518
+ self.send("#{key}=", _deserialize(type, val))
519
+ end
520
+ end
521
+ end
510
522
  end
511
523
 
512
524
  self
@@ -32,14 +32,14 @@ module AsposeSlidesCloud
32
32
  attr_accessor :alternate_links
33
33
 
34
34
  # List of portion links.
35
- attr_accessor :portion_links
35
+ attr_accessor :items
36
36
 
37
37
  # Attribute mapping from ruby-style variable name to JSON key.
38
38
  def self.attribute_map
39
39
  {
40
40
  :'self_uri' => :'SelfUri',
41
41
  :'alternate_links' => :'AlternateLinks',
42
- :'portion_links' => :'PortionLinks'
42
+ :'items' => :'Items'
43
43
  }
44
44
  end
45
45
 
@@ -48,7 +48,7 @@ module AsposeSlidesCloud
48
48
  {
49
49
  :'self_uri' => :'ResourceUri',
50
50
  :'alternate_links' => :'Array<ResourceUri>',
51
- :'portion_links' => :'Array<ResourceUriElement>'
51
+ :'items' => :'Array<Portion>'
52
52
  }
53
53
  end
54
54
 
@@ -70,9 +70,9 @@ module AsposeSlidesCloud
70
70
  end
71
71
  end
72
72
 
73
- if attributes.has_key?(:'PortionLinks')
74
- if (value = attributes[:'PortionLinks']).is_a?(Array)
75
- self.portion_links = value
73
+ if attributes.has_key?(:'Items')
74
+ if (value = attributes[:'Items']).is_a?(Array)
75
+ self.items = value
76
76
  end
77
77
  end
78
78
  end
@@ -97,7 +97,7 @@ module AsposeSlidesCloud
97
97
  self.class == o.class &&
98
98
  self_uri == o.self_uri &&
99
99
  alternate_links == o.alternate_links &&
100
- portion_links == o.portion_links
100
+ items == o.items
101
101
  end
102
102
 
103
103
  # @see the `==` method
@@ -109,7 +109,7 @@ module AsposeSlidesCloud
109
109
  # Calculates hash code according to all attributes.
110
110
  # @return [Fixnum] Hash code
111
111
  def hash
112
- [self_uri, alternate_links, portion_links].hash
112
+ [self_uri, alternate_links, items].hash
113
113
  end
114
114
 
115
115
  # Builds the object from hash
@@ -118,15 +118,27 @@ module AsposeSlidesCloud
118
118
  def build_from_hash(attributes)
119
119
  return nil unless attributes.is_a?(Hash)
120
120
  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) })
121
+ mapKey = self.class.attribute_map[key]
122
+ if !mapKey.nil?
123
+ val = attributes[mapKey]
124
+ if val.nil?
125
+ mapKeyString = mapKey.to_s
126
+ mapKeyString[0] = mapKeyString[0].downcase
127
+ mapKey = mapKeyString.to_sym
128
+ val = attributes[mapKey]
126
129
  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
130
+ if !val.nil?
131
+ if type =~ /\AArray<(.*)>/i
132
+ # check to ensure the input is an array given that the the attribute
133
+ # is documented as an array but the input is not
134
+ if val.is_a?(Array)
135
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
136
+ end
137
+ else
138
+ self.send("#{key}=", _deserialize(type, val))
139
+ end
140
+ end
141
+ end
130
142
  end
131
143
 
132
144
  self
@@ -145,15 +145,27 @@ module AsposeSlidesCloud
145
145
  def build_from_hash(attributes)
146
146
  return nil unless attributes.is_a?(Hash)
147
147
  self.class.swagger_types.each_pair do |key, type|
148
- if type =~ /\AArray<(.*)>/i
149
- # check to ensure the input is an array given that the the attribute
150
- # is documented as an array but the input is not
151
- if attributes[self.class.attribute_map[key]].is_a?(Array)
152
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
148
+ mapKey = self.class.attribute_map[key]
149
+ if !mapKey.nil?
150
+ val = attributes[mapKey]
151
+ if val.nil?
152
+ mapKeyString = mapKey.to_s
153
+ mapKeyString[0] = mapKeyString[0].downcase
154
+ mapKey = mapKeyString.to_sym
155
+ val = attributes[mapKey]
153
156
  end
154
- elsif !attributes[self.class.attribute_map[key]].nil?
155
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
156
- end # or else data not found in attributes(hash), not an issue as the data can be optional
157
+ if !val.nil?
158
+ if type =~ /\AArray<(.*)>/i
159
+ # check to ensure the input is an array given that the the attribute
160
+ # is documented as an array but the input is not
161
+ if val.is_a?(Array)
162
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
163
+ end
164
+ else
165
+ self.send("#{key}=", _deserialize(type, val))
166
+ end
167
+ end
168
+ end
157
169
  end
158
170
 
159
171
  self
@@ -116,15 +116,27 @@ module AsposeSlidesCloud
116
116
  def build_from_hash(attributes)
117
117
  return nil unless attributes.is_a?(Hash)
118
118
  self.class.swagger_types.each_pair do |key, type|
119
- if type =~ /\AArray<(.*)>/i
120
- # check to ensure the input is an array given that the the attribute
121
- # is documented as an array but the input is not
122
- if attributes[self.class.attribute_map[key]].is_a?(Array)
123
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ mapKey = self.class.attribute_map[key]
120
+ if !mapKey.nil?
121
+ val = attributes[mapKey]
122
+ if val.nil?
123
+ mapKeyString = mapKey.to_s
124
+ mapKeyString[0] = mapKeyString[0].downcase
125
+ mapKey = mapKeyString.to_sym
126
+ val = attributes[mapKey]
124
127
  end
125
- elsif !attributes[self.class.attribute_map[key]].nil?
126
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
127
- end # or else data not found in attributes(hash), not an issue as the data can be optional
128
+ if !val.nil?
129
+ if type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the the attribute
131
+ # is documented as an array but the input is not
132
+ if val.is_a?(Array)
133
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
134
+ end
135
+ else
136
+ self.send("#{key}=", _deserialize(type, val))
137
+ end
138
+ end
139
+ end
128
140
  end
129
141
 
130
142
  self
@@ -108,15 +108,27 @@ module AsposeSlidesCloud
108
108
  def build_from_hash(attributes)
109
109
  return nil unless attributes.is_a?(Hash)
110
110
  self.class.swagger_types.each_pair do |key, type|
111
- if type =~ /\AArray<(.*)>/i
112
- # check to ensure the input is an array given that the the attribute
113
- # is documented as an array but the input is not
114
- if attributes[self.class.attribute_map[key]].is_a?(Array)
115
- 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]
116
119
  end
117
- elsif !attributes[self.class.attribute_map[key]].nil?
118
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
- 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
120
132
  end
121
133
 
122
134
  self