aspose_slides_cloud 19.12.0 → 20.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -99,31 +99,16 @@ module AsposeSlidesCloud
99
99
  # @return Array for valid properties with the reasons
100
100
  def list_invalid_properties
101
101
  invalid_properties = Array.new
102
- if @length.nil?
103
- invalid_properties.push('invalid value for "length", length cannot be nil.')
104
- end
105
-
106
- if @style.nil?
107
- invalid_properties.push('invalid value for "style", style cannot be nil.')
108
- end
109
-
110
- if @width.nil?
111
- invalid_properties.push('invalid value for "width", width cannot be nil.')
112
- end
113
-
114
102
  invalid_properties
115
103
  end
116
104
 
117
105
  # Check to see if the all the properties in the model are valid
118
106
  # @return true if the model is valid
119
107
  def valid?
120
- return false if @length.nil?
121
108
  length_validator = EnumAttributeValidator.new('String', ['Short', 'Medium', 'Long', 'NotDefined'])
122
109
  return false unless length_validator.valid?(@length)
123
- return false if @style.nil?
124
110
  style_validator = EnumAttributeValidator.new('String', ['None', 'Triangle', 'Stealth', 'Diamond', 'Oval', 'Open', 'NotDefined'])
125
111
  return false unless style_validator.valid?(@style)
126
- return false if @width.nil?
127
112
  width_validator = EnumAttributeValidator.new('String', ['Narrow', 'Medium', 'Wide', 'NotDefined'])
128
113
  return false unless width_validator.valid?(@width)
129
114
  true
@@ -396,192 +396,32 @@ module AsposeSlidesCloud
396
396
  # @return Array for valid properties with the reasons
397
397
  def list_invalid_properties
398
398
  invalid_properties = Array.new
399
- if @is_visible.nil?
400
- invalid_properties.push('invalid value for "is_visible", is_visible cannot be nil.')
401
- end
402
-
403
- if @has_title.nil?
404
- invalid_properties.push('invalid value for "has_title", has_title cannot be nil.')
405
- end
406
-
407
- if @position.nil?
408
- invalid_properties.push('invalid value for "position", position cannot be nil.')
409
- end
410
-
411
- if @display_unit.nil?
412
- invalid_properties.push('invalid value for "display_unit", display_unit cannot be nil.')
413
- end
414
-
415
- if @base_unit_scale.nil?
416
- invalid_properties.push('invalid value for "base_unit_scale", base_unit_scale cannot be nil.')
417
- end
418
-
419
- if @is_automatic_major_unit.nil?
420
- invalid_properties.push('invalid value for "is_automatic_major_unit", is_automatic_major_unit cannot be nil.')
421
- end
422
-
423
- if @major_unit.nil?
424
- invalid_properties.push('invalid value for "major_unit", major_unit cannot be nil.')
425
- end
426
-
427
- if @major_unit_scale.nil?
428
- invalid_properties.push('invalid value for "major_unit_scale", major_unit_scale cannot be nil.')
429
- end
430
-
431
- if @major_tick_mark.nil?
432
- invalid_properties.push('invalid value for "major_tick_mark", major_tick_mark cannot be nil.')
433
- end
434
-
435
- if @is_automatic_minor_unit.nil?
436
- invalid_properties.push('invalid value for "is_automatic_minor_unit", is_automatic_minor_unit cannot be nil.')
437
- end
438
-
439
- if @minor_unit.nil?
440
- invalid_properties.push('invalid value for "minor_unit", minor_unit cannot be nil.')
441
- end
442
-
443
- if @minor_unit_scale.nil?
444
- invalid_properties.push('invalid value for "minor_unit_scale", minor_unit_scale cannot be nil.')
445
- end
446
-
447
- if @minor_tick_mark.nil?
448
- invalid_properties.push('invalid value for "minor_tick_mark", minor_tick_mark cannot be nil.')
449
- end
450
-
451
- if @is_automatic_max_value.nil?
452
- invalid_properties.push('invalid value for "is_automatic_max_value", is_automatic_max_value cannot be nil.')
453
- end
454
-
455
- if @max_value.nil?
456
- invalid_properties.push('invalid value for "max_value", max_value cannot be nil.')
457
- end
458
-
459
- if @is_automatic_min_value.nil?
460
- invalid_properties.push('invalid value for "is_automatic_min_value", is_automatic_min_value cannot be nil.')
461
- end
462
-
463
- if @min_value.nil?
464
- invalid_properties.push('invalid value for "min_value", min_value cannot be nil.')
465
- end
466
-
467
- if @is_logarithmic.nil?
468
- invalid_properties.push('invalid value for "is_logarithmic", is_logarithmic cannot be nil.')
469
- end
470
-
471
- if @log_base.nil?
472
- invalid_properties.push('invalid value for "log_base", log_base cannot be nil.')
473
- end
474
-
475
- if @category_axis_type.nil?
476
- invalid_properties.push('invalid value for "category_axis_type", category_axis_type cannot be nil.')
477
- end
478
-
479
- if @axis_between_categories.nil?
480
- invalid_properties.push('invalid value for "axis_between_categories", axis_between_categories cannot be nil.')
481
- end
482
-
483
- if @label_offset.nil?
484
- invalid_properties.push('invalid value for "label_offset", label_offset cannot be nil.')
485
- end
486
-
487
- if @is_plot_order_reversed.nil?
488
- invalid_properties.push('invalid value for "is_plot_order_reversed", is_plot_order_reversed cannot be nil.')
489
- end
490
-
491
- if @is_number_format_linked_to_source.nil?
492
- invalid_properties.push('invalid value for "is_number_format_linked_to_source", is_number_format_linked_to_source cannot be nil.')
493
- end
494
-
495
- if @cross_type.nil?
496
- invalid_properties.push('invalid value for "cross_type", cross_type cannot be nil.')
497
- end
498
-
499
- if @cross_at.nil?
500
- invalid_properties.push('invalid value for "cross_at", cross_at cannot be nil.')
501
- end
502
-
503
- if @is_automatic_tick_marks_spacing.nil?
504
- invalid_properties.push('invalid value for "is_automatic_tick_marks_spacing", is_automatic_tick_marks_spacing cannot be nil.')
505
- end
506
-
507
- if @tick_marks_spacing.nil?
508
- invalid_properties.push('invalid value for "tick_marks_spacing", tick_marks_spacing cannot be nil.')
509
- end
510
-
511
- if @is_automatic_tick_label_spacing.nil?
512
- invalid_properties.push('invalid value for "is_automatic_tick_label_spacing", is_automatic_tick_label_spacing cannot be nil.')
513
- end
514
-
515
- if @tick_label_spacing.nil?
516
- invalid_properties.push('invalid value for "tick_label_spacing", tick_label_spacing cannot be nil.')
517
- end
518
-
519
- if @tick_label_position.nil?
520
- invalid_properties.push('invalid value for "tick_label_position", tick_label_position cannot be nil.')
521
- end
522
-
523
- if @tick_label_rotation_angle.nil?
524
- invalid_properties.push('invalid value for "tick_label_rotation_angle", tick_label_rotation_angle cannot be nil.')
525
- end
526
-
527
399
  invalid_properties
528
400
  end
529
401
 
530
402
  # Check to see if the all the properties in the model are valid
531
403
  # @return true if the model is valid
532
404
  def valid?
533
- return false if @is_visible.nil?
534
- return false if @has_title.nil?
535
- return false if @position.nil?
536
405
  position_validator = EnumAttributeValidator.new('String', ['Bottom', 'Left', 'Right', 'Top'])
537
406
  return false unless position_validator.valid?(@position)
538
- return false if @display_unit.nil?
539
407
  display_unit_validator = EnumAttributeValidator.new('String', ['None', 'Hundreds', 'Thousands', 'TenThousands', 'HundredThousands', 'Millions', 'TenMillions', 'HundredMillions', 'Billions', 'Trillions', 'CustomValue'])
540
408
  return false unless display_unit_validator.valid?(@display_unit)
541
- return false if @base_unit_scale.nil?
542
409
  base_unit_scale_validator = EnumAttributeValidator.new('String', ['Days', 'Months', 'Years'])
543
410
  return false unless base_unit_scale_validator.valid?(@base_unit_scale)
544
- return false if @is_automatic_major_unit.nil?
545
- return false if @major_unit.nil?
546
- return false if @major_unit_scale.nil?
547
411
  major_unit_scale_validator = EnumAttributeValidator.new('String', ['Days', 'Months', 'Years'])
548
412
  return false unless major_unit_scale_validator.valid?(@major_unit_scale)
549
- return false if @major_tick_mark.nil?
550
413
  major_tick_mark_validator = EnumAttributeValidator.new('String', ['Cross', 'Inside', 'None', 'Outside'])
551
414
  return false unless major_tick_mark_validator.valid?(@major_tick_mark)
552
- return false if @is_automatic_minor_unit.nil?
553
- return false if @minor_unit.nil?
554
- return false if @minor_unit_scale.nil?
555
415
  minor_unit_scale_validator = EnumAttributeValidator.new('String', ['Days', 'Months', 'Years'])
556
416
  return false unless minor_unit_scale_validator.valid?(@minor_unit_scale)
557
- return false if @minor_tick_mark.nil?
558
417
  minor_tick_mark_validator = EnumAttributeValidator.new('String', ['Cross', 'Inside', 'None', 'Outside'])
559
418
  return false unless minor_tick_mark_validator.valid?(@minor_tick_mark)
560
- return false if @is_automatic_max_value.nil?
561
- return false if @max_value.nil?
562
- return false if @is_automatic_min_value.nil?
563
- return false if @min_value.nil?
564
- return false if @is_logarithmic.nil?
565
- return false if @log_base.nil?
566
- return false if @category_axis_type.nil?
567
419
  category_axis_type_validator = EnumAttributeValidator.new('String', ['Text', 'Date'])
568
420
  return false unless category_axis_type_validator.valid?(@category_axis_type)
569
- return false if @axis_between_categories.nil?
570
- return false if @label_offset.nil?
571
- return false if @is_plot_order_reversed.nil?
572
- return false if @is_number_format_linked_to_source.nil?
573
- return false if @cross_type.nil?
574
421
  cross_type_validator = EnumAttributeValidator.new('String', ['AxisCrossesAtZero', 'Maximum', 'Custom'])
575
422
  return false unless cross_type_validator.valid?(@cross_type)
576
- return false if @cross_at.nil?
577
- return false if @is_automatic_tick_marks_spacing.nil?
578
- return false if @tick_marks_spacing.nil?
579
- return false if @is_automatic_tick_label_spacing.nil?
580
- return false if @tick_label_spacing.nil?
581
- return false if @tick_label_position.nil?
582
423
  tick_label_position_validator = EnumAttributeValidator.new('String', ['High', 'Low', 'NextTo', 'None'])
583
424
  return false unless tick_label_position_validator.valid?(@tick_label_position)
584
- return false if @tick_label_rotation_angle.nil?
585
425
  true
586
426
  end
587
427
 
