aspose_slides_cloud 20.2.0 → 20.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/TestData/ChartTest.pptx +0 -0
  4. data/lib/aspose_slides_cloud.rb +13 -3
  5. data/lib/aspose_slides_cloud/api/slides_api.rb +3254 -1024
  6. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +970 -137
  7. data/lib/aspose_slides_cloud/api_client.rb +8 -5
  8. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +31 -48
  9. data/lib/aspose_slides_cloud/models/add_master_slide.rb +31 -48
  10. data/lib/aspose_slides_cloud/models/add_shape.rb +31 -48
  11. data/lib/aspose_slides_cloud/models/add_slide.rb +31 -48
  12. data/lib/aspose_slides_cloud/models/api_info.rb +22 -10
  13. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +22 -10
  14. data/lib/aspose_slides_cloud/models/audio_frame.rb +32 -244
  15. data/lib/aspose_slides_cloud/models/axes.rb +22 -10
  16. data/lib/aspose_slides_cloud/models/axis.rb +22 -10
  17. data/lib/aspose_slides_cloud/models/base64_input_file.rb +31 -57
  18. data/lib/aspose_slides_cloud/models/blur_effect.rb +22 -10
  19. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +299 -0
  20. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +30 -48
  21. data/lib/aspose_slides_cloud/models/bubble_series.rb +31 -211
  22. data/lib/aspose_slides_cloud/models/chart.rb +35 -221
  23. data/lib/aspose_slides_cloud/models/chart_category.rb +261 -0
  24. data/lib/aspose_slides_cloud/models/chart_title.rb +22 -10
  25. data/lib/aspose_slides_cloud/models/chart_wall.rb +22 -10
  26. data/lib/aspose_slides_cloud/models/color_scheme.rb +30 -40
  27. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +217 -0
  28. data/lib/aspose_slides_cloud/models/connector.rb +31 -242
  29. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +22 -10
  30. data/lib/aspose_slides_cloud/models/disc_usage.rb +22 -10
  31. data/lib/aspose_slides_cloud/models/document.rb +41 -41
  32. data/lib/aspose_slides_cloud/models/document_properties.rb +30 -40
  33. data/lib/aspose_slides_cloud/models/document_property.rb +30 -40
  34. data/lib/aspose_slides_cloud/models/document_replace_result.rb +32 -86
  35. data/lib/aspose_slides_cloud/models/effect.rb +22 -10
  36. data/lib/aspose_slides_cloud/models/effect_format.rb +22 -10
  37. data/lib/aspose_slides_cloud/models/entity_exists.rb +212 -0
  38. data/lib/aspose_slides_cloud/models/error.rb +22 -10
  39. data/lib/aspose_slides_cloud/models/error_details.rb +22 -10
  40. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  41. data/lib/aspose_slides_cloud/models/export_options.rb +33 -11
  42. data/lib/aspose_slides_cloud/models/file_version.rb +30 -75
  43. data/lib/aspose_slides_cloud/models/file_versions.rb +22 -10
  44. data/lib/aspose_slides_cloud/models/files_list.rb +22 -10
  45. data/lib/aspose_slides_cloud/models/files_upload_result.rb +22 -10
  46. data/lib/aspose_slides_cloud/models/fill_format.rb +22 -10
  47. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +22 -10
  48. data/lib/aspose_slides_cloud/models/font_scheme.rb +30 -40
  49. data/lib/aspose_slides_cloud/models/font_set.rb +22 -10
  50. data/lib/aspose_slides_cloud/models/format_scheme.rb +30 -40
  51. data/lib/aspose_slides_cloud/models/geometry_shape.rb +30 -208
  52. data/lib/aspose_slides_cloud/models/glow_effect.rb +22 -10
  53. data/lib/aspose_slides_cloud/models/gradient_fill.rb +31 -48
  54. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +22 -10
  55. data/lib/aspose_slides_cloud/models/graphical_object.rb +31 -217
  56. data/lib/aspose_slides_cloud/models/group_shape.rb +31 -217
  57. data/lib/aspose_slides_cloud/models/html_export_options.rb +33 -32
  58. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +22 -10
  59. data/lib/aspose_slides_cloud/models/image.rb +30 -40
  60. data/lib/aspose_slides_cloud/models/image_export_options.rb +33 -32
  61. data/lib/aspose_slides_cloud/models/images.rb +30 -40
  62. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +22 -10
  63. data/lib/aspose_slides_cloud/models/input.rb +22 -10
  64. data/lib/aspose_slides_cloud/models/input_file.rb +22 -10
  65. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +22 -10
  66. data/lib/aspose_slides_cloud/models/layout_slide.rb +30 -40
  67. data/lib/aspose_slides_cloud/models/layout_slides.rb +30 -40
  68. data/lib/aspose_slides_cloud/models/legend.rb +22 -10
  69. data/lib/aspose_slides_cloud/models/line_format.rb +22 -10
  70. data/lib/aspose_slides_cloud/models/master_slide.rb +30 -40
  71. data/lib/aspose_slides_cloud/models/master_slides.rb +30 -40
  72. data/lib/aspose_slides_cloud/models/merge.rb +31 -48
  73. data/lib/aspose_slides_cloud/models/merging_source.rb +22 -10
  74. data/lib/aspose_slides_cloud/models/no_fill.rb +29 -46
  75. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +217 -0
  76. data/lib/aspose_slides_cloud/models/notes_slide.rb +30 -40
  77. data/lib/aspose_slides_cloud/models/object_exist.rb +22 -10
  78. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +32 -218
  79. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +30 -20
  80. data/lib/aspose_slides_cloud/models/one_value_series.rb +31 -211
  81. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +22 -10
  82. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +22 -10
  83. data/lib/aspose_slides_cloud/models/output_file.rb +22 -10
  84. data/lib/aspose_slides_cloud/models/paragraph.rb +30 -40
  85. data/lib/aspose_slides_cloud/models/paragraphs.rb +30 -40
  86. data/lib/aspose_slides_cloud/models/path_input_file.rb +31 -57
  87. data/lib/aspose_slides_cloud/models/path_output_file.rb +31 -48
  88. data/lib/aspose_slides_cloud/models/pattern_fill.rb +31 -48
  89. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +63 -35
  90. data/lib/aspose_slides_cloud/models/picture_fill.rb +31 -48
  91. data/lib/aspose_slides_cloud/models/picture_frame.rb +32 -244
  92. data/lib/aspose_slides_cloud/models/pipeline.rb +22 -10
  93. data/lib/aspose_slides_cloud/models/placeholder.rb +30 -40
  94. data/lib/aspose_slides_cloud/models/placeholders.rb +30 -40
  95. data/lib/aspose_slides_cloud/models/plot_area.rb +22 -10
  96. data/lib/aspose_slides_cloud/models/portion.rb +30 -40
  97. data/lib/aspose_slides_cloud/models/portions.rb +36 -46
  98. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +33 -32
  99. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +22 -10
  100. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +22 -10
  101. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +22 -10
  102. data/lib/aspose_slides_cloud/models/reflection_effect.rb +22 -10
  103. data/lib/aspose_slides_cloud/models/remove_shape.rb +31 -48
  104. data/lib/aspose_slides_cloud/models/remove_slide.rb +31 -48
  105. data/lib/aspose_slides_cloud/models/reorder_slide.rb +31 -48
  106. data/lib/aspose_slides_cloud/models/replace_text.rb +31 -48
  107. data/lib/aspose_slides_cloud/models/request_input_file.rb +31 -57
  108. data/lib/aspose_slides_cloud/models/reset_slide.rb +31 -48
  109. data/lib/aspose_slides_cloud/models/resource_base.rb +22 -10
  110. data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -10
  111. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +22 -10
  112. data/lib/aspose_slides_cloud/models/response_output_file.rb +29 -46
  113. data/lib/aspose_slides_cloud/models/save.rb +33 -50
  114. data/lib/aspose_slides_cloud/models/save_shape.rb +31 -48
  115. data/lib/aspose_slides_cloud/models/save_slide.rb +33 -50
  116. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +30 -20
  117. data/lib/aspose_slides_cloud/models/scatter_series.rb +31 -211
  118. data/lib/aspose_slides_cloud/models/series.rb +47 -14
  119. data/lib/aspose_slides_cloud/models/series_marker.rb +22 -10
  120. data/lib/aspose_slides_cloud/models/shape.rb +31 -242
  121. data/lib/aspose_slides_cloud/models/shape_base.rb +30 -40
  122. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +22 -10
  123. data/lib/aspose_slides_cloud/models/shapes.rb +30 -40
  124. data/lib/aspose_slides_cloud/models/slide.rb +30 -40
  125. data/lib/aspose_slides_cloud/models/slide_animation.rb +30 -40
  126. data/lib/aspose_slides_cloud/models/slide_background.rb +30 -40
  127. data/lib/aspose_slides_cloud/models/slide_comment.rb +22 -10
  128. data/lib/aspose_slides_cloud/models/slide_comments.rb +30 -40
  129. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  130. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +30 -154
  131. data/lib/aspose_slides_cloud/models/slides.rb +30 -40
  132. data/lib/aspose_slides_cloud/models/smart_art.rb +32 -218
  133. data/lib/aspose_slides_cloud/models/smart_art_node.rb +22 -10
  134. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +31 -217
  135. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +22 -10
  136. data/lib/aspose_slides_cloud/models/solid_fill.rb +31 -48
  137. data/lib/aspose_slides_cloud/models/split_document_result.rb +30 -40
  138. data/lib/aspose_slides_cloud/models/storage_exist.rb +22 -10
  139. data/lib/aspose_slides_cloud/models/storage_file.rb +22 -10
  140. data/lib/aspose_slides_cloud/models/svg_export_options.rb +33 -32
  141. data/lib/aspose_slides_cloud/models/swf_export_options.rb +33 -32
  142. data/lib/aspose_slides_cloud/models/table.rb +32 -218
  143. data/lib/aspose_slides_cloud/models/table_cell.rb +22 -10
  144. data/lib/aspose_slides_cloud/models/table_column.rb +22 -10
  145. data/lib/aspose_slides_cloud/models/table_row.rb +22 -10
  146. data/lib/aspose_slides_cloud/models/task.rb +22 -10
  147. data/lib/aspose_slides_cloud/models/text_item.rb +22 -10
  148. data/lib/aspose_slides_cloud/models/text_items.rb +30 -40
  149. data/lib/aspose_slides_cloud/models/theme.rb +30 -40
  150. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +33 -32
  151. data/lib/aspose_slides_cloud/models/update_background.rb +31 -48
  152. data/lib/aspose_slides_cloud/models/update_shape.rb +31 -48
  153. data/lib/aspose_slides_cloud/models/video_frame.rb +32 -244
  154. data/lib/aspose_slides_cloud/models/view_properties.rb +357 -0
  155. data/lib/aspose_slides_cloud/models/waterfall_series.rb +247 -0
  156. data/lib/aspose_slides_cloud/models/xps_export_options.rb +33 -32
  157. data/lib/aspose_slides_cloud/type_registry.rb +313 -0
  158. data/lib/aspose_slides_cloud/version.rb +1 -1
  159. data/spec/api/slides_api_spec.rb +20595 -14073
  160. data/spec/extra/extra_spec.rb +155 -20
  161. data/spec/spec_utils.rb +8 -1
  162. data/testRules.json +111 -8
  163. metadata +11 -2
