aspose_slides_cloud 20.7.0 → 21.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/TestData/ChartTest.pptx +0 -0
  4. data/TestData/Sections.pptx +0 -0
  5. data/TestData/test-unprotected.pptx +0 -0
  6. data/TestData/test.pdf +0 -0
  7. data/TestData/test.pptx +0 -0
  8. data/lib/aspose_slides_cloud.rb +12 -5
  9. data/lib/aspose_slides_cloud/api/slides_api.rb +2130 -940
  10. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +531 -31
  11. data/lib/aspose_slides_cloud/api_client.rb +25 -23
  12. data/lib/aspose_slides_cloud/configuration.rb +7 -2
  13. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +11 -40
  14. data/lib/aspose_slides_cloud/models/add_master_slide.rb +11 -40
  15. data/lib/aspose_slides_cloud/models/add_shape.rb +11 -40
  16. data/lib/aspose_slides_cloud/models/add_slide.rb +11 -40
  17. data/lib/aspose_slides_cloud/models/api_info.rb +2 -2
  18. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +2 -2
  19. data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -238
  20. data/lib/aspose_slides_cloud/models/axes.rb +2 -2
  21. data/lib/aspose_slides_cloud/models/axis.rb +2 -2
  22. data/lib/aspose_slides_cloud/models/base64_input_file.rb +11 -49
  23. data/lib/aspose_slides_cloud/models/blur_effect.rb +2 -2
  24. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +11 -216
  25. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +10 -40
  26. data/lib/aspose_slides_cloud/models/bubble_series.rb +11 -205
  27. data/lib/aspose_slides_cloud/models/chart.rb +14 -214
  28. data/lib/aspose_slides_cloud/models/chart_category.rb +34 -12
  29. data/lib/aspose_slides_cloud/models/chart_title.rb +2 -2
  30. data/lib/aspose_slides_cloud/models/chart_wall.rb +2 -2
  31. data/lib/aspose_slides_cloud/models/color_scheme.rb +10 -32
  32. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +2 -2
  33. data/lib/aspose_slides_cloud/models/connector.rb +12 -236
  34. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
  35. data/lib/aspose_slides_cloud/models/{resource_uri_element.rb → data_point.rb} +4 -14
  36. data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
  37. data/lib/aspose_slides_cloud/models/document.rb +15 -37
  38. data/lib/aspose_slides_cloud/models/document_properties.rb +10 -32
  39. data/lib/aspose_slides_cloud/models/document_property.rb +10 -32
  40. data/lib/aspose_slides_cloud/models/document_replace_result.rb +10 -86
  41. data/lib/aspose_slides_cloud/models/effect.rb +2 -2
  42. data/lib/aspose_slides_cloud/models/effect_format.rb +2 -2
  43. data/lib/aspose_slides_cloud/models/entity_exists.rb +2 -2
  44. data/lib/aspose_slides_cloud/models/error.rb +2 -2
  45. data/lib/aspose_slides_cloud/models/error_details.rb +2 -2
  46. data/lib/aspose_slides_cloud/models/export_options.rb +13 -3
  47. data/lib/aspose_slides_cloud/models/file_version.rb +10 -67
  48. data/lib/aspose_slides_cloud/models/file_versions.rb +2 -2
  49. data/lib/aspose_slides_cloud/models/files_list.rb +2 -2
  50. data/lib/aspose_slides_cloud/models/files_upload_result.rb +2 -2
  51. data/lib/aspose_slides_cloud/models/fill_format.rb +2 -2
  52. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +2 -2
  53. data/lib/aspose_slides_cloud/models/font_scheme.rb +10 -32
  54. data/lib/aspose_slides_cloud/models/font_set.rb +2 -2
  55. data/lib/aspose_slides_cloud/models/format_scheme.rb +10 -32
  56. data/lib/aspose_slides_cloud/models/geometry_shape.rb +13 -204
  57. data/lib/aspose_slides_cloud/models/glow_effect.rb +2 -2
  58. data/lib/aspose_slides_cloud/models/gradient_fill.rb +11 -40
  59. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +2 -2
  60. data/lib/aspose_slides_cloud/models/graphical_object.rb +11 -211
  61. data/lib/aspose_slides_cloud/models/group_shape.rb +11 -211
  62. data/lib/aspose_slides_cloud/models/header_footer.rb +247 -0
  63. data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
  64. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -12
  65. data/lib/aspose_slides_cloud/models/image.rb +10 -32
  66. data/lib/aspose_slides_cloud/models/image_export_options.rb +13 -24
  67. data/lib/aspose_slides_cloud/models/images.rb +10 -32
  68. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +2 -2
  69. data/lib/aspose_slides_cloud/models/input.rb +2 -2
  70. data/lib/aspose_slides_cloud/models/input_file.rb +2 -2
  71. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +2 -2
  72. data/lib/aspose_slides_cloud/models/layout_slide.rb +11 -33
  73. data/lib/aspose_slides_cloud/models/layout_slides.rb +10 -32
  74. data/lib/aspose_slides_cloud/models/legend.rb +2 -2
  75. data/lib/aspose_slides_cloud/models/line_format.rb +25 -3
  76. data/lib/aspose_slides_cloud/models/master_slide.rb +11 -33
  77. data/lib/aspose_slides_cloud/models/master_slides.rb +10 -32
  78. data/lib/aspose_slides_cloud/models/merge.rb +11 -40
  79. data/lib/aspose_slides_cloud/models/merging_source.rb +2 -2
  80. data/lib/aspose_slides_cloud/models/no_fill.rb +9 -38
  81. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +2 -2
  82. data/lib/aspose_slides_cloud/models/notes_slide.rb +10 -32
  83. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +267 -0
  84. data/lib/aspose_slides_cloud/models/object_exist.rb +2 -2
  85. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -212
  86. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +10 -12
  87. data/lib/aspose_slides_cloud/models/one_value_series.rb +11 -205
  88. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +2 -2
  89. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +2 -2
  90. data/lib/aspose_slides_cloud/models/output_file.rb +2 -2
  91. data/lib/aspose_slides_cloud/models/paragraph.rb +10 -32
  92. data/lib/aspose_slides_cloud/models/paragraphs.rb +10 -32
  93. data/lib/aspose_slides_cloud/models/path_input_file.rb +11 -49
  94. data/lib/aspose_slides_cloud/models/path_output_file.rb +11 -40
  95. data/lib/aspose_slides_cloud/models/pattern_fill.rb +11 -40
  96. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -24
  97. data/lib/aspose_slides_cloud/models/picture_fill.rb +12 -41
  98. data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -238
  99. data/lib/aspose_slides_cloud/models/pipeline.rb +2 -2
  100. data/lib/aspose_slides_cloud/models/placeholder.rb +10 -32
  101. data/lib/aspose_slides_cloud/models/placeholders.rb +10 -32
  102. data/lib/aspose_slides_cloud/models/plot_area.rb +2 -2
  103. data/lib/aspose_slides_cloud/models/portion.rb +10 -32
  104. data/lib/aspose_slides_cloud/models/portions.rb +10 -32
  105. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -24
  106. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +2 -2
  107. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +2 -2
  108. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +2 -2
  109. data/lib/aspose_slides_cloud/models/protection_properties.rb +217 -0
  110. data/lib/aspose_slides_cloud/models/reflection_effect.rb +2 -2
  111. data/lib/aspose_slides_cloud/models/remove_shape.rb +11 -40
  112. data/lib/aspose_slides_cloud/models/remove_slide.rb +11 -40
  113. data/lib/aspose_slides_cloud/models/reorder_slide.rb +11 -40
  114. data/lib/aspose_slides_cloud/models/replace_text.rb +11 -40
  115. data/lib/aspose_slides_cloud/models/request_input_file.rb +11 -49
  116. data/lib/aspose_slides_cloud/models/reset_slide.rb +11 -40
  117. data/lib/aspose_slides_cloud/models/resource_base.rb +2 -2
  118. data/lib/aspose_slides_cloud/models/resource_uri.rb +2 -2
  119. data/lib/aspose_slides_cloud/models/response_output_file.rb +9 -38
  120. data/lib/aspose_slides_cloud/models/save.rb +11 -40
  121. data/lib/aspose_slides_cloud/models/save_shape.rb +11 -40
  122. data/lib/aspose_slides_cloud/models/save_slide.rb +11 -40
  123. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +10 -12
  124. data/lib/aspose_slides_cloud/models/scatter_series.rb +11 -205
  125. data/lib/aspose_slides_cloud/models/section.rb +234 -0
  126. data/lib/aspose_slides_cloud/models/sections.rb +209 -0
  127. data/lib/aspose_slides_cloud/models/series.rb +4 -4
  128. data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
  129. data/lib/aspose_slides_cloud/models/shape.rb +12 -236
  130. data/lib/aspose_slides_cloud/models/shape_base.rb +11 -54
  131. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +2 -2
  132. data/lib/aspose_slides_cloud/models/shapes.rb +10 -32
  133. data/lib/aspose_slides_cloud/models/slide.rb +17 -39
  134. data/lib/aspose_slides_cloud/models/slide_animation.rb +10 -32
  135. data/lib/aspose_slides_cloud/models/slide_background.rb +10 -32
  136. data/lib/aspose_slides_cloud/models/slide_comment.rb +2 -2
  137. data/lib/aspose_slides_cloud/models/slide_comments.rb +10 -32
  138. data/lib/aspose_slides_cloud/models/slide_properties.rb +315 -0
  139. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +10 -146
  140. data/lib/aspose_slides_cloud/models/slides.rb +10 -32
  141. data/lib/aspose_slides_cloud/models/smart_art.rb +12 -212
  142. data/lib/aspose_slides_cloud/models/smart_art_node.rb +3 -3
  143. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +10 -209
  144. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +2 -2
  145. data/lib/aspose_slides_cloud/models/solid_fill.rb +11 -40
  146. data/lib/aspose_slides_cloud/models/split_document_result.rb +10 -32
  147. data/lib/aspose_slides_cloud/models/storage_exist.rb +2 -2
  148. data/lib/aspose_slides_cloud/models/storage_file.rb +2 -2
  149. data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -24
  150. data/lib/aspose_slides_cloud/models/swf_export_options.rb +13 -24
  151. data/lib/aspose_slides_cloud/models/table.rb +12 -212
  152. data/lib/aspose_slides_cloud/models/table_cell.rb +2 -2
  153. data/lib/aspose_slides_cloud/models/table_column.rb +2 -2
  154. data/lib/aspose_slides_cloud/models/table_row.rb +2 -2
  155. data/lib/aspose_slides_cloud/models/task.rb +2 -2
  156. data/lib/aspose_slides_cloud/models/text_item.rb +2 -2
  157. data/lib/aspose_slides_cloud/models/text_items.rb +10 -32
  158. data/lib/aspose_slides_cloud/models/theme.rb +12 -34
  159. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +13 -24
  160. data/lib/aspose_slides_cloud/models/update_background.rb +11 -40
  161. data/lib/aspose_slides_cloud/models/update_shape.rb +11 -40
  162. data/lib/aspose_slides_cloud/models/video_frame.rb +12 -238
  163. data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
  164. data/lib/aspose_slides_cloud/models/waterfall_chart_data_point.rb +206 -0
  165. data/lib/aspose_slides_cloud/models/waterfall_series.rb +11 -216
  166. data/lib/aspose_slides_cloud/models/xps_export_options.rb +13 -24
  167. data/lib/aspose_slides_cloud/type_registry.rb +324 -0
  168. data/lib/aspose_slides_cloud/version.rb +1 -1
  169. data/spec/api/slides_api_spec.rb +8664 -1406
  170. data/spec/extra/extra_spec.rb +70 -38
  171. data/spec/spec_utils.rb +10 -6
  172. data/testConfig.json +2 -2
  173. data/testRules.json +121 -80
  174. metadata +16 -3
