aspose_cells_cloud 23.7 → 23.9

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 (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
@@ -39,6 +39,12 @@ module AsposeCellsCloud
39
39
  attr_accessor :precision_strategy
40
40
  #
41
41
  attr_accessor :recursive
42
+ #The custom formula calculation engine to extend the default calculation engine of Aspose.Cells.
43
+ attr_accessor :custom_engine
44
+ #The monitor for user to track the progress of formula calculation.
45
+ attr_accessor :calculation_monitor
46
+ #Specifies the data sources for external links used in formulas.
47
+ attr_accessor :linked_data_sources
42
48
 
43
49
  # Attribute mapping from ruby-style variable name to JSON key.
44
50
  def self.attribute_map
@@ -46,7 +52,10 @@ module AsposeCellsCloud
46
52
  :'calc_stack_size' => :'CalcStackSize',
47
53
  :'ignore_error' => :'IgnoreError',
48
54
  :'precision_strategy' => :'PrecisionStrategy',
49
- :'recursive' => :'Recursive'
55
+ :'recursive' => :'Recursive',
56
+ :'custom_engine' => :'CustomEngine',
57
+ :'calculation_monitor' => :'CalculationMonitor',
58
+ :'linked_data_sources' => :'LinkedDataSources'
50
59
  }
51
60
  end
52
61
 
@@ -56,7 +65,10 @@ module AsposeCellsCloud
56
65
  :'calc_stack_size' => :'Integer',
57
66
  :'ignore_error' => :'BOOLEAN',
58
67
  :'precision_strategy' => :'String',
59
- :'recursive' => :'BOOLEAN'
68
+ :'recursive' => :'BOOLEAN',
69
+ :'custom_engine' => :'AbstractCalculationEngine',
70
+ :'calculation_monitor' => :'AbstractCalculationMonitor',
71
+ :'linked_data_sources' => :'Array<Workbook>'
60
72
  }
61
73
  end
62
74
 
@@ -80,6 +92,15 @@ module AsposeCellsCloud
80
92
  if attributes.has_key?(:'Recursive')
81
93
  self.recursive = attributes[:'Recursive']
82
94
  end
95
+ if attributes.has_key?(:'CustomEngine')
96
+ self.custom_engine = attributes[:'CustomEngine']
97
+ end
98
+ if attributes.has_key?(:'CalculationMonitor')
99
+ self.calculation_monitor = attributes[:'CalculationMonitor']
100
+ end
101
+ if attributes.has_key?(:'LinkedDataSources')
102
+ self.linked_data_sources = attributes[:'LinkedDataSources']
103
+ end
83
104
 
84
105
  end
85
106
 
@@ -99,6 +120,15 @@ module AsposeCellsCloud
99
120
  if @recursive.nil?
100
121
  invalid_properties.push("invalid value for 'recursive', recursive cannot be nil.")
101
122
  end
123
+ if @custom_engine.nil?
124
+ invalid_properties.push("invalid value for 'custom_engine', custom_engine cannot be nil.")
125
+ end
126
+ if @calculation_monitor.nil?
127
+ invalid_properties.push("invalid value for 'calculation_monitor', calculation_monitor cannot be nil.")
128
+ end
129
+ if @linked_data_sources.nil?
130
+ invalid_properties.push("invalid value for 'linked_data_sources', linked_data_sources cannot be nil.")
131
+ end
102
132
 
103
133
  return invalid_properties
104
134
  end
@@ -110,6 +140,9 @@ module AsposeCellsCloud
110
140
  return false if @ignore_error.nil?
111
141
  return false if @precision_strategy.nil?
112
142
  return false if @recursive.nil?
143
+ return false if @custom_engine.nil?
144
+ return false if @calculation_monitor.nil?
145
+ return false if @linked_data_sources.nil?
113
146
  return true
114
147
  end
115
148
 
@@ -121,7 +154,10 @@ module AsposeCellsCloud
121
154
  calc_stack_size == o.calc_stack_size &&
122
155
  ignore_error == o.ignore_error &&
123
156
  precision_strategy == o.precision_strategy &&
124
- recursive == o.recursive
157
+ recursive == o.recursive &&
158
+ custom_engine == o.custom_engine &&
159
+ calculation_monitor == o.calculation_monitor &&
160
+ linked_data_sources == o.linked_data_sources
125
161
  std_dev == o.std_dev
126
162
  end
127
163
 
@@ -134,7 +170,7 @@ module AsposeCellsCloud
134
170
  # Calculates hash code according to all attributes.
135
171
  # @return [Fixnum] Hash code
136
172
  def hash
137
- [ calc_stack_size , ignore_error , precision_strategy , recursive ].hash
173
+ [ calc_stack_size , ignore_error , precision_strategy , recursive , custom_engine , calculation_monitor , linked_data_sources ].hash
138
174
  end
139
175
 
140
176
  # Builds the object from hash
@@ -1,6 +1,6 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- <copyright company="Aspose" file="BarcodeResponseListrb.cs">
3
+ <copyright company="Aspose" file="ChartGlobalizationSettingsrb.cs">
4
4
  Copyright (c) 2023 Aspose.Cells Cloud
5
5
  </copyright>
6
6
  <summary>
@@ -30,7 +30,7 @@ require 'date'
30
30
 
31
31
  module AsposeCellsCloud
32
32
 
33
- class BarcodeResponseList
33
+ class ChartGlobalizationSettings
34
34
 
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
@@ -0,0 +1,294 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="DigitalSignaturerb.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 DigitalSignature
34
+ #
35
+ attr_accessor :comments
36
+ #
37
+ attr_accessor :sign_time
38
+ #
39
+ attr_accessor :id
40
+ #
41
+ attr_accessor :password
42
+ #
43
+ attr_accessor :image
44
+ #
45
+ attr_accessor :provider_id
46
+ #
47
+ attr_accessor :is_valid
48
+ #
49
+ attr_accessor :x_ad_es_type
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'comments' => :'Comments',
55
+ :'sign_time' => :'SignTime',
56
+ :'id' => :'Id',
57
+ :'password' => :'Password',
58
+ :'image' => :'Image',
59
+ :'provider_id' => :'ProviderId',
60
+ :'is_valid' => :'IsValid',
61
+ :'x_ad_es_type' => :'XAdESType'
62
+ }
63
+ end
64
+
65
+ # Attribute type mapping.
66
+ def self.swagger_types
67
+ {
68
+ :'comments' => :'String',
69
+ :'sign_time' => :'String',
70
+ :'id' => :'String',
71
+ :'password' => :'String',
72
+ :'image' => :'Array<Integer>',
73
+ :'provider_id' => :'String',
74
+ :'is_valid' => :'BOOLEAN',
75
+ :'x_ad_es_type' => :'String'
76
+ }
77
+ end
78
+
79
+ # Initializes the object
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ def initialize(attributes = {})
82
+ return unless attributes.is_a?(Hash)
83
+
84
+ # convert string to symbol for hash key
85
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
86
+
87
+ if attributes.has_key?(:'Comments')
88
+ self.comments = attributes[:'Comments']
89
+ end
90
+ if attributes.has_key?(:'SignTime')
91
+ self.sign_time = attributes[:'SignTime']
92
+ end
93
+ if attributes.has_key?(:'Id')
94
+ self.id = attributes[:'Id']
95
+ end
96
+ if attributes.has_key?(:'Password')
97
+ self.password = attributes[:'Password']
98
+ end
99
+ if attributes.has_key?(:'Image')
100
+ self.image = attributes[:'Image']
101
+ end
102
+ if attributes.has_key?(:'ProviderId')
103
+ self.provider_id = attributes[:'ProviderId']
104
+ end
105
+ if attributes.has_key?(:'IsValid')
106
+ self.is_valid = attributes[:'IsValid']
107
+ end
108
+ if attributes.has_key?(:'XAdESType')
109
+ self.x_ad_es_type = attributes[:'XAdESType']
110
+ end
111
+
112
+ end
113
+
114
+ # Show invalid properties with the reasons. Usually used together with valid?
115
+ # @return Array for valid properies with the reasons
116
+ def list_invalid_properties
117
+ invalid_properties = Array.new
118
+ if @comments.nil?
119
+ invalid_properties.push("invalid value for 'comments', comments cannot be nil.")
120
+ end
121
+ if @sign_time.nil?
122
+ invalid_properties.push("invalid value for 'sign_time', sign_time cannot be nil.")
123
+ end
124
+ if @id.nil?
125
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
126
+ end
127
+ if @password.nil?
128
+ invalid_properties.push("invalid value for 'password', password cannot be nil.")
129
+ end
130
+ if @image.nil?
131
+ invalid_properties.push("invalid value for 'image', image cannot be nil.")
132
+ end
133
+ if @provider_id.nil?
134
+ invalid_properties.push("invalid value for 'provider_id', provider_id cannot be nil.")
135
+ end
136
+ if @is_valid.nil?
137
+ invalid_properties.push("invalid value for 'is_valid', is_valid cannot be nil.")
138
+ end
139
+ if @x_ad_es_type.nil?
140
+ invalid_properties.push("invalid value for 'x_ad_es_type', x_ad_es_type cannot be nil.")
141
+ end
142
+
143
+ return invalid_properties
144
+ end
145
+
146
+ # Check to see if the all the properties in the model are valid
147
+ # @return true if the model is valid
148
+ def valid?
149
+ return false if @comments.nil?
150
+ return false if @sign_time.nil?
151
+ return false if @id.nil?
152
+ return false if @password.nil?
153
+ return false if @image.nil?
154
+ return false if @provider_id.nil?
155
+ return false if @is_valid.nil?
156
+ return false if @x_ad_es_type.nil?
157
+ return true
158
+ end
159
+
160
+ # Checks equality by comparing each attribute.
161
+ # @param [Object] Object to be compared
162
+ def ==(o)
163
+ return true if self.equal?(o)
164
+ self.class == o.class &&
165
+ comments == o.comments &&
166
+ sign_time == o.sign_time &&
167
+ id == o.id &&
168
+ password == o.password &&
169
+ image == o.image &&
170
+ provider_id == o.provider_id &&
171
+ is_valid == o.is_valid &&
172
+ x_ad_es_type == o.x_ad_es_type
173
+ std_dev == o.std_dev
174
+ end
175
+
176
+ # @see the `==` method
177
+ # @param [Object] Object to be compared
178
+ def eql?(o)
179
+ self == o
180
+ end
181
+
182
+ # Calculates hash code according to all attributes.
183
+ # @return [Fixnum] Hash code
184
+ def hash
185
+ [ comments , sign_time , id , password , image , provider_id , is_valid , x_ad_es_type ].hash
186
+ end
187
+
188
+ # Builds the object from hash
189
+ # @param [Hash] attributes Model attributes in the form of hash
190
+ # @return [Object] Returns the model itself
191
+ def build_from_hash(attributes)
192
+ return nil unless attributes.is_a?(Hash)
193
+ self.class.swagger_types.each_pair do |key, type|
194
+ if type =~ /\AArray<(.*)>/i
195
+ # check to ensure the input is an array given that the the attribute
196
+ # is documented as an array but the input is not
197
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
198
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
199
+ end
200
+ elsif !attributes[self.class.attribute_map[key]].nil?
201
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
202
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
203
+ end
204
+
205
+ self
206
+ end
207
+
208
+ # Deserializes the data based on type
209
+ # @param string type Data type
210
+ # @param string value Value to be deserialized
211
+ # @return [Object] Deserialized data
212
+ def _deserialize(type, value)
213
+ case type.to_sym
214
+ when :DateTime
215
+ DateTime.parse(value)
216
+ when :Date
217
+ Date.parse(value)
218
+ when :String
219
+ value.to_s
220
+ when :Integer
221
+ value.to_i
222
+ when :Float
223
+ value.to_f
224
+ when :BOOLEAN
225
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
226
+ true
227
+ else
228
+ false
229
+ end
230
+ when :Object
231
+ # generic object (usually a Hash), return directly
232
+ value
233
+ when /\AArray<(?<inner_type>.+)>\z/
234
+ inner_type = Regexp.last_match[:inner_type]
235
+ value.map { |v| _deserialize(inner_type, v) }
236
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
237
+ k_type = Regexp.last_match[:k_type]
238
+ v_type = Regexp.last_match[:v_type]
239
+ {}.tap do |hash|
240
+ value.each do |k, v|
241
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
242
+ end
243
+ end
244
+ else # model
245
+ temp_model = AsposeCellsCloud.const_get(type).new
246
+ temp_model.build_from_hash(value)
247
+ end
248
+ end
249
+
250
+ # Returns the string representation of the object
251
+ # @return [String] String presentation of the object
252
+ def to_s
253
+ to_hash.to_s
254
+ end
255
+
256
+ # to_body is an alias to to_hash (backward compatibility)
257
+ # @return [Hash] Returns the object in the form of hash
258
+ def to_body
259
+ to_hash
260
+ end
261
+
262
+ # Returns the object in the form of hash
263
+ # @return [Hash] Returns the object in the form of hash
264
+ def to_hash
265
+ hash = {}
266
+ self.class.attribute_map.each_pair do |attr, param|
267
+ value = self.send(attr)
268
+ next if value.nil?
269
+ hash[param] = _to_hash(value)
270
+ end
271
+ hash
272
+ end
273
+
274
+ # Outputs non-array value in the form of hash
275
+ # For object, use to_hash. Otherwise, just return the value
276
+ # @param [Object] value Any valid value
277
+ # @return [Hash] Returns the value in the form of hash
278
+ def _to_hash(value)
279
+ if value.is_a?(Array)
280
+ value.compact.map{ |v| _to_hash(v) }
281
+ elsif value.is_a?(Hash)
282
+ {}.tap do |hash|
283
+ value.each { |k, v| hash[k] = _to_hash(v) }
284
+ end
285
+ elsif value.respond_to? :to_hash
286
+ value.to_hash
287
+ else
288
+ value
289
+ end
290
+ end
291
+
292
+ end
293
+
294
+ end