aspose_words_cloud 25.10 → 25.12

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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud/api/words_api.rb +6 -132
  3. data/lib/aspose_words_cloud/models/azw3_save_options_data.rb +4 -4
  4. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +1 -1
  5. data/lib/aspose_words_cloud/models/comment.rb +2 -2
  6. data/lib/aspose_words_cloud/models/comment_insert.rb +2 -2
  7. data/lib/aspose_words_cloud/models/comment_update.rb +2 -2
  8. data/lib/aspose_words_cloud/models/compress_options.rb +2 -2
  9. data/lib/aspose_words_cloud/models/custom_xml_part.rb +1 -1
  10. data/lib/aspose_words_cloud/models/custom_xml_part_insert.rb +1 -1
  11. data/lib/aspose_words_cloud/models/custom_xml_part_update.rb +1 -1
  12. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +1 -1
  13. data/lib/aspose_words_cloud/models/docm_save_options_data.rb +1 -1
  14. data/lib/aspose_words_cloud/models/document.rb +11 -1
  15. data/lib/aspose_words_cloud/models/docx_save_options_data.rb +1 -1
  16. data/lib/aspose_words_cloud/models/dot_save_options_data.rb +1 -1
  17. data/lib/aspose_words_cloud/models/dotm_save_options_data.rb +1 -1
  18. data/lib/aspose_words_cloud/models/dotx_save_options_data.rb +1 -1
  19. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +1 -1
  20. data/lib/aspose_words_cloud/models/eps_save_options_data.rb +1 -1
  21. data/lib/aspose_words_cloud/models/epub_save_options_data.rb +4 -4
  22. data/lib/aspose_words_cloud/models/field_options.rb +1 -1
  23. data/lib/aspose_words_cloud/models/flat_opc_macro_save_options_data.rb +1 -1
  24. data/lib/aspose_words_cloud/models/flat_opc_save_options_data.rb +1 -1
  25. data/lib/aspose_words_cloud/models/flat_opc_template_macro_save_options_data.rb +1 -1
  26. data/lib/aspose_words_cloud/models/flat_opc_template_save_options_data.rb +1 -1
  27. data/lib/aspose_words_cloud/models/footnote.rb +1 -1
  28. data/lib/aspose_words_cloud/models/footnote_insert.rb +1 -1
  29. data/lib/aspose_words_cloud/models/footnote_update.rb +1 -1
  30. data/lib/aspose_words_cloud/models/form_field_checkbox.rb +1 -1
  31. data/lib/aspose_words_cloud/models/form_field_drop_down.rb +1 -1
  32. data/lib/aspose_words_cloud/models/form_field_text_input.rb +1 -1
  33. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +1 -1
  34. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +4 -4
  35. data/lib/aspose_words_cloud/models/html_save_options_data.rb +4 -4
  36. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +1 -1
  37. data/lib/aspose_words_cloud/models/list_level.rb +1 -1
  38. data/lib/aspose_words_cloud/models/list_level_update.rb +1 -1
  39. data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +2 -2
  40. data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +4 -4
  41. data/lib/aspose_words_cloud/models/odt_save_options_data.rb +1 -1
  42. data/lib/aspose_words_cloud/models/open_xps_save_options_data.rb +1 -1
  43. data/lib/aspose_words_cloud/models/ott_save_options_data.rb +1 -1
  44. data/lib/aspose_words_cloud/models/pcl_save_options_data.rb +1 -1
  45. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +19 -6
  46. data/lib/aspose_words_cloud/models/png_save_options_data.rb +1 -1
  47. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +1 -1
  48. data/lib/aspose_words_cloud/models/requests/build_report_online_request.rb +4 -4
  49. data/lib/aspose_words_cloud/models/requests/build_report_request.rb +4 -4
  50. data/lib/aspose_words_cloud/models/requests/sign_document_online_request.rb +2 -2
  51. data/lib/aspose_words_cloud/models/requests/sign_document_request.rb +2 -2
  52. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +1 -1
  53. data/lib/aspose_words_cloud/models/sign_options.rb +6 -6
  54. data/lib/aspose_words_cloud/models/signature.rb +1 -1
  55. data/lib/aspose_words_cloud/models/structured_document_tag.rb +21 -21
  56. data/lib/aspose_words_cloud/models/structured_document_tag_insert.rb +21 -21
  57. data/lib/aspose_words_cloud/models/structured_document_tag_update.rb +21 -21
  58. data/lib/aspose_words_cloud/models/style.rb +1 -1
  59. data/lib/aspose_words_cloud/models/style_update.rb +1 -1
  60. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +2 -2
  61. data/lib/aspose_words_cloud/models/text_save_options_data.rb +30 -3
  62. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +2 -2
  63. data/lib/aspose_words_cloud/models/word_ml_save_options_data.rb +1 -1
  64. data/lib/aspose_words_cloud/models/xaml_fixed_save_options_data.rb +1 -1
  65. data/lib/aspose_words_cloud/models/xaml_flow_pack_save_options_data.rb +2 -2
  66. data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +2 -2
  67. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +1 -1
  68. data/lib/aspose_words_cloud/version.rb +1 -1
  69. data/lib/aspose_words_cloud.rb +0 -5
  70. metadata +2 -7
  71. data/lib/aspose_words_cloud/models/classification_response.rb +0 -246
  72. data/lib/aspose_words_cloud/models/classification_result.rb +0 -215
  73. data/lib/aspose_words_cloud/models/requests/classify_document_online_request.rb +0 -193
  74. data/lib/aspose_words_cloud/models/requests/classify_document_request.rb +0 -192
  75. data/lib/aspose_words_cloud/models/requests/classify_request.rb +0 -158