@@ -24,31 +24,28 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # One value chart data point.
27
- class OneValueChartDataPoint
27
+ class OneValueChartDataPoint < DataPoint
28
28
  # Value.
29
29
  attr_accessor :value
30
30
 
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
- {
34
- :'value' => :'Value'
35
- }
33
+ super.merge({
34
+ :'value' => :'Value',
35
+ })
36
36
  end
37
37
 
38
38
  # Attribute type mapping.
39
39
  def self.swagger_types
40
- {
41
- :'value' => :'Float'
42
- }
40
+ super.merge({
41
+ :'value' => :'Float',
42
+ })
43
43
  end
44
44
 
45
45
  # Initializes the object
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
- return unless attributes.is_a?(Hash)
49
-
50
- # convert string to symbol for hash key
51
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
+ super
52
49
 
53
50
  if attributes.has_key?(:'Value')
54
51
  self.value = attributes[:'Value']
@@ -58,7 +55,7 @@ module AsposeSlidesCloud
58
55
  # Show invalid properties with the reasons. Usually used together with valid?
59
56
  # @return Array for valid properties with the reasons
60
57
  def list_invalid_properties
61
- invalid_properties = Array.new
58
+ invalid_properties = super
62
59
  if @value.nil?
63
60
  invalid_properties.push('invalid value for "value", value cannot be nil.')