@@ -24,58 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents GroupShape resource.
27
- class GroupShape
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
- # Gets or sets the name.
35
- attr_accessor :name
36
-
37
- # Gets or sets the width.
38
- attr_accessor :width
39
-
40
- # Gets or sets the height.
41
- attr_accessor :height
42
-
43
- # Gets or sets the alternative text.
44
- attr_accessor :alternative_text
45
-
46
- # The title of alternative text associated with the shape.
47
- attr_accessor :alternative_text_title
48
-
49
- # Gets or sets a value indicating whether this ShapeBase is hidden.
50
- attr_accessor :hidden
51
-
52
- # Gets or sets the X
53
- attr_accessor :x
54
-
55
- # Gets or sets the Y.
56
- attr_accessor :y
57
-
58
- # Gets z-order position of shape
59
- attr_accessor :z_order_position
60
-
61
- # Gets or sets the link to shapes.
62
- attr_accessor :shapes
63
-
64
- # Gets or sets the fill format.
65
- attr_accessor :fill_format
66
-
67
- # Gets or sets the effect format.
68
- attr_accessor :effect_format
69
-
70
- # Gets or sets the line format.
71
- attr_accessor :line_format
72
-
73
- # Shape type.
74
- attr_accessor :type
75
-
76
- # Combined shape type.
77
- attr_accessor :shape_type
78
-
27
+ class GroupShape < ShapeBase
79
28
  class EnumAttributeValidator
