aspose_slides_cloud 22.3.0 → 22.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -7
  3. data/LICENSE +20 -20
  4. data/README.md +20 -0
  5. data/Rakefile +8 -8
  6. data/aspose_slides_cloud.gemspec +56 -56
  7. data/lib/aspose_slides_cloud/api_error.rb +48 -48
  8. data/lib/aspose_slides_cloud/configuration.rb +188 -188
  9. data/lib/aspose_slides_cloud/models/access_permissions.rb +321 -0
  10. data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -3
  11. data/lib/aspose_slides_cloud/models/chart.rb +1 -2
  12. data/lib/aspose_slides_cloud/models/connector.rb +1 -2
  13. data/lib/aspose_slides_cloud/models/export_options.rb +1 -21
  14. data/lib/aspose_slides_cloud/models/geometry_shape.rb +1 -2
  15. data/lib/aspose_slides_cloud/models/gif_export_options.rb +4 -4
  16. data/lib/aspose_slides_cloud/models/graphical_object.rb +1 -2
  17. data/lib/aspose_slides_cloud/models/group_shape.rb +12 -3
  18. data/lib/aspose_slides_cloud/models/html5_export_options.rb +1 -3
  19. data/lib/aspose_slides_cloud/models/html_export_options.rb +1 -3
  20. data/lib/aspose_slides_cloud/models/image_export_options.rb +4 -4
  21. data/lib/aspose_slides_cloud/models/image_export_options_base.rb +222 -0
  22. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +72 -3
  23. data/lib/aspose_slides_cloud/models/paragraph.rb +12 -2
  24. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -16
  25. data/lib/aspose_slides_cloud/models/picture_frame.rb +1 -2
  26. data/lib/aspose_slides_cloud/models/portion_format.rb +633 -0
  27. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +1 -3
  28. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +1 -2
  29. data/lib/aspose_slides_cloud/models/shape.rb +1 -2
  30. data/lib/aspose_slides_cloud/models/shape_base.rb +1 -11
  31. data/lib/aspose_slides_cloud/models/smart_art.rb +1 -2
  32. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +1 -2
  33. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +1 -2
  34. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +1 -2
  35. data/lib/aspose_slides_cloud/models/svg_export_options.rb +1 -3
  36. data/lib/aspose_slides_cloud/models/swf_export_options.rb +1 -3
  37. data/lib/aspose_slides_cloud/models/table.rb +1 -2
  38. data/lib/aspose_slides_cloud/models/table_cell.rb +22 -2
  39. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +4 -4
  40. data/lib/aspose_slides_cloud/models/video_export_options.rb +34 -4
  41. data/lib/aspose_slides_cloud/models/video_frame.rb +1 -2
  42. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +1 -3
  43. data/lib/aspose_slides_cloud/models/xps_export_options.rb +1 -3
  44. data/lib/aspose_slides_cloud/models/zoom_frame.rb +1 -2
  45. data/lib/aspose_slides_cloud/models/zoom_object.rb +1 -2
  46. data/lib/aspose_slides_cloud/type_registry.rb +10 -6
  47. data/lib/aspose_slides_cloud/version.rb +1 -1
  48. data/lib/aspose_slides_cloud.rb +6 -3
  49. data/spec/spec_helper.rb +122 -122
  50. metadata +5 -4
  51. data/Dockerfile +0 -16
  52. data/docker-entrypoint.sh +0 -7