64
61
  end
@@ -69,6 +66,7 @@ module AsposeSlidesCloud
69
66
  # Check to see if the all the properties in the model are valid
70
67
  # @return true if the model is valid
71
68
  def valid?
69
+ return false if !super
72
70
  return false if @value.nil?
73
71
  true
74
72
  end
@@ -24,61 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # One value series.
27
- class OneValueSeries
28
- # Series type.
29
- attr_accessor :type
30
-
31
- # Series name.
32
- attr_accessor :name
33
-
34
- # True if each data marker in the series has a different color.
35
- attr_accessor :is_color_varied
36
-
37
- # Invert solid color for the series.
38
- attr_accessor :inverted_solid_fill_color
39
-
40
- # True if curve smoothing is turned on. Applies only to line and scatter connected by lines charts.
41
- attr_accessor :smooth
42
-
43
- # True if the series is plotted on second value axis.
44
- attr_accessor :plot_on_second_axis
45
-
46
- # Series order.
47
- attr_accessor :order
48
-
49
- # The number format for the series y values.
50
- attr_accessor :number_format_of_y_values
51
-
52
- # The number format for the series x values.
53
- attr_accessor :number_format_of_x_values
54
-
55
- # The number format for the series values.
56
- attr_accessor :number_format_of_values
57
-
58
- # The number format for the series bubble sizes.
59
- attr_accessor :number_format_of_bubble_sizes
60
-
61
- # True if the series shall invert its colors if the value is negative. Applies to bar, column and bubble series.
62
- attr_accessor :invert_if_negative
63
-
64
- # The distance of an open pie slice from the center of the pie chart is expressed as a percentage of the pie diameter.
65
- attr_accessor :explosion
66
-
67
- # Series marker.
68
- attr_accessor :marker
69
-
70
- # Fill properties set for the series.
71
- attr_accessor :fill_format
72
-
73
- # Effect properties set for the series.
74
- attr_accessor :effect_format
75
-
76
- # Line properties set for the series.
77
- attr_accessor :line_format
78
-
79
- # Data point type.
80
- attr_accessor :data_point_type
81
-
27
+ class OneValueSeries < Series
82
28
  # Gets or sets the values.
