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
@@ -0,0 +1,247 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # Represents header/footer info of slide
27
+ class HeaderFooter < ResourceBase
28
+ # True if date is displayed in the footer
29
+ attr_accessor :is_date_time_visible
30
+
31
+ # Text to be displayed as date in the footer
32
+ attr_accessor :date_time_text
33
+
34
+ # True if footer is displayed
35
+ attr_accessor :is_footer_visible
36
+
37
+ # Text to be displayed in the footer
38
+ attr_accessor :footer_text
39
+
40
+ # True if slide number is displayed in the footer
41
+ attr_accessor :is_slide_number_visible
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ super.merge({
46
+ :'is_date_time_visible' => :'IsDateTimeVisible',
47
+ :'date_time_text' => :'DateTimeText',
48
+ :'is_footer_visible' => :'IsFooterVisible',
49
+ :'footer_text' => :'FooterText',
50
+ :'is_slide_number_visible' => :'IsSlideNumberVisible',
51
+ })
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.swagger_types
56
+ super.merge({
57
+ :'is_date_time_visible' => :'BOOLEAN',
58
+ :'date_time_text' => :'String',
59
+ :'is_footer_visible' => :'BOOLEAN',
60
+ :'footer_text' => :'String',
61
+ :'is_slide_number_visible' => :'BOOLEAN',
62
+ })
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ super
69
+
70
+ if attributes.has_key?(:'IsDateTimeVisible')
71
+ self.is_date_time_visible = attributes[:'IsDateTimeVisible']
72
+ end
73
+
74
+ if attributes.has_key?(:'DateTimeText')
75
+ self.date_time_text = attributes[:'DateTimeText']
76
+ end
77
+
78
+ if attributes.has_key?(:'IsFooterVisible')
79
+ self.is_footer_visible = attributes[:'IsFooterVisible']
80
+ end
81
+
82
+ if attributes.has_key?(:'FooterText')
83
+ self.footer_text = attributes[:'FooterText']
84
+ end
85
+
86
+ if attributes.has_key?(:'IsSlideNumberVisible')
87
+ self.is_slide_number_visible = attributes[:'IsSlideNumberVisible']
88
+ end
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properties with the reasons
93
+ def list_invalid_properties
94
+ invalid_properties = super
95
+ invalid_properties
96
+ end
97
+
98
+ # Check to see if the all the properties in the model are valid
99
+ # @return true if the model is valid
100
+ def valid?
101
+ return false if !super
102
+ true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ self_uri == o.self_uri &&
111
+ alternate_links == o.alternate_links &&
112
+ is_date_time_visible == o.is_date_time_visible &&
113
+ date_time_text == o.date_time_text &&
114
+ is_footer_visible == o.is_footer_visible &&
115
+ footer_text == o.footer_text &&
116
+ is_slide_number_visible == o.is_slide_number_visible
117
+ end
118
+
119
+ # @see the `==` method
120
+ # @param [Object] Object to be compared
121
+ def eql?(o)
122
+ self == o
123
+ end
124
+
125
+ # Calculates hash code according to all attributes.
126
+ # @return [Fixnum] Hash code
127
+ def hash
128
+ [self_uri, alternate_links, is_date_time_visible, date_time_text, is_footer_visible, footer_text, is_slide_number_visible].hash
129
+ end
130
+
131
+ # Builds the object from hash
132
+ # @param [Hash] attributes Model attributes in the form of hash
133
+ # @return [Object] Returns the model itself
134
+ def build_from_hash(attributes)
135
+ return nil unless attributes.is_a?(Hash)
136
+ self.class.swagger_types.each_pair do |key, type|
137
+ mapKey = self.class.attribute_map[key]
138
+ if !mapKey.nil?
139
+ val = attributes[mapKey]
140
+ if val.nil?
141
+ mapKeyString = mapKey.to_s
142
+ mapKeyString[0] = mapKeyString[0].downcase
143
+ mapKey = mapKeyString.to_sym
144
+ val = attributes[mapKey]
145
+ end
146
+ if !val.nil?
147
+ if type =~ /\AArray<(.*)>/i
148
+ # check to ensure the input is an array given that the the attribute
149
+ # is documented as an array but the input is not
150
+ if val.is_a?(Array)
151
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
152
+ end
153
+ else
154
+ self.send("#{key}=", _deserialize(type, val))
155
+ end
156
+ end
157
+ end
158
+ end
159
+
160
+ self
161
+ end
162
+
163
+ # Deserializes the data based on type
164
+ # @param string type Data type
165
+ # @param string value Value to be deserialized
166
+ # @return [Object] Deserialized data
167
+ def _deserialize(type, value)
168
+ case type.to_sym
169
+ when :DateTime
170
+ DateTime.parse(value)
171
+ when :Date
172
+ Date.parse(value)
173
+ when :String
174
+ value.to_s
175
+ when :Integer
176
+ value.to_i
177
+ when :Float
178
+ value.to_f
179
+ when :BOOLEAN
180
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
181
+ true
182
+ else
183
+ false
184
+ end
185
+ when :Object
186
+ # generic object (usually a Hash), return directly
187
+ value
188
+ when /\AArray<(?<inner_type>.+)>\z/
189
+ inner_type = Regexp.last_match[:inner_type]
190
+ value.map { |v| _deserialize(inner_type, v) }
191
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
192
+ k_type = Regexp.last_match[:k_type]
193
+ v_type = Regexp.last_match[:v_type]
194
+ {}.tap do |hash|
195
+ value.each do |k, v|
196
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
197
+ end
198
+ end
199
+ else # model
200
+ temp_model = AsposeSlidesCloud.const_get(type).new
201
+ temp_model.build_from_hash(value)
202
+ end
203
+ end
204
+
205
+ # Returns the string representation of the object
206
+ # @return [String] String presentation of the object
207
+ def to_s
208
+ to_hash.to_s
209
+ end
210
+
211
+ # to_body is an alias to to_hash (backward compatibility)
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_body
214
+ to_hash
215
+ end
216
+
217
+ # Returns the object in the form of hash
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_hash
220
+ hash = {}
221
+ self.class.attribute_map.each_pair do |attr, param|
222
+ value = self.send(attr)
223
+ next if value.nil?
224
+ hash[param] = _to_hash(value)
225
+ end
226
+ hash
227
+ end
228
+
229
+ # Outputs non-array value in the form of hash
230
+ # For object, use to_hash. Otherwise, just return the value
231
+ # @param [Object] value Any valid value
232
+ # @return [Hash] Returns the value in the form of hash
233
+ def _to_hash(value)
234
+ if value.is_a?(Array)
235
+ value.compact.map { |v| _to_hash(v) }
236
+ elsif value.is_a?(Hash)
237
+ {}.tap do |hash|
238
+ value.each { |k, v| hash[k] = _to_hash(v) }
239
+ end
240
+ elsif value.respond_to? :to_hash
241
+ value.to_hash
242
+ else
243
+ value
244
+ end
245
+ end
246
+ end
247
+ end
@@ -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
@@ -25,20 +25,15 @@ require 'date'
25
25
  module AsposeSlidesCloud