@@ -36,56 +36,56 @@ module AsposeWordsCloud
36
36
  attr_accessor :node_id
37
37
 
38
38
  # Gets or sets Aspose.Words.Markup.SdtListItemCollection associated with this SDT.
39
- # Accessing this property will only work for Aspose.Words.Markup.SdtType.ComboBox or Aspose.Words.Markup.SdtType.DropDownList SDT types.
40
- # For all other SDT types exception will occur.
39
+ # Accessing this property will work only for Aspose.Words.Markup.SdtType.ComboBox or Aspose.Words.Markup.SdtType.DropDownList SDT types.
40
+ # For all other SDT types, an exception will occur.
41
41
  attr_accessor :list_items
42
42
 
43
43
  # Gets or sets a value indicating whether current state of the Checkbox SDT. Default value for this property.
44
- # Accessing this property will only work for Aspose.Words.Markup.SdtType.Checkbox SDT types.
45
- # For all other SDT types exception will occur.
44
+ # Accessing this property will work only for Aspose.Words.Markup.SdtType.Checkbox SDT types.
45
+ # For all other SDT types, an exception will occur.
46
46
  attr_accessor :checked
47
47
 
48
48
  # Gets or sets the appearance of a structured document tag.
49
49
  attr_accessor :appearance
50
50
 
51
51
  # Gets or sets the language format for the date displayed in this SDT.
52
- # Accessing this property will only work for Aspose.Words.Markup.SdtType.Date SDT type.
53
- # For all other SDT types exception will occur.
52
+ # Accessing this property will work only for Aspose.Words.Markup.SdtType.Date SDT type.
53
+ # For all other SDT types, an exception will occur.
54
54
  attr_accessor :date_display_locale
55
55
 
56
56
  # Gets or sets String that represents the format in which dates are displayed. Can not be null. The dates for English (U.S.) is "mm/dd/yyyy".
57
- # Accessing this property will only work for Aspose.Words.Markup.SdtType.Date SDT type.
58
- # For all other SDT types exception will occur.
57
+ # Accessing this property will work only for Aspose.Words.Markup.SdtType.Date SDT type.
58
+ # For all other SDT types, an exception will occur.
59
59
  attr_accessor :date_display_format
60
60
 
61
61
  # Gets or sets the full date and time last entered into this SDT.
62
- # Accessing this property will only work for Aspose.Words.Markup.SdtType.Date SDT type.
63
- # For all other SDT types exception will occur.
62
+ # Accessing this property will work only for Aspose.Words.Markup.SdtType.Date SDT type.
63
+ # For all other SDT types, an exception will occur.
64
64
  attr_accessor :full_date