83
29
  attr_accessor :data_points
84
30
 
@@ -106,185 +52,45 @@ module AsposeSlidesCloud
106
52
 
107
53
  # Attribute mapping from ruby-style variable name to JSON key.
108
54
  def self.attribute_map
109
- {
110
- :'type' => :'Type',
111
- :'name' => :'Name',
112
- :'is_color_varied' => :'IsColorVaried',
113
- :'inverted_solid_fill_color' => :'InvertedSolidFillColor',
114
- :'smooth' => :'Smooth',
115
- :'plot_on_second_axis' => :'PlotOnSecondAxis',
116
- :'order' => :'Order',
117
- :'number_format_of_y_values' => :'NumberFormatOfYValues',
118
- :'number_format_of_x_values' => :'NumberFormatOfXValues',
119
- :'number_format_of_values' => :'NumberFormatOfValues',
120
- :'number_format_of_bubble_sizes' => :'NumberFormatOfBubbleSizes',
121
- :'invert_if_negative' => :'InvertIfNegative',
122
- :'explosion' => :'Explosion',
123
- :'marker' => :'Marker',
124
- :'fill_format' => :'FillFormat',
125
- :'effect_format' => :'EffectFormat',
126
- :'line_format' => :'LineFormat',
127
- :'data_point_type' => :'DataPointType',
128
- :'data_points' => :'DataPoints'
129
- }
55
+ super.merge({
56
+ :'data_points' => :'DataPoints',
57
+ })
130
58
  end
