groupdocs_conversion_cloud 25.4 → 25.5

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 (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +48 -11
  3. data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +176 -18
  4. data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +48 -11
  5. data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +176 -18
  6. data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +48 -11
  7. data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +176 -18
  8. data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +176 -18
  9. data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +176 -18
  10. data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +176 -18
  11. data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +176 -18
  12. data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +176 -18
  13. data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +176 -18
  14. data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +176 -18
  15. data/lib/groupdocs_conversion_cloud/models/presentation_load_options.rb +176 -18
  16. data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +48 -11
  17. data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +48 -11
  18. data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +48 -11
  19. data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +48 -11
  20. data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +48 -11
  21. data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +48 -11
  22. data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +48 -11
  23. data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +48 -11
  24. data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +48 -11
  25. data/lib/groupdocs_conversion_cloud/version.rb +1 -1
  26. metadata +2 -2
@@ -58,8 +58,29 @@ module GroupDocsConversionCloud
58
58
  # Set password to unprotect protected document
59
59
  attr_accessor :password
60
60
 
61
- # Hide comments
62
- attr_accessor :hide_comments
61
+ # Represents the way comments are printed with the sheet. Default is PrintNoComments.
62
+ attr_accessor :print_comments
63
+ class EnumAttributeValidator
64
+ attr_reader :datatype
65
+ attr_reader :allowable_values
66
+
67
+ def initialize(datatype, allowable_values)
68
+ @allowable_values = allowable_values.map do |value|
69
+ case datatype.to_s
70
+ when /Integer/i
71
+ value.to_i
72
+ when /Float/i
73
+ value.to_f
74
+ else
75
+ value
76
+ end
77
+ end
78
+ end
79
+
80
+ def valid?(value)
81
+ !value || allowable_values.include?(value)
82
+ end
83
+ end
63
84
 
64
85
  # Attribute mapping from ruby-style variable name to JSON key.
65
86
  def self.attribute_map
@@ -73,7 +94,7 @@ module GroupDocsConversionCloud
73
94
  :'convert_range' => :'ConvertRange',
74
95
  :'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
75
96
  :'password' => :'Password',
76
- :'hide_comments' => :'HideComments'
97
+ :'print_comments' => :'PrintComments'
77
98
  }
78
99
  end
79
100
 
@@ -89,7 +110,7 @@ module GroupDocsConversionCloud
89
110
  :'convert_range' => :'String',
90
111
  :'skip_empty_rows_and_columns' => :'BOOLEAN',
91
112
  :'password' => :'String',
92
- :'hide_comments' => :'BOOLEAN'
113
+ :'print_comments' => :'String'
93
114
  }
94
115
  end
95
116
 
@@ -139,8 +160,8 @@ module GroupDocsConversionCloud
139
160
  self.password = attributes[:'Password']
140
161
  end
141
162
 
142
- if attributes.key?(:'HideComments')
143
- self.hide_comments = attributes[:'HideComments']
163
+ if attributes.key?(:'PrintComments')
164
+ self.print_comments = attributes[:'PrintComments']
144
165
  end
145
166
 
146
167
  end
@@ -165,8 +186,8 @@ module GroupDocsConversionCloud
165
186
  invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
166
187
  end
167
188
 
168
- if @hide_comments.nil?
169
- invalid_properties.push("invalid value for 'hide_comments', hide_comments cannot be nil.")
189
+ if @print_comments.nil?
190
+ invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
170
191
  end
171
192
 
172
193
  return invalid_properties
@@ -179,10 +200,26 @@ module GroupDocsConversionCloud
179
200
  return false if @show_hidden_sheets.nil?
180
201
  return false if @one_page_per_sheet.nil?
181
202
  return false if @skip_empty_rows_and_columns.nil?
182
- return false if @hide_comments.nil?
203
+ return false if @print_comments.nil?
204
+ print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
205
+ return false unless print_comments_validator.valid?(@print_comments)
183
206
  return true
184
207
  end
185
208
 
209
+ # Custom attribute writer method checking allowed values (enum).
210
+ # @param [Object] print_comments Object to be assigned
211
+ def print_comments=(print_comments)
212
+ validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
213
+ if print_comments.to_i == 0
214
+ unless validator.valid?(print_comments)
215
+ raise ArgumentError, "invalid value for 'print_comments', must be one of #{validator.allowable_values}."
216
+ end
217
+ @print_comments = print_comments
218
+ else
219
+ @print_comments = validator.allowable_values[print_comments.to_i]
220
+ end
221
+ end
222
+
186
223
  # Checks equality by comparing each attribute.
187
224
  # @param [Object] Object to be compared
188
225
  def ==(other)
@@ -197,7 +234,7 @@ module GroupDocsConversionCloud
197
234
  convert_range == other.convert_range &&
198
235
  skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
199
236
  password == other.password &&