65
65
 
66
66
  # Gets or sets the friendly name associated with this SDT. Can not be null.
67
67
  attr_accessor :title
68
68
 
69
69
  # Gets or sets format in which the date for a date SDT is stored when the SDT is bound to an XML node in the document's data store.
70
- # Default value is Aspose.Words.Markup.SdtDateStorageFormat.DateTime.
71
- # Accessing this property will only work for Aspose.Words.Markup.SdtType.Date SDT type.
72
- # For all other SDT types exception will occur.
70
+ # The default value is Aspose.Words.Markup.SdtDateStorageFormat.DateTime.
71
+ # Accessing this property will work only for Aspose.Words.Markup.SdtType.Date SDT type.
72
+ # For all other SDT types, an exception will occur.
73
73
  attr_accessor :date_storage_format
74
74
 
75
75
  # Gets or sets type of building block for this SDT. Can not be null.
76
- # Accessing this property will only work for Aspose.Words.Markup.SdtType.BuildingBlockGallery and Aspose.Words.Markup.SdtType.DocPartObj SDT types.
76
+ # Accessing this property will work only for Aspose.Words.Markup.SdtType.BuildingBlockGallery and Aspose.Words.Markup.SdtType.DocPartObj SDT types.
77
77
  # It is read-only for SDT of the document part type.
78
- # For all other SDT types exception will occur.
78
+ # For all other SDT types, an exception will occur.
79
79
  attr_accessor :building_block_gallery
80
80
 
81
81
  # Gets or sets category of building block for this SDT node. Can not be null.
82
- # Accessing this property will only work for Aspose.Words.Markup.SdtType.BuildingBlockGallery and Aspose.Words.Markup.SdtType.DocPartObj SDT types.
83
- # It is read-only for SDT of the document part type. For all other SDT types exception will occur.
82
+ # Accessing this property will work only for Aspose.Words.Markup.SdtType.BuildingBlockGallery and Aspose.Words.Markup.SdtType.DocPartObj SDT types.
83
+ # It is read-only for SDT of the document part type. For all other SDT types, an exception will occur.
84
84
  attr_accessor :building_block_category
85
85
 
86
86
  # Gets or sets a value indicating whether this SDT allows multiple lines of text.
87
- # Accessing this property will only work for Aspose.Words.Markup.SdtType.RichText and Aspose.Words.Markup.SdtType.PlainText SDT type.
88
- # For all other SDT types exception will occur.
87
+ # Accessing this property will work only for Aspose.Words.Markup.SdtType.RichText and Aspose.Words.Markup.SdtType.PlainText SDT type.
88
+ # For all other SDT types, an exception will occur.
89
89
  attr_accessor :multiline
90
90
 
91
91
  # Gets or sets the color of the structured document tag.
@@ -95,8 +95,8 @@ module AsposeWordsCloud
95
95
  attr_accessor :style_name
96
96
 
97
97
  # Gets or sets the type of calendar for this SDT. Default is Aspose.Words.Markup.SdtCalendarType.Default.
98
- # Accessing this property will only work for Aspose.Words.Markup.SdtType.Date SDT type.
99
- # For all other SDT types exception will occur.
98
+ # Accessing this property will work only for Aspose.Words.Markup.SdtType.Date SDT type.
99
+ # For all other SDT types, an exception will occur.
100
100
  attr_accessor :calendar_type
101
101
 
102
102
  # Gets or sets a value indicating whether this SDT shall be removed from the WordProcessingML document when its contents are modified.
@@ -68,7 +68,7 @@ module AsposeWordsCloud
68
68
  attr_accessor :style_identifier
69
69
 
70
70
  # Gets or sets the name of the style.
71
- # Can not be empty string. If there already is a style with such name in the collection, then this style will override it. All affected nodes will reference new style.
71
+ # Cannot be an empty string. If there already is a style with such name in the collection, then this style will override it. All affected nodes will reference new style.
72
72
  attr_accessor :name
73
73
 
74
74
  class EnumAttributeValidator