131
59
 
132
60
  # Attribute type mapping.
133
61
  def self.swagger_types
134
- {
135
- :'type' => :'String',
136
- :'name' => :'String',
137
- :'is_color_varied' => :'BOOLEAN',
138
- :'inverted_solid_fill_color' => :'String',
139
- :'smooth' => :'BOOLEAN',
140
- :'plot_on_second_axis' => :'BOOLEAN',
141
- :'order' => :'Integer',
142
- :'number_format_of_y_values' => :'String',
143
- :'number_format_of_x_values' => :'String',
144
- :'number_format_of_values' => :'String',
145
- :'number_format_of_bubble_sizes' => :'String',
146
- :'invert_if_negative' => :'BOOLEAN',
147
- :'explosion' => :'Integer',
148
- :'marker' => :'SeriesMarker',
149
- :'fill_format' => :'FillFormat',
150
- :'effect_format' => :'EffectFormat',
151
- :'line_format' => :'LineFormat',
152
- :'data_point_type' => :'String',
153
- :'data_points' => :'Array<OneValueChartDataPoint>'
154
- }
62
+ super.merge({
63
+ :'data_points' => :'Array<OneValueChartDataPoint>',
64
+ })
155
65
  end
156
66
 
157
67
  # Initializes the object
158
68
  # @param [Hash] attributes Model attributes in the form of hash
159
69
  def initialize(attributes = {})
160
- return unless attributes.is_a?(Hash)
161
-
162
- # convert string to symbol for hash key
163
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
164
-
165
- if attributes.has_key?(:'Type')
166
- self.type = attributes[:'Type']
167
- end
168
-
169
- if attributes.has_key?(:'Name')
170
- self.name = attributes[:'Name']
171
- end
172
-
173
- if attributes.has_key?(:'IsColorVaried')
174
- self.is_color_varied = attributes[:'IsColorVaried']
175
- end
176
-
177
- if attributes.has_key?(:'InvertedSolidFillColor')
178
- self.inverted_solid_fill_color = attributes[:'InvertedSolidFillColor']
179
- end
180
-
181
- if attributes.has_key?(:'Smooth')
182
- self.smooth = attributes[:'Smooth']
183
- end
184
-
185
- if attributes.has_key?(:'PlotOnSecondAxis')
186
- self.plot_on_second_axis = attributes[:'PlotOnSecondAxis']
187
- end
188
-
189
- if attributes.has_key?(:'Order')
190
- self.order = attributes[:'Order']
191
- end
192
-
193
- if attributes.has_key?(:'NumberFormatOfYValues')
194
- self.number_format_of_y_values = attributes[:'NumberFormatOfYValues']
195
- end
196
-
197
- if attributes.has_key?(:'NumberFormatOfXValues')
198
- self.number_format_of_x_values = attributes[:'NumberFormatOfXValues']
199
- end
200
-
201
- if attributes.has_key?(:'NumberFormatOfValues')
202
- self.number_format_of_values = attributes[:'NumberFormatOfValues']
203
- end
204
-
205
- if attributes.has_key?(:'NumberFormatOfBubbleSizes')
206
- self.number_format_of_bubble_sizes = attributes[:'NumberFormatOfBubbleSizes']
207
- end
208
-
209
- if attributes.has_key?(:'InvertIfNegative')
210
- self.invert_if_negative = attributes[:'InvertIfNegative']
211
- end
212
-
213
- if attributes.has_key?(:'Explosion')
214
- self.explosion = attributes[:'Explosion']
215
- end
216
-
217
- if attributes.has_key?(:'Marker')
218
- self.marker = attributes[:'Marker']
219
- end
220
-
221
- if attributes.has_key?(:'FillFormat')
222
- self.fill_format = attributes[:'FillFormat']
223
- end
224
-
225
- if attributes.has_key?(:'EffectFormat')
226
- self.effect_format = attributes[:'EffectFormat']
227
- end
228
-
229
- if attributes.has_key?(:'LineFormat')
230
- self.line_format = attributes[:'LineFormat']
231
- end
232
-
233
- if attributes.has_key?(:'DataPointType')
234
- self.data_point_type = attributes[:'DataPointType']
235
- else
236
- self.data_point_type = "OneValue"
237
- end
70
+ super
238
71
 
