aspose_words_cloud 21.3.0 → 21.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud.rb +1 -0
  3. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +11 -1
  4. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +11 -1
  5. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +11 -1
  6. data/lib/aspose_words_cloud/models/epub_save_options_data.rb +11 -1
  7. data/lib/aspose_words_cloud/models/fixed_page_save_options_data.rb +11 -1
  8. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +11 -1
  9. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +11 -1
  10. data/lib/aspose_words_cloud/models/html_save_options_data.rb +11 -1
  11. data/lib/aspose_words_cloud/models/image_save_options_data.rb +11 -1
  12. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +11 -1
  13. data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +11 -1
  14. data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +11 -1
  15. data/lib/aspose_words_cloud/models/odt_save_options_data.rb +11 -1
  16. data/lib/aspose_words_cloud/models/ooxml_save_options_data.rb +11 -1
  17. data/lib/aspose_words_cloud/models/pcl_save_options_data.rb +11 -1
  18. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +11 -11
  19. data/lib/aspose_words_cloud/models/png_save_options_data.rb +11 -1
  20. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +11 -1
  21. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +11 -1
  22. data/lib/aspose_words_cloud/models/save_options_data.rb +11 -1
  23. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +11 -1
  24. data/lib/aspose_words_cloud/models/text_save_options_data.rb +11 -1
  25. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +11 -1
  26. data/lib/aspose_words_cloud/models/time_zone_info_data.rb +231 -0
  27. data/lib/aspose_words_cloud/models/txt_save_options_base_data.rb +11 -1
  28. data/lib/aspose_words_cloud/models/word_ml_save_options_data.rb +11 -1
  29. data/lib/aspose_words_cloud/models/xaml_fixed_save_options_data.rb +11 -1
  30. data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +11 -1
  31. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +11 -1
  32. data/lib/aspose_words_cloud/version.rb +1 -1
  33. metadata +3 -2
@@ -32,6 +32,9 @@ module AsposeWordsCloud
32
32
  # Gets or sets a boolean value indicating whether to allow embedding fonts with PostScript outlines when embedding TrueType fonts in a document upon it is saved. The default value is false..
33
33
  attr_accessor :allow_embedding_post_script_fonts
34
34
 
35
+ # Gets or sets CustomTimeZoneInfo.
36
+ attr_accessor :custom_time_zone_info_data
37
+
35
38
  # Gets or sets the value determining how 3D effects are rendered.
36
39
  attr_accessor :dml3_d_effects_rendering_mode
37
40
 
@@ -121,6 +124,7 @@ module AsposeWordsCloud
121
124
  def self.attribute_map