80
29
  attr_reader :datatype
81
30
  attr_reader :allowable_values
@@ -100,185 +49,38 @@ module AsposeSlidesCloud
100
49
 
101
50
  # Attribute mapping from ruby-style variable name to JSON key.
102
51
  def self.attribute_map
103
- {
104
- :'self_uri' => :'SelfUri',
105
- :'alternate_links' => :'AlternateLinks',
106
- :'name' => :'Name',
107
- :'width' => :'Width',
108
- :'height' => :'Height',
109
- :'alternative_text' => :'AlternativeText',
110
- :'alternative_text_title' => :'AlternativeTextTitle',
111
- :'hidden' => :'Hidden',
112
- :'x' => :'X',
113
- :'y' => :'Y',
114
- :'z_order_position' => :'ZOrderPosition',
115
- :'shapes' => :'Shapes',
116
- :'fill_format' => :'FillFormat',
117
- :'effect_format' => :'EffectFormat',
118
- :'line_format' => :'LineFormat',
119
- :'type' => :'Type',
120
- :'shape_type' => :'ShapeType'
121
- }
52
+ super.merge({
53
+ })
122
54
  end
123
55
 
124
56
  # Attribute type mapping.
125
57
  def self.swagger_types
126
- {
127
- :'self_uri' => :'ResourceUri',
128
- :'alternate_links' => :'Array<ResourceUri>',
129
- :'name' => :'String',
130
- :'width' => :'Float',
131
- :'height' => :'Float',
132
- :'alternative_text' => :'String',
133
- :'alternative_text_title' => :'String',
134
- :'hidden' => :'BOOLEAN',
135
- :'x' => :'Float',
136
- :'y' => :'Float',
137
- :'z_order_position' => :'Integer',
138
- :'shapes' => :'ResourceUriElement',
139
- :'fill_format' => :'FillFormat',
140
- :'effect_format' => :'EffectFormat',
141
- :'line_format' => :'LineFormat',
142
- :'type' => :'String',
143
- :'shape_type' => :'String'
144
- }
58
+ super.merge({
59
+ })
145
60
  end