@@ -0,0 +1,321 @@
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
+ # A set of properties specifying which access permissions should be granted when the document is opened with user access.
27
+ class AccessPermissions
28
+ # The user may print the document (possibly not at the highest quality level, depending on whether bit HighQualityPrint is also set).
29
+ attr_accessor :print_document
30
+
31
+ # The user may modify the contents of the document by operations other than those controlled by bits AddOrModifyFields, FillExistingFields, AssembleDocument.
32
+ attr_accessor :modify_content
33
+
34
+ # The user may copy or otherwise extract text and graphics from the document by operations other than that controlled by bit ExtractTextAndGraphics.
35
+ attr_accessor :copy_text_and_graphics
36
+
37
+ # The user may add or modify text annotations, fill in interactive form fields, and, if bit ModifyContent is also set, create or modify interactive form fields (including signature fields).
38
+ attr_accessor :add_or_modify_fields
39
+
40
+ # The user may fill in existing interactive form fields (including signature fields), even if bit AddOrModifyFields is clear.
41
+ attr_accessor :fill_existing_fields
42
+
43
+ # The user may extract text and graphics in support of accessibility to users with disabilities or for other purposes.
44
+ attr_accessor :extract_text_and_graphics
45
+
46
+ # The user may assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if bit ModifyContent is clear.
47
+ attr_accessor :assemble_document
48
+
49
+ # The user may print the document to a representation from which a faithful digital copy of the PDF content could be generated. When this bit is clear (and bit PrintDocument is set), printing is limited to a low-level representation of the appearance, possibly of degraded quality.
50
+ attr_accessor :high_quality_print
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'print_document' => :'PrintDocument',
56
+ :'modify_content' => :'ModifyContent',
57
+ :'copy_text_and_graphics' => :'CopyTextAndGraphics',
58
+ :'add_or_modify_fields' => :'AddOrModifyFields',
59
+ :'fill_existing_fields' => :'FillExistingFields',
60
+ :'extract_text_and_graphics' => :'ExtractTextAndGraphics',
61
+ :'assemble_document' => :'AssembleDocument',
62
+ :'high_quality_print' => :'HighQualityPrint',
63
+ }
64
+ end
65
+
66
+ # Attribute type mapping.
67
+ def self.swagger_types
68
+ {
69
+ :'print_document' => :'BOOLEAN',
70
+ :'modify_content' => :'BOOLEAN',
71
+ :'copy_text_and_graphics' => :'BOOLEAN',
72
+ :'add_or_modify_fields' => :'BOOLEAN',
73
+ :'fill_existing_fields' => :'BOOLEAN',
74
+ :'extract_text_and_graphics' => :'BOOLEAN',
75
+ :'assemble_document' => :'BOOLEAN',
76
+ :'high_quality_print' => :'BOOLEAN',
77
+ }
78
+ end
79
+
80
+ # Initializes the object
81
+ # @param [Hash] attributes Model attributes in the form of hash
82
+ def initialize(attributes = {})
83
+ return unless attributes.is_a?(Hash)
84
+
85
+ # convert string to symbol for hash key
86
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
87
+
88
+ if attributes.has_key?(:'PrintDocument')
89
+ self.print_document = attributes[:'PrintDocument']
90
+ end
91
+
92
+ if attributes.has_key?(:'ModifyContent')
93
+ self.modify_content = attributes[:'ModifyContent']
94
+ end
95
+
96
+ if attributes.has_key?(:'CopyTextAndGraphics')
97
+ self.copy_text_and_graphics = attributes[:'CopyTextAndGraphics']
98
+ end
99
+
100
+ if attributes.has_key?(:'AddOrModifyFields')
101
+ self.add_or_modify_fields = attributes[:'AddOrModifyFields']
102
+ end
103
+
104
+ if attributes.has_key?(:'FillExistingFields')
105
+ self.fill_existing_fields = attributes[:'FillExistingFields']
106
+ end
107
+
108
+ if attributes.has_key?(:'ExtractTextAndGraphics')
109
+ self.extract_text_and_graphics = attributes[:'ExtractTextAndGraphics']
110
+ end
111
+
112
+ if attributes.has_key?(:'AssembleDocument')
113
+ self.assemble_document = attributes[:'AssembleDocument']
114
+ end
115
+
116
+ if attributes.has_key?(:'HighQualityPrint')
117
+ self.high_quality_print = attributes[:'HighQualityPrint']
118
+ end
119
+ end
120
+
121
+ # Show invalid properties with the reasons. Usually used together with valid?
122
+ # @return Array for valid properties with the reasons
123
+ def list_invalid_properties
124
+ invalid_properties = Array.new
125
+ if @print_document.nil?
126
+ invalid_properties.push('invalid value for "print_document", print_document cannot be nil.')
127
+ end
128
+
129
+ if @modify_content.nil?
130
+ invalid_properties.push('invalid value for "modify_content", modify_content cannot be nil.')
131
+ end
132
+
133
+ if @copy_text_and_graphics.nil?
134
+ invalid_properties.push('invalid value for "copy_text_and_graphics", copy_text_and_graphics cannot be nil.')
135
+ end
136
+
137
+ if @add_or_modify_fields.nil?
138
+ invalid_properties.push('invalid value for "add_or_modify_fields", add_or_modify_fields cannot be nil.')
139
+ end
140
+
141
+ if @fill_existing_fields.nil?
142
+ invalid_properties.push('invalid value for "fill_existing_fields", fill_existing_fields cannot be nil.')
143
+ end
144
+
145
+ if @extract_text_and_graphics.nil?
146
+ invalid_properties.push('invalid value for "extract_text_and_graphics", extract_text_and_graphics cannot be nil.')
147
+ end
148
+
149
+ if @assemble_document.nil?
150
+ invalid_properties.push('invalid value for "assemble_document", assemble_document cannot be nil.')
151
+ end
152
+
153
+ if @high_quality_print.nil?
154
+ invalid_properties.push('invalid value for "high_quality_print", high_quality_print cannot be nil.')
155
+ end
156
+
157
+ invalid_properties
158
+ end
159
+
160
+ # Check to see if the all the properties in the model are valid
161
+ # @return true if the model is valid
162
+ def valid?
163
+ return false if @print_document.nil?
164
+ return false if @modify_content.nil?
165
+ return false if @copy_text_and_graphics.nil?
166
+ return false if @add_or_modify_fields.nil?
167
+ return false if @fill_existing_fields.nil?
168
+ return false if @extract_text_and_graphics.nil?
169
+ return false if @assemble_document.nil?
170
+ return false if @high_quality_print.nil?
171
+ true
172
+ end
173
+
174
+ # Checks equality by comparing each attribute.
175
+ # @param [Object] Object to be compared
176
+ def ==(o)
177
+ return true if self.equal?(o)
178
+ self.class == o.class &&
179
+ print_document == o.print_document &&
180
+ modify_content == o.modify_content &&
181
+ copy_text_and_graphics == o.copy_text_and_graphics &&
182
+ add_or_modify_fields == o.add_or_modify_fields &&
183
+ fill_existing_fields == o.fill_existing_fields &&
184
+ extract_text_and_graphics == o.extract_text_and_graphics &&
185
+ assemble_document == o.assemble_document &&
186
+ high_quality_print == o.high_quality_print
187
+ end
188
+
189
+ # @see the `==` method
190
+ # @param [Object] Object to be compared
191
+ def eql?(o)
192
+ self == o
193
+ end
194
+
195
+ # Calculates hash code according to all attributes.
196
+ # @return [Fixnum] Hash code
197
+ def hash
198
+ [print_document, modify_content, copy_text_and_graphics, add_or_modify_fields, fill_existing_fields, extract_text_and_graphics, assemble_document, high_quality_print].hash
199
+ end
200
+
201
+ # Builds the object from hash
202
+ # @param [Hash] attributes Model attributes in the form of hash
203
+ # @return [Object] Returns the model itself
204
+ def build_from_hash(attributes)
205
+ return nil unless attributes.is_a?(Hash)
206
+ self.class.swagger_types.each_pair do |key, type|
207
+ mapKey = self.class.attribute_map[key]
208
+ if !mapKey.nil?
209
+ val = attributes[mapKey]
210
+ if val.nil?
211
+ mapKeyString = mapKey.to_s
212
+ mapKeyString[0] = mapKeyString[0].downcase
213
+ mapKey = mapKeyString.to_sym
214
+ val = attributes[mapKey]
215
+ end
216
+ if !val.nil?
217
+ if type =~ /\AArray<(.*)>/i
218
+ # check to ensure the input is an array given that the the attribute
219
+ # is documented as an array but the input is not
220
+ if val.is_a?(Array)
221
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
222
+ end
223
+ else
224
+ self.send("#{key}=", _deserialize(type, val))
225
+ end
226
+ end
227
+ end
228
+ end
229
+
230
+ self
231
+ end
232
+
233
+ # Deserializes the data based on type
234
+ # @param string type Data type
235
+ # @param string value Value to be deserialized
236
+ # @return [Object] Deserialized data
237
+ def _deserialize(type, value)
238
+ case type.to_sym
239
+ when :DateTime
240
+ DateTime.parse(value)
241
+ when :Date
242
+ Date.parse(value)
243
+ when :String
244
+ value.to_s
245
+ when :Integer
246
+ value.to_i
247
+ when :Float
248
+ value.to_f
249
+ when :BOOLEAN
250
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
251
+ true
252
+ else
253
+ false
254
+ end
255
+ when :Object
256
+ # generic object (usually a Hash), return directly
257
+ value
258
+ when /\AArray<(?<inner_type>.+)>\z/
259
+ inner_type = Regexp.last_match[:inner_type]
260
+ value.map { |v| _deserialize(inner_type, v) }
261
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
262
+ k_type = Regexp.last_match[:k_type]
263
+ v_type = Regexp.last_match[:v_type]
264
+ {}.tap do |hash|
265
+ value.each do |k, v|
266
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
267
+ end
268
+ end
269
+ else # model
270
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
271
+ if registry_type
272
+ type = registry_type
273
+ end
274
+ temp_model = AsposeSlidesCloud.const_get(type).new
275
+ temp_model.build_from_hash(value)
276
+ end
277
+ end
278
+
279
+ # Returns the string representation of the object
280
+ # @return [String] String presentation of the object
281
+ def to_s
282
+ to_hash.to_s
283
+ end
284
+
285
+ # to_body is an alias to to_hash (backward compatibility)
286
+ # @return [Hash] Returns the object in the form of hash
287
+ def to_body
288
+ to_hash
289
+ end
290
+
291
+ # Returns the object in the form of hash
292
+ # @return [Hash] Returns the object in the form of hash
293
+ def to_hash
294
+ hash = {}
295
+ self.class.attribute_map.each_pair do |attr, param|
296
+ value = self.send(attr)
297
+ next if value.nil?
298
+ hash[param] = _to_hash(value)
299
+ end
300
+ hash
301
+ end
302
+
303
+ # Outputs non-array value in the form of hash
304
+ # For object, use to_hash. Otherwise, just return the value
305
+ # @param [Object] value Any valid value
306
+ # @return [Hash] Returns the value in the form of hash
307
+ def _to_hash(value)
308
+ if value.is_a?(Array)
309
+ value.compact.map { |v| _to_hash(v) }
310
+ elsif value.is_a?(Hash)
311
+ {}.tap do |hash|
312
+ value.each { |k, v| hash[k] = _to_hash(v) }
313
+ end
314
+ elsif value.respond_to? :to_hash
315
+ value.to_hash
316
+ else
317
+ value
318
+ end
319
+ end
320
+ end
321
+ end
@@ -61,6 +61,9 @@ module AsposeSlidesCloud
61
61
  # Determines whether audio is automatically rewound to start after playing.