@@ -41,7 +41,7 @@ module AsposeWordsCloud
41
41
  attr_accessor :is_quick_style
42
42
 
43
43
  # Gets or sets the name of the style.
44
- # Can not be empty string. If there already is a style with such name in the collection, than this style will override it. All affected nodes will reference new style.
44
+ # Cannot be an empty string. If there already is a style with such name in the collection, than this style will override it. All affected nodes will reference new style.
45
45
  attr_accessor :name
46
46
  # Attribute mapping from ruby-style variable name to JSON key.
47
47
  def self.attribute_map
@@ -64,7 +64,7 @@ module AsposeWordsCloud
64
64
  attr_accessor :update_ambiguous_text_font
65
65
 
66
66
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
67
- # Default value is false.
67
+ # The default value is false.
68
68
  attr_accessor :update_created_time_property
69
69
 
70
70
  # Gets or sets a value indicating whether fields should be updated before saving the document to a fixed page format. The default value is true.
@@ -115,7 +115,7 @@ module AsposeWordsCloud
115
115
  attr_accessor :fit_to_view_port
116
116
 
117
117
  # Gets or sets specifies a prefix that is prepended to all generated element IDs in the output document.
118
- # Default value is null and no prefix is prepended.
118
+ # The default value is null and no prefix is prepended.
119
119
  # If the prefix is specified, it can contain only letters, digits, underscores, and hyphens,
120
120
  # and must start with a letter.
121
121
  attr_accessor :id_prefix
@@ -64,7 +64,7 @@ module AsposeWordsCloud
64
64
  attr_accessor :update_ambiguous_text_font
65
65
 
66
66
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
67
- # Default value is false.
67
+ # The default value is false.
68
68
  attr_accessor :update_created_time_property
69
69
 
70
70
  # Gets or sets a value indicating whether fields should be updated before saving the document to a fixed page format. The default value is true.
@@ -86,7 +86,7 @@ module AsposeWordsCloud
86
86
  attr_accessor :encoding
87
87
 
88
88
  # Gets or sets the option that controls whether to output headers and footers when exporting in plain text format.
89
- # default value is TxtExportHeadersFootersMode.PrimaryOnly.
89
+ # The default value is TxtExportHeadersFootersMode.PrimaryOnly.
90
90
  attr_accessor :export_headers_footers_mode
91
91
 
92
92
  # Gets or sets a value indicating whether the page breaks should be preserved during export.
@@ -104,6 +104,10 @@ module AsposeWordsCloud
104
104
  # The default value is 0, that means no limit.
105
105
  attr_accessor :max_characters_per_line
106
106
 
107
+ # Gets or sets a value that specifies how OfficeMath will be written to the output file.
108
+ # The default value is Text.
109
+ attr_accessor :office_math_export_mode
110
+
107
111
  # Gets or sets a value indicating whether the program should attempt to preserve layout of tables when saving in the plain text format.
108
112
  attr_accessor :preserve_table_layout
109
113
 
@@ -157,6 +161,7 @@ module AsposeWordsCloud
157
161
  :'paragraph_break' => :'ParagraphBreak',
158
162
  :'add_bidi_marks' => :'AddBidiMarks',
159
163
  :'max_characters_per_line' => :'MaxCharactersPerLine',
164
+ :'office_math_export_mode' => :'OfficeMathExportMode',
160
165
  :'preserve_table_layout' => :'PreserveTableLayout',
161
166
  :'simplify_list_labels' => :'SimplifyListLabels',
162
167
  :'save_format' => :'SaveFormat'
@@ -185,6 +190,7 @@ module AsposeWordsCloud
185
190
  :'paragraph_break' => :'String',
186
191
  :'add_bidi_marks' => :'BOOLEAN',
187
192
  :'max_characters_per_line' => :'Integer',
193
+ :'office_math_export_mode' => :'String',
188
194
  :'preserve_table_layout' => :'BOOLEAN',
189
195
  :'simplify_list_labels' => :'BOOLEAN',
190
196
  :'save_format' => :'String'
