aspose_cells_cloud 23.7 → 23.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -4
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +23 -0
  4. data/lib/aspose_cells_cloud/models/abstract_calculation_engine.rb +234 -0
  5. data/lib/aspose_cells_cloud/models/abstract_calculation_monitor.rb +234 -0
  6. data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +64 -4
  7. data/lib/aspose_cells_cloud/models/calculation_options.rb +40 -4
  8. data/lib/aspose_cells_cloud/models/{barcode_response_list.rb → chart_globalization_settings.rb} +2 -2
  9. data/lib/aspose_cells_cloud/models/digital_signature.rb +294 -0
  10. data/lib/aspose_cells_cloud/models/formula_settings.rb +330 -0
  11. data/lib/aspose_cells_cloud/models/globalization_settings.rb +258 -0
  12. data/lib/aspose_cells_cloud/models/html_save_options.rb +61 -1
  13. data/lib/aspose_cells_cloud/models/image_or_print_options.rb +498 -0
  14. data/lib/aspose_cells_cloud/models/list_column.rb +16 -4
  15. data/lib/aspose_cells_cloud/models/list_object.rb +73 -1
  16. data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +49 -1
  17. data/lib/aspose_cells_cloud/models/pdf_save_options.rb +109 -1
  18. data/lib/aspose_cells_cloud/models/pivot_globalization_settings.rb +198 -0
  19. data/lib/aspose_cells_cloud/models/protect_workbook_requst.rb +270 -0
  20. data/lib/aspose_cells_cloud/models/protection.rb +402 -0
  21. data/lib/aspose_cells_cloud/models/query_table.rb +258 -0
  22. data/lib/aspose_cells_cloud/models/range_sort_request.rb +222 -0
  23. data/lib/aspose_cells_cloud/models/{barcode_response.rb → rendering_font.rb} +55 -43
  24. data/lib/aspose_cells_cloud/models/rendering_watermark.rb +330 -0
  25. data/lib/aspose_cells_cloud/models/workbook_settings.rb +220 -4
  26. data/lib/aspose_cells_cloud/models/write_protection.rb +246 -0
  27. data/lib/aspose_cells_cloud/models/xml_data_binding.rb +210 -0
  28. data/lib/aspose_cells_cloud/models/xml_map.rb +234 -0
  29. data/lib/aspose_cells_cloud/requests/post_lock_request.rb +120 -0
  30. data/lib/aspose_cells_cloud/requests/post_protect_request.rb +13 -8
  31. data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_sort_request.rb +138 -0
  32. data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_insert_slicer_request.rb +159 -0
  33. data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_remove_duplicates_request.rb +137 -0
  34. data/lib/aspose_cells_cloud/version.rb +1 -1
  35. data/lib/aspose_cells_cloud.rb +21 -2
  36. data/spec/api/list_objects_controller_spec.rb +35 -0
  37. data/spec/api/ranges_controller_spec.rb +20 -0
  38. data/spec/document/light_cells_spec.rb +2 -1
  39. data/spec/one_case_spec.rb +27 -0
  40. data/spec/onecase_spec.rb +28 -0
  41. metadata +29 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca65e84ad45b30151dfe5528d243e236274dc143bca92a4e16bcc748d3be8fcd
4
- data.tar.gz: a0bbe0ce0de599ae7bcbd1bb6a4e8ce1c86d8942ff6c43e59c5a4287d1501d87
3
+ metadata.gz: 99cecb05c998f858592c2b2c178fb9f2193499fead632c05b1c76ceb87c06673
4
+ data.tar.gz: 9cffcfff308d33117fc8d3d3450c07426676e85ff32a7e918142054f280a388b
5
5
  SHA512:
6
- metadata.gz: a8de0582f574ed327bccd771eef35a846950f937b401e165343bea4a509bb0e5e2dbffea87b89566f82833039be669d47e97f3f11cd0fa0889673f9cb6a1678a
7
- data.tar.gz: 8a19ac2912d34060b72325aa9ccd20bdd97593638d8a2bb9cc01172717fd087c7adb5a2d4cb754f029cd2e161d09a2e43a4c60316a5d957c771bbcf061fe094c
6
+ metadata.gz: b70be769ae875ad250256aa2491e1fa78becac74d19f8eeb27b5127b76590955658d1a231bd786405a18b51cc052873422c98cd487d7673d759c364f5bcd287e
7
+ data.tar.gz: 2d0b9608fa69c25d12dff63779cd58627493d01b099490b4d56613f75363b5a5819479a0159e8975a15c78712d33b4f77f0bd1efc5f651749d542ac5bbaa7ff7
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/23.7)
1
+ ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/23.9)
2
2
 
3
3
 
4
4
  # Ruby SDK for Spreadsheet Processing in the Cloud