239
72
  if attributes.has_key?(:'DataPoints')
240
73
  if (value = attributes[:'DataPoints']).is_a?(Array)
241
74
  self.data_points = value
242
75
  end
243
76
  end
77
+ self.data_point_type = "OneValue"
244
78
  end
245
79
 
246
80
  # Show invalid properties with the reasons. Usually used together with valid?
247
81
  # @return Array for valid properties with the reasons
248
82
  def list_invalid_properties
249
- invalid_properties = Array.new
250
- if @data_point_type.nil?
251
- invalid_properties.push('invalid value for "data_point_type", data_point_type cannot be nil.')
252
- end
253
-
83
+ invalid_properties = super
254
84
  invalid_properties
255
85
  end
256
86
 
257
87
  # Check to see if the all the properties in the model are valid
258
88
  # @return true if the model is valid
259
89
  def valid?
260
- 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'])
261
- return false unless type_validator.valid?(@type)
262
- return false if @data_point_type.nil?
263
- data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
264
- return false unless data_point_type_validator.valid?(@data_point_type)
90
+ return false if !super
265
91
  true
266
92
  end
267
93
 
268
- # Custom attribute writer method checking allowed values (enum).
269
- # @param [Object] type Object to be assigned
270
- def type=(type)
271
- 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'])
272
- unless validator.valid?(type)
273
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
274
- end
275
- @type = type
276
- end
277
-
278
- # Custom attribute writer method checking allowed values (enum).
279
- # @param [Object] data_point_type Object to be assigned
280
- def data_point_type=(data_point_type)
281
- validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
282
- unless validator.valid?(data_point_type)
283
- fail ArgumentError, 'invalid value for "data_point_type", must be one of #{validator.allowable_values}.'
284
- end
285
- @data_point_type = data_point_type
286
- end
287
-
288
94
  # Checks equality by comparing each attribute.
289
95
  # @param [Object] Object to be compared
290
96
  def ==(o)
@@ -31,14 +31,14 @@ module AsposeSlidesCloud
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
33
  {
34
- :'presentations' => :'Presentations'
34
+ :'presentations' => :'Presentations',
35
35
  }
36
36
  end
37
37
 
38
38
  # Attribute type mapping.
39
39
  def self.swagger_types
40
40
  {
41
- :'presentations' => :'Array<PresentationToMerge>'
41
+ :'presentations' => :'Array<PresentationToMerge>',
42
42
  }
43
43
  end
44
44
 
@@ -43,7 +43,7 @@ module AsposeSlidesCloud
43
43
  :'direction' => :'Direction',
44
44
  :'distance' => :'Distance',
45
45
  :'blur_radius' => :'BlurRadius',
46
- :'shadow_color' => :'ShadowColor'
46
+ :'shadow_color' => :'ShadowColor',
47
47
  }
48
48
  end
49
49
 
@@ -53,7 +53,7 @@ module AsposeSlidesCloud
53
53
  :'direction' => :'Float',
54
54
  :'distance' => :'Float',
55
55
  :'blur_radius' => :'Float',
56
- :'shadow_color' => :'String'
56
+ :'shadow_color' => :'String',
57
57
  }
58
58
  end
59
59
 
