aspose_slides_cloud 19.9.0 → 20.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +51 -2
  4. data/lib/aspose_slides_cloud.rb +6 -0
  5. data/lib/aspose_slides_cloud/api/slides_api.rb +219 -194
  6. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +178 -105
  7. data/lib/aspose_slides_cloud/api_client.rb +4 -1
  8. data/lib/aspose_slides_cloud/configuration.rb +6 -1
  9. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +0 -15
  10. data/lib/aspose_slides_cloud/models/axis.rb +0 -160
  11. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +490 -0
  12. data/lib/aspose_slides_cloud/models/bubble_series.rb +2 -37
  13. data/lib/aspose_slides_cloud/models/chart.rb +14 -4
  14. data/lib/aspose_slides_cloud/models/chart_category.rb +237 -0
  15. data/lib/aspose_slides_cloud/models/chart_wall.rb +0 -10
  16. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +205 -0
  17. data/lib/aspose_slides_cloud/models/document.rb +11 -1
  18. data/lib/aspose_slides_cloud/models/document_replace_result.rb +11 -1
  19. data/lib/aspose_slides_cloud/models/legend.rb +0 -30
  20. data/lib/aspose_slides_cloud/models/line_format.rb +0 -35
  21. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +205 -0
  22. data/lib/aspose_slides_cloud/models/one_value_series.rb +2 -37
  23. data/lib/aspose_slides_cloud/models/plot_area.rb +0 -25
  24. data/lib/aspose_slides_cloud/models/scatter_series.rb +2 -37
  25. data/lib/aspose_slides_cloud/models/series.rb +2 -37
  26. data/lib/aspose_slides_cloud/models/series_marker.rb +0 -10
  27. data/lib/aspose_slides_cloud/models/table.rb +0 -40
  28. data/lib/aspose_slides_cloud/models/table_cell.rb +0 -40
  29. data/lib/aspose_slides_cloud/models/view_properties.rb +367 -0
  30. data/lib/aspose_slides_cloud/models/waterfall_series.rb +438 -0
  31. data/lib/aspose_slides_cloud/version.rb +1 -1
  32. data/spec/api/slides_api_spec.rb +1445 -925
  33. data/spec/extra/extra_spec.rb +20 -2
  34. data/spec/spec_utils.rb +28 -6
  35. data/testRules.json +17 -3
  36. metadata +8 -2
@@ -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
@@ -245,34 +245,6 @@ module AsposeSlidesCloud
245
245
  # @return Array for valid properties with the reasons
246
246
  def list_invalid_properties
247
247
  invalid_properties = Array.new
248
- if @type.nil?
249
- invalid_properties.push('invalid value for "type", type cannot be nil.')
250
- end
251
-
252
- if @is_color_varied.nil?
253
- invalid_properties.push('invalid value for "is_color_varied", is_color_varied cannot be nil.')
254
- end
255
-
256
- if @smooth.nil?
257
- invalid_properties.push('invalid value for "smooth", smooth cannot be nil.')
258
- end
259
-
260
- if @plot_on_second_axis.nil?
261
- invalid_properties.push('invalid value for "plot_on_second_axis", plot_on_second_axis cannot be nil.')
262
- end
263
-
264
- if @order.nil?
265
- invalid_properties.push('invalid value for "order", order cannot be nil.')
266
- end
267
-
268
- if @invert_if_negative.nil?
269
- invalid_properties.push('invalid value for "invert_if_negative", invert_if_negative cannot be nil.')
270
- end
271
-
272
- if @explosion.nil?
273
- invalid_properties.push('invalid value for "explosion", explosion cannot be nil.')
274
- end
275
-
276
248
  if @data_point_type.nil?
277
249
  invalid_properties.push('invalid value for "data_point_type", data_point_type cannot be nil.')
278
250
  end
@@ -283,15 +255,8 @@ module AsposeSlidesCloud
283
255
  # Check to see if the all the properties in the model are valid