200
- hide_comments == other.hide_comments
237
+ print_comments == other.print_comments
201
238
  end
202
239
 
203
240
  # @see the `==` method
@@ -209,7 +246,7 @@ module GroupDocsConversionCloud
209
246
  # Calculates hash code according to all attributes.
210
247
  # @return [Fixnum] Hash code
211
248
  def hash
212
- [format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, hide_comments].hash
249
+ [format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments].hash
213
250
  end
214
251
 
215
252
  # Downcases first letter.
@@ -58,8 +58,29 @@ module GroupDocsConversionCloud
58
58
  # Set password to unprotect protected document
59
59
  attr_accessor :password
60
60
 
61
- # Hide comments
62
- attr_accessor :hide_comments
61
+ # Represents the way comments are printed with the sheet. Default is PrintNoComments.
62
+ attr_accessor :print_comments
63
+ class EnumAttributeValidator
64
+ attr_reader :datatype
65
+ attr_reader :allowable_values
66
+
67
+ def initialize(datatype, allowable_values)
68
+ @allowable_values = allowable_values.map do |value|
69
+ case datatype.to_s
70
+ when /Integer/i
71
+ value.to_i
72
+ when /Float/i
73
+ value.to_f
74
+ else
75
+ value
76
+ end
77
+ end
78
+ end
79
+
80
+ def valid?(value)
81
+ !value || allowable_values.include?(value)
82
+ end
83
+ end
63
84
 
64
85
  # Attribute mapping from ruby-style variable name to JSON key.
65
86
  def self.attribute_map
@@ -73,7 +94,7 @@ module GroupDocsConversionCloud
73
94
  :'convert_range' => :'ConvertRange',
74
95
  :'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
75
96
  :'password' => :'Password',
76
- :'hide_comments' => :'HideComments'
97
+ :'print_comments' => :'PrintComments'
77
98
  }
78
99
  end
79
100
 
@@ -89,7 +110,7 @@ module GroupDocsConversionCloud
89
110
  :'convert_range' => :'String',
90
111
  :'skip_empty_rows_and_columns' => :'BOOLEAN',
91
112
  :'password' => :'String',
92
- :'hide_comments' => :'BOOLEAN'
113
+ :'print_comments' => :'String'
93
114
  }
94
115
  end
95
116
 
@@ -139,8 +160,8 @@ module GroupDocsConversionCloud
139
160
  self.password = attributes[:'Password']
140
161
  end
141
162
 
142
- if attributes.key?(:'HideComments')
143
- self.hide_comments = attributes[:'HideComments']
163
+ if attributes.key?(:'PrintComments')
164
+ self.print_comments = attributes[:'PrintComments']
144
165
  end
145
166
 
146
167
  end
@@ -165,8 +186,8 @@ module GroupDocsConversionCloud
165
186
  invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
166
187
  end
167
188
 
168
- if @hide_comments.nil?
169
- invalid_properties.push("invalid value for 'hide_comments', hide_comments cannot be nil.")
189
+ if @print_comments.nil?
190
+ invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
170
191
  end
171
192
 
172
193
  return invalid_properties
@@ -179,10 +200,26 @@ module GroupDocsConversionCloud
179
200
  return false if @show_hidden_sheets.nil?
180
201
  return false if @one_page_per_sheet.nil?
181
202
  return false if @skip_empty_rows_and_columns.nil?
182
- return false if @hide_comments.nil?
203
+ return false if @print_comments.nil?
204
+ print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
205
+ return false unless print_comments_validator.valid?(@print_comments)
183
206
  return true
184
207
  end
185
208
 
209
+ # Custom attribute writer method checking allowed values (enum).
210
+ # @param [Object] print_comments Object to be assigned
211
+ def print_comments=(print_comments)
212
+ validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
213
+ if print_comments.to_i == 0
214
+ unless validator.valid?(print_comments)
215
+ raise ArgumentError, "invalid value for 'print_comments', must be one of #{validator.allowable_values}."
216
+ end
217
+ @print_comments = print_comments
218
+ else
219
+ @print_comments = validator.allowable_values[print_comments.to_i]
220
+ end
221
+ end
222
+
186
223
  # Checks equality by comparing each attribute.
187
224
  # @param [Object] Object to be compared
188
225
  def ==(other)
@@ -197,7 +234,7 @@ module GroupDocsConversionCloud
197
234
  convert_range == other.convert_range &&
198
235
  skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
199
236
  password == other.password &&
200
- hide_comments == other.hide_comments
237
+ print_comments == other.print_comments
201
238
  end
202
239
 
203
240
  # @see the `==` method
@@ -209,7 +246,7 @@ module GroupDocsConversionCloud
209
246
  # Calculates hash code according to all attributes.
210
247
  # @return [Fixnum] Hash code
211
248
  def hash