@@ -277,6 +283,10 @@ module AsposeWordsCloud
277
283
  self.max_characters_per_line = attributes[:'MaxCharactersPerLine']
278
284
  end
279
285
 
286
+ if attributes.key?(:'OfficeMathExportMode')
287
+ self.office_math_export_mode = attributes[:'OfficeMathExportMode']
288
+ end
289
+
280
290
  if attributes.key?(:'PreserveTableLayout')
281
291
  self.preserve_table_layout = attributes[:'PreserveTableLayout']
282
292
  end
@@ -299,6 +309,8 @@ module AsposeWordsCloud
299
309
  return false unless iml_rendering_mode_validator.valid?(@iml_rendering_mode)
300
310
  export_headers_footers_mode_validator = EnumAttributeValidator.new('String', ["None", "PrimaryOnly", "AllAtEnd"])
301
311
  return false unless export_headers_footers_mode_validator.valid?(@export_headers_footers_mode)
312
+ office_math_export_mode_validator = EnumAttributeValidator.new('String', ["Text", "Latex"])
313
+ return false unless office_math_export_mode_validator.valid?(@office_math_export_mode)
302
314
 
303
315
  return true
304
316
  end
@@ -373,6 +385,20 @@ module AsposeWordsCloud
373
385
  end
374
386
  end
375
387
 
388
+ # Custom attribute writer method checking allowed values (enum).
389
+ # @param [Object] office_math_export_mode Object to be assigned
390
+ def office_math_export_mode=(office_math_export_mode)
391
+ validator = EnumAttributeValidator.new('String', ["Text", "Latex"])
392
+ if office_math_export_mode.to_i == 0
393
+ unless validator.valid?(office_math_export_mode)
394
+ raise ArgumentError, "invalid value for 'office_math_export_mode', must be one of #{validator.allowable_values}."
395
+ end
396
+ @office_math_export_mode = office_math_export_mode
397
+ else
398
+ @office_math_export_mode = validator.allowable_values[office_math_export_mode.to_i]
399
+ end
400
+ end
401
+
376
402
 
377
403
  # Checks equality by comparing each attribute.
378
404
  # @param [Object] Object to be compared
@@ -398,6 +424,7 @@ module AsposeWordsCloud
398
424
  paragraph_break == other.paragraph_break &&
399
425
  add_bidi_marks == other.add_bidi_marks &&
400
426
  max_characters_per_line == other.max_characters_per_line &&
427
+ office_math_export_mode == other.office_math_export_mode &&
401
428
  preserve_table_layout == other.preserve_table_layout &&
402
429
  simplify_list_labels == other.simplify_list_labels &&
403
430
  save_format == other.save_format
@@ -412,7 +439,7 @@ module AsposeWordsCloud
412
439
  # Calculates hash code according to all attributes.
413
440
  # @return [Fixnum] Hash code
414
441
  def hash
415
- [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_ambiguous_text_font, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, zip_output, encoding, export_headers_footers_mode, force_page_breaks, paragraph_break, add_bidi_marks, max_characters_per_line, preserve_table_layout, simplify_list_labels, save_format].hash
442
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_ambiguous_text_font, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, zip_output, encoding, export_headers_footers_mode, force_page_breaks, paragraph_break, add_bidi_marks, max_characters_per_line, office_math_export_mode, preserve_table_layout, simplify_list_labels, save_format].hash
416
443
  end
417
444
 
418
445
  # Builds the object from hash
@@ -64,7 +64,7 @@ module AsposeWordsCloud
64
64
  attr_accessor :update_ambiguous_text_font
65
65
 
66
66
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
67
- # Default value is false.
67
+ # The default value is false.
68
68
  attr_accessor :update_created_time_property
69
69
 
70
70
  # Gets or sets a value indicating whether fields should be updated before saving the document to a fixed page format. The default value is true.
@@ -162,7 +162,7 @@ module AsposeWordsCloud
162
162
  attr_accessor :use_gdi_emf_renderer
163
163
 
164
164
  # Gets or sets the threshold that determines the value of the binarization error in the Floyd-Steinberg method. when ImageBinarizationMethod is ImageBinarizationMethod.FloydSteinbergDithering.