62
62
  attr_accessor :rewind_audio
63
63
 
64
+ # Picture fill format.
65
+ attr_accessor :picture_fill_format
66
+
64
67
  class EnumAttributeValidator
65
68
  attr_reader :datatype
66
69
  attr_reader :allowable_values
@@ -98,6 +101,7 @@ module AsposeSlidesCloud
98
101
  :'base64_data' => :'Base64Data',
99
102
  :'play_across_slides' => :'PlayAcrossSlides',
100
103
  :'rewind_audio' => :'RewindAudio',
104
+ :'picture_fill_format' => :'PictureFillFormat',
101
105
  })
102
106
  end
103
107
 
@@ -116,6 +120,7 @@ module AsposeSlidesCloud
116
120
  :'base64_data' => :'String',
117
121
  :'play_across_slides' => :'BOOLEAN',
118
122
  :'rewind_audio' => :'BOOLEAN',
123
+ :'picture_fill_format' => :'PictureFill',
119
124
  })
120
125
  end
121
126
 
@@ -171,6 +176,10 @@ module AsposeSlidesCloud
171
176
  if attributes.has_key?(:'RewindAudio')
172
177
  self.rewind_audio = attributes[:'RewindAudio']
173
178
  end
179
+
180
+ if attributes.has_key?(:'PictureFillFormat')
181
+ self.picture_fill_format = attributes[:'PictureFillFormat']
182
+ end
174
183
  self.type = "AudioFrame"