212
- [format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, hide_comments].hash
249
+ [format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments].hash
213
250
  end
214
251
 
215
252
  # Downcases first letter.
@@ -58,8 +58,29 @@ module GroupDocsConversionCloud
58
58
  # Set password to unprotect protected document
59
59
  attr_accessor :password
60
60
 
61
- # Hide comments
62
- attr_accessor :hide_comments
61
+ # Represents the way comments are printed with the sheet. Default is PrintNoComments.
62
+ attr_accessor :print_comments
63
+ class EnumAttributeValidator
64
+ attr_reader :datatype
65
+ attr_reader :allowable_values
66
+
67
+ def initialize(datatype, allowable_values)
68
+ @allowable_values = allowable_values.map do |value|
69
+ case datatype.to_s
70
+ when /Integer/i
71
+ value.to_i
72
+ when /Float/i
73
+ value.to_f
74
+ else
75
+ value
76
+ end
77
+ end
78
+ end
79
+
80
+ def valid?(value)
81
+ !value || allowable_values.include?(value)
82
+ end
83
+ end
63
84
 
64
85
  # Attribute mapping from ruby-style variable name to JSON key.
65
86
  def self.attribute_map
@@ -73,7 +94,7 @@ module GroupDocsConversionCloud
73
94
  :'convert_range' => :'ConvertRange',
74
95
  :'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
75
96
  :'password' => :'Password',
76
- :'hide_comments' => :'HideComments'
97
+ :'print_comments' => :'PrintComments'
77
98
  }
78
99
  end
79
100
 
@@ -89,7 +110,7 @@ module GroupDocsConversionCloud
89
110
  :'convert_range' => :'String',
90
111
  :'skip_empty_rows_and_columns' => :'BOOLEAN',
91
112
  :'password' => :'String',
92
- :'hide_comments' => :'BOOLEAN'
113
+ :'print_comments' => :'String'
93
114
  }
94
115
  end
95
116
 
@@ -139,8 +160,8 @@ module GroupDocsConversionCloud
139
160
  self.password = attributes[:'Password']
140
161
  end
141
162
 
142
- if attributes.key?(:'HideComments')
143
- self.hide_comments = attributes[:'HideComments']
163
+ if attributes.key?(:'PrintComments')
164
+ self.print_comments = attributes[:'PrintComments']
144
165
  end
145
166
 
146
167
  end
@@ -165,8 +186,8 @@ module GroupDocsConversionCloud
165
186
  invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
166
187
  end
167
188
 
168
- if @hide_comments.nil?
169
- invalid_properties.push("invalid value for 'hide_comments', hide_comments cannot be nil.")
189
+ if @print_comments.nil?
190
+ invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
170
191
  end
171
192
 
172
193
  return invalid_properties
@@ -179,10 +200,26 @@ module GroupDocsConversionCloud
179
200
  return false if @show_hidden_sheets.nil?
180
201
  return false if @one_page_per_sheet.nil?
181
202
  return false if @skip_empty_rows_and_columns.nil?
182
- return false if @hide_comments.nil?
203
+ return false if @print_comments.nil?
204
+ print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
205
+ return false unless print_comments_validator.valid?(@print_comments)
183
206
  return true
184
207
  end
185
208
 
209
+ # Custom attribute writer method checking allowed values (enum).
210
+ # @param [Object] print_comments Object to be assigned
211
+ def print_comments=(print_comments)
212
+ validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
213
+ if print_comments.to_i == 0
214
+ unless validator.valid?(print_comments)
215
+ raise ArgumentError, "invalid value for 'print_comments', must be one of #{validator.allowable_values}."
216
+ end
217
+ @print_comments = print_comments
218
+ else
219
+ @print_comments = validator.allowable_values[print_comments.to_i]
220
+ end
221
+ end
222
+
186
223
  # Checks equality by comparing each attribute.
187
224
  # @param [Object] Object to be compared
188
225
  def ==(other)
@@ -197,7 +234,7 @@ module GroupDocsConversionCloud
197
234
  convert_range == other.convert_range &&
198
235
  skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
199
236
  password == other.password &&
200
- hide_comments == other.hide_comments
237
+ print_comments == other.print_comments
201
238
  end
202
239
 
203
240
  # @see the `==` method
@@ -209,7 +246,7 @@ module GroupDocsConversionCloud
209
246
  # Calculates hash code according to all attributes.
210
247
  # @return [Fixnum] Hash code
211
248
  def hash
212
- [format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, hide_comments].hash
249
+ [format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments].hash
213
250
  end
214
251
 
215
252
  # Downcases first letter.
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsConversionCloud
28
- VERSION = "25.4".freeze
28
+ VERSION = "25.5".freeze
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_conversion_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '25.4'
4
+ version: '25.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-22 00:00:00.000000000 Z
11
+ date: 2025-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday