aspose_slides_cloud 20.7.0 → 20.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/TestData/ChartTest.pptx +0 -0
  3. data/lib/aspose_slides_cloud.rb +5 -3
  4. data/lib/aspose_slides_cloud/api/slides_api.rb +407 -0
  5. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +165 -0
  6. data/lib/aspose_slides_cloud/api_client.rb +1 -2
  7. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +11 -40
  8. data/lib/aspose_slides_cloud/models/add_master_slide.rb +11 -40
  9. data/lib/aspose_slides_cloud/models/add_shape.rb +11 -40
  10. data/lib/aspose_slides_cloud/models/add_slide.rb +11 -40
  11. data/lib/aspose_slides_cloud/models/api_info.rb +2 -2
  12. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +2 -2
  13. data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -236
  14. data/lib/aspose_slides_cloud/models/axes.rb +2 -2
  15. data/lib/aspose_slides_cloud/models/axis.rb +2 -2
  16. data/lib/aspose_slides_cloud/models/base64_input_file.rb +11 -49
  17. data/lib/aspose_slides_cloud/models/blur_effect.rb +2 -2
  18. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +11 -216
  19. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +10 -40
  20. data/lib/aspose_slides_cloud/models/bubble_series.rb +11 -205
  21. data/lib/aspose_slides_cloud/models/chart.rb +12 -210
  22. data/lib/aspose_slides_cloud/models/chart_category.rb +16 -4
  23. data/lib/aspose_slides_cloud/models/chart_title.rb +2 -2
  24. data/lib/aspose_slides_cloud/models/chart_wall.rb +2 -2
  25. data/lib/aspose_slides_cloud/models/color_scheme.rb +10 -32
  26. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +2 -2
  27. data/lib/aspose_slides_cloud/models/connector.rb +11 -234
  28. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
  29. data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
  30. data/lib/aspose_slides_cloud/models/document.rb +10 -32
  31. data/lib/aspose_slides_cloud/models/document_properties.rb +10 -32
  32. data/lib/aspose_slides_cloud/models/document_property.rb +10 -32
  33. data/lib/aspose_slides_cloud/models/document_replace_result.rb +10 -86
  34. data/lib/aspose_slides_cloud/models/effect.rb +2 -2
  35. data/lib/aspose_slides_cloud/models/effect_format.rb +2 -2
  36. data/lib/aspose_slides_cloud/models/entity_exists.rb +2 -2
  37. data/lib/aspose_slides_cloud/models/error.rb +2 -2
  38. data/lib/aspose_slides_cloud/models/error_details.rb +2 -2
  39. data/lib/aspose_slides_cloud/models/export_options.rb +13 -3
  40. data/lib/aspose_slides_cloud/models/file_version.rb +10 -67
  41. data/lib/aspose_slides_cloud/models/file_versions.rb +2 -2
  42. data/lib/aspose_slides_cloud/models/files_list.rb +2 -2
  43. data/lib/aspose_slides_cloud/models/files_upload_result.rb +2 -2
  44. data/lib/aspose_slides_cloud/models/fill_format.rb +2 -2
  45. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +2 -2
  46. data/lib/aspose_slides_cloud/models/font_scheme.rb +10 -32
  47. data/lib/aspose_slides_cloud/models/font_set.rb +2 -2
  48. data/lib/aspose_slides_cloud/models/format_scheme.rb +10 -32
  49. data/lib/aspose_slides_cloud/models/geometry_shape.rb +10 -200
  50. data/lib/aspose_slides_cloud/models/glow_effect.rb +2 -2
  51. data/lib/aspose_slides_cloud/models/gradient_fill.rb +11 -40
  52. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +2 -2
  53. data/lib/aspose_slides_cloud/models/graphical_object.rb +11 -209
  54. data/lib/aspose_slides_cloud/models/group_shape.rb +11 -209
  55. data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
  56. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -2
  57. data/lib/aspose_slides_cloud/models/image.rb +10 -32
  58. data/lib/aspose_slides_cloud/models/image_export_options.rb +13 -24
  59. data/lib/aspose_slides_cloud/models/images.rb +10 -32
  60. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +2 -2
  61. data/lib/aspose_slides_cloud/models/input.rb +2 -2
  62. data/lib/aspose_slides_cloud/models/input_file.rb +2 -2
  63. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +2 -2
  64. data/lib/aspose_slides_cloud/models/layout_slide.rb +10 -32
  65. data/lib/aspose_slides_cloud/models/layout_slides.rb +10 -32
  66. data/lib/aspose_slides_cloud/models/legend.rb +2 -2
  67. data/lib/aspose_slides_cloud/models/line_format.rb +2 -2
  68. data/lib/aspose_slides_cloud/models/master_slide.rb +10 -32
  69. data/lib/aspose_slides_cloud/models/master_slides.rb +10 -32
  70. data/lib/aspose_slides_cloud/models/merge.rb +11 -40
  71. data/lib/aspose_slides_cloud/models/merging_source.rb +2 -2
  72. data/lib/aspose_slides_cloud/models/no_fill.rb +9 -38
  73. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +2 -2
  74. data/lib/aspose_slides_cloud/models/notes_slide.rb +10 -32
  75. data/lib/aspose_slides_cloud/models/object_exist.rb +2 -2
  76. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -210
  77. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +10 -12
  78. data/lib/aspose_slides_cloud/models/one_value_series.rb +11 -205
  79. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +2 -2
  80. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +2 -2
  81. data/lib/aspose_slides_cloud/models/output_file.rb +2 -2
  82. data/lib/aspose_slides_cloud/models/paragraph.rb +10 -32
  83. data/lib/aspose_slides_cloud/models/paragraphs.rb +10 -32
  84. data/lib/aspose_slides_cloud/models/path_input_file.rb +11 -49
  85. data/lib/aspose_slides_cloud/models/path_output_file.rb +11 -40
  86. data/lib/aspose_slides_cloud/models/pattern_fill.rb +11 -40
  87. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -24
  88. data/lib/aspose_slides_cloud/models/picture_fill.rb +11 -40
  89. data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -236
  90. data/lib/aspose_slides_cloud/models/pipeline.rb +2 -2
  91. data/lib/aspose_slides_cloud/models/placeholder.rb +10 -32
  92. data/lib/aspose_slides_cloud/models/placeholders.rb +10 -32
  93. data/lib/aspose_slides_cloud/models/plot_area.rb +2 -2
  94. data/lib/aspose_slides_cloud/models/portion.rb +10 -32
  95. data/lib/aspose_slides_cloud/models/portions.rb +10 -32
  96. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -24
  97. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +2 -2
  98. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +2 -2
  99. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +2 -2
  100. data/lib/aspose_slides_cloud/models/reflection_effect.rb +2 -2
  101. data/lib/aspose_slides_cloud/models/remove_shape.rb +11 -40
  102. data/lib/aspose_slides_cloud/models/remove_slide.rb +11 -40
  103. data/lib/aspose_slides_cloud/models/reorder_slide.rb +11 -40
  104. data/lib/aspose_slides_cloud/models/replace_text.rb +11 -40
  105. data/lib/aspose_slides_cloud/models/request_input_file.rb +11 -49
  106. data/lib/aspose_slides_cloud/models/reset_slide.rb +11 -40
  107. data/lib/aspose_slides_cloud/models/resource_base.rb +2 -2
  108. data/lib/aspose_slides_cloud/models/resource_uri.rb +2 -2
  109. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +2 -2
  110. data/lib/aspose_slides_cloud/models/response_output_file.rb +9 -38
  111. data/lib/aspose_slides_cloud/models/save.rb +11 -40
  112. data/lib/aspose_slides_cloud/models/save_shape.rb +11 -40
  113. data/lib/aspose_slides_cloud/models/save_slide.rb +11 -40
  114. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +10 -12
  115. data/lib/aspose_slides_cloud/models/scatter_series.rb +11 -205
  116. data/lib/aspose_slides_cloud/models/series.rb +2 -2
  117. data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
  118. data/lib/aspose_slides_cloud/models/shape.rb +11 -234
  119. data/lib/aspose_slides_cloud/models/shape_base.rb +10 -32
  120. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +2 -2
  121. data/lib/aspose_slides_cloud/models/shapes.rb +10 -32
  122. data/lib/aspose_slides_cloud/models/slide.rb +10 -32
  123. data/lib/aspose_slides_cloud/models/slide_animation.rb +10 -32
  124. data/lib/aspose_slides_cloud/models/slide_background.rb +10 -32
  125. data/lib/aspose_slides_cloud/models/slide_comment.rb +2 -2
  126. data/lib/aspose_slides_cloud/models/slide_comments.rb +10 -32
  127. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +10 -146
  128. data/lib/aspose_slides_cloud/models/slides.rb +10 -32
  129. data/lib/aspose_slides_cloud/models/smart_art.rb +12 -210
  130. data/lib/aspose_slides_cloud/models/smart_art_node.rb +2 -2
  131. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +11 -209
  132. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +2 -2
  133. data/lib/aspose_slides_cloud/models/solid_fill.rb +11 -40
  134. data/lib/aspose_slides_cloud/models/split_document_result.rb +10 -32
  135. data/lib/aspose_slides_cloud/models/storage_exist.rb +2 -2
  136. data/lib/aspose_slides_cloud/models/storage_file.rb +2 -2
  137. data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -24
  138. data/lib/aspose_slides_cloud/models/swf_export_options.rb +13 -24
  139. data/lib/aspose_slides_cloud/models/table.rb +12 -210
  140. data/lib/aspose_slides_cloud/models/table_cell.rb +2 -2
  141. data/lib/aspose_slides_cloud/models/table_column.rb +2 -2
  142. data/lib/aspose_slides_cloud/models/table_row.rb +2 -2
  143. data/lib/aspose_slides_cloud/models/task.rb +2 -2
  144. data/lib/aspose_slides_cloud/models/text_item.rb +2 -2
  145. data/lib/aspose_slides_cloud/models/text_items.rb +10 -32
  146. data/lib/aspose_slides_cloud/models/theme.rb +10 -32
  147. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +13 -24
  148. data/lib/aspose_slides_cloud/models/update_background.rb +11 -40
  149. data/lib/aspose_slides_cloud/models/update_shape.rb +11 -40
  150. data/lib/aspose_slides_cloud/models/video_frame.rb +12 -236
  151. data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
  152. data/lib/aspose_slides_cloud/models/waterfall_series.rb +11 -216
  153. data/lib/aspose_slides_cloud/models/xps_export_options.rb +13 -24
  154. data/lib/aspose_slides_cloud/type_registry.rb +313 -0
  155. data/lib/aspose_slides_cloud/version.rb +1 -1
  156. data/spec/api/slides_api_spec.rb +1417 -63
  157. data/spec/extra/extra_spec.rb +66 -33
  158. data/testRules.json +31 -0
  159. metadata +4 -2
