aspose_cells_cloud 26.4 → 26.7

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 (122) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -5
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +102 -0
  4. data/lib/aspose_cells_cloud/models/ebook_save_options.rb +822 -0
  5. data/lib/aspose_cells_cloud/models/formula_calculate_result_response.rb +258 -0
  6. data/lib/aspose_cells_cloud/requests/add_text_in_remote_spreadsheet_request.rb +196 -0
  7. data/lib/aspose_cells_cloud/requests/calculation_formula_request.rb +147 -0
  8. data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +16 -0
  9. data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +16 -0
  10. data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +16 -0
  11. data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +16 -0
  12. data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +16 -0
  13. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +16 -0
  14. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +16 -0
  15. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_json_request.rb +16 -0
  16. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +16 -0
  17. data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +16 -0
  18. data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +16 -0
  19. data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +16 -0
  20. data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +16 -0
  21. data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +16 -0
  22. data/lib/aspose_cells_cloud/requests/convert_text_in_remote_spreadsheet_request.rb +184 -0
  23. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_csv_request.rb +16 -0
  24. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_html_request.rb +16 -0
  25. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +16 -0
  26. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_json_request.rb +16 -0
  27. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +16 -0
  28. data/lib/aspose_cells_cloud/requests/export_range_as_format_request.rb +16 -0
  29. data/lib/aspose_cells_cloud/requests/export_spreadsheet_as_format_request.rb +16 -0
  30. data/lib/aspose_cells_cloud/requests/export_table_as_format_request.rb +16 -0
  31. data/lib/aspose_cells_cloud/requests/export_worksheet_as_format_request.rb +16 -0
  32. data/lib/aspose_cells_cloud/requests/get_spreadsheet_structure_request.rb +123 -0
  33. data/lib/aspose_cells_cloud/requests/get_structure_in_remote_spreadsheet_request.rb +134 -0
  34. data/lib/aspose_cells_cloud/requests/remove_characters_by_position_in_remote_spreadsheet_request.rb +196 -0
  35. data/lib/aspose_cells_cloud/requests/remove_characters_in_remote_spreadsheet_request.rb +188 -0
  36. data/lib/aspose_cells_cloud/requests/remove_duplicate_substrings_in_remote_spreadsheet_request.rb +184 -0
  37. data/lib/aspose_cells_cloud/requests/report_ai_analysis_request.rb +122 -0
  38. data/lib/aspose_cells_cloud/requests/save_spreadsheet_as_request.rb +16 -0
  39. data/lib/aspose_cells_cloud/requests/smart_marker_template_request.rb +107 -0
  40. data/lib/aspose_cells_cloud/requests/summarize_spreadsheet_request.rb +123 -0
  41. data/lib/aspose_cells_cloud/requests/trim_character_in_remote_spreadsheet_request.rb +212 -0
  42. data/lib/aspose_cells_cloud/requests/update_word_case_in_remote_spreadsheet_request.rb +168 -0
  43. data/lib/aspose_cells_cloud/version.rb +1 -1
  44. data/lib/aspose_cells_cloud.rb +15 -0
  45. data/spec/TestData/AggregateCellsByColor.xlsx +0 -0
  46. data/spec/TestData/Book1.xlsx +0 -0
  47. data/spec/TestData/BookCsvDuplicateData.csv +21 -0
  48. data/spec/TestData/BookDuplicateData.xlsx +0 -0
  49. data/spec/TestData/BookFormula.xlsx +0 -0
  50. data/spec/TestData/BookTableL2W.xlsx +0 -0
  51. data/spec/TestData/BookText.xlsx +0 -0
  52. data/spec/TestData/CompanySales.xlsx +0 -0
  53. data/spec/TestData/EmployeeSalesSummary-BlankWorksheet.xlsx +0 -0
  54. data/spec/TestData/EmployeeSalesSummary.xlsx +0 -0
  55. data/spec/TestData/EmployeeSalesSummary_Locked.xlsx +0 -0
  56. data/spec/TestData/Formula tutorial.xlsx +0 -0
  57. data/spec/TestData/Group.xlsx +0 -0
  58. data/spec/TestData/Home inventory.xlsx +0 -0
  59. data/spec/TestData/LockedEmployeeSalesSummary.xlsx +0 -0
  60. data/spec/TestData/OLEDoc.docx +0 -0
  61. data/spec/TestData/ReportData.xml +1 -0
  62. data/spec/TestData/Simple invoice.xlsx +0 -0
  63. data/spec/TestData/Template.xlsx +0 -0
  64. data/spec/TestData/TestCase.xlsx +0 -0
  65. data/spec/TestData/TestTables.xlsx +0 -0
  66. data/spec/TestData/WaterMark.png +0 -0
  67. data/spec/TestData/assemblytest.xlsx +0 -0
  68. data/spec/TestData/data.xml +1 -0
  69. data/spec/TestData/datasource.xlsx +0 -0
  70. data/spec/TestData/myDocument.xlsx +0 -0
  71. data/spec/TestData/needUnlock.xlsx +0 -0
  72. data/spec/TestData/needlock.xlsx +0 -0
  73. data/spec/TestData/roywang.pfx +0 -0
  74. data/spec/TestData/word.jpg +0 -0
  75. data/spec/calculate/calculate_spec.rb +29 -0
  76. data/spec/cells_cloud30/auto_filter_controller_spec.rb +211 -0
  77. data/spec/cells_cloud30/batch_controller_spec.rb +113 -0
  78. data/spec/cells_cloud30/cells_controller_spec.rb +627 -0
  79. data/spec/cells_cloud30/cells_status_controller_spec.rb +43 -0
  80. data/spec/cells_cloud30/chart_area_controller_spec.rb +58 -0
  81. data/spec/cells_cloud30/charts_controller_spec.rb +227 -0
  82. data/spec/cells_cloud30/conditional_formattings_controller_spec.rb +149 -0
  83. data/spec/cells_cloud30/conversion30_spec.rb +1112 -0
  84. data/spec/cells_cloud30/data_processing_controller_spec.rb +97 -0
  85. data/spec/cells_cloud30/hypelinks_controller_spec.rb +104 -0
  86. data/spec/cells_cloud30/light_cells_spec.rb +1059 -0
  87. data/spec/cells_cloud30/list_objects_controller_spec.rb +225 -0
  88. data/spec/cells_cloud30/ole_objects_controller_spec.rb +108 -0
  89. data/spec/cells_cloud30/page_breaks_controller_spec.rb +163 -0
  90. data/spec/cells_cloud30/page_setup_controller_spec.rb +149 -0
  91. data/spec/cells_cloud30/pictures_controller_spec.rb +106 -0
  92. data/spec/cells_cloud30/pivot_tables_controller_spec.rb +312 -0
  93. data/spec/cells_cloud30/properties_controller_spec.rb +89 -0
  94. data/spec/cells_cloud30/ranges_controller_spec.rb +227 -0
  95. data/spec/cells_cloud30/shapes_controller_spec.rb +139 -0
  96. data/spec/cells_cloud30/sparkline_groups_controller_spec.rb +104 -0
  97. data/spec/cells_cloud30/text_processing_controller_spec.rb +67 -0
  98. data/spec/cells_cloud30/workbook_controller_spec.rb +519 -0
  99. data/spec/cells_cloud30/worksheet_controller_spec.rb +609 -0
  100. data/spec/cells_cloud30/worksheet_validations_controller_spec.rb +104 -0
  101. data/spec/cells_cloud30/xml_controller_spec.rb +48 -0
  102. data/spec/data_processing/conversion_spec.rb +428 -0
  103. data/spec/data_processing/import_data_spec.rb +24 -0
  104. data/spec/data_processing/merger_spec.rb +28 -0
  105. data/spec/data_processing/protection_spec.rb +29 -0
  106. data/spec/data_processing/splitter_spec.rb +47 -0
  107. data/spec/data_processing/transform_spec.rb +43 -0
  108. data/spec/dynabic/file_controller_spec.rb +60 -0
  109. data/spec/dynabic/folder_controller_spec.rb +88 -0
  110. data/spec/dynabic/storage_controller_spec.rb +73 -0
  111. data/spec/management/management_spec.rb +111 -0
  112. data/spec/search2_replace/replacer_spec.rb +46 -0
  113. data/spec/search2_replace/searcher_spec.rb +131 -0
  114. data/spec/spec_helper.rb +134 -0
  115. data/spec/text_processing/add_text_spec.rb +45 -0
  116. data/spec/text_processing/convert_text_spec.rb +37 -0
  117. data/spec/text_processing/extract_text_spec.rb +37 -0
  118. data/spec/text_processing/remove_characters_spec.rb +53 -0
  119. data/spec/text_processing/split_text_spec.rb +21 -0
  120. data/spec/text_processing/trim_spreadsheet_spec.rb +29 -0
  121. data/spec/text_processing/update_word_case_spec.rb +37 -0
  122. metadata +95 -3