284
256
  # @return true if the model is valid
285
257
  def valid?
286
- return false if @type.nil?
287
- type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
258
+ type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
288
259
  return false unless type_validator.valid?(@type)
289
- return false if @is_color_varied.nil?
290
- return false if @smooth.nil?
291
- return false if @plot_on_second_axis.nil?
292
- return false if @order.nil?
293
- return false if @invert_if_negative.nil?
294
- return false if @explosion.nil?
295
260
  return false if @data_point_type.nil?
296
261
  data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
297
262
  return false unless data_point_type_validator.valid?(@data_point_type)
@@ -301,7 +266,7 @@ module AsposeSlidesCloud
301
266
  # Custom attribute writer method checking allowed values (enum).
302
267
  # @param [Object] type Object to be assigned
303
268
  def type=(type)
304
- validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
269
+ validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
305
270
  unless validator.valid?(type)
306
271
  fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
307
272
  end
@@ -225,56 +225,21 @@ module AsposeSlidesCloud
225
225
  # @return Array for valid properties with the reasons
226
226
  def list_invalid_properties
227
227
  invalid_properties = Array.new
228
- if @type.nil?
229
- invalid_properties.push('invalid value for "type", type cannot be nil.')
230
- end
231
-
232
- if @is_color_varied.nil?
233
- invalid_properties.push('invalid value for "is_color_varied", is_color_varied cannot be nil.')
234
- end
235
-
236
- if @smooth.nil?
237
- invalid_properties.push('invalid value for "smooth", smooth cannot be nil.')
238
- end
239
-
240
- if @plot_on_second_axis.nil?
241
- invalid_properties.push('invalid value for "plot_on_second_axis", plot_on_second_axis cannot be nil.')
242
- end
243
-
244
- if @order.nil?
245
- invalid_properties.push('invalid value for "order", order cannot be nil.')
246
- end
247
-
248
- if @invert_if_negative.nil?
249
- invalid_properties.push('invalid value for "invert_if_negative", invert_if_negative cannot be nil.')
250
- end
251
-
252
- if @explosion.nil?
253
- invalid_properties.push('invalid value for "explosion", explosion cannot be nil.')
254
- end
255
-
256
228
  invalid_properties
257
229
  end
258
230
 
259
231
  # Check to see if the all the properties in the model are valid
260
232
  # @return true if the model is valid
261
233
  def valid?
262
- return false if @type.nil?
263
- type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
234
+ type_validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
264
235
  return false unless type_validator.valid?(@type)
265
- return false if @is_color_varied.nil?
266
- return false if @smooth.nil?
267
- return false if @plot_on_second_axis.nil?
268
- return false if @order.nil?
269
- return false if @invert_if_negative.nil?
270
- return false if @explosion.nil?
271
236
  true
272
237
  end
273
238
 
274
239
  # Custom attribute writer method checking allowed values (enum).
275
240
  # @param [Object] type Object to be assigned
276
241
  def type=(type)