165
- # Default value is 128.
165
+ # The default value is 128.
166
166
  attr_accessor :threshold_for_floyd_steinberg_dithering
167
167
 
168
168
  # Gets or sets the method used while converting images to 1 bpp format.
@@ -64,7 +64,7 @@ module AsposeWordsCloud
64
64
  attr_accessor :update_ambiguous_text_font
65
65
 
66
66
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
67
- # Default value is false.
67
+ # The default value is false.
68
68
  attr_accessor :update_created_time_property
69
69
 
70
70
  # Gets or sets a value indicating whether fields should be updated before saving the document to a fixed page format. The default value is true.
@@ -64,7 +64,7 @@ module AsposeWordsCloud
64
64
  attr_accessor :update_ambiguous_text_font
65
65
 
66
66
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
67
- # Default value is false.
67
+ # The default value is false.
68
68
  attr_accessor :update_created_time_property
69
69
 
70
70
  # Gets or sets a value indicating whether fields should be updated before saving the document to a fixed page format. The default value is true.
@@ -64,7 +64,7 @@ module AsposeWordsCloud
64
64
  attr_accessor :update_ambiguous_text_font
65
65
 
66
66
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
67
- # Default value is false.
67
+ # The default value is false.
68
68
  attr_accessor :update_created_time_property
69
69
 
70
70
  # Gets or sets a value indicating whether fields should be updated before saving the document to a fixed page format. The default value is true.
@@ -89,7 +89,7 @@ module AsposeWordsCloud
89
89
  attr_accessor :images_folder_alias
90
90
 
91
91
  # Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
92
- # Default value is false.
92
+ # The default value is false.
93
93
  # By default, Aspose.Words mimics MS Word's behavior and doesn't replace backslash characters with yen signs in
94
94
  # generated HTML documents. However, previous versions of Aspose.Words performed such replacements in certain
95
95
  # scenarios. This flag enables backward compatibility with previous versions of Aspose.Words.
@@ -64,7 +64,7 @@ module AsposeWordsCloud
64
64
  attr_accessor :update_ambiguous_text_font
65
65
 
66
66
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
67
- # Default value is false.
67
+ # The default value is false.
68
68
  attr_accessor :update_created_time_property
69
69
 
70
70
  # Gets or sets a value indicating whether fields should be updated before saving the document to a fixed page format. The default value is true.
@@ -89,7 +89,7 @@ module AsposeWordsCloud
89
89
  attr_accessor :images_folder_alias
90
90
 
91
91
  # Gets or sets the flag that indicates whether backslash characters should be replaced with yen signs.
92
- # Default value is false.
92
+ # The default value is false.
93
93
  # By default, Aspose.Words mimics MS Word's behavior and doesn't replace backslash characters with yen signs in
94
94
  # generated HTML documents. However, previous versions of Aspose.Words performed such replacements in certain
95
95
  # scenarios. This flag enables backward compatibility with previous versions of Aspose.Words.
@@ -64,7 +64,7 @@ module AsposeWordsCloud
64
64
  attr_accessor :update_ambiguous_text_font
65
65
 
66
66
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
67
- # Default value is false.
67
+ # The default value is false.
68
68
  attr_accessor :update_created_time_property
69
69
 
70
70
  # Gets or sets a value indicating whether fields should be updated before saving the document to a fixed page format. The default value is true.
@@ -24,5 +24,5 @@
24
24
  # ------------------------------------------------------------------------------------
25
25
 
26
26
  module AsposeWordsCloud
27
- VERSION = "25.10".freeze
27
+ VERSION = "25.12".freeze
28
28
  end
@@ -46,8 +46,6 @@ require_relative 'aspose_words_cloud/models/border'
46
46
  require_relative 'aspose_words_cloud/models/border_response'
47
47
  require_relative 'aspose_words_cloud/models/borders_collection'
48
48
  require_relative 'aspose_words_cloud/models/borders_response'
49
- require_relative 'aspose_words_cloud/models/classification_response'
50
- require_relative 'aspose_words_cloud/models/classification_result'
51
49
  require_relative 'aspose_words_cloud/models/comment'