@@ -24,64 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # One value series.
27
- class WaterfallSeries
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
-
82
- # Gets or sets the values.
83
- attr_accessor :data_points
84
-
27
+ class WaterfallSeries < OneValueSeries
85
28
  # True if inner points are shown.
86
29
  attr_accessor :show_connector_lines
87
30
 
@@ -109,191 +52,43 @@ module AsposeSlidesCloud
109
52
 
110
53
  # Attribute mapping from ruby-style variable name to JSON key.
111
54
  def self.attribute_map
112
- {
113
- :'type' => :'Type',
114
- :'name' => :'Name',
115
- :'is_color_varied' => :'IsColorVaried',
116
- :'inverted_solid_fill_color' => :'InvertedSolidFillColor',
117
- :'smooth' => :'Smooth',
118
- :'plot_on_second_axis' => :'PlotOnSecondAxis',
119
- :'order' => :'Order',
120
- :'number_format_of_y_values' => :'NumberFormatOfYValues',
121
- :'number_format_of_x_values' => :'NumberFormatOfXValues',
122
- :'number_format_of_values' => :'NumberFormatOfValues',
123
- :'number_format_of_bubble_sizes' => :'NumberFormatOfBubbleSizes',
124
- :'invert_if_negative' => :'InvertIfNegative',
125
- :'explosion' => :'Explosion',
126
- :'marker' => :'Marker',
127
- :'fill_format' => :'FillFormat',
128
- :'effect_format' => :'EffectFormat',
129
- :'line_format' => :'LineFormat',
130
- :'data_point_type' => :'DataPointType',
131
- :'data_points' => :'DataPoints',
132
- :'show_connector_lines' => :'ShowConnectorLines'
133
- }
55
+ super.merge({
56
+ :'show_connector_lines' => :'ShowConnectorLines',
57
+ })
134
58
  end
