aspose_slides_cloud 22.3.0 → 22.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,633 @@
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 portion format.
27
+ class PortionFormat
28
+ # True for bold font.
29
+ attr_accessor :font_bold
30
+
31
+ # True for italic font.
32
+ attr_accessor :font_italic
33
+
34
+ # Text underline type.
35
+ attr_accessor :font_underline
36
+
37
+ # Text strikethrough type.
38
+ attr_accessor :strikethrough_type
39
+
40
+ # Text capitalization type.
41
+ attr_accessor :text_cap_type
42
+
43
+ # Superscript or subscript of the text.
44
+ attr_accessor :escapement
45
+
46
+ # Intercharacter spacing increment.
47
+ attr_accessor :spacing
48
+
49
+ # Font color.
50
+ attr_accessor :font_color
51
+
52
+ # Highlight color.
53
+ attr_accessor :highlight_color
54
+
55
+ # Font height.
56
+ attr_accessor :font_height
57
+
58
+ # True to normalize the text.
59
+ attr_accessor :normalise_height
60
+
61
+ # True if the text proof should be disabled.
62
+ attr_accessor :proof_disabled
63
+
64
+ # True if smart tag should be cleaned.
65
+ attr_accessor :smart_tag_clean
66
+
67
+ # Minimal font size for kerning.
68
+ attr_accessor :kerning_minimal_size
69
+
70
+ # True if numbers should ignore East-Asian specific vertical text layout.
71
+ attr_accessor :kumimoji
72
+
73
+ # Proving language ID.
74
+ attr_accessor :language_id
75
+
76
+ # Alternative proving language ID.
77
+ attr_accessor :alternative_language_id
78
+
79
+ # True if underline style has own FillFormat properties.
80
+ attr_accessor :is_hard_underline_fill
81
+
82
+ # True if underline style has own LineFormat properties.
83
+ attr_accessor :is_hard_underline_line
84
+
85
+ # Fill format.
86
+ attr_accessor :fill_format
87
+
88
+ # Effect format.
89
+ attr_accessor :effect_format
90
+
91
+ # Line format.
92
+ attr_accessor :line_format
93
+
94
+ # Underline fill format.
95
+ attr_accessor :underline_fill_format
96
+
97
+ # Underline line format.
98
+ attr_accessor :underline_line_format
99
+
100
+ # Hyperlink defined for mouse click.
101
+ attr_accessor :hyperlink_click
102
+
103
+ # Hyperlink defined for mouse over.
104
+ attr_accessor :hyperlink_mouse_over
105
+
106
+ # Returns or sets the Latin font info.
107
+ attr_accessor :latin_font
108
+
109
+ # Returns or sets the East Asian font info.
110
+ attr_accessor :east_asian_font
111
+
112
+ # Returns or sets the complex script font info.
113
+ attr_accessor :complex_script_font
114
+
115
+ class EnumAttributeValidator
116
+ attr_reader :datatype
117
+ attr_reader :allowable_values
118
+
119
+ def initialize(datatype, allowable_values)
120
+ @allowable_values = allowable_values.map do |value|
121
+ case datatype.to_s
122
+ when /Integer/i
123
+ value.to_i
124
+ when /Float/i
125
+ value.to_f
126
+ else
127
+ value
128
+ end
129
+ end
130
+ end
131
+
132
+ def valid?(value)
133
+ !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
134
+ end
135
+ end
136
+
137
+ # Attribute mapping from ruby-style variable name to JSON key.
138
+ def self.attribute_map
139
+ {
140
+ :'font_bold' => :'FontBold',
141
+ :'font_italic' => :'FontItalic',
142
+ :'font_underline' => :'FontUnderline',
143
+ :'strikethrough_type' => :'StrikethroughType',
144
+ :'text_cap_type' => :'TextCapType',
145
+ :'escapement' => :'Escapement',
146
+ :'spacing' => :'Spacing',
147
+ :'font_color' => :'FontColor',
148
+ :'highlight_color' => :'HighlightColor',
149
+ :'font_height' => :'FontHeight',
150
+ :'normalise_height' => :'NormaliseHeight',
151
+ :'proof_disabled' => :'ProofDisabled',
152
+ :'smart_tag_clean' => :'SmartTagClean',
153
+ :'kerning_minimal_size' => :'KerningMinimalSize',
154
+ :'kumimoji' => :'Kumimoji',
155
+ :'language_id' => :'LanguageId',
156
+ :'alternative_language_id' => :'AlternativeLanguageId',
157
+ :'is_hard_underline_fill' => :'IsHardUnderlineFill',
158
+ :'is_hard_underline_line' => :'IsHardUnderlineLine',
159
+ :'fill_format' => :'FillFormat',
160
+ :'effect_format' => :'EffectFormat',
161
+ :'line_format' => :'LineFormat',
162
+ :'underline_fill_format' => :'UnderlineFillFormat',
163
+ :'underline_line_format' => :'UnderlineLineFormat',
164
+ :'hyperlink_click' => :'HyperlinkClick',
165
+ :'hyperlink_mouse_over' => :'HyperlinkMouseOver',
166
+ :'latin_font' => :'LatinFont',
167
+ :'east_asian_font' => :'EastAsianFont',
168
+ :'complex_script_font' => :'ComplexScriptFont',
169
+ }
170
+ end
171
+
172
+ # Attribute type mapping.
173
+ def self.swagger_types
174
+ {
175
+ :'font_bold' => :'String',
176
+ :'font_italic' => :'String',
177
+ :'font_underline' => :'String',
178
+ :'strikethrough_type' => :'String',
179
+ :'text_cap_type' => :'String',
180
+ :'escapement' => :'Float',
181
+ :'spacing' => :'Float',
182
+ :'font_color' => :'String',
183
+ :'highlight_color' => :'String',
184
+ :'font_height' => :'Float',
185
+ :'normalise_height' => :'String',
186
+ :'proof_disabled' => :'String',
187
+ :'smart_tag_clean' => :'BOOLEAN',
188
+ :'kerning_minimal_size' => :'Float',
189
+ :'kumimoji' => :'String',
190
+ :'language_id' => :'String',
191
+ :'alternative_language_id' => :'String',
192
+ :'is_hard_underline_fill' => :'String',
193
+ :'is_hard_underline_line' => :'String',
194
+ :'fill_format' => :'FillFormat',
195
+ :'effect_format' => :'EffectFormat',
196
+ :'line_format' => :'LineFormat',
197
+ :'underline_fill_format' => :'FillFormat',
198
+ :'underline_line_format' => :'LineFormat',
199
+ :'hyperlink_click' => :'Hyperlink',
200
+ :'hyperlink_mouse_over' => :'Hyperlink',
201
+ :'latin_font' => :'String',
202
+ :'east_asian_font' => :'String',
203
+ :'complex_script_font' => :'String',
204
+ }
205
+ end
206
+
207
+ # Initializes the object
208
+ # @param [Hash] attributes Model attributes in the form of hash
209
+ def initialize(attributes = {})
210
+ return unless attributes.is_a?(Hash)
211
+
212
+ # convert string to symbol for hash key
213
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
214
+
215
+ if attributes.has_key?(:'FontBold')
216
+ self.font_bold = attributes[:'FontBold']
217
+ end
218
+
219
+ if attributes.has_key?(:'FontItalic')
220
+ self.font_italic = attributes[:'FontItalic']
221
+ end
222
+
223
+ if attributes.has_key?(:'FontUnderline')
224
+ self.font_underline = attributes[:'FontUnderline']
225
+ end
226
+
227
+ if attributes.has_key?(:'StrikethroughType')
228
+ self.strikethrough_type = attributes[:'StrikethroughType']
229
+ end
230
+
231
+ if attributes.has_key?(:'TextCapType')
232
+ self.text_cap_type = attributes[:'TextCapType']
233
+ end
234
+
235
+ if attributes.has_key?(:'Escapement')
236
+ self.escapement = attributes[:'Escapement']
237
+ end
238
+
239
+ if attributes.has_key?(:'Spacing')
240
+ self.spacing = attributes[:'Spacing']
241
+ end
242
+
243
+ if attributes.has_key?(:'FontColor')
244
+ self.font_color = attributes[:'FontColor']
245
+ end
246
+
247
+ if attributes.has_key?(:'HighlightColor')
248
+ self.highlight_color = attributes[:'HighlightColor']
249
+ end
250
+
251
+ if attributes.has_key?(:'FontHeight')
252
+ self.font_height = attributes[:'FontHeight']
253
+ end
254
+
255
+ if attributes.has_key?(:'NormaliseHeight')
256
+ self.normalise_height = attributes[:'NormaliseHeight']
257
+ end
258
+
259
+ if attributes.has_key?(:'ProofDisabled')
260
+ self.proof_disabled = attributes[:'ProofDisabled']
261
+ end
262
+
263
+ if attributes.has_key?(:'SmartTagClean')
264
+ self.smart_tag_clean = attributes[:'SmartTagClean']
265
+ end
266
+
267
+ if attributes.has_key?(:'KerningMinimalSize')
268
+ self.kerning_minimal_size = attributes[:'KerningMinimalSize']
269
+ end
270
+
271
+ if attributes.has_key?(:'Kumimoji')
272
+ self.kumimoji = attributes[:'Kumimoji']
273
+ end
274
+
275
+ if attributes.has_key?(:'LanguageId')
276
+ self.language_id = attributes[:'LanguageId']
277
+ end
278
+
279
+ if attributes.has_key?(:'AlternativeLanguageId')
280
+ self.alternative_language_id = attributes[:'AlternativeLanguageId']
281
+ end
282
+
283
+ if attributes.has_key?(:'IsHardUnderlineFill')
284
+ self.is_hard_underline_fill = attributes[:'IsHardUnderlineFill']
285
+ end
286
+
287
+ if attributes.has_key?(:'IsHardUnderlineLine')
288
+ self.is_hard_underline_line = attributes[:'IsHardUnderlineLine']
289
+ end
290
+
291
+ if attributes.has_key?(:'FillFormat')
292
+ self.fill_format = attributes[:'FillFormat']
293
+ end
294
+
295
+ if attributes.has_key?(:'EffectFormat')
296
+ self.effect_format = attributes[:'EffectFormat']
297
+ end
298
+
299
+ if attributes.has_key?(:'LineFormat')
300
+ self.line_format = attributes[:'LineFormat']
301
+ end
302
+
303
+ if attributes.has_key?(:'UnderlineFillFormat')
304
+ self.underline_fill_format = attributes[:'UnderlineFillFormat']
305
+ end
306
+
307
+ if attributes.has_key?(:'UnderlineLineFormat')
308
+ self.underline_line_format = attributes[:'UnderlineLineFormat']
309
+ end
310
+
311
+ if attributes.has_key?(:'HyperlinkClick')
312
+ self.hyperlink_click = attributes[:'HyperlinkClick']
313
+ end
314
+
315
+ if attributes.has_key?(:'HyperlinkMouseOver')
316
+ self.hyperlink_mouse_over = attributes[:'HyperlinkMouseOver']
317
+ end
318
+
319
+ if attributes.has_key?(:'LatinFont')
320
+ self.latin_font = attributes[:'LatinFont']
321
+ end
322
+
323
+ if attributes.has_key?(:'EastAsianFont')
324
+ self.east_asian_font = attributes[:'EastAsianFont']
325
+ end
326
+
327
+ if attributes.has_key?(:'ComplexScriptFont')
328
+ self.complex_script_font = attributes[:'ComplexScriptFont']
329
+ end
330
+ end
331
+
332
+ # Show invalid properties with the reasons. Usually used together with valid?
333
+ # @return Array for valid properties with the reasons
334
+ def list_invalid_properties
335
+ invalid_properties = Array.new
336
+ invalid_properties
337
+ end
338
+
339
+ # Check to see if the all the properties in the model are valid
340
+ # @return true if the model is valid
341
+ def valid?
342
+ font_bold_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
343
+ return false unless font_bold_validator.valid?(@font_bold)
344
+ font_italic_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
345
+ return false unless font_italic_validator.valid?(@font_italic)
346
+ font_underline_validator = EnumAttributeValidator.new('String', ['None', 'Words', 'Single', 'Double', 'Heavy', 'Dotted', 'HeavyDotted', 'Dashed', 'HeavyDashed', 'LongDashed', 'HeavyLongDashed', 'DotDash', 'HeavyDotDash', 'DotDotDash', 'HeavyDotDotDash', 'Wavy', 'HeavyWavy', 'DoubleWavy', 'NotDefined'])
347
+ return false unless font_underline_validator.valid?(@font_underline)
348
+ strikethrough_type_validator = EnumAttributeValidator.new('String', ['None', 'Single', 'Double', 'NotDefined'])
349
+ return false unless strikethrough_type_validator.valid?(@strikethrough_type)
350
+ text_cap_type_validator = EnumAttributeValidator.new('String', ['None', 'Small', 'All', 'NotDefined'])
351
+ return false unless text_cap_type_validator.valid?(@text_cap_type)
352
+ normalise_height_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
353
+ return false unless normalise_height_validator.valid?(@normalise_height)
354
+ proof_disabled_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
355
+ return false unless proof_disabled_validator.valid?(@proof_disabled)
356
+ kumimoji_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
357
+ return false unless kumimoji_validator.valid?(@kumimoji)
358
+ is_hard_underline_fill_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
359
+ return false unless is_hard_underline_fill_validator.valid?(@is_hard_underline_fill)
360
+ is_hard_underline_line_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
361
+ return false unless is_hard_underline_line_validator.valid?(@is_hard_underline_line)
362
+ true
363
+ end
364
+
365
+ # Custom attribute writer method checking allowed values (enum).
366
+ # @param [Object] font_bold Object to be assigned
367
+ def font_bold=(font_bold)
368
+ validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
369
+ unless validator.valid?(font_bold)
370
+ fail ArgumentError, 'invalid value for "font_bold", must be one of #{validator.allowable_values}.'
371
+ end
372
+ @font_bold = font_bold
373
+ end
374
+
375
+ # Custom attribute writer method checking allowed values (enum).
376
+ # @param [Object] font_italic Object to be assigned
377
+ def font_italic=(font_italic)
378
+ validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
379
+ unless validator.valid?(font_italic)
380
+ fail ArgumentError, 'invalid value for "font_italic", must be one of #{validator.allowable_values}.'
381
+ end
382
+ @font_italic = font_italic
383
+ end
384
+
385
+ # Custom attribute writer method checking allowed values (enum).
386
+ # @param [Object] font_underline Object to be assigned
387
+ def font_underline=(font_underline)
388
+ validator = EnumAttributeValidator.new('String', ['None', 'Words', 'Single', 'Double', 'Heavy', 'Dotted', 'HeavyDotted', 'Dashed', 'HeavyDashed', 'LongDashed', 'HeavyLongDashed', 'DotDash', 'HeavyDotDash', 'DotDotDash', 'HeavyDotDotDash', 'Wavy', 'HeavyWavy', 'DoubleWavy', 'NotDefined'])
389
+ unless validator.valid?(font_underline)
390
+ fail ArgumentError, 'invalid value for "font_underline", must be one of #{validator.allowable_values}.'
391
+ end
392
+ @font_underline = font_underline
393
+ end
394
+
395
+ # Custom attribute writer method checking allowed values (enum).
396
+ # @param [Object] strikethrough_type Object to be assigned
397
+ def strikethrough_type=(strikethrough_type)
398
+ validator = EnumAttributeValidator.new('String', ['None', 'Single', 'Double', 'NotDefined'])
399
+ unless validator.valid?(strikethrough_type)
400
+ fail ArgumentError, 'invalid value for "strikethrough_type", must be one of #{validator.allowable_values}.'
401
+ end
402
+ @strikethrough_type = strikethrough_type
403
+ end
404
+
405
+ # Custom attribute writer method checking allowed values (enum).
406
+ # @param [Object] text_cap_type Object to be assigned
407
+ def text_cap_type=(text_cap_type)
408
+ validator = EnumAttributeValidator.new('String', ['None', 'Small', 'All', 'NotDefined'])
409
+ unless validator.valid?(text_cap_type)
410
+ fail ArgumentError, 'invalid value for "text_cap_type", must be one of #{validator.allowable_values}.'
411
+ end
412
+ @text_cap_type = text_cap_type
413
+ end
414
+
415
+ # Custom attribute writer method checking allowed values (enum).
416
+ # @param [Object] normalise_height Object to be assigned
417
+ def normalise_height=(normalise_height)
418
+ validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
419
+ unless validator.valid?(normalise_height)
420
+ fail ArgumentError, 'invalid value for "normalise_height", must be one of #{validator.allowable_values}.'
421
+ end
422
+ @normalise_height = normalise_height
423
+ end
424
+
425
+ # Custom attribute writer method checking allowed values (enum).
426
+ # @param [Object] proof_disabled Object to be assigned
427
+ def proof_disabled=(proof_disabled)
428
+ validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
429
+ unless validator.valid?(proof_disabled)
430
+ fail ArgumentError, 'invalid value for "proof_disabled", must be one of #{validator.allowable_values}.'
431
+ end
432
+ @proof_disabled = proof_disabled
433
+ end
434
+
435
+ # Custom attribute writer method checking allowed values (enum).
436
+ # @param [Object] kumimoji Object to be assigned
437
+ def kumimoji=(kumimoji)
438
+ validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
439
+ unless validator.valid?(kumimoji)
440
+ fail ArgumentError, 'invalid value for "kumimoji", must be one of #{validator.allowable_values}.'
441
+ end
442
+ @kumimoji = kumimoji
443
+ end
444
+
445
+ # Custom attribute writer method checking allowed values (enum).
446
+ # @param [Object] is_hard_underline_fill Object to be assigned
447
+ def is_hard_underline_fill=(is_hard_underline_fill)
448
+ validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
449
+ unless validator.valid?(is_hard_underline_fill)
450
+ fail ArgumentError, 'invalid value for "is_hard_underline_fill", must be one of #{validator.allowable_values}.'
451
+ end
452
+ @is_hard_underline_fill = is_hard_underline_fill
453
+ end
454
+
455
+ # Custom attribute writer method checking allowed values (enum).
456
+ # @param [Object] is_hard_underline_line Object to be assigned
457
+ def is_hard_underline_line=(is_hard_underline_line)
458
+ validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
459
+ unless validator.valid?(is_hard_underline_line)
460
+ fail ArgumentError, 'invalid value for "is_hard_underline_line", must be one of #{validator.allowable_values}.'
461
+ end
462
+ @is_hard_underline_line = is_hard_underline_line
463
+ end
464
+
465
+ # Checks equality by comparing each attribute.
466
+ # @param [Object] Object to be compared
467
+ def ==(o)
468
+ return true if self.equal?(o)
469
+ self.class == o.class &&
470
+ font_bold == o.font_bold &&
471
+ font_italic == o.font_italic &&
472
+ font_underline == o.font_underline &&
473
+ strikethrough_type == o.strikethrough_type &&
474
+ text_cap_type == o.text_cap_type &&
475
+ escapement == o.escapement &&
476
+ spacing == o.spacing &&
477
+ font_color == o.font_color &&
478
+ highlight_color == o.highlight_color &&
479
+ font_height == o.font_height &&
480
+ normalise_height == o.normalise_height &&
481
+ proof_disabled == o.proof_disabled &&
482
+ smart_tag_clean == o.smart_tag_clean &&
483
+ kerning_minimal_size == o.kerning_minimal_size &&
484
+ kumimoji == o.kumimoji &&
485
+ language_id == o.language_id &&
486
+ alternative_language_id == o.alternative_language_id &&
487
+ is_hard_underline_fill == o.is_hard_underline_fill &&
488
+ is_hard_underline_line == o.is_hard_underline_line &&
489
+ fill_format == o.fill_format &&
490
+ effect_format == o.effect_format &&
491
+ line_format == o.line_format &&
492
+ underline_fill_format == o.underline_fill_format &&
493
+ underline_line_format == o.underline_line_format &&
494
+ hyperlink_click == o.hyperlink_click &&
495
+ hyperlink_mouse_over == o.hyperlink_mouse_over &&
496
+ latin_font == o.latin_font &&
497
+ east_asian_font == o.east_asian_font &&
498
+ complex_script_font == o.complex_script_font
499
+ end
500
+
501
+ # @see the `==` method
502
+ # @param [Object] Object to be compared
503
+ def eql?(o)
504
+ self == o
505
+ end
506
+
507
+ # Calculates hash code according to all attributes.
508
+ # @return [Fixnum] Hash code
509
+ def hash
510
+ [font_bold, font_italic, font_underline, strikethrough_type, text_cap_type, escapement, spacing, font_color, highlight_color, font_height, normalise_height, proof_disabled, smart_tag_clean, kerning_minimal_size, kumimoji, language_id, alternative_language_id, is_hard_underline_fill, is_hard_underline_line, fill_format, effect_format, line_format, underline_fill_format, underline_line_format, hyperlink_click, hyperlink_mouse_over, latin_font, east_asian_font, complex_script_font].hash
511
+ end
512
+
513
+ # Builds the object from hash
514
+ # @param [Hash] attributes Model attributes in the form of hash
515
+ # @return [Object] Returns the model itself
516
+ def build_from_hash(attributes)
517
+ return nil unless attributes.is_a?(Hash)
518
+ self.class.swagger_types.each_pair do |key, type|
519
+ mapKey = self.class.attribute_map[key]
520
+ if !mapKey.nil?
521
+ val = attributes[mapKey]
522
+ if val.nil?
523
+ mapKeyString = mapKey.to_s
524
+ mapKeyString[0] = mapKeyString[0].downcase
525
+ mapKey = mapKeyString.to_sym
526
+ val = attributes[mapKey]
527
+ end
528
+ if !val.nil?
529
+ if type =~ /\AArray<(.*)>/i
530
+ # check to ensure the input is an array given that the the attribute
531
+ # is documented as an array but the input is not
532
+ if val.is_a?(Array)
533
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
534
+ end
535
+ else
536
+ self.send("#{key}=", _deserialize(type, val))
537
+ end
538
+ end
539
+ end
540
+ end
541
+
542
+ self
543
+ end
544
+
545
+ # Deserializes the data based on type
546
+ # @param string type Data type
547
+ # @param string value Value to be deserialized
548
+ # @return [Object] Deserialized data
549
+ def _deserialize(type, value)
550
+ case type.to_sym
551
+ when :DateTime
552
+ DateTime.parse(value)
553
+ when :Date
554
+ Date.parse(value)
555
+ when :String
556
+ value.to_s
557
+ when :Integer
558
+ value.to_i
559
+ when :Float
560
+ value.to_f
561
+ when :BOOLEAN
562
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
563
+ true
564
+ else
565
+ false
566
+ end
567
+ when :Object
568
+ # generic object (usually a Hash), return directly
569
+ value
570
+ when /\AArray<(?<inner_type>.+)>\z/
571
+ inner_type = Regexp.last_match[:inner_type]
572
+ value.map { |v| _deserialize(inner_type, v) }
573
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
574
+ k_type = Regexp.last_match[:k_type]
575
+ v_type = Regexp.last_match[:v_type]
576
+ {}.tap do |hash|
577
+ value.each do |k, v|
578
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
579
+ end
580
+ end
581
+ else # model
582
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
583
+ if registry_type
584
+ type = registry_type
585
+ end
586
+ temp_model = AsposeSlidesCloud.const_get(type).new
587
+ temp_model.build_from_hash(value)
588
+ end
589
+ end
590
+
591
+ # Returns the string representation of the object
592
+ # @return [String] String presentation of the object
593
+ def to_s
594
+ to_hash.to_s
595
+ end
596
+
597
+ # to_body is an alias to to_hash (backward compatibility)
598
+ # @return [Hash] Returns the object in the form of hash
599
+ def to_body
600
+ to_hash
601
+ end
602
+
603
+ # Returns the object in the form of hash
604
+ # @return [Hash] Returns the object in the form of hash
605
+ def to_hash
606
+ hash = {}
607
+ self.class.attribute_map.each_pair do |attr, param|
608
+ value = self.send(attr)
609
+ next if value.nil?
610
+ hash[param] = _to_hash(value)
611
+ end
612
+ hash
613
+ end
614
+
615
+ # Outputs non-array value in the form of hash
616
+ # For object, use to_hash. Otherwise, just return the value
617
+ # @param [Object] value Any valid value
618
+ # @return [Hash] Returns the value in the form of hash
619
+ def _to_hash(value)
620
+ if value.is_a?(Array)
621
+ value.compact.map { |v| _to_hash(v) }
622
+ elsif value.is_a?(Hash)
623
+ {}.tap do |hash|
624
+ value.each { |k, v| hash[k] = _to_hash(v) }
625
+ end
626
+ elsif value.respond_to? :to_hash
627
+ value.to_hash
628
+ else
629
+ value
630
+ end
631
+ end
632
+ end
633
+ end
@@ -107,8 +107,6 @@ module AsposeSlidesCloud
107
107
  return true if self.equal?(o)