277
- validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes'])
242
+ validator = EnumAttributeValidator.new('String', ['ClusteredColumn', 'StackedColumn', 'PercentsStackedColumn', 'ClusteredColumn3D', 'StackedColumn3D', 'PercentsStackedColumn3D', 'Column3D', 'ClusteredCylinder', 'StackedCylinder', 'PercentsStackedCylinder', 'Cylinder3D', 'ClusteredCone', 'StackedCone', 'PercentsStackedCone', 'Cone3D', 'ClusteredPyramid', 'StackedPyramid', 'PercentsStackedPyramid', 'Pyramid3D', 'Line', 'StackedLine', 'PercentsStackedLine', 'LineWithMarkers', 'StackedLineWithMarkers', 'PercentsStackedLineWithMarkers', 'Line3D', 'Pie', 'Pie3D', 'PieOfPie', 'ExplodedPie', 'ExplodedPie3D', 'BarOfPie', 'PercentsStackedBar', 'ClusteredBar3D', 'ClusteredBar', 'StackedBar', 'StackedBar3D', 'PercentsStackedBar3D', 'ClusteredHorizontalCylinder', 'StackedHorizontalCylinder', 'PercentsStackedHorizontalCylinder', 'ClusteredHorizontalCone', 'StackedHorizontalCone', 'PercentsStackedHorizontalCone', 'ClusteredHorizontalPyramid', 'StackedHorizontalPyramid', 'PercentsStackedHorizontalPyramid', 'Area', 'StackedArea', 'PercentsStackedArea', 'Area3D', 'StackedArea3D', 'PercentsStackedArea3D', 'ScatterWithMarkers', 'ScatterWithSmoothLinesAndMarkers', 'ScatterWithSmoothLines', 'ScatterWithStraightLinesAndMarkers', 'ScatterWithStraightLines', 'HighLowClose', 'OpenHighLowClose', 'VolumeHighLowClose', 'VolumeOpenHighLowClose', 'Surface3D', 'WireframeSurface3D', 'Contour', 'WireframeContour', 'Doughnut', 'ExplodedDoughnut', 'Bubble', 'BubbleWith3D', 'Radar', 'RadarWithMarkers', 'FilledRadar', 'SeriesOfMixedTypes', 'Treemap', 'Sunburst', 'Histogram', 'ParetoLine', 'BoxAndWhisker', 'Waterfall', 'Funnel'])
278
243
  unless validator.valid?(type)
279
244
  fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
280
245
  end
@@ -117,22 +117,12 @@ module AsposeSlidesCloud
117
117
  # @return Array for valid properties with the reasons
118
118
  def list_invalid_properties
119
119
  invalid_properties = Array.new
120
- if @size.nil?
121
- invalid_properties.push('invalid value for "size", size cannot be nil.')
122
- end
123
-
124
- if @symbol.nil?
125
- invalid_properties.push('invalid value for "symbol", symbol cannot be nil.')
126
- end
127
-
128
120
  invalid_properties
129
121
  end
130
122
 
131
123
  # Check to see if the all the properties in the model are valid
132
124
  # @return true if the model is valid
133
125
  def valid?
134
- return false if @size.nil?
135
- return false if @symbol.nil?
136
126
  symbol_validator = EnumAttributeValidator.new('String', ['Circle', 'Dash', 'Diamond', 'Dot', 'None', 'Picture', 'Plus', 'Square', 'Star', 'Triangle', 'X', 'NotDefined'])
137
127
  return false unless symbol_validator.valid?(@symbol)
138
128
  true
@@ -337,38 +337,6 @@ module AsposeSlidesCloud
337
337
  invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
338
338
  end
339
339
 
340
- if @style.nil?
341
- invalid_properties.push('invalid value for "style", style cannot be nil.')
342
- end
343
-
344
- if @first_col.nil?
345
- invalid_properties.push('invalid value for "first_col", first_col cannot be nil.')
346
- end
347
-
348
- if @first_row.nil?
349
- invalid_properties.push('invalid value for "first_row", first_row cannot be nil.')
350
- end
351
-
352
- if @horizontal_banding.nil?
353
- invalid_properties.push('invalid value for "horizontal_banding", horizontal_banding cannot be nil.')
354
- end
355
-
356
- if @last_col.nil?
357
- invalid_properties.push('invalid value for "last_col", last_col cannot be nil.')
358
- end
359
-
360
- if @last_row.nil?
361
- invalid_properties.push('invalid value for "last_row", last_row cannot be nil.')
362
- end
363
-
364
- if @right_to_left.nil?
365
- invalid_properties.push('invalid value for "right_to_left", right_to_left cannot be nil.')
366
- end
367
-
368
- if @vertical_banding.nil?
369
- invalid_properties.push('invalid value for "vertical_banding", vertical_banding cannot be nil.')
370
- end
371
-
372
340
  invalid_properties