175
184
  end
176
185
 
@@ -228,7 +237,6 @@ module AsposeSlidesCloud
228
237
  x == o.x &&
229
238
  y == o.y &&
230
239
  z_order_position == o.z_order_position &&
231
- shapes == o.shapes &&
232
240
  fill_format == o.fill_format &&
233
241
  effect_format == o.effect_format &&
234
242
  three_d_format == o.three_d_format &&
@@ -248,7 +256,8 @@ module AsposeSlidesCloud
248
256
  volume == o.volume &&
249
257
  base64_data == o.base64_data &&
250
258
  play_across_slides == o.play_across_slides &&
251
- rewind_audio == o.rewind_audio
259
+ rewind_audio == o.rewind_audio &&
260
+ picture_fill_format == o.picture_fill_format
252
261
  end
253
262
 
254
263
  # @see the `==` method
@@ -260,7 +269,7 @@ module AsposeSlidesCloud
260
269
  # Calculates hash code according to all attributes.
261
270
  # @return [Fixnum] Hash code
262
271
  def hash
263
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, audio_cd_end_track, audio_cd_end_track_time, audio_cd_start_track, audio_cd_start_track_time, embedded, hide_at_showing, play_loop_mode, play_mode, volume, base64_data, play_across_slides, rewind_audio].hash
272
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, audio_cd_end_track, audio_cd_end_track_time, audio_cd_start_track, audio_cd_start_track_time, embedded, hide_at_showing, play_loop_mode, play_mode, volume, base64_data, play_across_slides, rewind_audio, picture_fill_format].hash
264
273
  end