146
61
 
147
62
  # Initializes the object
148
63
  # @param [Hash] attributes Model attributes in the form of hash
149
64
  def initialize(attributes = {})
150
- return unless attributes.is_a?(Hash)
151
-
152
- # convert string to symbol for hash key
153
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
154
-
155
- if attributes.has_key?(:'SelfUri')
156
- self.self_uri = attributes[:'SelfUri']
157
- end
158
-
159
- if attributes.has_key?(:'AlternateLinks')
160
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
161
- self.alternate_links = value
162
- end
163
- end
164
-
165
- if attributes.has_key?(:'Name')
166
- self.name = attributes[:'Name']
167
- end
168
-
169
- if attributes.has_key?(:'Width')
170
- self.width = attributes[:'Width']
171
- end
172
-
173
- if attributes.has_key?(:'Height')
174
- self.height = attributes[:'Height']
175
- end
176
-
177
- if attributes.has_key?(:'AlternativeText')
178
- self.alternative_text = attributes[:'AlternativeText']
179
- end
180
-
181
- if attributes.has_key?(:'AlternativeTextTitle')
182
- self.alternative_text_title = attributes[:'AlternativeTextTitle']
183
- end
184
-
185
- if attributes.has_key?(:'Hidden')
186
- self.hidden = attributes[:'Hidden']
187
- end
188
-
189
- if attributes.has_key?(:'X')
190
- self.x = attributes[:'X']
191
- end
192
-
193
- if attributes.has_key?(:'Y')
194
- self.y = attributes[:'Y']
195
- end
196
-
197
- if attributes.has_key?(:'ZOrderPosition')
198
- self.z_order_position = attributes[:'ZOrderPosition']
199
- end
200
-
201
- if attributes.has_key?(:'Shapes')
202
- self.shapes = attributes[:'Shapes']
203
- end
204
-
205
- if attributes.has_key?(:'FillFormat')
206
- self.fill_format = attributes[:'FillFormat']
207
- end
208
-
209
- if attributes.has_key?(:'EffectFormat')
210
- self.effect_format = attributes[:'EffectFormat']
211
- end
212
-
213
- if attributes.has_key?(:'LineFormat')
214
- self.line_format = attributes[:'LineFormat']
215
- end
216
-
217
- if attributes.has_key?(:'Type')
218
- self.type = attributes[:'Type']
219
- else
220
- self.type = "GroupShape"
221
- end
222
-
223
- if attributes.has_key?(:'ShapeType')
224
- self.shape_type = attributes[:'ShapeType']
225
- else
226
- self.shape_type = "GroupShape"
227
- end
65
+ super
66
+ self.type = "GroupShape"
67
+ self.shape_type = "GroupShape"
228
68
  end