373
341
  end
374
342
 
@@ -382,16 +350,8 @@ module AsposeSlidesCloud
382
350
  return false if @shape_type.nil?
383
351
  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'])
384
352
  return false unless shape_type_validator.valid?(@shape_type)
385
- return false if @style.nil?
386
353
  style_validator = EnumAttributeValidator.new('String', ['None', 'MediumStyle2Accent1', 'MediumStyle2', 'NoStyleNoGrid', 'ThemedStyle1Accent1', 'ThemedStyle1Accent2', 'ThemedStyle1Accent3', 'ThemedStyle1Accent4', 'ThemedStyle1Accent5', 'ThemedStyle1Accent6', 'NoStyleTableGrid', 'ThemedStyle2Accent1', 'ThemedStyle2Accent2', 'ThemedStyle2Accent3', 'ThemedStyle2Accent4', 'ThemedStyle2Accent5', 'ThemedStyle2Accent6', 'LightStyle1', 'LightStyle1Accent1', 'LightStyle1Accent2', 'LightStyle1Accent3', 'LightStyle1Accent4', 'LightStyle2Accent5', 'LightStyle1Accent6', 'LightStyle2', 'LightStyle2Accent1', 'LightStyle2Accent2', 'LightStyle2Accent3', 'MediumStyle2Accent3', 'MediumStyle2Accent4', 'MediumStyle2Accent5', 'LightStyle2Accent6', 'LightStyle2Accent4', 'LightStyle3', 'LightStyle3Accent1', 'MediumStyle2Accent2', 'LightStyle3Accent2', 'LightStyle3Accent3', 'LightStyle3Accent4', 'LightStyle3Accent5', 'LightStyle3Accent6', 'MediumStyle1', 'MediumStyle1Accent1', 'MediumStyle1Accent2', 'MediumStyle1Accent3', 'MediumStyle1Accent4', 'MediumStyle1Accent5', 'MediumStyle1Accent6', 'MediumStyle2Accent6', 'MediumStyle3', 'MediumStyle3Accent1', 'MediumStyle3Accent2', 'MediumStyle3Accent3', 'MediumStyle3Accent4', 'MediumStyle3Accent5', 'MediumStyle3Accent6', 'MediumStyle4', 'MediumStyle4Accent1', 'MediumStyle4Accent2', 'MediumStyle4Accent3', 'MediumStyle4Accent4', 'MediumStyle4Accent5', 'MediumStyle4Accent6', 'DarkStyle1', 'DarkStyle1Accent1', 'DarkStyle1Accent2', 'DarkStyle1Accent3', 'DarkStyle1Accent4', 'DarkStyle1Accent5', 'DarkStyle1Accent6', 'DarkStyle2', 'DarkStyle2Accent1Accent2', 'DarkStyle2Accent3Accent4', 'DarkStyle2Accent5Accent6', 'LightStyle1Accent5', 'Custom'])
387
354
  return false unless style_validator.valid?(@style)
388
- return false if @first_col.nil?
389
- return false if @first_row.nil?
390
- return false if @horizontal_banding.nil?
391
- return false if @last_col.nil?
392
- return false if @last_row.nil?
393
- return false if @right_to_left.nil?
394
- return false if @vertical_banding.nil?
395
355
  true
396
356
  end
397
357
 
@@ -216,54 +216,14 @@ module AsposeSlidesCloud
216
216
  # @return Array for valid properties with the reasons
217
217
  def list_invalid_properties
218
218
  invalid_properties = Array.new