108
108
  self.class == o.class &&
109
109
  default_regular_font == o.default_regular_font &&
110
- height == o.height &&
111
- width == o.width &&
112
110
  font_fallback_rules == o.font_fallback_rules &&
113
111
  format == o.format &&
114
112
  conformance == o.conformance
@@ -123,7 +121,7 @@ module AsposeSlidesCloud
123
121
  # Calculates hash code according to all attributes.
124
122
  # @return [Fixnum] Hash code
125
123
  def hash
126
- [default_regular_font, height, width, font_fallback_rules, format, conformance].hash
124
+ [default_regular_font, font_fallback_rules, format, conformance].hash
127
125
  end
128
126
 
129
127
  # Builds the object from hash
@@ -105,7 +105,6 @@ module AsposeSlidesCloud
105
105
  x == o.x &&
106
106
  y == o.y &&
107
107
  z_order_position == o.z_order_position &&
108
- shapes == o.shapes &&
109
108
  fill_format == o.fill_format &&
110
109
  effect_format == o.effect_format &&
111
110
  three_d_format == o.three_d_format &&
@@ -130,7 +129,7 @@ module AsposeSlidesCloud
130
129
  # Calculates hash code according to all attributes.
131
130
  # @return [Fixnum] Hash code
132
131
  def hash
133
- [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, image_type, return_to_parent, show_background, image, transition_duration, target_section_index].hash
132
+ [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, image_type, return_to_parent, show_background, image, transition_duration, target_section_index].hash
134
133
  end
135
134
 
136
135
  # Builds the object from hash
@@ -123,7 +123,6 @@ module AsposeSlidesCloud
123
123
  x == o.x &&
124
124
  y == o.y &&
125
125
  z_order_position == o.z_order_position &&
126
- shapes == o.shapes &&
127
126
  fill_format == o.fill_format &&
128
127
  effect_format == o.effect_format &&
129
128
  three_d_format == o.three_d_format &&
@@ -146,7 +145,7 @@ module AsposeSlidesCloud
146
145
  # Calculates hash code according to all attributes.
147
146
  # @return [Fixnum] Hash code
148
147
  def hash
149
- [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, text, paragraphs, text_frame_format].hash
148
+ [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, text, paragraphs, text_frame_format].hash
150
149
  end
151
150
 
152
151
  # Builds the object from hash