229
69
 
230
70
  # Show invalid properties with the reasons. Usually used together with valid?
231
71
  # @return Array for valid properties with the reasons
232
72
  def list_invalid_properties
233
- invalid_properties = Array.new
234
- if @z_order_position.nil?
235
- invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
236
- end
237
-
238
- if @type.nil?
239
- invalid_properties.push('invalid value for "type", type cannot be nil.')
240
- end
241
-
242
- if @shape_type.nil?
243
- invalid_properties.push('invalid value for "shape_type", shape_type cannot be nil.')
244
- end
245
-
73
+ invalid_properties = super
246
74
  invalid_properties
247
75
  end
248
76
 
249
77
  # Check to see if the all the properties in the model are valid
250
78
  # @return true if the model is valid
251
79
  def valid?
252
- return false if @z_order_position.nil?
253
- return false if @type.nil?
254
- type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
255
- return false unless type_validator.valid?(@type)
256
- return false if @shape_type.nil?
257
- 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'])
258
- return false unless shape_type_validator.valid?(@shape_type)
80
+ return false if !super
259
81
  true
260
82
  end
261
83
 
262
- # Custom attribute writer method checking allowed values (enum).
263
- # @param [Object] type Object to be assigned
264
- def type=(type)
265
- validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape'])
266
- unless validator.valid?(type)
267
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
268
- end
269
- @type = type
270
- end
271
-
272
- # Custom attribute writer method checking allowed values (enum).
273
- # @param [Object] shape_type Object to be assigned
274
- def shape_type=(shape_type)
275
- 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'])
276
- unless validator.valid?(shape_type)
277
- fail ArgumentError, 'invalid value for "shape_type", must be one of #{validator.allowable_values}.'
278
- end
279
- @shape_type = shape_type
280
- end
281
-
282
84
  # Checks equality by comparing each attribute.
283
85
  # @param [Object] Object to be compared
284
86
  def ==(o)
@@ -312,7 +114,7 @@ module AsposeSlidesCloud
312
114
  # Calculates hash code according to all attributes.
313
115
  # @return [Fixnum] Hash code
314
116
  def hash
315
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type].hash
117
+ [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type].hash
316
118
  end
317
119
 
318
120
  # Builds the object from hash
@@ -321,15 +123,27 @@ module AsposeSlidesCloud
321
123
  def build_from_hash(attributes)
322
124
  return nil unless attributes.is_a?(Hash)
323
125
  self.class.swagger_types.each_pair do |key, type|
324
- if type =~ /\AArray<(.*)>/i
325
- # check to ensure the input is an array given that the the attribute
326
- # is documented as an array but the input is not
327
- if attributes[self.class.attribute_map[key]].is_a?(Array)
328
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
+ mapKey = self.class.attribute_map[key]
127
+ if !mapKey.nil?
128
+ val = attributes[mapKey]
129
+ if val.nil?
130
+ mapKeyString = mapKey.to_s
131
+ mapKeyString[0] = mapKeyString[0].downcase
132
+ mapKey = mapKeyString.to_sym
133
+ val = attributes[mapKey]
329
134
  end
