aspose_cells_cloud 25.2 → 25.4

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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +59 -62
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +66 -0
  4. data/lib/aspose_cells_cloud/models/chart_points.rb +1 -1
  5. data/lib/aspose_cells_cloud/models/charts.rb +1 -1
  6. data/lib/aspose_cells_cloud/models/check_external_reference_options.rb +258 -0
  7. data/lib/aspose_cells_cloud/models/check_formula_error_options.rb +258 -0
  8. data/lib/aspose_cells_cloud/models/checked_external_reference_response.rb +258 -0
  9. data/lib/aspose_cells_cloud/models/checked_formula_errors_response.rb +246 -0
  10. data/lib/aspose_cells_cloud/models/convert_workbook_options.rb +282 -0
  11. data/lib/aspose_cells_cloud/models/data_cleansing.rb +1 -1
  12. data/lib/aspose_cells_cloud/models/dif_save_options.rb +64 -4
  13. data/lib/aspose_cells_cloud/models/docx_save_options.rb +28 -4
  14. data/lib/aspose_cells_cloud/models/files_result.rb +1 -1
  15. data/lib/aspose_cells_cloud/models/html_save_options.rb +64 -4
  16. data/lib/aspose_cells_cloud/models/image_save_options.rb +64 -4
  17. data/lib/aspose_cells_cloud/models/json_save_options.rb +64 -4
  18. data/lib/aspose_cells_cloud/models/m_html_save_options.rb +392 -8
  19. data/lib/aspose_cells_cloud/models/markdown_save_options.rb +64 -4
  20. data/lib/aspose_cells_cloud/models/ods_save_options.rb +100 -4
  21. data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +64 -4
  22. data/lib/aspose_cells_cloud/models/page_sections_response.rb +1 -1
  23. data/lib/aspose_cells_cloud/models/paginated_save_options.rb +28 -4
  24. data/lib/aspose_cells_cloud/models/pdf_save_options.rb +64 -4
  25. data/lib/aspose_cells_cloud/models/pptx_save_options.rb +28 -4
  26. data/lib/aspose_cells_cloud/models/save_files_to_cloud_result.rb +1 -1
  27. data/lib/aspose_cells_cloud/models/save_options.rb +64 -4
  28. data/lib/aspose_cells_cloud/models/shapes.rb +1 -1
  29. data/lib/aspose_cells_cloud/models/specify_cells_object.rb +234 -0
  30. data/lib/aspose_cells_cloud/models/spreadsheet_m_l2003_save_options.rb +64 -4
  31. data/lib/aspose_cells_cloud/models/sql_script_save_options.rb +64 -4
  32. data/lib/aspose_cells_cloud/models/styles.rb +1 -1
  33. data/lib/aspose_cells_cloud/models/styles_response.rb +234 -0
  34. data/lib/aspose_cells_cloud/models/svg_save_options.rb +208 -4
  35. data/lib/aspose_cells_cloud/models/txt_save_options.rb +64 -4
  36. data/lib/aspose_cells_cloud/models/workbook.rb +1 -1
  37. data/lib/aspose_cells_cloud/models/xls_save_options.rb +88 -4
  38. data/lib/aspose_cells_cloud/models/xlsb_save_options.rb +88 -4
  39. data/lib/aspose_cells_cloud/models/xps_save_options.rb +28 -4
  40. data/lib/aspose_cells_cloud/requests/add_picture_in_cell_request.rb +149 -0
  41. data/lib/aspose_cells_cloud/requests/check_workbook_formula_errors_request.rb +103 -0
  42. data/lib/aspose_cells_cloud/requests/check_wrokbook_external_reference_request.rb +103 -0
  43. data/lib/aspose_cells_cloud/requests/get_all_styles_request.rb +117 -0
  44. data/lib/aspose_cells_cloud/requests/get_workbook_request.rb +9 -2
  45. data/lib/aspose_cells_cloud/requests/post_convert_workbook_request.rb +111 -0
  46. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_docx_request.rb +9 -2
  47. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_html_request.rb +9 -2
  48. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_json_request.rb +9 -2
  49. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_markdown_request.rb +9 -2
  50. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pdf_request.rb +9 -2
  51. data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pptx_request.rb +9 -2
  52. data/lib/aspose_cells_cloud/requests/post_convert_worksheet_to_image_request.rb +10 -2
  53. data/lib/aspose_cells_cloud/requests/post_export_request.rb +9 -2
  54. data/lib/aspose_cells_cloud/requests/post_import_data_request.rb +9 -2
  55. data/lib/aspose_cells_cloud/requests/post_workbook_save_as_request.rb +9 -2
  56. data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_to_image_request.rb +1 -1
  57. data/lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb +13 -2
  58. data/lib/aspose_cells_cloud/version.rb +1 -1
  59. data/lib/aspose_cells_cloud.rb +12 -0
  60. data/spec/api/batch_controller_spec.rb +23 -0
  61. data/spec/api/pivot_tables_controller_spec.rb +1 -4
  62. data/spec/conversion/conversion_json_spec.rb +0 -22
  63. data/spec/conversion/conversion_png_spec.rb +0 -22
  64. data/spec/conversion/conversion_spec.rb +18 -104
  65. data/spec/document/light_cells_spec.rb +54 -428
  66. data/spec/spec_helper.rb +3 -3
  67. metadata +14 -2