219
- if @row_span.nil?
220
- invalid_properties.push('invalid value for "row_span", row_span cannot be nil.')
221
- end
222
-
223
- if @col_span.nil?
224
- invalid_properties.push('invalid value for "col_span", col_span cannot be nil.')
225
- end
226
-
227
- if @margin_top.nil?
228
- invalid_properties.push('invalid value for "margin_top", margin_top cannot be nil.')
229
- end
230
-
231
- if @margin_right.nil?
232
- invalid_properties.push('invalid value for "margin_right", margin_right cannot be nil.')
233
- end
234
-
235
- if @margin_left.nil?
236
- invalid_properties.push('invalid value for "margin_left", margin_left cannot be nil.')
237
- end
238
-
239
- if @margin_bottom.nil?
240
- invalid_properties.push('invalid value for "margin_bottom", margin_bottom cannot be nil.')
241
- end
242
-
243
- if @text_anchor_type.nil?
244
- invalid_properties.push('invalid value for "text_anchor_type", text_anchor_type cannot be nil.')
245
- end
246
-
247
- if @text_vertical_type.nil?
248
- invalid_properties.push('invalid value for "text_vertical_type", text_vertical_type cannot be nil.')
249
- end
250
-
251
219
  invalid_properties
252
220
  end
253
221
 
254
222
  # Check to see if the all the properties in the model are valid
255
223
  # @return true if the model is valid
256
224
  def valid?
257
- return false if @row_span.nil?
258
- return false if @col_span.nil?
259
- return false if @margin_top.nil?
260
- return false if @margin_right.nil?
261
- return false if @margin_left.nil?
262
- return false if @margin_bottom.nil?
263
- return false if @text_anchor_type.nil?
264
225
  text_anchor_type_validator = EnumAttributeValidator.new('String', ['Top', 'Center', 'Bottom', 'Justified', 'Distributed', 'NotDefined'])
265
226
  return false unless text_anchor_type_validator.valid?(@text_anchor_type)
266
- return false if @text_vertical_type.nil?
267
227
  text_vertical_type_validator = EnumAttributeValidator.new('String', ['Horizontal', 'Vertical', 'Vertical270', 'WordArtVertical', 'EastAsianVertical', 'MongolianVertical', 'WordArtVerticalRightToLeft', 'NotDefined'])
268
228
  return false unless text_vertical_type_validator.valid?(@text_vertical_type)
269
229
  true