122
125
  {
123
126
  :'allow_embedding_post_script_fonts' => :'AllowEmbeddingPostScriptFonts',
127
+ :'custom_time_zone_info_data' => :'CustomTimeZoneInfoData',
124
128
  :'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
125
129
  :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
126
130
  :'dml_rendering_mode' => :'DmlRenderingMode',
@@ -147,6 +151,7 @@ module AsposeWordsCloud
147
151
  def self.swagger_types
148
152
  {
149
153
  :'allow_embedding_post_script_fonts' => :'BOOLEAN',
154
+ :'custom_time_zone_info_data' => :'TimeZoneInfoData',
150
155
  :'dml3_d_effects_rendering_mode' => :'String',
151
156
  :'dml_effects_rendering_mode' => :'String',
152
157
  :'dml_rendering_mode' => :'String',
@@ -181,6 +186,10 @@ module AsposeWordsCloud
181
186
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
182
187
  end
183
188
 
189
+ if attributes.key?(:'CustomTimeZoneInfoData')
190
+ self.custom_time_zone_info_data = attributes[:'CustomTimeZoneInfoData']
191
+ end
192
+
184
193
  if attributes.key?(:'Dml3DEffectsRenderingMode')
185
194
  self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
186
195
  end
@@ -295,6 +304,7 @@ module AsposeWordsCloud
295
304
  return true if self.equal?(other)
296
305
  self.class == other.class &&
297
306
  allow_embedding_post_script_fonts == other.allow_embedding_post_script_fonts &&
307
+ custom_time_zone_info_data == other.custom_time_zone_info_data &&
298
308
  dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
299
309
  dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
300
310
  dml_rendering_mode == other.dml_rendering_mode &&
@@ -325,7 +335,7 @@ module AsposeWordsCloud
325
335
  # Calculates hash code according to all attributes.
326
336
  # @return [Fixnum] Hash code
327
337
  def hash
328
- [allow_embedding_post_script_fonts, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, use_book_fold_printing_settings].hash
338
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, use_book_fold_printing_settings].hash
329
339
  end
330
340
 
331
341
  # Builds the object from hash
@@ -32,6 +32,9 @@ module AsposeWordsCloud
32
32
  # Gets or sets a boolean value indicating whether to allow embedding fonts with PostScript outlines when embedding TrueType fonts in a document upon it is saved. The default value is false..
33
33
  attr_accessor :allow_embedding_post_script_fonts
34
34
 
35
+ # Gets or sets CustomTimeZoneInfo.
36
+ attr_accessor :custom_time_zone_info_data
37
+
35
38
  # Gets or sets the value determining how 3D effects are rendered.
36
39
  attr_accessor :dml3_d_effects_rendering_mode
37
40
 
@@ -106,6 +109,7 @@ module AsposeWordsCloud
106
109
  def self.attribute_map
107
110
  {
108
111
  :'allow_embedding_post_script_fonts' => :'AllowEmbeddingPostScriptFonts',
112
+ :'custom_time_zone_info_data' => :'CustomTimeZoneInfoData',
109
113
  :'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
110
114
  :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
111
115
  :'dml_rendering_mode' => :'DmlRenderingMode',
@@ -128,6 +132,7 @@ module AsposeWordsCloud
128
132
  def self.swagger_types
129
133
  {
130
134
  :'allow_embedding_post_script_fonts' => :'BOOLEAN',
135
+ :'custom_time_zone_info_data' => :'TimeZoneInfoData',
131
136
  :'dml3_d_effects_rendering_mode' => :'String',
132
137
  :'dml_effects_rendering_mode' => :'String',
133
138
  :'dml_rendering_mode' => :'String',
@@ -158,6 +163,10 @@ module AsposeWordsCloud
158
163
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
159
164
  end
160
165
 
166
+ if attributes.key?(:'CustomTimeZoneInfoData')
167
+ self.custom_time_zone_info_data = attributes[:'CustomTimeZoneInfoData']
168
+ end
169
+
161
170
  if attributes.key?(:'Dml3DEffectsRenderingMode')
162
171
  self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
163
172
  end
@@ -256,6 +265,7 @@ module AsposeWordsCloud
256
265
  return true if self.equal?(other)
257
266
  self.class == other.class &&
258
267
  allow_embedding_post_script_fonts == other.allow_embedding_post_script_fonts &&
268
+ custom_time_zone_info_data == other.custom_time_zone_info_data &&
259
269
  dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
260
270
  dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
261
271
  dml_rendering_mode == other.dml_rendering_mode &&
@@ -282,7 +292,7 @@ module AsposeWordsCloud
282
292
  # Calculates hash code according to all attributes.
283
293
  # @return [Fixnum] Hash code
284
294
  def hash
285
- [allow_embedding_post_script_fonts, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, export_compact_size, export_images_for_old_readers, pretty_format, save_images_as_wmf].hash
295
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, export_compact_size, export_images_for_old_readers, pretty_format, save_images_as_wmf].hash
286
296
  end
287
297
 
288
298
  # Builds the object from hash
@@ -32,6 +32,9 @@ module AsposeWordsCloud
32
32
  # Gets or sets a boolean value indicating whether to allow embedding fonts with PostScript outlines when embedding TrueType fonts in a document upon it is saved. The default value is false..
33
33
  attr_accessor :allow_embedding_post_script_fonts
34
34
 
35
+ # Gets or sets CustomTimeZoneInfo.
36
+ attr_accessor :custom_time_zone_info_data
37
+
35
38
  # Gets or sets the value determining how 3D effects are rendered.
36
39
  attr_accessor :dml3_d_effects_rendering_mode
37
40
 
@@ -94,6 +97,7 @@ module AsposeWordsCloud
94
97
  def self.attribute_map
95
98
  {
96
99
  :'allow_embedding_post_script_fonts' => :'AllowEmbeddingPostScriptFonts',
100
+ :'custom_time_zone_info_data' => :'CustomTimeZoneInfoData',
97
101
  :'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
98
102
  :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
99
103
  :'dml_rendering_mode' => :'DmlRenderingMode',
@@ -112,6 +116,7 @@ module AsposeWordsCloud
112
116
  def self.swagger_types
113
117
  {
114
118
  :'allow_embedding_post_script_fonts' => :'BOOLEAN',
119
+ :'custom_time_zone_info_data' => :'TimeZoneInfoData',
115
120
  :'dml3_d_effects_rendering_mode' => :'String',
116
121
  :'dml_effects_rendering_mode' => :'String',
117
122
  :'dml_rendering_mode' => :'String',
@@ -138,6 +143,10 @@ module AsposeWordsCloud
138
143
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
139
144
  end
140
145
 
146
+ if attributes.key?(:'CustomTimeZoneInfoData')
147
+ self.custom_time_zone_info_data = attributes[:'CustomTimeZoneInfoData']
148
+ end
149
+
141
150
  if attributes.key?(:'Dml3DEffectsRenderingMode')
142
151
  self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
143
152
  end
@@ -220,6 +229,7 @@ module AsposeWordsCloud
220
229
  return true if self.equal?(other)
221
230
  self.class == other.class &&
222
231
  allow_embedding_post_script_fonts == other.allow_embedding_post_script_fonts &&
232
+ custom_time_zone_info_data == other.custom_time_zone_info_data &&
223
233
  dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
224
234
  dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
225
235
  dml_rendering_mode == other.dml_rendering_mode &&
@@ -242,7 +252,7 @@ module AsposeWordsCloud
242
252
  # Calculates hash code according to all attributes.
243
253
  # @return [Fixnum] Hash code
244
254
  def hash
245
- [allow_embedding_post_script_fonts, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output].hash
255
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output].hash
246
256
  end
247
257
 
248
258
  # Builds the object from hash
@@ -32,6 +32,9 @@ module AsposeWordsCloud
32
32
  # Gets or sets a boolean value indicating whether to allow embedding fonts with PostScript outlines when embedding TrueType fonts in a document upon it is saved. The default value is false..
33
33
  attr_accessor :allow_embedding_post_script_fonts
34
34
 
35
+ # Gets or sets CustomTimeZoneInfo.
36
+ attr_accessor :custom_time_zone_info_data
37
+
35
38
  # Gets or sets the value determining how 3D effects are rendered.
36
39
  attr_accessor :dml3_d_effects_rendering_mode
37
40
 
@@ -136,6 +139,7 @@ module AsposeWordsCloud
136
139
  def self.attribute_map
137
140
  {
138
141
  :'allow_embedding_post_script_fonts' => :'AllowEmbeddingPostScriptFonts',
142
+ :'custom_time_zone_info_data' => :'CustomTimeZoneInfoData',
139
143
  :'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
140
144
  :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
141
145
  :'dml_rendering_mode' => :'DmlRenderingMode',
@@ -167,6 +171,7 @@ module AsposeWordsCloud
167
171
  def self.swagger_types
168
172
  {
169
173
  :'allow_embedding_post_script_fonts' => :'BOOLEAN',
174
+ :'custom_time_zone_info_data' => :'TimeZoneInfoData',
170
175
  :'dml3_d_effects_rendering_mode' => :'String',
171
176
  :'dml_effects_rendering_mode' => :'String',
172
177
  :'dml_rendering_mode' => :'String',
@@ -206,6 +211,10 @@ module AsposeWordsCloud
206
211
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
207
212
  end
208
213
 
214
+ if attributes.key?(:'CustomTimeZoneInfoData')
215
+ self.custom_time_zone_info_data = attributes[:'CustomTimeZoneInfoData']
216
+ end
217
+
209
218
  if attributes.key?(:'Dml3DEffectsRenderingMode')
210
219
  self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
211
220
  end
@@ -340,6 +349,7 @@ module AsposeWordsCloud
340
349
  return true if self.equal?(other)
341
350
  self.class == other.class &&
342
351
  allow_embedding_post_script_fonts == other.allow_embedding_post_script_fonts &&
352
+ custom_time_zone_info_data == other.custom_time_zone_info_data &&
343
353
  dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
344
354
  dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
345
355
  dml_rendering_mode == other.dml_rendering_mode &&
@@ -375,7 +385,7 @@ module AsposeWordsCloud
375
385
  # Calculates hash code according to all attributes.
376
386
  # @return [Fixnum] Hash code
377
387
  def hash
378
- [allow_embedding_post_script_fonts, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, export_embedded_images, fit_to_view_port, resources_folder, resources_folder_alias, show_page_border, text_output_mode].hash
388
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, export_embedded_images, fit_to_view_port, resources_folder, resources_folder_alias, show_page_border, text_output_mode].hash
379
389
  end
380
390
 
381
391
  # Builds the object from hash
@@ -32,6 +32,9 @@ module AsposeWordsCloud
32
32
  # Gets or sets a boolean value indicating whether to allow embedding fonts with PostScript outlines when embedding TrueType fonts in a document upon it is saved. The default value is false..
33
33
  attr_accessor :allow_embedding_post_script_fonts
34
34
 
35
+ # Gets or sets CustomTimeZoneInfo.
36
+ attr_accessor :custom_time_zone_info_data
37
+
35
38
  # Gets or sets the value determining how 3D effects are rendered.
36
39
  attr_accessor :dml3_d_effects_rendering_mode
37
40
 
@@ -118,6 +121,7 @@ module AsposeWordsCloud
118
121
  def self.attribute_map
119
122
  {
120
123
  :'allow_embedding_post_script_fonts' => :'AllowEmbeddingPostScriptFonts',
124
+ :'custom_time_zone_info_data' => :'CustomTimeZoneInfoData',
121
125
  :'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
122
126
  :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
123
127
  :'dml_rendering_mode' => :'DmlRenderingMode',
@@ -143,6 +147,7 @@ module AsposeWordsCloud
143
147
  def self.swagger_types
144
148
  {
145
149
  :'allow_embedding_post_script_fonts' => :'BOOLEAN',
150
+ :'custom_time_zone_info_data' => :'TimeZoneInfoData',
146
151
  :'dml3_d_effects_rendering_mode' => :'String',
147
152
  :'dml_effects_rendering_mode' => :'String',
148
153
  :'dml_rendering_mode' => :'String',
@@ -176,6 +181,10 @@ module AsposeWordsCloud
176
181
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
177
182
  end
178
183
 
184
+ if attributes.key?(:'CustomTimeZoneInfoData')
185
+ self.custom_time_zone_info_data = attributes[:'CustomTimeZoneInfoData']
186
+ end
187
+
179
188
  if attributes.key?(:'Dml3DEffectsRenderingMode')
180
189
  self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
181
190
  end
@@ -302,6 +311,7 @@ module AsposeWordsCloud
302
311
  return true if self.equal?(other)
303
312
  self.class == other.class &&
304
313
  allow_embedding_post_script_fonts == other.allow_embedding_post_script_fonts &&
314
+ custom_time_zone_info_data == other.custom_time_zone_info_data &&
305
315
  dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
306
316
  dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
307
317
  dml_rendering_mode == other.dml_rendering_mode &&
@@ -331,7 +341,7 @@ module AsposeWordsCloud
331
341
  # Calculates hash code according to all attributes.
332
342
  # @return [Fixnum] Hash code
333
343
  def hash
334
- [allow_embedding_post_script_fonts, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, encoding, export_headers_footers_mode, force_page_breaks, paragraph_break, add_bidi_marks, preserve_table_layout, simplify_list_labels].hash
344
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, encoding, export_headers_footers_mode, force_page_breaks, paragraph_break, add_bidi_marks, preserve_table_layout, simplify_list_labels].hash
335
345
  end
336
346
 
337
347
  # Builds the object from hash
@@ -32,6 +32,9 @@ module AsposeWordsCloud
32
32
  # Gets or sets a boolean value indicating whether to allow embedding fonts with PostScript outlines when embedding TrueType fonts in a document upon it is saved. The default value is false..
33
33
  attr_accessor :allow_embedding_post_script_fonts
34
34
 
35
+ # Gets or sets CustomTimeZoneInfo.
36
+ attr_accessor :custom_time_zone_info_data
37
+
35
38
  # Gets or sets the value determining how 3D effects are rendered.
36
39
  attr_accessor :dml3_d_effects_rendering_mode
37
40
 
@@ -173,6 +176,7 @@ module AsposeWordsCloud
173
176
  def self.attribute_map
174
177
  {
175
178
  :'allow_embedding_post_script_fonts' => :'AllowEmbeddingPostScriptFonts',
179
+ :'custom_time_zone_info_data' => :'CustomTimeZoneInfoData',
176
180
  :'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
177
181
  :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
178
182
  :'dml_rendering_mode' => :'DmlRenderingMode',
@@ -214,6 +218,7 @@ module AsposeWordsCloud
214
218
  def self.swagger_types
215
219
  {
216
220
  :'allow_embedding_post_script_fonts' => :'BOOLEAN',
221
+ :'custom_time_zone_info_data' => :'TimeZoneInfoData',
217
222
  :'dml3_d_effects_rendering_mode' => :'String',
218
223
  :'dml_effects_rendering_mode' => :'String',
219
224
  :'dml_rendering_mode' => :'String',
@@ -263,6 +268,10 @@ module AsposeWordsCloud
263
268
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
264
269
  end
265
270
 
271
+ if attributes.key?(:'CustomTimeZoneInfoData')
272
+ self.custom_time_zone_info_data = attributes[:'CustomTimeZoneInfoData']
273
+ end
274
+
266
275
  if attributes.key?(:'Dml3DEffectsRenderingMode')
267
276
  self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
268
277
  end
@@ -437,6 +446,7 @@ module AsposeWordsCloud
437
446
  return true if self.equal?(other)
438
447
  self.class == other.class &&
439
448
  allow_embedding_post_script_fonts == other.allow_embedding_post_script_fonts &&
449
+ custom_time_zone_info_data == other.custom_time_zone_info_data &&
440
450
  dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
441
451
  dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
442
452
  dml_rendering_mode == other.dml_rendering_mode &&
@@ -482,7 +492,7 @@ module AsposeWordsCloud
482
492
  # Calculates hash code according to all attributes.
483
493
  # @return [Fixnum] Hash code
484
494
  def hash
485
- [allow_embedding_post_script_fonts, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, graphics_quality_options, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_gdi_emf_renderer, use_high_quality_rendering, vertical_resolution, threshold_for_floyd_steinberg_dithering, tiff_binarization_method, tiff_compression].hash
495
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, graphics_quality_options, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_gdi_emf_renderer, use_high_quality_rendering, vertical_resolution, threshold_for_floyd_steinberg_dithering, tiff_binarization_method, tiff_compression].hash
486
496
  end
487
497
 
488
498
  # Builds the object from hash
@@ -0,0 +1,231 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="time_zone_info_data.rb">
3
+ # Copyright (c) 2021 Aspose.Words for Cloud
4
+ # </copyright>
5
+ # <summary>
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to deal
8
+ # in the Software without restriction, including without limitation the rights
9
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ # copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in all
14
+ # copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ # SOFTWARE.
23
+ # </summary>
24
+ # ------------------------------------------------------------------------------------
25
+
26
+ require 'date'
27
+
28
+ module AsposeWordsCloud
29
+
30
+ # Class to specify TimeZoneInfo parameters.
31
+ class TimeZoneInfoData
32
+ # Gets or sets base utc offset in hh:mm:ss format.
33
+ attr_accessor :base_utc_offset
34
+
35
+ # Gets or sets display name.
36
+ attr_accessor :display_name
37
+
38
+ # Gets or sets an Id string for CustomTimeZoneInfo.
39
+ attr_accessor :id
40
+
41
+ # Gets or sets standard display name.
42
+ attr_accessor :standard_display_name
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'base_utc_offset' => :'BaseUtcOffset',
47
+ :'display_name' => :'DisplayName',
48
+ :'id' => :'Id',
49
+ :'standard_display_name' => :'StandardDisplayName'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.swagger_types
55
+ {
56
+ :'base_utc_offset' => :'String',
57
+ :'display_name' => :'String',
58
+ :'id' => :'String',
59
+ :'standard_display_name' => :'String'
60
+ }
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ return unless attributes.is_a?(Hash)
67
+
68
+ # convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
70
+
71
+ if attributes.key?(:'BaseUtcOffset')
72
+ self.base_utc_offset = attributes[:'BaseUtcOffset']
73
+ end
74
+
75
+ if attributes.key?(:'DisplayName')
76
+ self.display_name = attributes[:'DisplayName']
77
+ end
78
+
79
+ if attributes.key?(:'Id')
80
+ self.id = attributes[:'Id']
81
+ end
82
+
83
+ if attributes.key?(:'StandardDisplayName')
84
+ self.standard_display_name = attributes[:'StandardDisplayName']
85
+ end
86
+ end
87
+
88
+ # Show invalid properties with the reasons. Usually used together with valid?
89
+ # @return Array for valid properies with the reasons
90
+ def list_invalid_properties
91
+ invalid_properties = []
92
+ return invalid_properties
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ def valid?
98
+ return true
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param [Object] Object to be compared
103
+ def ==(other)
104
+ return true if self.equal?(other)
105
+ self.class == other.class &&
106
+ base_utc_offset == other.base_utc_offset &&
107
+ display_name == other.display_name &&
108
+ id == other.id &&
109
+ standard_display_name == other.standard_display_name
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(other)
115
+ self == other
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Fixnum] Hash code
120
+ def hash
121
+ [base_utc_offset, display_name, id, standard_display_name].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.swagger_types.each_pair do |key, type|
130
+ if type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ end
139
+ # or else data not found in attributes(hash), not an issue as the data can be optional
140
+ end
141
+
142
+ self
143
+ end
144
+
145
+ # Deserializes the data based on type
146
+ # @param string type Data type
147
+ # @param string value Value to be deserialized
148
+ # @return [Object] Deserialized data
149
+ def _deserialize(type, value)
150
+ case type.to_sym
151
+ when :DateTime
152
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
153
+ when :Date
154
+ Time.at(/\d/.match(value)[0].to_f).to_date
155
+ when :String
156
+ value.to_s
157
+ when :Integer
158
+ value.to_i
159
+ when :Float
160
+ value.to_f
161
+ when :BOOLEAN
162
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
163
+ true
164
+ else
165
+ false
166
+ end
167
+ when :Object
168
+ # generic object (usually a Hash), return directly
169
+ value
170
+ when /\AArray<(?<inner_type>.+)>\z/
171
+ inner_type = Regexp.last_match[:inner_type]
172
+ value.map { |v| _deserialize(inner_type, v) }
173
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
174
+ k_type = Regexp.last_match[:k_type]
175
+ v_type = Regexp.last_match[:v_type]
176
+ {}.tap do |hash|
177
+ value.each do |k, v|
178
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
179
+ end
180
+ end
181
+ else
182
+ # model
183
+ temp_model = AsposeWordsCloud.const_get(type).new
184
+ temp_model.build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ next if value.nil?
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ # Outputs non-array value in the form of hash
213
+ # For object, use to_hash. Otherwise, just return the value
214
+ # @param [Object] value Any valid value
215
+ # @return [Hash] Returns the value in the form of hash
216
+ def _to_hash(value)
217
+ if value.is_a?(Array)
218
+ value.compact.map { |v| _to_hash(v) }
219
+ elsif value.is_a?(Hash)
220
+ {}.tap do |hash|
221
+ value.each { |k, v| hash[k] = _to_hash(v) }
222
+ end
223
+ elsif value.respond_to? :to_hash
224
+ value.to_hash
225
+ else
226
+ value
227
+ end
228
+ end
229
+
230
+ end
231
+ end