@@ -0,0 +1,246 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="CheckedFormulaErrorsResponserb.cs">
4
+ Copyright (c) 2025 Aspose.Cells Cloud
5
+ </copyright>
6
+ <summary>
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+ </summary>
25
+ --------------------------------------------------------------------------------------------------------------------
26
+ =end
27
+
28
+
29
+ require 'date'
30
+
31
+ module AsposeCellsCloud
32
+
33
+ class CheckedFormulaErrorsResponse
34
+ #
35
+ attr_accessor :is_formulas_errors
36
+ #
37
+ attr_accessor :formulas_errors
38
+ #
39
+ attr_accessor :code
40
+ #
41
+ attr_accessor :status
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'is_formulas_errors' => :'IsFormulasErrors',
47
+ :'formulas_errors' => :'FormulasErrors',
48
+ :'code' => :'Code',
49
+ :'status' => :'Status'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.swagger_types
55
+ {
56
+ :'is_formulas_errors' => :'BOOLEAN',
57
+ :'formulas_errors' => :'Array<String>',
58
+ :'code' => :'Integer',
59
+ :'status' => :'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.has_key?(:'IsFormulasErrors')
72
+ self.is_formulas_errors = attributes[:'IsFormulasErrors']
73
+ end
74
+ if attributes.has_key?(:'FormulasErrors')
75
+ self.formulas_errors = attributes[:'FormulasErrors']
76
+ end
77
+ if attributes.has_key?(:'Code')
78
+ self.code = attributes[:'Code']
79
+ end
80
+ if attributes.has_key?(:'Status')
81
+ self.status = attributes[:'Status']
82
+ end
83
+
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properies with the reasons
88
+ def list_invalid_properties
89
+ invalid_properties = Array.new
90
+ if @is_formulas_errors.nil?
91
+ invalid_properties.push("invalid value for 'is_formulas_errors', is_formulas_errors cannot be nil.")
92
+ end
93
+ if @formulas_errors.nil?
94
+ invalid_properties.push("invalid value for 'formulas_errors', formulas_errors cannot be nil.")
95
+ end
96
+ if @code.nil?
97
+ invalid_properties.push("invalid value for 'code', code cannot be nil.")
98
+ end
99
+ if @status.nil?
100
+ invalid_properties.push("invalid value for 'status', status cannot be nil.")
101
+ end
102
+
103
+ return invalid_properties
104
+ end
105
+
106
+ # Check to see if the all the properties in the model are valid
107
+ # @return true if the model is valid
108
+ def valid?
109
+ return false if @is_formulas_errors.nil?
110
+ return false if @formulas_errors.nil?
111
+ return false if @code.nil?
112
+ return false if @status.nil?
113
+ return true
114
+ end
115
+
116
+ # Checks equality by comparing each attribute.
117
+ # @param [Object] Object to be compared
118
+ def ==(o)
119
+ return true if self.equal?(o)
120
+ self.class == o.class &&
121
+ is_formulas_errors == o.is_formulas_errors &&
122
+ formulas_errors == o.formulas_errors &&
123
+ code == o.code &&
124
+ status == o.status
125
+ std_dev == o.std_dev
126
+ end
127
+
128
+ # @see the `==` method
129
+ # @param [Object] Object to be compared
130
+ def eql?(o)
131
+ self == o
132
+ end
133
+
134
+ # Calculates hash code according to all attributes.
135
+ # @return [Fixnum] Hash code
136
+ def hash
137
+ [ is_formulas_errors , formulas_errors , code , status ].hash
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def build_from_hash(attributes)
144
+ return nil unless attributes.is_a?(Hash)
145
+ self.class.swagger_types.each_pair do |key, type|
146
+ if type =~ /\AArray<(.*)>/i
147
+ # check to ensure the input is an array given that the the attribute
148
+ # is documented as an array but the input is not
149
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
150
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
151
+ end
152
+ elsif !attributes[self.class.attribute_map[key]].nil?
153
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
154
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
155
+ end
156
+
157
+ self
158
+ end
159
+
160
+ # Deserializes the data based on type
161
+ # @param string type Data type
162
+ # @param string value Value to be deserialized
163
+ # @return [Object] Deserialized data
164
+ def _deserialize(type, value)
165
+ case type.to_sym
166
+ when :DateTime
167
+ DateTime.parse(value)
168
+ when :Date
169
+ Date.parse(value)
170
+ when :String
171
+ value.to_s
172
+ when :Integer
173
+ value.to_i
174
+ when :Float
175
+ value.to_f
176
+ when :BOOLEAN
177
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
178
+ true
179
+ else
180
+ false
181
+ end
182
+ when :Object
183
+ # generic object (usually a Hash), return directly
184
+ value
185
+ when /\AArray<(?<inner_type>.+)>\z/
186
+ inner_type = Regexp.last_match[:inner_type]
187
+ value.map { |v| _deserialize(inner_type, v) }
188
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
189
+ k_type = Regexp.last_match[:k_type]
190
+ v_type = Regexp.last_match[:v_type]
191
+ {}.tap do |hash|
192
+ value.each do |k, v|
193
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
194
+ end
195
+ end
196
+ else # model
197
+ temp_model = AsposeCellsCloud.const_get(type).new
198
+ temp_model.build_from_hash(value)
199
+ end
200
+ end
201
+
202
+ # Returns the string representation of the object
203
+ # @return [String] String presentation of the object
204
+ def to_s
205
+ to_hash.to_s
206
+ end
207
+
208
+ # to_body is an alias to to_hash (backward compatibility)
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_body
211
+ to_hash
212
+ end
213
+
214
+ # Returns the object in the form of hash
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_hash
217
+ hash = {}
218
+ self.class.attribute_map.each_pair do |attr, param|
219
+ value = self.send(attr)
220
+ next if value.nil?
221
+ hash[param] = _to_hash(value)
222
+ end
223
+ hash
224
+ end
225
+
226
+ # Outputs non-array value in the form of hash
227
+ # For object, use to_hash. Otherwise, just return the value
228
+ # @param [Object] value Any valid value
229
+ # @return [Hash] Returns the value in the form of hash
230
+ def _to_hash(value)
231
+ if value.is_a?(Array)
232
+ value.compact.map{ |v| _to_hash(v) }
233
+ elsif value.is_a?(Hash)
234
+ {}.tap do |hash|
235
+ value.each { |k, v| hash[k] = _to_hash(v) }
236
+ end
237
+ elsif value.respond_to? :to_hash
238
+ value.to_hash
239
+ else
240
+ value
241
+ end
242
+ end
243
+
244
+ end
245
+
246
+ end
@@ -0,0 +1,282 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="ConvertWorkbookOptionsrb.cs">
4
+ Copyright (c) 2025 Aspose.Cells Cloud
5
+ </copyright>
6
+ <summary>
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+ </summary>
25
+ --------------------------------------------------------------------------------------------------------------------
26
+ =end
27
+
28
+
29
+ require 'date'
30
+
31
+ module AsposeCellsCloud
32
+
33
+ class ConvertWorkbookOptions
34
+ #The class has a public property named "Name" with a getter and setter method.
35
+ attr_accessor :name
36
+ #
37
+ attr_accessor :data_source
38
+ #
39
+ attr_accessor :file_info
40
+ #
41
+ attr_accessor :page_setup
42
+ #
43
+ attr_accessor :save_options
44
+ #
45
+ attr_accessor :convert_format
46
+ #
47
+ attr_accessor :check_excel_restriction
48
+
49
+ # Attribute mapping from ruby-style variable name to JSON key.
50
+ def self.attribute_map
51
+ {
52
+ :'name' => :'Name',
53
+ :'data_source' => :'DataSource',
54
+ :'file_info' => :'FileInfo',
55
+ :'page_setup' => :'PageSetup',
56
+ :'save_options' => :'SaveOptions',
57
+ :'convert_format' => :'ConvertFormat',
58
+ :'check_excel_restriction' => :'CheckExcelRestriction'
59
+ }
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.swagger_types
64
+ {
65
+ :'name' => :'String',
66
+ :'data_source' => :'DataSource',
67
+ :'file_info' => :'FileInfo',
68
+ :'page_setup' => :'PageSetup',
69
+ :'save_options' => :'SaveOptions',
70
+ :'convert_format' => :'String',
71
+ :'check_excel_restriction' => :'BOOLEAN'
72
+ }
73
+ end
74
+
75
+ # Initializes the object
76
+ # @param [Hash] attributes Model attributes in the form of hash
77
+ def initialize(attributes = {})
78
+ return unless attributes.is_a?(Hash)
79
+
80
+ # convert string to symbol for hash key
81
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
82
+
83
+ if attributes.has_key?(:'Name')
84
+ self.name = attributes[:'Name']
85
+ end
86
+ if attributes.has_key?(:'DataSource')
87
+ self.data_source = attributes[:'DataSource']
88
+ end
89
+ if attributes.has_key?(:'FileInfo')
90
+ self.file_info = attributes[:'FileInfo']
91
+ end
92
+ if attributes.has_key?(:'PageSetup')
93
+ self.page_setup = attributes[:'PageSetup']
94
+ end
95
+ if attributes.has_key?(:'SaveOptions')
96
+ self.save_options = attributes[:'SaveOptions']
97
+ end
98
+ if attributes.has_key?(:'ConvertFormat')
99
+ self.convert_format = attributes[:'ConvertFormat']
100
+ end
101
+ if attributes.has_key?(:'CheckExcelRestriction')
102
+ self.check_excel_restriction = attributes[:'CheckExcelRestriction']
103
+ end
104
+
105
+ end
106
+
107
+ # Show invalid properties with the reasons. Usually used together with valid?
108
+ # @return Array for valid properies with the reasons
109
+ def list_invalid_properties
110
+ invalid_properties = Array.new
111
+ if @name.nil?
112
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
113
+ end
114
+ if @data_source.nil?
115
+ invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
116
+ end
117
+ if @file_info.nil?
118
+ invalid_properties.push("invalid value for 'file_info', file_info cannot be nil.")
119
+ end
120
+ if @page_setup.nil?
121
+ invalid_properties.push("invalid value for 'page_setup', page_setup cannot be nil.")
122
+ end
123
+ if @save_options.nil?
124
+ invalid_properties.push("invalid value for 'save_options', save_options cannot be nil.")
125
+ end
126
+ if @convert_format.nil?
127
+ invalid_properties.push("invalid value for 'convert_format', convert_format cannot be nil.")
128
+ end
129
+ if @check_excel_restriction.nil?
130
+ invalid_properties.push("invalid value for 'check_excel_restriction', check_excel_restriction cannot be nil.")
131
+ end
132
+
133
+ return invalid_properties
134
+ end
135
+
136
+ # Check to see if the all the properties in the model are valid
137
+ # @return true if the model is valid
138
+ def valid?
139
+ return false if @name.nil?
140
+ return false if @data_source.nil?
141
+ return false if @file_info.nil?
142
+ return false if @page_setup.nil?
143
+ return false if @save_options.nil?
144
+ return false if @convert_format.nil?
145
+ return false if @check_excel_restriction.nil?
146
+ return true
147
+ end
148
+
149
+ # Checks equality by comparing each attribute.
150
+ # @param [Object] Object to be compared
151
+ def ==(o)
152
+ return true if self.equal?(o)
153
+ self.class == o.class &&
154
+ name == o.name &&
155
+ data_source == o.data_source &&
156
+ file_info == o.file_info &&
157
+ page_setup == o.page_setup &&
158
+ save_options == o.save_options &&
159
+ convert_format == o.convert_format &&
160
+ check_excel_restriction == o.check_excel_restriction
161
+ std_dev == o.std_dev
162
+ end
163
+
164
+ # @see the `==` method
165
+ # @param [Object] Object to be compared
166
+ def eql?(o)
167
+ self == o
168
+ end
169
+
170
+ # Calculates hash code according to all attributes.
171
+ # @return [Fixnum] Hash code
172
+ def hash
173
+ [ name , data_source , file_info , page_setup , save_options , convert_format , check_excel_restriction ].hash
174
+ end
175
+
176
+ # Builds the object from hash
177
+ # @param [Hash] attributes Model attributes in the form of hash
178
+ # @return [Object] Returns the model itself
179
+ def build_from_hash(attributes)
180
+ return nil unless attributes.is_a?(Hash)
181
+ self.class.swagger_types.each_pair do |key, type|
182
+ if type =~ /\AArray<(.*)>/i
183
+ # check to ensure the input is an array given that the the attribute
184
+ # is documented as an array but the input is not
185
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
186
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
187
+ end
188
+ elsif !attributes[self.class.attribute_map[key]].nil?
189
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
190
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
191
+ end
192
+
193
+ self
194
+ end
195
+
196
+ # Deserializes the data based on type
197
+ # @param string type Data type
198
+ # @param string value Value to be deserialized
199
+ # @return [Object] Deserialized data
200
+ def _deserialize(type, value)
201
+ case type.to_sym
202
+ when :DateTime
203
+ DateTime.parse(value)
204
+ when :Date
205
+ Date.parse(value)
206
+ when :String
207
+ value.to_s
208
+ when :Integer
209
+ value.to_i
210
+ when :Float
211
+ value.to_f
212
+ when :BOOLEAN
213
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
214
+ true
215
+ else
216
+ false
217
+ end
218
+ when :Object
219
+ # generic object (usually a Hash), return directly
220
+ value
221
+ when /\AArray<(?<inner_type>.+)>\z/
222
+ inner_type = Regexp.last_match[:inner_type]
223
+ value.map { |v| _deserialize(inner_type, v) }
224
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
225
+ k_type = Regexp.last_match[:k_type]
226
+ v_type = Regexp.last_match[:v_type]
227
+ {}.tap do |hash|
228
+ value.each do |k, v|
229
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
230
+ end
231
+ end
232
+ else # model
233
+ temp_model = AsposeCellsCloud.const_get(type).new
234
+ temp_model.build_from_hash(value)
235
+ end
236
+ end
237
+
238
+ # Returns the string representation of the object
239
+ # @return [String] String presentation of the object
240
+ def to_s
241
+ to_hash.to_s
242
+ end
243
+
244
+ # to_body is an alias to to_hash (backward compatibility)
245
+ # @return [Hash] Returns the object in the form of hash
246
+ def to_body
247
+ to_hash
248
+ end
249
+
250
+ # Returns the object in the form of hash
251
+ # @return [Hash] Returns the object in the form of hash
252
+ def to_hash
253
+ hash = {}
254
+ self.class.attribute_map.each_pair do |attr, param|
255
+ value = self.send(attr)
256
+ next if value.nil?
257
+ hash[param] = _to_hash(value)
258
+ end
259
+ hash
260
+ end
261
+
262
+ # Outputs non-array value in the form of hash
263
+ # For object, use to_hash. Otherwise, just return the value
264
+ # @param [Object] value Any valid value
265
+ # @return [Hash] Returns the value in the form of hash
266
+ def _to_hash(value)
267
+ if value.is_a?(Array)
268
+ value.compact.map{ |v| _to_hash(v) }
269
+ elsif value.is_a?(Hash)
270
+ {}.tap do |hash|
271
+ value.each { |k, v| hash[k] = _to_hash(v) }
272
+ end
273
+ elsif value.respond_to? :to_hash
274
+ value.to_hash
275
+ else
276
+ value
277
+ end
278
+ end
279
+
280
+ end
281
+
282
+ end
@@ -31,7 +31,7 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class DataCleansing
34
- #
34
+ #A property named "Ranges" of type IList Range with a default value of an empty List of Range objects.
35
35
  attr_accessor :ranges
36
36
  #Represents whether the data needs to be populated.
37
37
  attr_accessor :need_fill_data
@@ -47,6 +47,16 @@ module AsposeCellsCloud
47
47
  attr_accessor :sort_names
48
48
  #
49
49
  attr_accessor :validate_merged_areas
50
+ #
51
+ attr_accessor :merge_areas
52
+ #
53
+ attr_accessor :sort_external_names
54
+ #
55
+ attr_accessor :check_excel_restriction
56
+ #
57
+ attr_accessor :update_smart_art
58
+ #
59
+ attr_accessor :encrypt_document_properties
50
60
 
51
61
  # Attribute mapping from ruby-style variable name to JSON key.
52
62
  def self.attribute_map
@@ -58,7 +68,12 @@ module AsposeCellsCloud
58
68
  :'enable_http_compression' => :'EnableHTTPCompression',
59
69
  :'refresh_chart_cache' => :'RefreshChartCache',
60
70
  :'sort_names' => :'SortNames',
61
- :'validate_merged_areas' => :'ValidateMergedAreas'
71
+ :'validate_merged_areas' => :'ValidateMergedAreas',
72
+ :'merge_areas' => :'MergeAreas',
73
+ :'sort_external_names' => :'SortExternalNames',
74
+ :'check_excel_restriction' => :'CheckExcelRestriction',
75
+ :'update_smart_art' => :'UpdateSmartArt',
76
+ :'encrypt_document_properties' => :'EncryptDocumentProperties'
62
77
  }