135
59
 
136
60
  # Attribute type mapping.
137
61
  def self.swagger_types
138
- {
139
- :'type' => :'String',
140
- :'name' => :'String',
141
- :'is_color_varied' => :'BOOLEAN',
142
- :'inverted_solid_fill_color' => :'String',
143
- :'smooth' => :'BOOLEAN',
144
- :'plot_on_second_axis' => :'BOOLEAN',
145
- :'order' => :'Integer',
146
- :'number_format_of_y_values' => :'String',
147
- :'number_format_of_x_values' => :'String',
148
- :'number_format_of_values' => :'String',
149
- :'number_format_of_bubble_sizes' => :'String',
150
- :'invert_if_negative' => :'BOOLEAN',
151
- :'explosion' => :'Integer',
152
- :'marker' => :'SeriesMarker',
153
- :'fill_format' => :'FillFormat',
154
- :'effect_format' => :'EffectFormat',
155
- :'line_format' => :'LineFormat',
156
- :'data_point_type' => :'String',
157
- :'data_points' => :'Array<OneValueChartDataPoint>',
158
- :'show_connector_lines' => :'BOOLEAN'
159
- }
62
+ super.merge({
63
+ :'show_connector_lines' => :'BOOLEAN',
64
+ })
160
65
  end
161
66
 
162
67
  # Initializes the object
163
68
  # @param [Hash] attributes Model attributes in the form of hash
164
69
  def initialize(attributes = {})