@@ -0,0 +1,258 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="FormulaCalculateResultResponserb.cs">
4
+ Copyright (c) 2026 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 FormulaCalculateResultResponse
34
+ #
35
+ attr_accessor :worksheet
36
+ #
37
+ attr_accessor :formula
38
+ #
39
+ attr_accessor :result
40
+ #
41
+ attr_accessor :code
42
+ #
43
+ attr_accessor :status
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'worksheet' => :'Worksheet',
49
+ :'formula' => :'Formula',
50
+ :'result' => :'Result',
51
+ :'code' => :'Code',
52
+ :'status' => :'Status'
53
+ }
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.swagger_types
58
+ {
59
+ :'worksheet' => :'String',
60
+ :'formula' => :'String',
61
+ :'result' => :'Object',
62
+ :'code' => :'Integer',
63
+ :'status' => :'String'
64
+ }
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ return unless attributes.is_a?(Hash)
71
+
72
+ # convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
74
+
75
+ if attributes.has_key?(:'Worksheet')
76
+ self.worksheet = attributes[:'Worksheet']
77
+ end
78
+ if attributes.has_key?(:'Formula')
79
+ self.formula = attributes[:'Formula']
80
+ end
81
+ if attributes.has_key?(:'Result')
82
+ self.result = attributes[:'Result']
83
+ end
84
+ if attributes.has_key?(:'Code')
85
+ self.code = attributes[:'Code']
86
+ end
87
+ if attributes.has_key?(:'Status')
88
+ self.status = attributes[:'Status']
89
+ end
90
+
91
+ end
92
+
93
+ # Show invalid properties with the reasons. Usually used together with valid?
94
+ # @return Array for valid properies with the reasons
95
+ def list_invalid_properties
96
+ invalid_properties = Array.new
97
+ if @worksheet.nil?
98
+ invalid_properties.push("invalid value for 'worksheet', worksheet cannot be nil.")
99
+ end
100
+ if @formula.nil?
101
+ invalid_properties.push("invalid value for 'formula', formula cannot be nil.")
102
+ end
103
+ if @result.nil?
104
+ invalid_properties.push("invalid value for 'result', result cannot be nil.")
105
+ end
106
+ if @code.nil?
107
+ invalid_properties.push("invalid value for 'code', code cannot be nil.")
108
+ end
109
+ if @status.nil?
110
+ invalid_properties.push("invalid value for 'status', status cannot be nil.")
111
+ end
112
+
113
+ return invalid_properties
114
+ end
115
+
116
+ # Check to see if the all the properties in the model are valid
117
+ # @return true if the model is valid
118
+ def valid?
119
+ return false if @worksheet.nil?
120
+ return false if @formula.nil?
121
+ return false if @result.nil?
122
+ return false if @code.nil?
123
+ return false if @status.nil?
124
+ return true
125
+ end
126
+
127
+ # Checks equality by comparing each attribute.
128
+ # @param [Object] Object to be compared
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ worksheet == o.worksheet &&
133
+ formula == o.formula &&
134
+ result == o.result &&
135
+ code == o.code &&
136
+ status == o.status
137
+ std_dev == o.std_dev
138
+ end
139
+
140
+ # @see the `==` method
141
+ # @param [Object] Object to be compared
142
+ def eql?(o)
143
+ self == o
144
+ end
145
+
146
+ # Calculates hash code according to all attributes.
147
+ # @return [Fixnum] Hash code
148
+ def hash
149
+ [ worksheet , formula , result , code , status ].hash
150
+ end
151
+
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def build_from_hash(attributes)
156
+ return nil unless attributes.is_a?(Hash)
157
+ self.class.swagger_types.each_pair do |key, type|
158
+ if type =~ /\AArray<(.*)>/i
159
+ # check to ensure the input is an array given that the the attribute
160
+ # is documented as an array but the input is not
161
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
162
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
163
+ end
164
+ elsif !attributes[self.class.attribute_map[key]].nil?
165
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
166
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
167
+ end
168
+
169
+ self
170
+ end
171
+
172
+ # Deserializes the data based on type
173
+ # @param string type Data type
174
+ # @param string value Value to be deserialized
175
+ # @return [Object] Deserialized data
176
+ def _deserialize(type, value)
177
+ case type.to_sym
178
+ when :DateTime
179
+ DateTime.parse(value)
180
+ when :Date
181
+ Date.parse(value)
182
+ when :String
183
+ value.to_s
184
+ when :Integer
185
+ value.to_i
186
+ when :Float
187
+ value.to_f
188
+ when :BOOLEAN
189
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
190
+ true
191
+ else
192
+ false
193
+ end
194
+ when :Object
195
+ # generic object (usually a Hash), return directly
196
+ value
197
+ when /\AArray<(?<inner_type>.+)>\z/
198
+ inner_type = Regexp.last_match[:inner_type]
199
+ value.map { |v| _deserialize(inner_type, v) }
200
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
201
+ k_type = Regexp.last_match[:k_type]
202
+ v_type = Regexp.last_match[:v_type]
203
+ {}.tap do |hash|
204
+ value.each do |k, v|
205
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
206
+ end
207
+ end
208
+ else # model
209
+ temp_model = AsposeCellsCloud.const_get(type).new
210
+ temp_model.build_from_hash(value)
211
+ end
212
+ end
213
+
214
+ # Returns the string representation of the object
215
+ # @return [String] String presentation of the object
216
+ def to_s
217
+ to_hash.to_s
218
+ end
219
+
220
+ # to_body is an alias to to_hash (backward compatibility)
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_body
223
+ to_hash
224
+ end
225
+
226
+ # Returns the object in the form of hash
227
+ # @return [Hash] Returns the object in the form of hash
228
+ def to_hash
229
+ hash = {}
230
+ self.class.attribute_map.each_pair do |attr, param|
231
+ value = self.send(attr)
232
+ next if value.nil?
233
+ hash[param] = _to_hash(value)
234
+ end
235
+ hash
236
+ end
237
+
238
+ # Outputs non-array value in the form of hash
239
+ # For object, use to_hash. Otherwise, just return the value
240
+ # @param [Object] value Any valid value
241
+ # @return [Hash] Returns the value in the form of hash
242
+ def _to_hash(value)
243
+ if value.is_a?(Array)
244
+ value.compact.map{ |v| _to_hash(v) }
245
+ elsif value.is_a?(Hash)
246
+ {}.tap do |hash|
247
+ value.each { |k, v| hash[k] = _to_hash(v) }
248
+ end
249
+ elsif value.respond_to? :to_hash
250
+ value.to_hash
251
+ else
252
+ value
253
+ end
254
+ end
255
+
256
+ end
257
+
258
+ end
@@ -0,0 +1,196 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="AddTextInRemoteSpreadsheet_request.rb.cs">
4
+ Copyright (c) 2026 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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class AddTextInRemoteSpreadsheetRequest
33
+
34
+ attr_accessor :name
35
+ attr_accessor :worksheet
36
+ attr_accessor :range
37
+ attr_accessor :text
38
+ attr_accessor :position
39
+ attr_accessor :select_text
40
+ attr_accessor :skip_empty_cells
41
+ attr_accessor :folder
42
+ attr_accessor :storage_name
43
+ attr_accessor :region
44
+ attr_accessor :password
45
+
46
+ def initialize(attributes = {})
47
+ return unless attributes.is_a?(Hash)
48
+
49
+ # convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
51
+
52
+ if attributes.has_key?(:'name')
53
+ self.name = attributes[:'name']
54
+ end
55
+
56
+ if attributes.has_key?(:'worksheet')
57
+ self.worksheet = attributes[:'worksheet']
58
+ end
59
+
60
+ if attributes.has_key?(:'range')
61
+ self.range = attributes[:'range']
62
+ end
63
+
64
+ if attributes.has_key?(:'text')
65
+ self.text = attributes[:'text']
66
+ end
67
+
68
+ if attributes.has_key?(:'position')
69
+ self.position = attributes[:'position']
70
+ end
71
+
72
+ if attributes.has_key?(:'selectText')
73
+ self.select_text = attributes[:'selectText']
74
+ end
75
+
76
+ if attributes.has_key?(:'skipEmptyCells')
77
+ self.skip_empty_cells = attributes[:'skipEmptyCells']
78
+ end
79
+
80
+ if attributes.has_key?(:'folder')
81
+ self.folder = attributes[:'folder']
82
+ end
83
+
84
+ if attributes.has_key?(:'storageName')
85
+ self.storage_name = attributes[:'storageName']
86
+ end
87
+
88
+ if attributes.has_key?(:'region')
89
+ self.region = attributes[:'region']
90
+ end
91
+
92
+ if attributes.has_key?(:'password')
93
+ self.password = attributes[:'password']
94
+ end
95
+
96
+ end
97
+ # Attribute mapping from ruby-style variable name to JSON key.
98
+ def self.attribute_map
99
+ {
100
+ :'name' => :'name',
101
+ :'worksheet' => :'worksheet',
102
+ :'range' => :'range',
103
+ :'text' => :'text',
104
+ :'position' => :'position',
105
+ :'select_text' => :'selectText',
106
+ :'skip_empty_cells' => :'skipEmptyCells',
107
+ :'folder' => :'folder',
108
+ :'storage_name' => :'storageName',
109
+ :'region' => :'region',
110
+ :'password' => :'password'
111
+ }
112
+ end
113
+
114
+ # Attribute type mapping.
115
+ def self.swagger_types
116
+ {
117
+ :'name' => :'String',
118
+ :'worksheet' => :'String',
119
+ :'range' => :'String',
120
+ :'text' => :'String',
121
+ :'position' => :'String',
122
+ :'select_text' => :'String',
123
+ :'skip_empty_cells' => :'BOOLEAN',
124
+ :'folder' => :'String',
125
+ :'storage_name' => :'String',
126
+ :'region' => :'String',
127
+ :'password' => :'String'
128
+ }
129
+ end
130
+
131
+ def create_http_request(api_client,opts = {})
132
+ if api_client.config.debugging
133
+ api_client.config.logger.debug "Calling API: CellsApi.add_text_in_remote_spreadsheet ..."
134
+ end
135
+ api_client.request_token_if_needed
136
+ # verify the required parameter 'name' is set
137
+ if api_client.config.client_side_validation && name.nil?
138
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.add_text_in_remote_spreadsheet "
139
+ end
140
+ # verify the required parameter 'worksheet' is set
141
+ if api_client.config.client_side_validation && worksheet.nil?
142
+ fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.add_text_in_remote_spreadsheet "
143
+ end
144
+ # verify the required parameter 'range' is set
145
+ if api_client.config.client_side_validation && range.nil?
146
+ fail ArgumentError, "Missing the required parameter 'range' when calling CellsApi.add_text_in_remote_spreadsheet "
147
+ end
148
+ # verify the required parameter 'text' is set
149
+ if api_client.config.client_side_validation && text.nil?
150
+ fail ArgumentError, "Missing the required parameter 'text' when calling CellsApi.add_text_in_remote_spreadsheet "
151
+ end
152
+ # verify the required parameter 'position' is set
153
+ if api_client.config.client_side_validation && position.nil?
154
+ fail ArgumentError, "Missing the required parameter 'position' when calling CellsApi.add_text_in_remote_spreadsheet "
155
+ end
156
+
157
+ # resource path
158
+ local_var_path = "v4.0/cells/{name}/worksheets/{worksheet}/range/{range}/content/add/text".sub('{' + 'name' + '}', name.to_s).sub('{' + 'worksheet' + '}', worksheet.to_s).sub('{' + 'range' + '}', range.to_s)
159
+ # query parameters
160
+ query_params = {}
161
+ query_params[:'text'] = self.text if !self.text.nil?
162
+ query_params[:'position'] = self.position if !self.position.nil?
163
+ query_params[:'selectText'] = self.select_text if !self.select_text.nil?
164
+ query_params[:'skipEmptyCells'] = self.skip_empty_cells if !self.skip_empty_cells.nil?
165
+ query_params[:'folder'] = self.folder if !self.folder.nil?
166
+ query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
167
+ query_params[:'region'] = self.region if !self.region.nil?
168
+ query_params[:'password'] = self.password if !self.password.nil?
169
+
170
+ # header parameters
171
+ header_params = {}
172
+ # HTTP header 'Accept' (if needed)
173
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
174
+ # HTTP header 'Content-Type'
175
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
176
+
177
+ # form parameters
178
+ form_params = {}
179
+ post_body = nil
180
+
181
+ #auth_names = []
182
+ auth_names = ['JWT']
183
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
184
+ :header_params => header_params,
185
+ :query_params => query_params,
186
+ :form_params => form_params,
187
+ :body => post_body,
188
+ :auth_names => auth_names,
189
+ :return_type => 'CellsCloudResponse')
190
+ if api_client.config.debugging
191
+ api_client.config.logger.debug "API called: Specification.Name>Api.add_text_in_remote_spreadsheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
192
+ end
193
+ return data, status_code, headers
194
+ end
195
+ end
196
+ end
@@ -0,0 +1,147 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="CalculationFormula_request.rb.cs">
4
+ Copyright (c) 2026 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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class CalculationFormulaRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :worksheet
36
+ attr_accessor :formula
37
+ attr_accessor :region
38
+ attr_accessor :password
39
+
40
+ def initialize(attributes = {})
41
+ return unless attributes.is_a?(Hash)
42
+
43
+ # convert string to symbol for hash key
44
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+
46
+ if attributes.has_key?(:'Spreadsheet')
47
+ self.spreadsheet = attributes[:'Spreadsheet']
48
+ end
49
+
50
+ if attributes.has_key?(:'worksheet')
51
+ self.worksheet = attributes[:'worksheet']
52
+ end
53
+
54
+ if attributes.has_key?(:'formula')
55
+ self.formula = attributes[:'formula']
56
+ end
57
+
58
+ if attributes.has_key?(:'region')
59
+ self.region = attributes[:'region']
60
+ end
61
+
62
+ if attributes.has_key?(:'password')
63
+ self.password = attributes[:'password']
64
+ end
65
+
66
+ end
67
+ # Attribute mapping from ruby-style variable name to JSON key.
68
+ def self.attribute_map
69
+ {
70
+ :'spreadsheet' => :'Spreadsheet',
71
+ :'worksheet' => :'worksheet',
72
+ :'formula' => :'formula',
73
+ :'region' => :'region',
74
+ :'password' => :'password'
75
+ }
76
+ end
77
+
78
+ # Attribute type mapping.
79
+ def self.swagger_types
80
+ {
81
+ :'spreadsheet' => :'String',
82
+ :'worksheet' => :'String',
83
+ :'formula' => :'String',
84
+ :'region' => :'String',
85
+ :'password' => :'String'
86
+ }
87
+ end
88
+
89
+ def create_http_request(api_client,opts = {})
90
+ if api_client.config.debugging
91
+ api_client.config.logger.debug "Calling API: CellsApi.calculation_formula ..."
92
+ end
93
+ api_client.request_token_if_needed
94
+ # verify the required parameter 'spreadsheet' is set
95
+ if api_client.config.client_side_validation && spreadsheet.nil?
96
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.calculation_formula "
97
+ end
98
+ # verify the required parameter 'worksheet' is set
99
+ if api_client.config.client_side_validation && worksheet.nil?
100
+ fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.calculation_formula "
101
+ end
102
+ # verify the required parameter 'formula' is set
103
+ if api_client.config.client_side_validation && formula.nil?
104
+ fail ArgumentError, "Missing the required parameter 'formula' when calling CellsApi.calculation_formula "
105
+ end
106
+
107
+ # resource path
108
+ local_var_path = "v4.0/cells/calculate/formula"
109
+ # query parameters
110
+ query_params = {}
111
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
112
+ query_params[:'formula'] = self.formula if !self.formula.nil?
113
+ query_params[:'region'] = self.region if !self.region.nil?
114
+ query_params[:'password'] = self.password if !self.password.nil?
115
+
116
+ # header parameters
117
+ header_params = {}
118
+ # HTTP header 'Accept' (if needed)
119
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
120
+ # HTTP header 'Content-Type'
121
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
122
+
123
+ # form parameters
124
+ form_params = {}
125
+ post_body = nil
126
+
127
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
128
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
129
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
130
+ end
131
+
132
+ #auth_names = []
133
+ auth_names = ['JWT']
134
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
135
+ :header_params => header_params,
136
+ :query_params => query_params,
137
+ :form_params => form_params,
138
+ :body => post_body,
139
+ :auth_names => auth_names,
140
+ :return_type => 'File')
141
+ if api_client.config.debugging
142
+ api_client.config.logger.debug "API called: Specification.Name>Api.calculation_formula\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
143
+ end
144
+ return data, status_code, headers
145
+ end
146
+ end
147
+ end
@@ -37,6 +37,8 @@ module AsposeCellsCloud
37
37
  attr_accessor :out_path