@@ -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
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'])
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)
@@ -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 @thickness.nil?
121
- invalid_properties.push('invalid value for "thickness", thickness cannot be nil.')
122
- end
123
-
124
- if @picture_type.nil?
125
- invalid_properties.push('invalid value for "picture_type", picture_type 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 @thickness.nil?
135
- return false if @picture_type.nil?
136
126
  picture_type_validator = EnumAttributeValidator.new('String', ['Stack', 'StackScale', 'Stretch', 'NotDefined'])
137
127
  return false unless picture_type_validator.valid?(@picture_type)
138
128
  true
@@ -153,44 +153,14 @@ module AsposeSlidesCloud
153
153
  # @return Array for valid properties with the reasons
154
154
  def list_invalid_properties
155
155
  invalid_properties = Array.new
156
- if @position.nil?
157
- invalid_properties.push('invalid value for "position", position cannot be nil.')
158
- end
159
-
160
- if @x.nil?
161
- invalid_properties.push('invalid value for "x", x cannot be nil.')
162
- end
163
-
164
- if @y.nil?
165
- invalid_properties.push('invalid value for "y", y cannot be nil.')
166
- end
167
-
168
- if @width.nil?
169
- invalid_properties.push('invalid value for "width", width cannot be nil.')
170
- end
171
-
172
- if @height.nil?
173
- invalid_properties.push('invalid value for "height", height cannot be nil.')
174
- end
175
-
176
- if @overlay.nil?
177
- invalid_properties.push('invalid value for "overlay", overlay cannot be nil.')
178
- end
179
-
180
156
  invalid_properties
181
157
  end
182
158
 
183
159
  # Check to see if the all the properties in the model are valid
184
160
  # @return true if the model is valid
185
161
  def valid?
186
- return false if @position.nil?
187
162
  position_validator = EnumAttributeValidator.new('String', ['Bottom', 'Left', 'Right', 'Top', 'TopRight'])
188
163
  return false unless position_validator.valid?(@position)
189
- return false if @x.nil?
190
- return false if @y.nil?
191
- return false if @width.nil?
192
- return false if @height.nil?
193
- return false if @overlay.nil?
194
164
  true
195
165
  end
196
166
 
@@ -171,57 +171,22 @@ module AsposeSlidesCloud
171
171
  # @return Array for valid properties with the reasons
172
172
  def list_invalid_properties
173
173
  invalid_properties = Array.new
174
- if @alignment.nil?
175
- invalid_properties.push('invalid value for "alignment", alignment cannot be nil.')
176
- end
177
-
178
- if @cap_style.nil?
179
- invalid_properties.push('invalid value for "cap_style", cap_style cannot be nil.')
180
- end
181
-
182
- if @dash_style.nil?
183
- invalid_properties.push('invalid value for "dash_style", dash_style cannot be nil.')
184
- end
185
-
186
- if @join_style.nil?
187
- invalid_properties.push('invalid value for "join_style", join_style cannot be nil.')
188
- end
189
-
190
- if @style.nil?
191
- invalid_properties.push('invalid value for "style", style cannot be nil.')
192
- end
193
-
194
- if @miter_limit.nil?
195
- invalid_properties.push('invalid value for "miter_limit", miter_limit cannot be nil.')
196
- end
197
-
198
- if @width.nil?
199
- invalid_properties.push('invalid value for "width", width cannot be nil.')
200
- end
201
-
202
174
  invalid_properties
203
175
  end
204
176
 
205
177
  # Check to see if the all the properties in the model are valid
206
178
  # @return true if the model is valid
207
179
  def valid?
208
- return false if @alignment.nil?
209
180
  alignment_validator = EnumAttributeValidator.new('String', ['Center', 'Inset', 'NotDefined'])
210
181
  return false unless alignment_validator.valid?(@alignment)
211
- return false if @cap_style.nil?
212
182
  cap_style_validator = EnumAttributeValidator.new('String', ['Round', 'Square', 'Flat', 'NotDefined'])
213
183
  return false unless cap_style_validator.valid?(@cap_style)
214
- return false if @dash_style.nil?
215
184
  dash_style_validator = EnumAttributeValidator.new('String', ['Solid', 'Dot', 'Dash', 'LargeDash', 'DashDot', 'LargeDashDot', 'LargeDashDotDot', 'SystemDash', 'SystemDot', 'SystemDashDot', 'SystemDashDotDot', 'Custom', 'NotDefined'])
216
185
  return false unless dash_style_validator.valid?(@dash_style)
217
- return false if @join_style.nil?
218
186
  join_style_validator = EnumAttributeValidator.new('String', ['Round', 'Bevel', 'Miter', 'NotDefined'])
219
187
  return false unless join_style_validator.valid?(@join_style)
220
- return false if @style.nil?
221
188
  style_validator = EnumAttributeValidator.new('String', ['Single', 'ThinThin', 'ThinThick', 'ThickThin', 'ThickBetweenThin', 'NotDefined'])
222
189
  return false unless style_validator.valid?(@style)
223
- return false if @miter_limit.nil?
224
- return false if @width.nil?
225
190
  true
226
191
  end
227
192
 
@@ -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
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'])
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)