63
78
  end
64
79
 
@@ -72,7 +87,12 @@ module AsposeCellsCloud
72
87
  :'enable_http_compression' => :'BOOLEAN',
73
88
  :'refresh_chart_cache' => :'BOOLEAN',
74
89
  :'sort_names' => :'BOOLEAN',
75
- :'validate_merged_areas' => :'BOOLEAN'
90
+ :'validate_merged_areas' => :'BOOLEAN',
91
+ :'merge_areas' => :'BOOLEAN',
92
+ :'sort_external_names' => :'BOOLEAN',
93
+ :'check_excel_restriction' => :'BOOLEAN',
94
+ :'update_smart_art' => :'BOOLEAN',
95
+ :'encrypt_document_properties' => :'BOOLEAN'
76
96
  }
77
97
  end
78
98
 
@@ -108,6 +128,21 @@ module AsposeCellsCloud
108
128
  if attributes.has_key?(:'ValidateMergedAreas')
109
129
  self.validate_merged_areas = attributes[:'ValidateMergedAreas']
110
130
  end
131
+ if attributes.has_key?(:'MergeAreas')
132
+ self.merge_areas = attributes[:'MergeAreas']
133
+ end
134
+ if attributes.has_key?(:'SortExternalNames')
135
+ self.sort_external_names = attributes[:'SortExternalNames']
136
+ end
137
+ if attributes.has_key?(:'CheckExcelRestriction')
138
+ self.check_excel_restriction = attributes[:'CheckExcelRestriction']
139
+ end
140
+ if attributes.has_key?(:'UpdateSmartArt')
141
+ self.update_smart_art = attributes[:'UpdateSmartArt']
142
+ end
143
+ if attributes.has_key?(:'EncryptDocumentProperties')
144
+ self.encrypt_document_properties = attributes[:'EncryptDocumentProperties']
145
+ end
111
146
 