@@ -22,10 +22,16 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic
22
22
  - [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
23
23
 
24
24
 
25
- ## Feature & Enhancements in Version 23.7
25
+ ## Feature & Enhancements in Version 23.9
26
+
27
+ Full list of issues covering all changes in this release:
28
+
29
+ - Support to data sorting on range controller.
30
+ - Support to remove duplicate data on list object.
31
+ - Support to insert slicer for list object.
32
+ - Optimize list object and related objects.
33
+
26
34
 
27
- - Support to repair api.
28
- - Remove GetExtractBarcodes API.
29
35
 
30
36
  ## Read & Write Spreadsheet Formats
31
37
 
@@ -1149,6 +1149,22 @@ module AsposeCellsCloud
1149
1149
  return data
1150
1150
  end
1151
1151
 
1152
+ # Remove duplicates on list object.
1153
+
1154
+ def post_worksheet_list_object_remove_duplicates( post_worksheet_list_object_remove_duplicates_request, opts = {})
1155
+
1156
+ data, _status_code, _headers = post_worksheet_list_object_remove_duplicates_request.create_http_request(@api_client,opts )
1157
+ return data
1158
+ end
1159
+
1160
+ # Insert slicer for list object.
1161
+
1162
+ def post_worksheet_list_object_insert_slicer( post_worksheet_list_object_insert_slicer_request, opts = {})
1163
+
1164
+ data, _status_code, _headers = post_worksheet_list_object_insert_slicer_request.create_http_request(@api_client,opts )
1165
+ return data
1166
+ end
1167
+
1152
1168
  # Update list column properties.
1153
1169
 
1154
1170
  def post_worksheet_list_column( post_worksheet_list_column_request, opts = {})
@@ -1661,6 +1677,13 @@ module AsposeCellsCloud
1661
1677
  return data
1662
1678
  end
1663
1679
 
1680
+ # Sets outline border around a range of cells.
1681
+ def post_worksheet_cells_range_sort( post_worksheet_cells_range_sort_request, opts = {})
1682
+
1683
+ data, _status_code, _headers = post_worksheet_cells_range_sort_request.create_http_request(@api_client,opts )
1684
+ return data
1685
+ end
1686
+
1664
1687
  # Sets outline border around a range of cells.
1665
1688
 
1666
1689
  def post_worksheet_cells_range_outline_border( post_worksheet_cells_range_outline_border_request, opts = {})
@@ -0,0 +1,234 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="AbstractCalculationEnginerb.cs">
4
+ Copyright (c) 2023 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 AbstractCalculationEngine
34
+ #Indicates whether this engine needs the literal text of parameter while doing calculation. Default value is false.
35
+ attr_accessor :is_param_literal_required
36
+ #Indicates whether this engine needs the parameter to be calculated in array mode. Default value is false. If is required when calculating custom functions, this property needs to be set as true.
37
+ attr_accessor :is_param_array_mode_required
38
+ #Whether built-in functions that have been supported by the built-in engine should be checked and processed by this implementation. Default is false. If user needs to change the calculation logic of some built-in functions, this property should be set as true. Otherwise please leave this property as false for performance consideration.
39
+ attr_accessor :process_built_in_functions
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'is_param_literal_required' => :'IsParamLiteralRequired',
45
+ :'is_param_array_mode_required' => :'IsParamArrayModeRequired',
46
+ :'process_built_in_functions' => :'ProcessBuiltInFunctions'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ {
53
+ :'is_param_literal_required' => :'BOOLEAN',
54
+ :'is_param_array_mode_required' => :'BOOLEAN',
55
+ :'process_built_in_functions' => :'BOOLEAN'
56
+ }
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ return unless attributes.is_a?(Hash)
63
+
64
+ # convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
66
+
67
+ if attributes.has_key?(:'IsParamLiteralRequired')
68
+ self.is_param_literal_required = attributes[:'IsParamLiteralRequired']
69
+ end
70
+ if attributes.has_key?(:'IsParamArrayModeRequired')
71
+ self.is_param_array_mode_required = attributes[:'IsParamArrayModeRequired']
72
+ end
73
+ if attributes.has_key?(:'ProcessBuiltInFunctions')
74
+ self.process_built_in_functions = attributes[:'ProcessBuiltInFunctions']
75
+ end
76
+
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properies with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ if @is_param_literal_required.nil?
84
+ invalid_properties.push("invalid value for 'is_param_literal_required', is_param_literal_required cannot be nil.")
85
+ end
86
+ if @is_param_array_mode_required.nil?
87
+ invalid_properties.push("invalid value for 'is_param_array_mode_required', is_param_array_mode_required cannot be nil.")
88
+ end
89
+ if @process_built_in_functions.nil?
90
+ invalid_properties.push("invalid value for 'process_built_in_functions', process_built_in_functions cannot be nil.")
91
+ end
92
+
93
+ return invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @is_param_literal_required.nil?
100
+ return false if @is_param_array_mode_required.nil?
101
+ return false if @process_built_in_functions.nil?
102
+ return true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ is_param_literal_required == o.is_param_literal_required &&
111
+ is_param_array_mode_required == o.is_param_array_mode_required &&
112
+ process_built_in_functions == o.process_built_in_functions
113
+ std_dev == o.std_dev
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Fixnum] Hash code
124
+ def hash
125
+ [ is_param_literal_required , is_param_array_mode_required , process_built_in_functions ].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ self.class.swagger_types.each_pair do |key, type|
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :DateTime
155
+ DateTime.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :BOOLEAN
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ temp_model = AsposeCellsCloud.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map{ |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -0,0 +1,234 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="AbstractCalculationMonitorrb.cs">
4
+ Copyright (c) 2023 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 AbstractCalculationMonitor
34
+ #Gets the old value of the calculated cell. Should be used only in and .
35
+ attr_accessor :original_value
36
+ #Whether the cell's value has been changed after the calculation. Should be used only in .
37
+ attr_accessor :value_changed
38
+ #Gets the newly calculated value of the cell. Should be used only in .
39
+ attr_accessor :calculated_value
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'original_value' => :'OriginalValue',
45
+ :'value_changed' => :'ValueChanged',
46
+ :'calculated_value' => :'CalculatedValue'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ {
53
+ :'original_value' => :'Object',
54
+ :'value_changed' => :'BOOLEAN',
55
+ :'calculated_value' => :'Object'
56
+ }
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ return unless attributes.is_a?(Hash)
63
+
64
+ # convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
66
+
67
+ if attributes.has_key?(:'OriginalValue')
68
+ self.original_value = attributes[:'OriginalValue']
69
+ end
70
+ if attributes.has_key?(:'ValueChanged')
71
+ self.value_changed = attributes[:'ValueChanged']
72
+ end
73
+ if attributes.has_key?(:'CalculatedValue')
74
+ self.calculated_value = attributes[:'CalculatedValue']
75
+ end
76
+
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properies with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ if @original_value.nil?
84
+ invalid_properties.push("invalid value for 'original_value', original_value cannot be nil.")
85
+ end
86
+ if @value_changed.nil?
87
+ invalid_properties.push("invalid value for 'value_changed', value_changed cannot be nil.")
88
+ end
89
+ if @calculated_value.nil?
90
+ invalid_properties.push("invalid value for 'calculated_value', calculated_value cannot be nil.")
91
+ end
92
+
93
+ return invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @original_value.nil?
100
+ return false if @value_changed.nil?
101
+ return false if @calculated_value.nil?
102
+ return true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ original_value == o.original_value &&
111
+ value_changed == o.value_changed &&
112
+ calculated_value == o.calculated_value
113
+ std_dev == o.std_dev
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Fixnum] Hash code
124
+ def hash
125
+ [ original_value , value_changed , calculated_value ].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ self.class.swagger_types.each_pair do |key, type|
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :DateTime
155
+ DateTime.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :BOOLEAN
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ temp_model = AsposeCellsCloud.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map{ |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -39,6 +39,16 @@ module AsposeCellsCloud
39
39
  attr_accessor :ignore_hidden
40
40
  #
41
41
  attr_accessor :only_auto
42
+ #
43
+ attr_accessor :default_edit_language
44
+ #
45
+ attr_accessor :max_row_height
46
+ #
47
+ attr_accessor :auto_fit_wrapped_text_type
48
+ #
49
+ attr_accessor :format_strategy
50
+ #
51
+ attr_accessor :for_rendering
42
52
 
43
53
  # Attribute mapping from ruby-style variable name to JSON key.
44
54
  def self.attribute_map
@@ -46,7 +56,12 @@ module AsposeCellsCloud
46
56
  :'auto_fit_merged_cells_type' => :'AutoFitMergedCellsType',
47
57
  :'auto_fit_merged_cells' => :'AutoFitMergedCells',
48
58
  :'ignore_hidden' => :'IgnoreHidden',
49
- :'only_auto' => :'OnlyAuto'
59
+ :'only_auto' => :'OnlyAuto',
60
+ :'default_edit_language' => :'DefaultEditLanguage',
61
+ :'max_row_height' => :'MaxRowHeight',
62
+ :'auto_fit_wrapped_text_type' => :'AutoFitWrappedTextType',
63
+ :'format_strategy' => :'FormatStrategy',
64
+ :'for_rendering' => :'ForRendering'
50
65
  }