265
274
 
266
275
  # Builds the object from hash
@@ -216,7 +216,6 @@ module AsposeSlidesCloud
216
216
  x == o.x &&
217
217
  y == o.y &&
218
218
  z_order_position == o.z_order_position &&
219
- shapes == o.shapes &&
220
219
  fill_format == o.fill_format &&
221
220
  effect_format == o.effect_format &&
222
221
  three_d_format == o.three_d_format &&
@@ -246,7 +245,7 @@ module AsposeSlidesCloud
246
245
  # Calculates hash code according to all attributes.
247
246
  # @return [Fixnum] Hash code
248
247
  def hash
249
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, chart_type, show_data_labels_over_maximum, series, categories, title, back_wall, side_wall, floor, legend, axes, plot_area].hash
248
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, chart_type, show_data_labels_over_maximum, series, categories, title, back_wall, side_wall, floor, legend, axes, plot_area].hash
250
249
  end
251
250
 
252
251
  # Builds the object from hash
@@ -132,7 +132,6 @@ module AsposeSlidesCloud
132
132
  x == o.x &&
133
133
  y == o.y &&
134
134
  z_order_position == o.z_order_position &&
135
- shapes == o.shapes &&
136
135
  fill_format == o.fill_format &&
137
136
  effect_format == o.effect_format &&