112
147
  end
113
148
 
@@ -139,6 +174,21 @@ module AsposeCellsCloud
139
174
  if @validate_merged_areas.nil?
140
175
  invalid_properties.push("invalid value for 'validate_merged_areas', validate_merged_areas cannot be nil.")
141
176
  end
177
+ if @merge_areas.nil?
178
+ invalid_properties.push("invalid value for 'merge_areas', merge_areas cannot be nil.")
179
+ end
180
+ if @sort_external_names.nil?
181
+ invalid_properties.push("invalid value for 'sort_external_names', sort_external_names cannot be nil.")
182
+ end
183
+ if @check_excel_restriction.nil?
184
+ invalid_properties.push("invalid value for 'check_excel_restriction', check_excel_restriction cannot be nil.")
185
+ end
186
+ if @update_smart_art.nil?
187
+ invalid_properties.push("invalid value for 'update_smart_art', update_smart_art cannot be nil.")
188
+ end
189
+ if @encrypt_document_properties.nil?
190
+ invalid_properties.push("invalid value for 'encrypt_document_properties', encrypt_document_properties cannot be nil.")
191
+ end
142
192
 
143
193
  return invalid_properties
144
194
  end
@@ -154,6 +204,11 @@ module AsposeCellsCloud
154
204
  return false if @refresh_chart_cache.nil?