165
- return unless attributes.is_a?(Hash)
166
-
167
- # convert string to symbol for hash key
168
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
169
-
170
- if attributes.has_key?(:'Type')
171
- self.type = attributes[:'Type']
172
- end
173
-
174
- if attributes.has_key?(:'Name')
175
- self.name = attributes[:'Name']
176
- end
177
-
178
- if attributes.has_key?(:'IsColorVaried')
179
- self.is_color_varied = attributes[:'IsColorVaried']
180
- end
181
-
182
- if attributes.has_key?(:'InvertedSolidFillColor')
183
- self.inverted_solid_fill_color = attributes[:'InvertedSolidFillColor']
184
- end
185
-
186
- if attributes.has_key?(:'Smooth')
187
- self.smooth = attributes[:'Smooth']
188
- end
189
-
190
- if attributes.has_key?(:'PlotOnSecondAxis')
191
- self.plot_on_second_axis = attributes[:'PlotOnSecondAxis']
192
- end
193
-
194
- if attributes.has_key?(:'Order')
195
- self.order = attributes[:'Order']
196
- end
197
-
198
- if attributes.has_key?(:'NumberFormatOfYValues')
199
- self.number_format_of_y_values = attributes[:'NumberFormatOfYValues']
200
- end
201
-
202
- if attributes.has_key?(:'NumberFormatOfXValues')
203
- self.number_format_of_x_values = attributes[:'NumberFormatOfXValues']
204
- end
205
-
206
- if attributes.has_key?(:'NumberFormatOfValues')
207
- self.number_format_of_values = attributes[:'NumberFormatOfValues']
208
- end
209
-
210
- if attributes.has_key?(:'NumberFormatOfBubbleSizes')
211
- self.number_format_of_bubble_sizes = attributes[:'NumberFormatOfBubbleSizes']
212
- end
213
-
214
- if attributes.has_key?(:'InvertIfNegative')
215
- self.invert_if_negative = attributes[:'InvertIfNegative']
216
- end
217
-
218
- if attributes.has_key?(:'Explosion')
219
- self.explosion = attributes[:'Explosion']
220
- end
221
-
222
- if attributes.has_key?(:'Marker')
223
- self.marker = attributes[:'Marker']
224
- end
225
-
226
- if attributes.has_key?(:'FillFormat')
227
- self.fill_format = attributes[:'FillFormat']
228
- end
229
-
230
- if attributes.has_key?(:'EffectFormat')
231
- self.effect_format = attributes[:'EffectFormat']
232
- end
233
-
234
- if attributes.has_key?(:'LineFormat')
235
- self.line_format = attributes[:'LineFormat']
236
- end
237
-
238
- if attributes.has_key?(:'DataPointType')
239
- self.data_point_type = attributes[:'DataPointType']
240
- else
241
- self.data_point_type = "OneValue"
242
- end
243
-
244
- if attributes.has_key?(:'DataPoints')
245
- if (value = attributes[:'DataPoints']).is_a?(Array)
246
- self.data_points = value
247
- end
248
- end
70
+ super
249
71
 
250
72
  if attributes.has_key?(:'ShowConnectorLines')
251
73
  self.show_connector_lines = attributes[:'ShowConnectorLines']
252
74
  end
75
+ self.data_point_type = "OneValue"
253
76
  end
254
77
 
255
78
  # Show invalid properties with the reasons. Usually used together with valid?
256
79
  # @return Array for valid properties with the reasons
257
80
  def list_invalid_properties
258
- invalid_properties = Array.new
259
- if @data_point_type.nil?
260
- invalid_properties.push('invalid value for "data_point_type", data_point_type cannot be nil.')
261
- end
262
-
81
+ invalid_properties = super
263
82
  invalid_properties
264
83
  end
265
84
 
266
85
  # Check to see if the all the properties in the model are valid
267
86
  # @return true if the model is valid
268
87
  def valid?
269
- 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'])
270
- return false unless type_validator.valid?(@type)
271
- return false if @data_point_type.nil?
272
- data_point_type_validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
273
- return false unless data_point_type_validator.valid?(@data_point_type)
88
+ return false if !super
274
89
  true
275
90
  end
276
91
 
277
- # Custom attribute writer method checking allowed values (enum).
278
- # @param [Object] type Object to be assigned
279
- def type=(type)
280
- 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'])
281
- unless validator.valid?(type)
282
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
283
- end
284
- @type = type
285
- end
286
-
287
- # Custom attribute writer method checking allowed values (enum).
288
- # @param [Object] data_point_type Object to be assigned
289
- def data_point_type=(data_point_type)
290
- validator = EnumAttributeValidator.new('String', ['OneValue', 'Scatter', 'Bubble'])
291
- unless validator.valid?(data_point_type)
292
- fail ArgumentError, 'invalid value for "data_point_type", must be one of #{validator.allowable_values}.'
293
- end
294
- @data_point_type = data_point_type
295
- end
296
-
297
92
  # Checks equality by comparing each attribute.