138
137
  three_d_format == o.three_d_format &&
@@ -156,7 +155,7 @@ module AsposeSlidesCloud
156
155
  # Calculates hash code according to all attributes.
157
156
  # @return [Fixnum] Hash code
158
157
  def hash
159
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, start_shape_connected_to, start_shape_connected_to_index, end_shape_connected_to, end_shape_connected_to_index].hash
158
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, start_shape_connected_to, start_shape_connected_to_index, end_shape_connected_to, end_shape_connected_to_index].hash
160
159
  end
161
160
 
162
161
  # Builds the object from hash
@@ -28,12 +28,6 @@ module AsposeSlidesCloud
28
28
  # Default regular font for rendering the presentation.
29
29
  attr_accessor :default_regular_font
30
30
 
31
- # Gets or sets the height of slides in the output format, e.g. image size, pdf page size etc.
32
- attr_accessor :height
33
-
34
- # Gets or sets the height of slides in the output format, e.g. image size, pdf page size etc.
35
- attr_accessor :width
36
-
37
31
  # Gets of sets list of font fallback rules.
38
32
  attr_accessor :font_fallback_rules
39
33
 
@@ -43,8 +37,6 @@ module AsposeSlidesCloud
43
37
  def self.attribute_map
44
38
  {
45
39
  :'default_regular_font' => :'DefaultRegularFont',
46
- :'height' => :'Height',
47
- :'width' => :'Width',
48
40
  :'font_fallback_rules' => :'FontFallbackRules',
49
41
  :'format' => :'Format',
50
42
  }
@@ -54,8 +46,6 @@ module AsposeSlidesCloud
54
46
  def self.swagger_types
55
47
  {
56
48
  :'default_regular_font' => :'String',
57
- :'height' => :'Integer',
58
- :'width' => :'Integer',
59
49
  :'font_fallback_rules' => :'Array<FontFallbackRule>',
60
50
  :'format' => :'String',
61
51
  }
@@ -73,14 +63,6 @@ module AsposeSlidesCloud
73
63
  self.default_regular_font = attributes[:'DefaultRegularFont']
74
64
  end
75
65
 
76
- if attributes.has_key?(:'Height')
77
- self.height = attributes[:'Height']
78
- end
79
-
80
- if attributes.has_key?(:'Width')
81
- self.width = attributes[:'Width']
82
- end
83
-
84
66
  if attributes.has_key?(:'FontFallbackRules')
85
67
  if (value = attributes[:'FontFallbackRules']).is_a?(Array)
86
68
  self.font_fallback_rules = value
@@ -111,8 +93,6 @@ module AsposeSlidesCloud
111
93
  return true if self.equal?(o)
112
94
  self.class == o.class &&
113
95
  default_regular_font == o.default_regular_font &&
114
- height == o.height &&
115
- width == o.width &&
116
96
  font_fallback_rules == o.font_fallback_rules &&
117
97
  format == o.format
118
98
  end
@@ -126,7 +106,7 @@ module AsposeSlidesCloud
126
106
  # Calculates hash code according to all attributes.
127
107
  # @return [Fixnum] Hash code
128
108
  def hash
129
- [default_regular_font, height, width, font_fallback_rules, format].hash
109
+ [default_regular_font, font_fallback_rules, format].hash
130
110
  end
131
111
 
132
112
  # Builds the object from hash
@@ -121,7 +121,6 @@ module AsposeSlidesCloud
121
121
  x == o.x &&
122
122
  y == o.y &&
123
123
  z_order_position == o.z_order_position &&
124
- shapes == o.shapes &&
125
124
  fill_format == o.fill_format &&
126
125
  effect_format == o.effect_format &&
127
126
  three_d_format == o.three_d_format &&
@@ -141,7 +140,7 @@ module AsposeSlidesCloud
141
140
  # Calculates hash code according to all attributes.