38
38
  attr_accessor :out_storage_name
39
39
  attr_accessor :fonts_location
40
+ attr_accessor :auto_rows_fit
41
+ attr_accessor :auto_columns_fit
40
42
  attr_accessor :region
41
43
  attr_accessor :password
42
44
 
@@ -70,6 +72,14 @@ module AsposeCellsCloud
70
72
  self.fonts_location = attributes[:'fontsLocation']
71
73
  end
72
74
 
75
+ if attributes.has_key?(:'AutoRowsFit')
76
+ self.auto_rows_fit = attributes[:'AutoRowsFit']
77
+ end
78
+
79
+ if attributes.has_key?(:'AutoColumnsFit')
80
+ self.auto_columns_fit = attributes[:'AutoColumnsFit']
81
+ end
82
+
73
83
  if attributes.has_key?(:'region')
74
84
  self.region = attributes[:'region']
75
85
  end
@@ -88,6 +98,8 @@ module AsposeCellsCloud
88
98
  :'out_path' => :'outPath',
89
99
  :'out_storage_name' => :'outStorageName',
90
100
  :'fonts_location' => :'fontsLocation',
101
+ :'auto_rows_fit' => :'AutoRowsFit',
102
+ :'auto_columns_fit' => :'AutoColumnsFit',
91
103
  :'region' => :'region',
92
104
  :'password' => :'password'
93
105
  }
@@ -102,6 +114,8 @@ module AsposeCellsCloud
102
114
  :'out_path' => :'String',
103
115
  :'out_storage_name' => :'String',
104
116
  :'fonts_location' => :'String',
117
+ :'auto_rows_fit' => :'BOOLEAN',
118
+ :'auto_columns_fit' => :'BOOLEAN',
105
119
  :'region' => :'String',
106
120
  :'password' => :'String'
107
121
  }
@@ -134,6 +148,8 @@ module AsposeCellsCloud
134
148
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
135
149
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
136
150
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
151
+ query_params[:'AutoRowsFit'] = self.auto_rows_fit if !self.auto_rows_fit.nil?
152
+ query_params[:'AutoColumnsFit'] = self.auto_columns_fit if !self.auto_columns_fit.nil?
137
153
  query_params[:'region'] = self.region if !self.region.nil?
138
154
  query_params[:'password'] = self.password if !self.password.nil?
139
155