@@ -52,14 +52,14 @@ module AsposeSlidesCloud
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
- :'type' => :'Type'
55
+ :'type' => :'Type',
56
56
  }
57
57
  end
58
58
 
59
59
  # Attribute type mapping.
60
60
  def self.swagger_types
61
61
  {
62
- :'type' => :'String'
62
+ :'type' => :'String',
63
63
  }
64
64
  end
65
65
 
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents paragraph resource
27
- class Paragraph
28
- # Gets or sets the link to this resource.
29
- attr_accessor :self_uri
30
-
31
- # List of alternate links.
32
- attr_accessor :alternate_links
33
-
27
+ class Paragraph < ResourceBase
34
28
  # Left margin.
35
29
  attr_accessor :margin_left
36
30
 
@@ -115,9 +109,7 @@ module AsposeSlidesCloud
115
109
 
116
110
  # Attribute mapping from ruby-style variable name to JSON key.
117
111
  def self.attribute_map
118
- {
119
- :'self_uri' => :'SelfUri',
120
- :'alternate_links' => :'AlternateLinks',
112
+ super.merge({
121
113
  :'margin_left' => :'MarginLeft',
122
114
  :'margin_right' => :'MarginRight',
123
115
  :'space_before' => :'SpaceBefore',
@@ -137,15 +129,13 @@ module AsposeSlidesCloud
137
129
  :'east_asian_line_break' => :'EastAsianLineBreak',
138
130
  :'latin_line_break' => :'LatinLineBreak',
139
131
  :'right_to_left' => :'RightToLeft',
140
- :'portion_list' => :'PortionList'
141
- }
132
+ :'portion_list' => :'PortionList',
133
+ })
142
134
  end
143
135
 
144
136
  # Attribute type mapping.
145
137
  def self.swagger_types
146
- {
147
- :'self_uri' => :'ResourceUri',
148
- :'alternate_links' => :'Array<ResourceUri>',
138
+ super.merge({
149
139
  :'margin_left' => :'Float',
150
140
  :'margin_right' => :'Float',
151
141
  :'space_before' => :'Float',
@@ -165,27 +155,14 @@ module AsposeSlidesCloud
165
155
  :'east_asian_line_break' => :'String',
166
156
  :'latin_line_break' => :'String',
167
157
  :'right_to_left' => :'String',
168
- :'portion_list' => :'Array<Portion>'
169
- }
158
+ :'portion_list' => :'Array<Portion>',
159
+ })
170
160
  end
171
161
 
172
162
  # Initializes the object
173
163
  # @param [Hash] attributes Model attributes in the form of hash
174
164
  def initialize(attributes = {})
175
- return unless attributes.is_a?(Hash)
176
-
177
- # convert string to symbol for hash key
178
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
179
-
180
- if attributes.has_key?(:'SelfUri')
181
- self.self_uri = attributes[:'SelfUri']
182
- end
183
-
184
- if attributes.has_key?(:'AlternateLinks')
185
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
186
- self.alternate_links = value
187
- end
188
- end
165
+ super
189
166
 
190
167
  if attributes.has_key?(:'MarginLeft')
191
168
  self.margin_left = attributes[:'MarginLeft']
@@ -273,13 +250,14 @@ module AsposeSlidesCloud
273
250
  # Show invalid properties with the reasons. Usually used together with valid?
274
251
  # @return Array for valid properties with the reasons
275
252
  def list_invalid_properties
276
- invalid_properties = Array.new
253
+ invalid_properties = super
277
254
  invalid_properties
278
255
  end
279
256
 
280
257
  # Check to see if the all the properties in the model are valid
281
258
  # @return true if the model is valid
282
259
  def valid?
260
+ return false if !super
283
261
  alignment_validator = EnumAttributeValidator.new('String', ['Left', 'Center', 'Right', 'Justify', 'JustifyLow', 'Distributed', 'NotDefined'])
284
262
  return false unless alignment_validator.valid?(@alignment)
285
263
  font_alignment_validator = EnumAttributeValidator.new('String', ['Automatic', 'Top', 'Center', 'Bottom', 'Baseline', 'Default'])