142
141
  # @return [Fixnum] Hash code
143
142
  def hash
144
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type].hash
143
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type].hash
145
144
  end
146
145
 
147
146
  # Builds the object from hash
@@ -24,7 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Provides options that control how a presentation is saved in Gif format.
27
- class GifExportOptions < ExportOptions
27
+ class GifExportOptions < ImageExportOptionsBase
28
28
  # Determines whether hidden slides will be exported.
29
29
  attr_accessor :export_hidden_slides
30
30
 
@@ -91,10 +91,10 @@ module AsposeSlidesCloud
91
91
  return true if self.equal?(o)
92
92
  self.class == o.class &&
93
93
  default_regular_font == o.default_regular_font &&
94
- height == o.height &&
95
- width == o.width &&
96
94
  font_fallback_rules == o.font_fallback_rules &&
97
95
  format == o.format &&
96
+ height == o.height &&
97
+ width == o.width &&
98
98
  export_hidden_slides == o.export_hidden_slides &&
99
99
  transition_fps == o.transition_fps &&
100
100
  default_delay == o.default_delay
@@ -109,7 +109,7 @@ module AsposeSlidesCloud
109
109
  # Calculates hash code according to all attributes.
110
110
  # @return [Fixnum] Hash code
111
111
  def hash
112
- [default_regular_font, height, width, font_fallback_rules, format, export_hidden_slides, transition_fps, default_delay].hash
112
+ [default_regular_font, font_fallback_rules, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
113
113
  end
114
114
 
115
115
  # Builds the object from hash
@@ -96,7 +96,6 @@ module AsposeSlidesCloud
96
96
  x == o.x &&
97
97
  y == o.y &&
98
98
  z_order_position == o.z_order_position &&
99
- shapes == o.shapes &&
100
99
  fill_format == o.fill_format &&
101
100
  effect_format == o.effect_format &&
102
101
  three_d_format == o.three_d_format &&
@@ -115,7 +114,7 @@ module AsposeSlidesCloud
115
114
  # Calculates hash code according to all attributes.
116
115
  # @return [Fixnum] Hash code
117
116
  def hash
118
- [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
117
+ [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
119
118
  end
120
119
 
121
120
  # Builds the object from hash
@@ -25,6 +25,9 @@ require 'date'
25
25
  module AsposeSlidesCloud
26
26
  # Represents GroupShape resource.
27
27
  class GroupShape < ShapeBase
28
+ # Gets or sets the link to shapes.
29
+ attr_accessor :shapes
30
+
28
31
  class EnumAttributeValidator
29
32
  attr_reader :datatype
30
33
  attr_reader :allowable_values
@@ -50,12 +53,14 @@ module AsposeSlidesCloud
50
53
  # Attribute mapping from ruby-style variable name to JSON key.
51
54
  def self.attribute_map
52
55
  super.merge({
56
+ :'shapes' => :'Shapes',
53
57
  })
54
58
  end
55
59
 
56
60
  # Attribute type mapping.
57
61
  def self.swagger_types
58
62
  super.merge({
63
+ :'shapes' => :'ResourceUri',
59
64
  })
60
65
  end
61
66
 
@@ -63,6 +68,10 @@ module AsposeSlidesCloud
63
68
  # @param [Hash] attributes Model attributes in the form of hash
64
69
  def initialize(attributes = {})
65
70
  super
71
+
72
+ if attributes.has_key?(:'Shapes')
73
+ self.shapes = attributes[:'Shapes']
74
+ end
66
75
  self.type = "GroupShape"
67
76
  end
68
77
 
@@ -96,14 +105,14 @@ module AsposeSlidesCloud
96
105
  x == o.x &&
97
106
  y == o.y &&
98
107
  z_order_position == o.z_order_position &&
99
- shapes == o.shapes &&
100
108
  fill_format == o.fill_format &&
101
109
  effect_format == o.effect_format &&
102
110
  three_d_format == o.three_d_format &&
103
111
  line_format == o.line_format &&
104
112
  hyperlink_click == o.hyperlink_click &&
105
113
  hyperlink_mouse_over == o.hyperlink_mouse_over &&
106
- type == o.type
114
+ type == o.type &&
115
+ shapes == o.shapes
107
116
  end
108
117
 
109
118
  # @see the `==` method
@@ -115,7 +124,7 @@ module AsposeSlidesCloud
115
124
  # Calculates hash code according to all attributes.
116
125
  # @return [Fixnum] Hash code
117
126
  def hash
118
- [self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
127
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shapes].hash
119
128
  end
120
129
 
121
130
  # Builds the object from hash
@@ -82,8 +82,6 @@ module AsposeSlidesCloud
82
82
  return true if self.equal?(o)
83
83
  self.class == o.class &&
84
84
  default_regular_font == o.default_regular_font &&
85
- height == o.height &&
86
- width == o.width &&
87
85
  font_fallback_rules == o.font_fallback_rules &&
88
86
  format == o.format &&
89
87
  animate_transitions == o.animate_transitions &&
@@ -99,7 +97,7 @@ module AsposeSlidesCloud
99
97
  # Calculates hash code according to all attributes.
100
98
  # @return [Fixnum] Hash code
101
99
  def hash
102
- [default_regular_font, height, width, font_fallback_rules, format, animate_transitions, animate_shapes].hash
100
+ [default_regular_font, font_fallback_rules, format, animate_transitions, animate_shapes].hash
103
101
  end
104
102
 
105
103
  # Builds the object from hash
@@ -230,8 +230,6 @@ module AsposeSlidesCloud
230
230
  return true if self.equal?(o)
231
231
  self.class == o.class &&
232
232
  default_regular_font == o.default_regular_font &&
233
- height == o.height &&
234
- width == o.width &&
235
233
  font_fallback_rules == o.font_fallback_rules &&
236
234
  format == o.format &&
237
235
  save_as_zip == o.save_as_zip &&
@@ -257,7 +255,7 @@ module AsposeSlidesCloud
257
255
  # Calculates hash code according to all attributes.
258
256
  # @return [Fixnum] Hash code
259
257
  def hash
260
- [default_regular_font, height, width, font_fallback_rules, 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
258
+ [default_regular_font, font_fallback_rules, 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
261
259
  end
262
260
 
263
261
  # Builds the object from hash
@@ -24,7 +24,7 @@ require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
26
  # Provides options that control how a presentation is saved in an image format.
27
- class ImageExportOptions < ExportOptions
27
+ class ImageExportOptions < ImageExportOptionsBase
28
28
  # Gets or sets the position of the notes on the page.
29
29
  attr_accessor :notes_position
30
30
 
@@ -146,10 +146,10 @@ module AsposeSlidesCloud
146
146
  return true if self.equal?(o)
147
147
  self.class == o.class &&
148
148
  default_regular_font == o.default_regular_font &&
149
- height == o.height &&
150
- width == o.width &&
151
149
  font_fallback_rules == o.font_fallback_rules &&
152
150
  format == o.format &&
151
+ height == o.height &&
152
+ width == o.width &&
153
153
  notes_position == o.notes_position &&
154
154
  comments_position == o.comments_position &&
155
155
  comments_area_width == o.comments_area_width &&
@@ -165,7 +165,7 @@ module AsposeSlidesCloud
165
165
  # Calculates hash code according to all attributes.
166
166
  # @return [Fixnum] Hash code
167
167
  def hash
168
- [default_regular_font, height, width, font_fallback_rules, format, notes_position, comments_position, comments_area_width, comments_area_color].hash
168
+ [default_regular_font, font_fallback_rules, format, height, width, notes_position, comments_position, comments_area_width, comments_area_color].hash
169
169
  end
170
170
 
171
171
  # Builds the object from hash