330
- elsif !attributes[self.class.attribute_map[key]].nil?
331
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
332
- end # or else data not found in attributes(hash), not an issue as the data can be optional
135
+ if !val.nil?
136
+ if type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the the attribute
138
+ # is documented as an array but the input is not
139
+ if val.is_a?(Array)
140
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
141
+ end
142
+ else
143
+ self.send("#{key}=", _deserialize(type, val))
144
+ end
145
+ end
146
+ end
333
147
  end
334
148
 
335
149
  self
@@ -24,10 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Provides options that control how a presentation is saved in Html format.
27
- class HtmlExportOptions
28
- # Export format.
29
- attr_accessor :format
30
-
27
+ class HtmlExportOptions < ExportOptions
31
28
  # Get or sets flag for save presentation as zip file
32
29
  attr_accessor :save_as_zip
33
30
 
@@ -88,8 +85,7 @@ module AsposeSlidesCloud
88
85
 
89
86
  # Attribute mapping from ruby-style variable name to JSON key.
90
87
  def self.attribute_map
91
- {
92
- :'format' => :'Format',
88
+ super.merge({
93
89
  :'save_as_zip' => :'SaveAsZip',
94
90
  :'sub_directory_name' => :'SubDirectoryName',
95
91
  :'show_hidden_slides' => :'ShowHiddenSlides',
@@ -101,14 +97,13 @@ module AsposeSlidesCloud
101
97
  :'comments_position' => :'CommentsPosition',
102
98
  :'comments_area_width' => :'CommentsAreaWidth',
103
99
  :'comments_area_color' => :'CommentsAreaColor',
104
- :'show_comments_by_no_author' => :'ShowCommentsByNoAuthor'
105
- }
100
+ :'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
101
+ })
106
102
  end
107
103
 
108
104
  # Attribute type mapping.
109
105
  def self.swagger_types
110
- {
111
- :'format' => :'String',
106
+ super.merge({
112
107
  :'save_as_zip' => :'BOOLEAN',
113
108
  :'sub_directory_name' => :'String',
114
109
  :'show_hidden_slides' => :'BOOLEAN',
@@ -120,23 +115,14 @@ module AsposeSlidesCloud
120
115
  :'comments_position' => :'String',
121
116
  :'comments_area_width' => :'Integer',
122
117
  :'comments_area_color' => :'String',
123
- :'show_comments_by_no_author' => :'BOOLEAN'
124
- }
118
+ :'show_comments_by_no_author' => :'BOOLEAN',
119
+ })
125
120
  end
126
121
 
127
122
  # Initializes the object
128
123
  # @param [Hash] attributes Model attributes in the form of hash
129
124
  def initialize(attributes = {})
130
- return unless attributes.is_a?(Hash)
131
-
132
- # convert string to symbol for hash key
133
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
134
-
135
- if attributes.has_key?(:'Format')
136
- self.format = attributes[:'Format']
137
- else
138
- self.format = "html"
139
- end
125
+ super
140
126
 
141
127
  if attributes.has_key?(:'SaveAsZip')
142
128
  self.save_as_zip = attributes[:'SaveAsZip']
@@ -185,12 +171,13 @@ module AsposeSlidesCloud
185
171
  if attributes.has_key?(:'ShowCommentsByNoAuthor')
186
172
  self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
187
173
  end
174
+ self.format = "html"
188
175
  end
189
176
 
190
177
  # Show invalid properties with the reasons. Usually used together with valid?
191
178
  # @return Array for valid properties with the reasons
192
179
  def list_invalid_properties
193
- invalid_properties = Array.new
180
+ invalid_properties = super
194
181
  if @save_as_zip.nil?
195
182
  invalid_properties.push('invalid value for "save_as_zip", save_as_zip cannot be nil.')
196
183
  end
@@ -233,6 +220,7 @@ module AsposeSlidesCloud
233
220
  # Check to see if the all the properties in the model are valid
234
221
  # @return true if the model is valid
235
222
  def valid?