155
205
  return false if @sort_names.nil?
156
206
  return false if @validate_merged_areas.nil?
207
+ return false if @merge_areas.nil?
208
+ return false if @sort_external_names.nil?
209
+ return false if @check_excel_restriction.nil?
210
+ return false if @update_smart_art.nil?
211
+ return false if @encrypt_document_properties.nil?
157
212
  return true
158
213
  end
159
214
 
@@ -169,7 +224,12 @@ module AsposeCellsCloud
169
224
  enable_http_compression == o.enable_http_compression &&
170
225
  refresh_chart_cache == o.refresh_chart_cache &&
171
226
  sort_names == o.sort_names &&
172
- validate_merged_areas == o.validate_merged_areas
227
+ validate_merged_areas == o.validate_merged_areas &&
228
+ merge_areas == o.merge_areas &&
229
+ sort_external_names == o.sort_external_names &&
230
+ check_excel_restriction == o.check_excel_restriction &&
231
+ update_smart_art == o.update_smart_art &&
232
+ encrypt_document_properties == o.encrypt_document_properties
173
233
  std_dev == o.std_dev
174
234
  end
175
235
 
@@ -182,7 +242,7 @@ module AsposeCellsCloud
182
242
  # Calculates hash code according to all attributes.
183
243
  # @return [Fixnum] Hash code
184
244
  def hash
185
- [ save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
245
+ [ save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas , merge_areas , sort_external_names , check_excel_restriction , update_smart_art , encrypt_document_properties ].hash
186
246
  end
187
247
 
188
248
  # Builds the object from hash