298
93
  # @param [Object] Object to be compared
299
94
  def ==(o)
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Provides options that control how a presentation is saved in XPS format.
27
- class XpsExportOptions
28
- # Export format.
29
- attr_accessor :format
30
-
27
+ class XpsExportOptions < ExportOptions
31
28
  # Specifies whether the generated document should include hidden slides or not. Default is false.
32
29
  attr_accessor :show_hidden_slides
33
30
 
@@ -39,37 +36,26 @@ module AsposeSlidesCloud
39
36
 
40
37
  # Attribute mapping from ruby-style variable name to JSON key.
41
38
  def self.attribute_map
42
- {
43
- :'format' => :'Format',
39
+ super.merge({
44
40
  :'show_hidden_slides' => :'ShowHiddenSlides',
45
41
  :'save_metafiles_as_png' => :'SaveMetafilesAsPng',
46
- :'draw_slides_frame' => :'DrawSlidesFrame'
47
- }
42
+ :'draw_slides_frame' => :'DrawSlidesFrame',
43
+ })
48
44
  end
49
45
 
50
46
  # Attribute type mapping.
51
47
  def self.swagger_types
52
- {
53
- :'format' => :'String',
48
+ super.merge({
54
49
  :'show_hidden_slides' => :'BOOLEAN',
55
50
  :'save_metafiles_as_png' => :'BOOLEAN',
56
- :'draw_slides_frame' => :'BOOLEAN'
57
- }
51
+ :'draw_slides_frame' => :'BOOLEAN',
52
+ })
58
53
  end
59
54
 
60
55
  # Initializes the object
61
56
  # @param [Hash] attributes Model attributes in the form of hash
62
57
  def initialize(attributes = {})
63
- return unless attributes.is_a?(Hash)
64
-
65
- # convert string to symbol for hash key
66
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
-
68
- if attributes.has_key?(:'Format')
69
- self.format = attributes[:'Format']
70
- else
71
- self.format = "xps"
72
- end
58
+ super
73
59
 
74
60
  if attributes.has_key?(:'ShowHiddenSlides')
75
61
  self.show_hidden_slides = attributes[:'ShowHiddenSlides']
@@ -82,12 +68,13 @@ module AsposeSlidesCloud
82
68
  if attributes.has_key?(:'DrawSlidesFrame')
83
69
  self.draw_slides_frame = attributes[:'DrawSlidesFrame']
84
70
  end
71
+ self.format = "xps"
85
72
  end
86
73
 
87
74
  # Show invalid properties with the reasons. Usually used together with valid?
88
75
  # @return Array for valid properties with the reasons
89
76
  def list_invalid_properties
90
- invalid_properties = Array.new
77
+ invalid_properties = super
91
78
  if @show_hidden_slides.nil?
92
79
  invalid_properties.push('invalid value for "show_hidden_slides", show_hidden_slides cannot be nil.')
93
80
  end
@@ -106,6 +93,7 @@ module AsposeSlidesCloud
106
93
  # Check to see if the all the properties in the model are valid
107
94
  # @return true if the model is valid
108
95
  def valid?
96
+ return false if !super
109
97
  return false if @show_hidden_slides.nil?
110
98
  return false if @save_metafiles_as_png.nil?
111
99
  return false if @draw_slides_frame.nil?
@@ -117,6 +105,7 @@ module AsposeSlidesCloud
117
105
  def ==(o)
118
106
  return true if self.equal?(o)
119
107
  self.class == o.class &&
108
+ default_regular_font == o.default_regular_font &&
120
109
  format == o.format &&
121
110
  show_hidden_slides == o.show_hidden_slides &&
122
111
  save_metafiles_as_png == o.save_metafiles_as_png &&
@@ -132,7 +121,7 @@ module AsposeSlidesCloud
132
121
  # Calculates hash code according to all attributes.
133
122
  # @return [Fixnum] Hash code
134
123
  def hash