@@ -0,0 +1,367 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # Slides document properties.
27
+ class ViewProperties
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
+ # Last used view mode.
35
+ attr_accessor :last_view
36
+
37
+ # Horizontal bar state.
38
+ attr_accessor :horizontal_bar_state
39
+
40
+ # Vertical bar state.
41
+ attr_accessor :vertical_bar_state
42
+
43
+ # True to prefer single view.
44
+ attr_accessor :prefer_single_view
45
+
46
+ # The sizing of the side content region of the normal view, when the region is of a variable restored size.
47
+ attr_accessor :restored_left
48
+
49
+ # The sizing of the top slide region of the normal view, when the region is of a variable restored size.
50
+ attr_accessor :restored_top
51
+
52
+ # Slide view mode properties.
53
+ attr_accessor :slide_view_properties
54
+
55
+ # Notes view mode properties.
56
+ attr_accessor :notes_view_properties
57
+
58
+ # True if the comments should be shown.
59
+ attr_accessor :show_comments
60
+
61
+ class EnumAttributeValidator
62
+ attr_reader :datatype
63
+ attr_reader :allowable_values
64
+
65
+ def initialize(datatype, allowable_values)
66
+ @allowable_values = allowable_values.map do |value|
67
+ case datatype.to_s
68
+ when /Integer/i
69
+ value.to_i
70
+ when /Float/i
71
+ value.to_f
72
+ else
73
+ value
74
+ end
75
+ end
76
+ end
77
+
78
+ def valid?(value)
79
+ !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
80
+ end
81
+ end
82
+
83
+ # Attribute mapping from ruby-style variable name to JSON key.
84
+ def self.attribute_map
85
+ {
86
+ :'self_uri' => :'SelfUri',
87
+ :'alternate_links' => :'AlternateLinks',
88
+ :'last_view' => :'LastView',
89
+ :'horizontal_bar_state' => :'HorizontalBarState',
90
+ :'vertical_bar_state' => :'VerticalBarState',
91
+ :'prefer_single_view' => :'PreferSingleView',
92
+ :'restored_left' => :'RestoredLeft',
93
+ :'restored_top' => :'RestoredTop',
94
+ :'slide_view_properties' => :'SlideViewProperties',
95
+ :'notes_view_properties' => :'NotesViewProperties',
96
+ :'show_comments' => :'ShowComments'
97
+ }
98
+ end
99
+
100
+ # Attribute type mapping.
101
+ def self.swagger_types
102
+ {
103
+ :'self_uri' => :'ResourceUri',
104
+ :'alternate_links' => :'Array<ResourceUri>',
105
+ :'last_view' => :'String',
106
+ :'horizontal_bar_state' => :'String',
107
+ :'vertical_bar_state' => :'String',
108
+ :'prefer_single_view' => :'BOOLEAN',
109
+ :'restored_left' => :'NormalViewRestoredProperties',
110
+ :'restored_top' => :'NormalViewRestoredProperties',
111
+ :'slide_view_properties' => :'CommonSlideViewProperties',
112
+ :'notes_view_properties' => :'CommonSlideViewProperties',
113
+ :'show_comments' => :'String'
114
+ }
115
+ end
116
+
117
+ # Initializes the object
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ def initialize(attributes = {})
120
+ return unless attributes.is_a?(Hash)
121
+
122
+ # convert string to symbol for hash key
123
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
124
+
125
+ if attributes.has_key?(:'SelfUri')
126
+ self.self_uri = attributes[:'SelfUri']
127
+ end
128
+
129
+ if attributes.has_key?(:'AlternateLinks')
130
+ if (value = attributes[:'AlternateLinks']).is_a?(Array)
131
+ self.alternate_links = value
132
+ end
133
+ end
134
+
135
+ if attributes.has_key?(:'LastView')
136
+ self.last_view = attributes[:'LastView']
137
+ end
138
+
139
+ if attributes.has_key?(:'HorizontalBarState')
140
+ self.horizontal_bar_state = attributes[:'HorizontalBarState']
141
+ end
142
+
143
+ if attributes.has_key?(:'VerticalBarState')
144
+ self.vertical_bar_state = attributes[:'VerticalBarState']
145
+ end
146
+
147
+ if attributes.has_key?(:'PreferSingleView')
148
+ self.prefer_single_view = attributes[:'PreferSingleView']
149
+ end
150
+
151
+ if attributes.has_key?(:'RestoredLeft')
152
+ self.restored_left = attributes[:'RestoredLeft']
153
+ end
154
+
155
+ if attributes.has_key?(:'RestoredTop')
156
+ self.restored_top = attributes[:'RestoredTop']
157
+ end
158
+
159
+ if attributes.has_key?(:'SlideViewProperties')
160
+ self.slide_view_properties = attributes[:'SlideViewProperties']
161
+ end
162
+
163
+ if attributes.has_key?(:'NotesViewProperties')
164
+ self.notes_view_properties = attributes[:'NotesViewProperties']
165
+ end
166
+
167
+ if attributes.has_key?(:'ShowComments')
168
+ self.show_comments = attributes[:'ShowComments']
169
+ end
170
+ end
171
+
172
+ # Show invalid properties with the reasons. Usually used together with valid?
173
+ # @return Array for valid properties with the reasons
174
+ def list_invalid_properties
175
+ invalid_properties = Array.new
176
+ invalid_properties
177
+ end
178
+
179
+ # Check to see if the all the properties in the model are valid
180
+ # @return true if the model is valid
181
+ def valid?
182
+ last_view_validator = EnumAttributeValidator.new('String', ['NotDefined', 'SlideView', 'SlideMasterView', 'NotesView', 'HandoutView', 'NotesMasterView', 'OutlineView', 'SlideSorterView', 'SlideThumbnailView'])
183
+ return false unless last_view_validator.valid?(@last_view)
184
+ horizontal_bar_state_validator = EnumAttributeValidator.new('String', ['Minimized', 'Restored', 'Maximized'])
185
+ return false unless horizontal_bar_state_validator.valid?(@horizontal_bar_state)
186
+ vertical_bar_state_validator = EnumAttributeValidator.new('String', ['Minimized', 'Restored', 'Maximized'])
187
+ return false unless vertical_bar_state_validator.valid?(@vertical_bar_state)
188
+ show_comments_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
189
+ return false unless show_comments_validator.valid?(@show_comments)
190
+ true
191
+ end
192
+
193
+ # Custom attribute writer method checking allowed values (enum).
194
+ # @param [Object] last_view Object to be assigned
195
+ def last_view=(last_view)
196
+ validator = EnumAttributeValidator.new('String', ['NotDefined', 'SlideView', 'SlideMasterView', 'NotesView', 'HandoutView', 'NotesMasterView', 'OutlineView', 'SlideSorterView', 'SlideThumbnailView'])
197
+ unless validator.valid?(last_view)
198
+ fail ArgumentError, 'invalid value for "last_view", must be one of #{validator.allowable_values}.'
199
+ end
200
+ @last_view = last_view
201
+ end
202
+
203
+ # Custom attribute writer method checking allowed values (enum).
204
+ # @param [Object] horizontal_bar_state Object to be assigned
205
+ def horizontal_bar_state=(horizontal_bar_state)
206
+ validator = EnumAttributeValidator.new('String', ['Minimized', 'Restored', 'Maximized'])
207
+ unless validator.valid?(horizontal_bar_state)
208
+ fail ArgumentError, 'invalid value for "horizontal_bar_state", must be one of #{validator.allowable_values}.'
209
+ end
210
+ @horizontal_bar_state = horizontal_bar_state
211
+ end
212
+
213
+ # Custom attribute writer method checking allowed values (enum).
214
+ # @param [Object] vertical_bar_state Object to be assigned
215
+ def vertical_bar_state=(vertical_bar_state)
216
+ validator = EnumAttributeValidator.new('String', ['Minimized', 'Restored', 'Maximized'])
217
+ unless validator.valid?(vertical_bar_state)
218
+ fail ArgumentError, 'invalid value for "vertical_bar_state", must be one of #{validator.allowable_values}.'
219
+ end
220
+ @vertical_bar_state = vertical_bar_state
221
+ end
222
+
223
+ # Custom attribute writer method checking allowed values (enum).
224
+ # @param [Object] show_comments Object to be assigned
225
+ def show_comments=(show_comments)
226
+ validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
227
+ unless validator.valid?(show_comments)
228
+ fail ArgumentError, 'invalid value for "show_comments", must be one of #{validator.allowable_values}.'
229
+ end
230
+ @show_comments = show_comments
231
+ end
232
+
233
+ # Checks equality by comparing each attribute.
234
+ # @param [Object] Object to be compared
235
+ def ==(o)
236
+ return true if self.equal?(o)
237
+ self.class == o.class &&
238
+ self_uri == o.self_uri &&
239
+ alternate_links == o.alternate_links &&
240
+ last_view == o.last_view &&
241
+ horizontal_bar_state == o.horizontal_bar_state &&
242
+ vertical_bar_state == o.vertical_bar_state &&
243
+ prefer_single_view == o.prefer_single_view &&
244
+ restored_left == o.restored_left &&
245
+ restored_top == o.restored_top &&
246
+ slide_view_properties == o.slide_view_properties &&
247
+ notes_view_properties == o.notes_view_properties &&
248
+ show_comments == o.show_comments
249
+ end
250
+
251
+ # @see the `==` method
252
+ # @param [Object] Object to be compared
253
+ def eql?(o)
254
+ self == o
255
+ end
256
+
257
+ # Calculates hash code according to all attributes.
258
+ # @return [Fixnum] Hash code
259
+ def hash
260
+ [self_uri, alternate_links, last_view, horizontal_bar_state, vertical_bar_state, prefer_single_view, restored_left, restored_top, slide_view_properties, notes_view_properties, show_comments].hash
261
+ end
262
+
263
+ # Builds the object from hash
264
+ # @param [Hash] attributes Model attributes in the form of hash
265
+ # @return [Object] Returns the model itself
266
+ def build_from_hash(attributes)
267
+ return nil unless attributes.is_a?(Hash)
268
+ self.class.swagger_types.each_pair do |key, type|
269
+ if type =~ /\AArray<(.*)>/i
270
+ # check to ensure the input is an array given that the the attribute
271
+ # is documented as an array but the input is not
272
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
273
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
274
+ end
275
+ elsif !attributes[self.class.attribute_map[key]].nil?
276
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
277
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
278
+ end
279
+
280
+ self
281
+ end
282
+
283
+ # Deserializes the data based on type
284
+ # @param string type Data type
285
+ # @param string value Value to be deserialized
286
+ # @return [Object] Deserialized data
287
+ def _deserialize(type, value)
288
+ case type.to_sym
289
+ when :DateTime
290
+ DateTime.parse(value)
291
+ when :Date
292
+ Date.parse(value)
293
+ when :String
294
+ value.to_s
295
+ when :Integer
296
+ value.to_i
297
+ when :Float
298
+ value.to_f
299
+ when :BOOLEAN
300
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
301
+ true
302
+ else
303
+ false
304
+ end
305
+ when :Object
306
+ # generic object (usually a Hash), return directly
307
+ value
308
+ when /\AArray<(?<inner_type>.+)>\z/
309
+ inner_type = Regexp.last_match[:inner_type]
310
+ value.map { |v| _deserialize(inner_type, v) }
311
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
312
+ k_type = Regexp.last_match[:k_type]
313
+ v_type = Regexp.last_match[:v_type]
314
+ {}.tap do |hash|
315
+ value.each do |k, v|
316
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
317
+ end
318
+ end
319
+ else # model
320
+ temp_model = AsposeSlidesCloud.const_get(type).new
321
+ temp_model.build_from_hash(value)
322
+ end
323
+ end
324
+
325
+ # Returns the string representation of the object
326
+ # @return [String] String presentation of the object
327
+ def to_s
328
+ to_hash.to_s
329
+ end
330
+
331
+ # to_body is an alias to to_hash (backward compatibility)
332
+ # @return [Hash] Returns the object in the form of hash
333
+ def to_body
334
+ to_hash
335
+ end
336
+
337
+ # Returns the object in the form of hash
338
+ # @return [Hash] Returns the object in the form of hash
339
+ def to_hash
340
+ hash = {}
341
+ self.class.attribute_map.each_pair do |attr, param|
342
+ value = self.send(attr)
343
+ next if value.nil?
344
+ hash[param] = _to_hash(value)
345
+ end
346
+ hash
347
+ end
348
+
349
+ # Outputs non-array value in the form of hash
350
+ # For object, use to_hash. Otherwise, just return the value
351
+ # @param [Object] value Any valid value
352
+ # @return [Hash] Returns the value in the form of hash
353
+ def _to_hash(value)
354
+ if value.is_a?(Array)
355
+ value.compact.map { |v| _to_hash(v) }
356
+ elsif value.is_a?(Hash)
357
+ {}.tap do |hash|
358
+ value.each { |k, v| hash[k] = _to_hash(v) }
359
+ end
360
+ elsif value.respond_to? :to_hash
361
+ value.to_hash
362
+ else
363
+ value
364
+ end
365
+ end
366
+ end
367
+ end