52
50
  require_relative 'aspose_words_cloud/models/comment_insert'
53
51
  require_relative 'aspose_words_cloud/models/comment_link'
@@ -316,9 +314,6 @@ require_relative 'aspose_words_cloud/models/requests/apply_style_to_document_ele
316
314
  require_relative 'aspose_words_cloud/models/requests/apply_style_to_document_element_online_request'
317
315
  require_relative 'aspose_words_cloud/models/requests/build_report_request'
318
316
  require_relative 'aspose_words_cloud/models/requests/build_report_online_request'
319
- require_relative 'aspose_words_cloud/models/requests/classify_request'
320
- require_relative 'aspose_words_cloud/models/requests/classify_document_request'
321
- require_relative 'aspose_words_cloud/models/requests/classify_document_online_request'
322
317
  require_relative 'aspose_words_cloud/models/requests/compare_document_request'
323
318
  require_relative 'aspose_words_cloud/models/requests/compare_document_online_request'
324
319
  require_relative 'aspose_words_cloud/models/requests/compress_document_request'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_words_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '25.10'
4
+ version: '25.12'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-10 00:00:00.000000000 Z
11
+ date: 2025-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -104,8 +104,6 @@ files:
104
104
  - lib/aspose_words_cloud/models/border_response.rb
105
105
  - lib/aspose_words_cloud/models/borders_collection.rb
106
106
  - lib/aspose_words_cloud/models/borders_response.rb
107
- - lib/aspose_words_cloud/models/classification_response.rb
108
- - lib/aspose_words_cloud/models/classification_result.rb
109
107
  - lib/aspose_words_cloud/models/comment.rb
110
108
  - lib/aspose_words_cloud/models/comment_insert.rb
111
109
  - lib/aspose_words_cloud/models/comment_link.rb
@@ -288,9 +286,6 @@ files:
288
286
  - lib/aspose_words_cloud/models/requests/batch_part_request.rb
289
287
  - lib/aspose_words_cloud/models/requests/build_report_online_request.rb
290
288
  - lib/aspose_words_cloud/models/requests/build_report_request.rb
291
- - lib/aspose_words_cloud/models/requests/classify_document_online_request.rb
292
- - lib/aspose_words_cloud/models/requests/classify_document_request.rb
293
- - lib/aspose_words_cloud/models/requests/classify_request.rb
294
289
  - lib/aspose_words_cloud/models/requests/compare_document_online_request.rb
295
290
  - lib/aspose_words_cloud/models/requests/compare_document_request.rb
296
291
  - lib/aspose_words_cloud/models/requests/compress_document_online_request.rb