135
- [format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
124
+ [default_regular_font, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
136
125
  end
137
126
 
138
127
  # Builds the object from hash
@@ -0,0 +1,313 @@
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
+ module AsposeSlidesCloud
24
+ class TypeRegistry
25
+ def self.get_type(class_name, map)
26
+ type_hierarchy.each do |k, v|
27
+ if v.to_s == class_name
28
+ newType = get_type(k.to_s, map)
29
+ if newType != ""
30
+ return newType
31
+ end
32
+ end
33
+ end
34
+ determiners = type_determiners[class_name.to_sym]
35
+ if determiners
36
+ is_good = true
37
+ determiners.each do |k, v|
38
+ is_good_key = false
39
+ if !map[k].nil?
40
+ is_good_key = v == map[k]
41
+ else
42
+ keyString = k.to_s
43
+ keyString[0] = keyString[0].downcase
44
+ if !map[keyString.to_sym].nil?
45
+ is_good_key = v == map[keyString.to_sym]
46
+ end
47
+ end
48
+ is_good = is_good && is_good_key
49
+ end
50
+ if is_good
51
+ return class_name
52
+ end
53
+ end
54
+ return ""
55
+ end
56
+
57
+ def self.type_hierarchy
58
+ {
59
+ :'AddLayoutSlide' => :'Task',
60
+ :'AddMasterSlide' => :'Task',
61
+ :'AddShape' => :'Task',
62
+ :'AddSlide' => :'Task',
63
+ :'Base64InputFile' => :'InputFile',
64
+ :'BubbleSeries' => :'Series',
65
+ :'ColorScheme' => :'ResourceBase',
66
+ :'Document' => :'ResourceBase',
67
+ :'DocumentProperties' => :'ResourceBase',
68
+ :'DocumentProperty' => :'ResourceBase',
69
+ :'FileVersion' => :'StorageFile',
70
+ :'FontScheme' => :'ResourceBase',
71
+ :'FormatScheme' => :'ResourceBase',
72
+ :'GradientFill' => :'FillFormat',
73
+ :'HtmlExportOptions' => :'ExportOptions',
74
+ :'Image' => :'ResourceBase',
75
+ :'ImageExportOptions' => :'ExportOptions',
76
+ :'Images' => :'ResourceBase',
77
+ :'LayoutSlide' => :'ResourceBase',
78
+ :'LayoutSlides' => :'ResourceBase',
79
+ :'MasterSlide' => :'ResourceBase',
80
+ :'MasterSlides' => :'ResourceBase',
81
+ :'Merge' => :'Task',
82
+ :'NoFill' => :'FillFormat',
83
+ :'NotesSlide' => :'ResourceBase',
84
+ :'OneValueChartDataPoint' => :'DataPoint',
85
+ :'OneValueSeries' => :'Series',
86
+ :'Paragraph' => :'ResourceBase',
87
+ :'Paragraphs' => :'ResourceBase',
88
+ :'PathInputFile' => :'InputFile',
89
+ :'PathOutputFile' => :'OutputFile',
90
+ :'PatternFill' => :'FillFormat',
91
+ :'PdfExportOptions' => :'ExportOptions',
92
+ :'PictureFill' => :'FillFormat',
93
+ :'Placeholder' => :'ResourceBase',
94
+ :'Placeholders' => :'ResourceBase',
95
+ :'Portion' => :'ResourceBase',
96
+ :'Portions' => :'ResourceBase',
97
+ :'PptxExportOptions' => :'ExportOptions',
98
+ :'RemoveShape' => :'Task',
99
+ :'RemoveSlide' => :'Task',
100
+ :'ReorderSlide' => :'Task',
101
+ :'ReplaceText' => :'Task',
102
+ :'RequestInputFile' => :'InputFile',
103
+ :'ResetSlide' => :'Task',
104
+ :'ResponseOutputFile' => :'OutputFile',
105
+ :'Save' => :'Task',
106
+ :'SaveShape' => :'Task',
107
+ :'SaveSlide' => :'Task',
108
+ :'ScatterChartDataPoint' => :'DataPoint',
109
+ :'ScatterSeries' => :'Series',
110
+ :'ShapeBase' => :'ResourceBase',
111
+ :'Shapes' => :'ResourceBase',
112
+ :'Slide' => :'ResourceBase',
113
+ :'SlideAnimation' => :'ResourceBase',
114
+ :'SlideBackground' => :'ResourceBase',
115
+ :'SlideComments' => :'ResourceBase',
116
+ :'Slides' => :'ResourceBase',
117
+ :'SolidFill' => :'FillFormat',
118
+ :'SplitDocumentResult' => :'ResourceBase',
119
+ :'SvgExportOptions' => :'ExportOptions',
120
+ :'SwfExportOptions' => :'ExportOptions',
121
+ :'TextItems' => :'ResourceBase',
122
+ :'Theme' => :'ResourceBase',
123
+ :'TiffExportOptions' => :'ExportOptions',
124
+ :'UpdateBackground' => :'Task',
125
+ :'UpdateShape' => :'Task',
126
+ :'ViewProperties' => :'ResourceBase',
127
+ :'XpsExportOptions' => :'ExportOptions',
128
+ :'BoxAndWhiskerSeries' => :'OneValueSeries',
129
+ :'BubbleChartDataPoint' => :'ScatterChartDataPoint',
130
+ :'Chart' => :'ShapeBase',
131
+ :'DocumentReplaceResult' => :'Document',
132
+ :'GeometryShape' => :'ShapeBase',
133
+ :'GraphicalObject' => :'ShapeBase',
134
+ :'GroupShape' => :'ShapeBase',
135
+ :'OleObjectFrame' => :'ShapeBase',
136
+ :'SlideReplaceResult' => :'Slide',
137
+ :'SmartArt' => :'ShapeBase',
138
+ :'SmartArtShape' => :'ShapeBase',
139
+ :'Table' => :'ShapeBase',
140
+ :'WaterfallChartDataPoint' => :'OneValueChartDataPoint',
141
+ :'WaterfallSeries' => :'OneValueSeries',
142
+ :'AudioFrame' => :'GeometryShape',
143
+ :'Connector' => :'GeometryShape',
144
+ :'PictureFrame' => :'GeometryShape',
145
+ :'Shape' => :'GeometryShape',
146
+ :'VideoFrame' => :'GeometryShape',
147
+
148
+ }
149
+ end
150
+
151
+ def self.type_determiners
152
+ {
153
+ :'ApiInfo' => { },
154
+ :'ArrowHeadProperties' => { },
155
+ :'Axes' => { },
156
+ :'Axis' => { },
157
+ :'BlurEffect' => { },
158
+ :'ChartCategory' => { },
159
+ :'ChartTitle' => { },
160
+ :'ChartWall' => { },
161
+ :'CommonSlideViewProperties' => { },
162
+ :'CustomDashPattern' => { },
163
+ :'DataPoint' => { },
164
+ :'DiscUsage' => { },
165
+ :'Effect' => { },
166
+ :'EffectFormat' => { },
167
+ :'EntityExists' => { },
168
+ :'Error' => { },
169
+ :'ErrorDetails' => { },
170
+ :'ExportFormat' => { },
171
+ :'ExportOptions' => { },
172
+ :'FileVersions' => { },
173
+ :'FilesList' => { },
174
+ :'FilesUploadResult' => { },
175
+ :'FillFormat' => { },
176
+ :'FillOverlayEffect' => { },
177
+ :'FontSet' => { },
178
+ :'GlowEffect' => { },
179
+ :'GradientFillStop' => { },
180
+ :'IShapeExportOptions' => { },
181
+ :'ImageExportFormat' => { },
182
+ :'InnerShadowEffect' => { },
183
+ :'Input' => { },
184
+ :'InputFile' => { },
185
+ :'InteractiveSequence' => { },
186
+ :'Legend' => { },
187
+ :'LineFormat' => { },
188
+ :'MergingSource' => { },
189
+ :'NormalViewRestoredProperties' => { },
190
+ :'NotesSlideExportFormat' => { },
191
+ :'ObjectExist' => { },
192
+ :'OrderedMergeRequest' => { },
193
+ :'OuterShadowEffect' => { },
194
+ :'OutputFile' => { },
195
+ :'Pipeline' => { },
196
+ :'PlotArea' => { },
197
+ :'PresentationToMerge' => { },
198
+ :'PresentationsMergeRequest' => { },
199
+ :'PresetShadowEffect' => { },
200
+ :'ReflectionEffect' => { },
201
+ :'ResourceBase' => { },
202
+ :'ResourceUri' => { },
203
+ :'ResourceUriElement' => { },
204
+ :'ScaleType' => { },
205
+ :'Series' => { },
206
+ :'SeriesMarker' => { },
207
+ :'ShapeExportFormat' => { },
208
+ :'ShapeImageExportOptions' => { },
209
+ :'ShapeThumbnailBounds' => { },
210
+ :'SizeType' => { },
211
+ :'SlideComment' => { },
212
+ :'SlideExportFormat' => { },
213
+ :'SmartArtNode' => { },
214
+ :'SoftEdgeEffect' => { },
215
+ :'StorageExist' => { },
216
+ :'StorageFile' => { },
217
+ :'TableCell' => { },
218
+ :'TableColumn' => { },
219
+ :'TableRow' => { },
220
+ :'Task' => { },
221
+ :'TextItem' => { },
222
+ :'AddLayoutSlide' => { :'Type' => "AddLayoutSlide", },
223
+ :'AddMasterSlide' => { :'Type' => "AddMasterSlide", },
224
+ :'AddShape' => { :'Type' => "AddShape", },
225
+ :'AddSlide' => { :'Type' => "AddSlide", },
226
+ :'Base64InputFile' => { :'Type' => "Base64", },
227
+ :'BubbleSeries' => { :'DataPointType' => "Bubble", },
228
+ :'ColorScheme' => { },
229
+ :'Document' => { },
230
+ :'DocumentProperties' => { },
231
+ :'DocumentProperty' => { },
232
+ :'FileVersion' => { },
233
+ :'FontScheme' => { },
234
+ :'FormatScheme' => { },
235
+ :'GradientFill' => { :'Type' => "Gradient", },
236
+ :'HtmlExportOptions' => { :'Format' => "html", },
237
+ :'Image' => { },
238
+ :'ImageExportOptions' => { :'Format' => "image", },
239
+ :'Images' => { },
240
+ :'LayoutSlide' => { },
241
+ :'LayoutSlides' => { },
242
+ :'MasterSlide' => { },
243
+ :'MasterSlides' => { },
244
+ :'Merge' => { :'Type' => "Merge", },
245
+ :'NoFill' => { :'Type' => "NoFill", },
246
+ :'NotesSlide' => { },
247
+ :'OneValueChartDataPoint' => { },
248
+ :'OneValueSeries' => { :'DataPointType' => "OneValue", },
249
+ :'Paragraph' => { },
250
+ :'Paragraphs' => { },
251
+ :'PathInputFile' => { :'Type' => "Path", },
252
+ :'PathOutputFile' => { :'Type' => "Path", },
253
+ :'PatternFill' => { :'Type' => "Pattern", },
254
+ :'PdfExportOptions' => { :'Format' => "pdf", },
255
+ :'PictureFill' => { :'Type' => "Picture", },
256
+ :'Placeholder' => { },
257
+ :'Placeholders' => { },
258
+ :'Portion' => { },
259
+ :'Portions' => { },
260
+ :'PptxExportOptions' => { :'Format' => "pptx", },
261
+ :'RemoveShape' => { :'Type' => "RemoveShape", },
262
+ :'RemoveSlide' => { :'Type' => "RemoveSlide", },
263
+ :'ReorderSlide' => { :'Type' => "ReoderSlide", },
264
+ :'ReplaceText' => { :'Type' => "ReplaceText", },
265
+ :'RequestInputFile' => { :'Type' => "Request", },
266
+ :'ResetSlide' => { :'Type' => "ResetSlide", },
267
+ :'ResponseOutputFile' => { :'Type' => "Response", },
268
+ :'Save' => { :'Type' => "Save", },
269
+ :'SaveShape' => { :'Type' => "SaveShape", },
270
+ :'SaveSlide' => { :'Type' => "SaveSlide", },
271
+ :'ScatterChartDataPoint' => { },
272
+ :'ScatterSeries' => { :'DataPointType' => "Scatter", },
273
+ :'ShapeBase' => { },
274
+ :'Shapes' => { },
275
+ :'Slide' => { },
276
+ :'SlideAnimation' => { },
277
+ :'SlideBackground' => { },
278
+ :'SlideComments' => { },
279
+ :'Slides' => { },
280
+ :'SolidFill' => { :'Type' => "Solid", },
281
+ :'SplitDocumentResult' => { },
282
+ :'SvgExportOptions' => { :'Format' => "svg", },
283
+ :'SwfExportOptions' => { :'Format' => "swf", },
284
+ :'TextItems' => { },
285
+ :'Theme' => { },
286
+ :'TiffExportOptions' => { :'Format' => "tiff", },
287
+ :'UpdateBackground' => { :'Type' => "UpdateBackground", },
288
+ :'UpdateShape' => { :'Type' => "UpdateShape", },
289
+ :'ViewProperties' => { },
290
+ :'XpsExportOptions' => { :'Format' => "xps", },
291
+ :'BoxAndWhiskerSeries' => { :'DataPointType' => "OneValue", },
292
+ :'BubbleChartDataPoint' => { },
293
+ :'Chart' => { :'Type' => "Chart",:'ShapeType' => "Chart", },
294
+ :'DocumentReplaceResult' => { },
295
+ :'GeometryShape' => { },
296
+ :'GraphicalObject' => { :'Type' => "GraphicalObject",:'ShapeType' => "GraphicalObject", },
297
+ :'GroupShape' => { :'Type' => "GroupShape",:'ShapeType' => "GroupShape", },
298
+ :'OleObjectFrame' => { :'Type' => "OleObjectFrame",:'ShapeType' => "OleObjectFrame", },
299
+ :'SlideReplaceResult' => { },
300
+ :'SmartArt' => { :'Type' => "SmartArt",:'ShapeType' => "Diagram", },
301
+ :'SmartArtShape' => { :'Type' => "SmartArtShape",:'ShapeType' => "Custom", },
302
+ :'Table' => { :'Type' => "Table",:'ShapeType' => "Table", },
303
+ :'WaterfallChartDataPoint' => { },
304
+ :'WaterfallSeries' => { :'DataPointType' => "OneValue", },
305
+ :'AudioFrame' => { :'Type' => "AudioFrame",:'ShapeType' => "AudioFrame", },
306
+ :'Connector' => { :'Type' => "Connector", },
307
+ :'PictureFrame' => { :'Type' => "PictureFrame",:'ShapeType' => "PictureFrame", },
308
+ :'Shape' => { :'Type' => "Shape", },
309
+ :'VideoFrame' => { :'Type' => "VideoFrame",:'ShapeType' => "VideoFrame", },
310
+ }
311
+ end
312
+ end
313
+ end