26
26
  # Represents export options for whole presentation.
27
27
  class IShapeExportOptions
28
- # Export format.
29
- attr_accessor :format
30
-
31
28
  # Attribute mapping from ruby-style variable name to JSON key.
32
29
  def self.attribute_map
33
30
  {
34
- :'format' => :'Format'
35
31
  }
36
32
  end
37
33
 
38
34
  # Attribute type mapping.
39
35
  def self.swagger_types
40
36
  {
41
- :'format' => :'String'
42
37
  }
43
38
  end
44
39
 
@@ -49,10 +44,6 @@ module AsposeSlidesCloud
49
44
 
50
45
  # convert string to symbol for hash key
51
46
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
-
53
- if attributes.has_key?(:'Format')
54
- self.format = attributes[:'Format']
55
- end
56
47
  end
57
48
 
58
49
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -72,8 +63,7 @@ module AsposeSlidesCloud
72
63
  # @param [Object] Object to be compared
73
64
  def ==(o)
74
65
  return true if self.equal?(o)
75
- self.class == o.class &&
76
- format == o.format
66
+ self.class == o.class
77
67
  end
78
68
 
79
69
  # @see the `==` method
@@ -85,7 +75,7 @@ module AsposeSlidesCloud
85
75
  # Calculates hash code according to all attributes.
86
76
  # @return [Fixnum] Hash code
87
77
  def hash
88
- [format].hash
78
+ [].hash
89
79
  end
90
80
 
91
81
  # Builds the object from hash
@@ -24,13 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Represents image DTO.
27
- class Image
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 Image < ResourceBase
34
28
  # Get or sets the width of an image.
35
29
  attr_accessor :width
36
30
 
@@ -42,43 +36,26 @@ module AsposeSlidesCloud
42
36
 
43
37
  # Attribute mapping from ruby-style variable name to JSON key.
44
38
  def self.attribute_map
45
- {
46
- :'self_uri' => :'SelfUri',
47
- :'alternate_links' => :'AlternateLinks',
39
+ super.merge({
48
40
  :'width' => :'Width',
49
41
  :'height' => :'Height',
50
- :'content_type' => :'ContentType'
51
- }
42
+ :'content_type' => :'ContentType',
43
+ })
52
44
  end
53
45
 
54
46
  # Attribute type mapping.
55
47
  def self.swagger_types
56
- {
57
- :'self_uri' => :'ResourceUri',
58
- :'alternate_links' => :'Array<ResourceUri>',
48
+ super.merge({
59
49
  :'width' => :'Integer',
60
50
  :'height' => :'Integer',
61
- :'content_type' => :'String'
62
- }
51
+ :'content_type' => :'String',
52
+ })
63
53
  end
64
54
 
65
55
  # Initializes the object
66
56
  # @param [Hash] attributes Model attributes in the form of hash
67
57
  def initialize(attributes = {})
68
- return unless attributes.is_a?(Hash)
69
-
70
- # convert string to symbol for hash key
71
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
-
73
- if attributes.has_key?(:'SelfUri')
74
- self.self_uri = attributes[:'SelfUri']
75
- end
76
-
77
- if attributes.has_key?(:'AlternateLinks')
78
- if (value = attributes[:'AlternateLinks']).is_a?(Array)
79
- self.alternate_links = value
80
- end
81
- end
58
+ super
82
59
 
83
60
  if attributes.has_key?(:'Width')
84
61
  self.width = attributes[:'Width']
@@ -96,7 +73,7 @@ module AsposeSlidesCloud
96
73
  # Show invalid properties with the reasons. Usually used together with valid?
97
74
  # @return Array for valid properties with the reasons
98
75
  def list_invalid_properties
99
- invalid_properties = Array.new
76
+ invalid_properties = super
100
77
  if @width.nil?
101
78
  invalid_properties.push('invalid value for "width", width cannot be nil.')
102
79
  end
@@ -111,6 +88,7 @@ module AsposeSlidesCloud
111
88
  # Check to see if the all the properties in the model are valid
112
89
  # @return true if the model is valid
113
90
  def valid?
91
+ return false if !super
114
92
  return false if @width.nil?
115
93
  return false if @height.nil?
116
94
  true