@@ -1,246 +0,0 @@
1
- # ------------------------------------------------------------------------------------
2
- # <copyright company="Aspose" file="classification_response.rb">
3
- # Copyright (c) 2025 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
- # The REST response with data on multi-class text classification.
31
- # This response is returned by the Service when handling "PUT https://api.aspose.cloud/v4.0/words/classify" REST API requests.
32
- class ClassificationResponse
33
- # Gets or sets the request Id.
34
- attr_accessor :request_id
35
-
36
- # Gets or sets the best class name.
37
- attr_accessor :best_class_name
38
-
39
- # Gets or sets the best class probability.
40
- attr_accessor :best_class_probability
41
-
42
- # Gets or sets the array of best classes results.
43
- attr_accessor :best_results
44
- # Attribute mapping from ruby-style variable name to JSON key.
45
- def self.attribute_map
46
- {
47
- :'request_id' => :'RequestId',
48
- :'best_class_name' => :'BestClassName',
49
- :'best_class_probability' => :'BestClassProbability',
50
- :'best_results' => :'BestResults'
51
- }
52
- end
53
-
54
- # Attribute type mapping.
55
- def self.swagger_types
56
- {
57
- :'request_id' => :'String',
58
- :'best_class_name' => :'String',
59
- :'best_class_probability' => :'Float',
60
- :'best_results' => :'Array<ClassificationResult>'
61
- }
62
- end
63
-
64
- # Initializes the object
65
- # @param [Hash] attributes Model attributes in the form of hash
66
- def initialize(attributes = {})
67
- return unless attributes.is_a?(Hash)
68
-
69
- # convert string to symbol for hash key
70
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
71
-
72
- if attributes.key?(:'RequestId')
73
- self.request_id = attributes[:'RequestId']
74
- end
75
-
76
- if attributes.key?(:'BestClassName')
77
- self.best_class_name = attributes[:'BestClassName']
78
- end
79
-
80
- if attributes.key?(:'BestClassProbability')
81
- self.best_class_probability = attributes[:'BestClassProbability']
82
- end
83
-
84
- if attributes.key?(:'BestResults')
85
- if (value = attributes[:'BestResults']).is_a?(Array)
86
- self.best_results = value
87
- end
88
- end
89
- end
90
-
91
- # Check to see if the all the properties in the model are valid
92
- # @return true if the model is valid
93
- def valid?
94
- return true
95
- end
96
-
97
- # Checks equality by comparing each attribute.
98
- # @param [Object] Object to be compared
99
- def ==(other)
100
- return true if self.equal?(other)
101
- self.class == other.class &&
102
- request_id == other.request_id &&
103
- best_class_name == other.best_class_name &&
104
- best_class_probability == other.best_class_probability &&
105
- best_results == other.best_results
106
- end
107
-
108
- # @see the `==` method
109
- # @param [Object] Object to be compared
110
- def eql?(other)
111
- self == other
112
- end
113
-
114
- # Calculates hash code according to all attributes.
115
- # @return [Fixnum] Hash code
116
- def hash
117
- [request_id, best_class_name, best_class_probability, best_results].hash
118
- end
119
-
120
- # Builds the object from hash
121
- # @param [Hash] attributes Model attributes in the form of hash
122
- # @return [Object] Returns the model itself
123
- def build_from_hash(attributes)
124
- return nil unless attributes.is_a?(Hash)
125
- self.class.swagger_types.each_pair do |key, type|
126
- if type =~ /\AArray<(.*)>/i
127
- # check to ensure the input is an array given that the the attribute
128
- # is documented as an array but the input is not
129
- if attributes[self.class.attribute_map[key]].is_a?(Array)
130
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
131
- end
132
- elsif !attributes[self.class.attribute_map[key]].nil?
133
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
134
- end
135
- # or else data not found in attributes(hash), not an issue as the data can be optional
136
- end
137
-
138
- self
139
- end
140
-
141
- # Deserializes the data based on type
142
- # @param string type Data type
143
- # @param string value Value to be deserialized
144
- # @return [Object] Deserialized data
145
- def _deserialize(type, value)
146
- case type.to_sym
147
- when :DateTime
148
- Time.at(/\d/.match(value)[0].to_f).to_datetime
149
- when :Date
150
- Time.at(/\d/.match(value)[0].to_f).to_date
151
- when :String
152
- value.to_s
153
- when :Integer
154
- value.to_i
155
- when :Float
156
- value.to_f
157
- when :BOOLEAN
158
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
159
- true
160
- else
161
- false
162
- end
163
- when :Object
164
- # generic object (usually a Hash), return directly
165
- value
166
- when /\AArray<(?<inner_type>.+)>\z/
167
- inner_type = Regexp.last_match[:inner_type]
168
- value.map { |v| _deserialize(inner_type, v) }
169
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
170
- k_type = Regexp.last_match[:k_type]
171
- v_type = Regexp.last_match[:v_type]
172
- {}.tap do |hash|
173
- value.each do |k, v|
174
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
175
- end
176
- end
177
- else
178
- # model
179
- if value[:'$type']
180
- type = value[:'$type'][0..-4]
181
- end
182
-
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
- def collectFilesContent(resultFilesContent)
231
- end
232
-
233
- def validate()
234
- raise ArgumentError, 'Property best_class_probability in ClassificationResponse is required.' if self.best_class_probability.nil?
235
- unless self.best_results.nil?
236
- for elementBestResults in self.best_results
237
- unless elementBestResults.nil?
238
- elementBestResults.validate
239
- end
240
- end
241
- end
242
-
243
- end
244
-
245
- end
246
- end