51
66
  end
52
67
 
@@ -56,7 +71,12 @@ module AsposeCellsCloud
56
71
  :'auto_fit_merged_cells_type' => :'String',
57
72
  :'auto_fit_merged_cells' => :'BOOLEAN',
58
73
  :'ignore_hidden' => :'BOOLEAN',
59
- :'only_auto' => :'BOOLEAN'
74
+ :'only_auto' => :'BOOLEAN',
75
+ :'default_edit_language' => :'String',
76
+ :'max_row_height' => :'Float',
77
+ :'auto_fit_wrapped_text_type' => :'String',
78
+ :'format_strategy' => :'String',
79
+ :'for_rendering' => :'BOOLEAN'
60
80
  }
61
81
  end
62
82
 
@@ -80,6 +100,21 @@ module AsposeCellsCloud
80
100
  if attributes.has_key?(:'OnlyAuto')
81
101
  self.only_auto = attributes[:'OnlyAuto']
82
102
  end
103
+ if attributes.has_key?(:'DefaultEditLanguage')
104
+ self.default_edit_language = attributes[:'DefaultEditLanguage']
105
+ end
106
+ if attributes.has_key?(:'MaxRowHeight')
107
+ self.max_row_height = attributes[:'MaxRowHeight']
108
+ end
109
+ if attributes.has_key?(:'AutoFitWrappedTextType')
110
+ self.auto_fit_wrapped_text_type = attributes[:'AutoFitWrappedTextType']
111
+ end
112
+ if attributes.has_key?(:'FormatStrategy')
113
+ self.format_strategy = attributes[:'FormatStrategy']
114
+ end
115
+ if attributes.has_key?(:'ForRendering')
116
+ self.for_rendering = attributes[:'ForRendering']
117
+ end
83
118
 