223
+ return false if !super
236
224
  return false if @save_as_zip.nil?
237
225
  return false if @show_hidden_slides.nil?
238
226
  return false if @svg_responsive_layout.nil?
@@ -286,6 +274,7 @@ module AsposeSlidesCloud
286
274
  def ==(o)
287
275
  return true if self.equal?(o)
288
276
  self.class == o.class &&
277
+ default_regular_font == o.default_regular_font &&
289
278
  format == o.format &&
290
279
  save_as_zip == o.save_as_zip &&
291
280
  sub_directory_name == o.sub_directory_name &&
@@ -310,7 +299,7 @@ module AsposeSlidesCloud
310
299
  # Calculates hash code according to all attributes.
311
300
  # @return [Fixnum] Hash code
312
301
  def hash
313
- [format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
302
+ [default_regular_font, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
314
303
  end
315
304
 
316
305
  # Builds the object from hash
@@ -319,15 +308,27 @@ module AsposeSlidesCloud
319
308
  def build_from_hash(attributes)
320
309
  return nil unless attributes.is_a?(Hash)
321
310
  self.class.swagger_types.each_pair do |key, type|
322
- if type =~ /\AArray<(.*)>/i
323
- # check to ensure the input is an array given that the the attribute
324
- # is documented as an array but the input is not
325
- if attributes[self.class.attribute_map[key]].is_a?(Array)
326
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
311
+ mapKey = self.class.attribute_map[key]
312
+ if !mapKey.nil?
313
+ val = attributes[mapKey]
314
+ if val.nil?
315
+ mapKeyString = mapKey.to_s
316
+ mapKeyString[0] = mapKeyString[0].downcase
317
+ mapKey = mapKeyString.to_sym
318
+ val = attributes[mapKey]
319
+ end
320
+ if !val.nil?
321
+ if type =~ /\AArray<(.*)>/i
322
+ # check to ensure the input is an array given that the the attribute
323
+ # is documented as an array but the input is not
324
+ if val.is_a?(Array)
325
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
326
+ end
327
+ else
328
+ self.send("#{key}=", _deserialize(type, val))
329
+ end
327
330
  end
328
- elsif !attributes[self.class.attribute_map[key]].nil?
329
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
330
- end # or else data not found in attributes(hash), not an issue as the data can be optional
331
+ end
331
332
  end
332
333
 
333
334
  self
@@ -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
- :'format' => :'Format'
34
+ :'format' => :'Format',
35
35
  }
36
36
  end
37
37
 
38
38
  # Attribute type mapping.
39
39
  def self.swagger_types
40
40
  {
41
- :'format' => :'String'
41
+ :'format' => :'String',
42
42
  }
43
43
  end
44
44
 
@@ -94,15 +94,27 @@ module AsposeSlidesCloud
94
94
  def build_from_hash(attributes)
95
95
  return nil unless attributes.is_a?(Hash)
96
96
  self.class.swagger_types.each_pair do |key, type|
97
- if type =~ /\AArray<(.*)>/i
98
- # check to ensure the input is an array given that the the attribute
99
- # is documented as an array but the input is not
100
- if attributes[self.class.attribute_map[key]].is_a?(Array)
101
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
97
+ mapKey = self.class.attribute_map[key]
98
+ if !mapKey.nil?
99
+ val = attributes[mapKey]
100
+ if val.nil?
101
+ mapKeyString = mapKey.to_s
102
+ mapKeyString[0] = mapKeyString[0].downcase
103
+ mapKey = mapKeyString.to_sym
104
+ val = attributes[mapKey]
102
105
  end
103
- elsif !attributes[self.class.attribute_map[key]].nil?
104
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
105
- end # or else data not found in attributes(hash), not an issue as the data can be optional
106
+ if !val.nil?
107
+ if type =~ /\AArray<(.*)>/i
108
+ # check to ensure the input is an array given that the the attribute
109
+ # is documented as an array but the input is not
110
+ if val.is_a?(Array)
111
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
112
+ end
113
+ else
114
+ self.send("#{key}=", _deserialize(type, val))
115
+ end
116
+ end
117
+ end
106
118
  end
107
119
 
108
120
  self