84
119
  end
85
120
 
@@ -99,6 +134,21 @@ module AsposeCellsCloud
99
134
  if @only_auto.nil?
100
135
  invalid_properties.push("invalid value for 'only_auto', only_auto cannot be nil.")
101
136
  end
137
+ if @default_edit_language.nil?
138
+ invalid_properties.push("invalid value for 'default_edit_language', default_edit_language cannot be nil.")
139
+ end
140
+ if @max_row_height.nil?
141
+ invalid_properties.push("invalid value for 'max_row_height', max_row_height cannot be nil.")
142
+ end
143
+ if @auto_fit_wrapped_text_type.nil?
144
+ invalid_properties.push("invalid value for 'auto_fit_wrapped_text_type', auto_fit_wrapped_text_type cannot be nil.")
145
+ end
146
+ if @format_strategy.nil?
147
+ invalid_properties.push("invalid value for 'format_strategy', format_strategy cannot be nil.")
148
+ end
149
+ if @for_rendering.nil?
150
+ invalid_properties.push("invalid value for 'for_rendering', for_rendering cannot be nil.")
151
+ end
102
152
 
103
153
  return invalid_properties
104
154
  end
@@ -110,6 +160,11 @@ module AsposeCellsCloud
110
160
  return false if @auto_fit_merged_cells.nil?
111
161
  return false if @ignore_hidden.nil?
112
162
  return false if @only_auto.nil?
163
+ return false if @default_edit_language.nil?
164
+ return false if @max_row_height.nil?
165
+ return false if @auto_fit_wrapped_text_type.nil?
166
+ return false if @format_strategy.nil?
167
+ return false if @for_rendering.nil?
113
168
  return true
114
169
  end
115
170
 
@@ -121,7 +176,12 @@ module AsposeCellsCloud
121
176
  auto_fit_merged_cells_type == o.auto_fit_merged_cells_type &&
122
177
  auto_fit_merged_cells == o.auto_fit_merged_cells &&
123
178
  ignore_hidden == o.ignore_hidden &&
124
- only_auto == o.only_auto
179
+ only_auto == o.only_auto &&
180
+ default_edit_language == o.default_edit_language &&
181
+ max_row_height == o.max_row_height &&
182
+ auto_fit_wrapped_text_type == o.auto_fit_wrapped_text_type &&
183
+ format_strategy == o.format_strategy &&
184
+ for_rendering == o.for_rendering
125
185
  std_dev == o.std_dev
126
186
  end
127
187
 
@@ -134,7 +194,7 @@ module AsposeCellsCloud
134
194
  # Calculates hash code according to all attributes.
135
195
  # @return [Fixnum] Hash code
136
196
  def hash
137
- [ auto_fit_merged_cells_type , auto_fit_merged_cells , ignore_hidden , only_auto ].hash
197
+ [ auto_fit_merged_cells_type , auto_fit_merged_cells , ignore_hidden , only_auto , default_edit_language , max_row_height , auto_fit_wrapped_text_type , format_strategy , for_rendering ].hash
138
198
  end
139
199
 
140
200
  # Builds the object from hash