aspose_cells_cloud 25.7.1 → 25.8

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -11
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +79 -0
  4. data/lib/aspose_cells_cloud/models/aggregate_result_by_color.rb +294 -0
  5. data/lib/aspose_cells_cloud/models/aggregate_result_by_color_response.rb +234 -0
  6. data/lib/aspose_cells_cloud/models/spreadsheet_template.rb +198 -0
  7. data/lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb +162 -0
  8. data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +154 -0
  9. data/lib/aspose_cells_cloud/requests/compress_spreadsheet_request.rb +150 -0
  10. data/lib/aspose_cells_cloud/requests/convert_chart_to_image_request.rb +3 -1
  11. data/lib/aspose_cells_cloud/requests/convert_chart_to_pdf_request.rb +3 -1
  12. data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +3 -1
  13. data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +3 -1
  14. data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +3 -1
  15. data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +3 -1
  16. data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +3 -1
  17. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +3 -1
  18. data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +3 -1
  19. data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +3 -1
  20. data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +3 -1
  21. data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +3 -1
  22. data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +3 -1
  23. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +3 -1
  24. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +3 -1
  25. data/lib/aspose_cells_cloud/requests/create_spreadsheet_request.rb +139 -0
  26. data/lib/aspose_cells_cloud/requests/delete_spreadsheet_blank_columns_request.rb +3 -1
  27. data/lib/aspose_cells_cloud/requests/delete_spreadsheet_blank_rows_request.rb +3 -1
  28. data/lib/aspose_cells_cloud/requests/delete_spreadsheet_blank_worksheets_request.rb +3 -1
  29. data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +150 -0
  30. data/lib/aspose_cells_cloud/requests/import_data_into_spreadsheet_request.rb +208 -0
  31. data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +162 -0
  32. data/lib/aspose_cells_cloud/requests/move_worksheet_in_spreadsheet_request.rb +162 -0
  33. data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +3 -1
  34. data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +4 -2
  35. data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +2 -2
  36. data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +162 -0
  37. data/lib/aspose_cells_cloud/requests/replace_spreadsheet_content_request.rb +3 -1
  38. data/lib/aspose_cells_cloud/requests/sawp_range_request.rb +186 -0
  39. data/lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb +3 -1
  40. data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +3 -1
  41. data/lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb +3 -1
  42. data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +3 -1
  43. data/lib/aspose_cells_cloud/requests/upload_file_request.rb +3 -1
  44. data/lib/aspose_cells_cloud/version.rb +1 -1
  45. data/lib/aspose_cells_cloud.rb +13 -0
  46. metadata +15 -2
@@ -0,0 +1,150 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="DeleteWorksheetFromSpreadsheet_request.rb.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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class DeleteWorksheetFromSpreadsheetRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :sheet_name
36
+ attr_accessor :out_path
37
+ attr_accessor :out_storage_name
38
+ attr_accessor :regoin
39
+ attr_accessor :password
40
+
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
46
+
47
+ if attributes.has_key?(:'Spreadsheet')
48
+ self.spreadsheet = attributes[:'Spreadsheet']
49
+ end
50
+
51
+ if attributes.has_key?(:'sheetName')
52
+ self.sheet_name = attributes[:'sheetName']
53
+ end
54
+
55
+ if attributes.has_key?(:'outPath')
56
+ self.out_path = attributes[:'outPath']
57
+ end
58
+
59
+ if attributes.has_key?(:'outStorageName')
60
+ self.out_storage_name = attributes[:'outStorageName']
61
+ end
62
+
63
+ if attributes.has_key?(:'regoin')
64
+ self.regoin = attributes[:'regoin']
65
+ end
66
+
67
+ if attributes.has_key?(:'password')
68
+ self.password = attributes[:'password']
69
+ end
70
+
71
+ end
72
+ # Attribute mapping from ruby-style variable name to JSON key.
73
+ def self.attribute_map
74
+ {
75
+ :'spreadsheet' => :'Spreadsheet',
76
+ :'sheet_name' => :'sheetName',
77
+ :'out_path' => :'outPath',
78
+ :'out_storage_name' => :'outStorageName',
79
+ :'regoin' => :'regoin',
80
+ :'password' => :'password'
81
+ }
82
+ end
83
+
84
+ # Attribute type mapping.
85
+ def self.swagger_types
86
+ {
87
+ :'spreadsheet' => :'String',
88
+ :'sheet_name' => :'String',
89
+ :'out_path' => :'String',
90
+ :'out_storage_name' => :'String',
91
+ :'regoin' => :'String',
92
+ :'password' => :'String'
93
+ }
94
+ end
95
+
96
+ def create_http_request(api_client,opts = {})
97
+ if api_client.config.debugging
98
+ api_client.config.logger.debug "Calling API: CellsApi.delete_worksheet_from_spreadsheet ..."
99
+ end
100
+ api_client.request_token_if_needed
101
+ # verify the required parameter 'spreadsheet' is set
102
+ if api_client.config.client_side_validation && spreadsheet.nil?
103
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.delete_worksheet_from_spreadsheet "
104
+ end
105
+ # verify the required parameter 'sheet_name' is set
106
+ if api_client.config.client_side_validation && sheet_name.nil?
107
+ fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.delete_worksheet_from_spreadsheet "
108
+ end
109
+
110
+ # resource path
111
+ local_var_path = "v4.0/cells/spreadsheet/delete/worksheet"
112
+ # query parameters
113
+ query_params = {}
114
+ query_params[:'sheetName'] = self.sheet_name if !self.sheet_name.nil?
115
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
116
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
117
+ query_params[:'regoin'] = self.regoin if !self.regoin.nil?
118
+ query_params[:'password'] = self.password if !self.password.nil?
119
+
120
+ # header parameters
121
+ header_params = {}
122
+ # HTTP header 'Accept' (if needed)
123
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
124
+ # HTTP header 'Content-Type'
125
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
126
+
127
+ # form parameters
128
+ form_params = {}
129
+ post_body = nil
130
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
131
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
132
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
133
+ end
134
+
135
+ #auth_names = []
136
+ auth_names = ['JWT']
137
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => 'File')
144
+ if api_client.config.debugging
145
+ api_client.config.logger.debug "API called: Specification.Name>Api.delete_worksheet_from_spreadsheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
+ end
147
+ return data, status_code, headers
148
+ end
149
+ end
150
+ end
@@ -0,0 +1,208 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="ImportDataIntoSpreadsheet_request.rb.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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class ImportDataIntoSpreadsheetRequest
33
+
34
+ attr_accessor :datafile
35
+ attr_accessor :spreadsheet
36
+ attr_accessor :worksheet
37
+ attr_accessor :startcell
38
+ attr_accessor :insert
39
+ attr_accessor :convert_numeric_data
40
+ attr_accessor :splitter
41
+ attr_accessor :out_path
42
+ attr_accessor :out_storage_name
43
+ attr_accessor :fonts_location
44
+ attr_accessor :regoin
45
+ attr_accessor :password
46
+
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
52
+
53
+ if attributes.has_key?(:'datafile')
54
+ self.datafile = attributes[:'datafile']
55
+ end
56
+
57
+ if attributes.has_key?(:'Spreadsheet')
58
+ self.spreadsheet = attributes[:'Spreadsheet']
59
+ end
60
+
61
+ if attributes.has_key?(:'worksheet')
62
+ self.worksheet = attributes[:'worksheet']
63
+ end
64
+
65
+ if attributes.has_key?(:'startcell')
66
+ self.startcell = attributes[:'startcell']
67
+ end
68
+
69
+ if attributes.has_key?(:'insert')
70
+ self.insert = attributes[:'insert']
71
+ end
72
+
73
+ if attributes.has_key?(:'convertNumericData')
74
+ self.convert_numeric_data = attributes[:'convertNumericData']
75
+ end
76
+
77
+ if attributes.has_key?(:'splitter')
78
+ self.splitter = attributes[:'splitter']
79
+ end
80
+
81
+ if attributes.has_key?(:'outPath')
82
+ self.out_path = attributes[:'outPath']
83
+ end
84
+
85
+ if attributes.has_key?(:'outStorageName')
86
+ self.out_storage_name = attributes[:'outStorageName']
87
+ end
88
+
89
+ if attributes.has_key?(:'fontsLocation')
90
+ self.fonts_location = attributes[:'fontsLocation']
91
+ end
92
+
93
+ if attributes.has_key?(:'regoin')
94
+ self.regoin = attributes[:'regoin']
95
+ end
96
+
97
+ if attributes.has_key?(:'password')
98
+ self.password = attributes[:'password']
99
+ end
100
+
101
+ end
102
+ # Attribute mapping from ruby-style variable name to JSON key.
103
+ def self.attribute_map
104
+ {
105
+ :'datafile' => :'datafile',
106
+ :'spreadsheet' => :'Spreadsheet',
107
+ :'worksheet' => :'worksheet',
108
+ :'startcell' => :'startcell',
109
+ :'insert' => :'insert',
110
+ :'convert_numeric_data' => :'convertNumericData',
111
+ :'splitter' => :'splitter',
112
+ :'out_path' => :'outPath',
113
+ :'out_storage_name' => :'outStorageName',
114
+ :'fonts_location' => :'fontsLocation',
115
+ :'regoin' => :'regoin',
116
+ :'password' => :'password'
117
+ }
118
+ end
119
+
120
+ # Attribute type mapping.
121
+ def self.swagger_types
122
+ {
123
+ :'datafile' => :'String',
124
+ :'spreadsheet' => :'String',
125
+ :'worksheet' => :'String',
126
+ :'startcell' => :'String',
127
+ :'insert' => :'BOOLEAN',
128
+ :'convert_numeric_data' => :'BOOLEAN',
129
+ :'splitter' => :'String',
130
+ :'out_path' => :'String',
131
+ :'out_storage_name' => :'String',
132
+ :'fonts_location' => :'String',
133
+ :'regoin' => :'String',
134
+ :'password' => :'String'
135
+ }
136
+ end
137
+
138
+ def create_http_request(api_client,opts = {})
139
+ if api_client.config.debugging
140
+ api_client.config.logger.debug "Calling API: CellsApi.import_data_into_spreadsheet ..."
141
+ end
142
+ api_client.request_token_if_needed
143
+ # verify the required parameter 'datafile' is set
144
+ if api_client.config.client_side_validation && datafile.nil?
145
+ fail ArgumentError, "Missing the required parameter 'datafile' when calling CellsApi.import_data_into_spreadsheet "
146
+ end
147
+ # verify the required parameter 'spreadsheet' is set
148
+ if api_client.config.client_side_validation && spreadsheet.nil?
149
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.import_data_into_spreadsheet "
150
+ end
151
+ # verify the required parameter 'worksheet' is set
152
+ if api_client.config.client_side_validation && worksheet.nil?
153
+ fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.import_data_into_spreadsheet "
154
+ end
155
+ # verify the required parameter 'startcell' is set
156
+ if api_client.config.client_side_validation && startcell.nil?
157
+ fail ArgumentError, "Missing the required parameter 'startcell' when calling CellsApi.import_data_into_spreadsheet "
158
+ end
159
+
160
+ # resource path
161
+ local_var_path = "v4.0/cells/import/data"
162
+ # query parameters
163
+ query_params = {}
164
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
165
+ query_params[:'startcell'] = self.startcell if !self.startcell.nil?
166
+ query_params[:'insert'] = self.insert if !self.insert.nil?
167
+ query_params[:'convertNumericData'] = self.convert_numeric_data if !self.convert_numeric_data.nil?
168
+ query_params[:'splitter'] = self.splitter if !self.splitter.nil?
169
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
170
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
171
+ query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
172
+ query_params[:'regoin'] = self.regoin if !self.regoin.nil?
173
+ query_params[:'password'] = self.password if !self.password.nil?
174
+
175
+ # header parameters
176
+ header_params = {}
177
+ # HTTP header 'Accept' (if needed)
178
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
179
+ # HTTP header 'Content-Type'
180
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
181
+
182
+ # form parameters
183
+ form_params = {}
184
+ post_body = nil
185
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
186
+ if !datafile.empty? && File.exist?(datafile )
187
+ form_params[File.basename(datafile)] = ::File.open(datafile,"r")
188
+ end
189
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
190
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
191
+ end
192
+
193
+ #auth_names = []
194
+ auth_names = ['JWT']
195
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
196
+ :header_params => header_params,
197
+ :query_params => query_params,
198
+ :form_params => form_params,
199
+ :body => post_body,
200
+ :auth_names => auth_names,
201
+ :return_type => 'File')
202
+ if api_client.config.debugging
203
+ api_client.config.logger.debug "API called: Specification.Name>Api.import_data_into_spreadsheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
+ end
205
+ return data, status_code, headers
206
+ end
207
+ end
208
+ end
@@ -0,0 +1,162 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="MathCalculate_request.rb.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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class MathCalculateRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :operation
36
+ attr_accessor :value
37
+ attr_accessor :worksheet
38
+ attr_accessor :range
39
+ attr_accessor :regoin
40
+ attr_accessor :password
41
+
42
+ def initialize(attributes = {})
43
+ return unless attributes.is_a?(Hash)
44
+
45
+ # convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
47
+
48
+ if attributes.has_key?(:'Spreadsheet')
49
+ self.spreadsheet = attributes[:'Spreadsheet']
50
+ end
51
+
52
+ if attributes.has_key?(:'operation')
53
+ self.operation = attributes[:'operation']
54
+ end
55
+
56
+ if attributes.has_key?(:'value')
57
+ self.value = attributes[:'value']
58
+ end
59
+
60
+ if attributes.has_key?(:'worksheet')
61
+ self.worksheet = attributes[:'worksheet']
62
+ end
63
+
64
+ if attributes.has_key?(:'range')
65
+ self.range = attributes[:'range']
66
+ end
67
+
68
+ if attributes.has_key?(:'regoin')
69
+ self.regoin = attributes[:'regoin']
70
+ end
71
+
72
+ if attributes.has_key?(:'password')
73
+ self.password = attributes[:'password']
74
+ end
75
+
76
+ end
77
+ # Attribute mapping from ruby-style variable name to JSON key.
78
+ def self.attribute_map
79
+ {
80
+ :'spreadsheet' => :'Spreadsheet',
81
+ :'operation' => :'operation',
82
+ :'value' => :'value',
83
+ :'worksheet' => :'worksheet',
84
+ :'range' => :'range',
85
+ :'regoin' => :'regoin',
86
+ :'password' => :'password'
87
+ }
88
+ end
89
+
90
+ # Attribute type mapping.
91
+ def self.swagger_types
92
+ {
93
+ :'spreadsheet' => :'String',
94
+ :'operation' => :'String',
95
+ :'value' => :'String',
96
+ :'worksheet' => :'String',
97
+ :'range' => :'String',
98
+ :'regoin' => :'String',
99
+ :'password' => :'String'
100
+ }
101
+ end
102
+
103
+ def create_http_request(api_client,opts = {})
104
+ if api_client.config.debugging
105
+ api_client.config.logger.debug "Calling API: CellsApi.math_calculate ..."
106
+ end
107
+ api_client.request_token_if_needed
108
+ # verify the required parameter 'spreadsheet' is set
109
+ if api_client.config.client_side_validation && spreadsheet.nil?
110
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.math_calculate "
111
+ end
112
+ # verify the required parameter 'operation' is set
113
+ if api_client.config.client_side_validation && operation.nil?
114
+ fail ArgumentError, "Missing the required parameter 'operation' when calling CellsApi.math_calculate "
115
+ end
116
+ # verify the required parameter 'value' is set
117
+ if api_client.config.client_side_validation && value.nil?
118
+ fail ArgumentError, "Missing the required parameter 'value' when calling CellsApi.math_calculate "
119
+ end
120
+
121
+ # resource path
122
+ local_var_path = "v4.0/cells/calculate/math"
123
+ # query parameters
124
+ query_params = {}
125
+ query_params[:'operation'] = self.operation if !self.operation.nil?
126
+ query_params[:'value'] = self.value if !self.value.nil?
127
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
128
+ query_params[:'range'] = self.range if !self.range.nil?
129
+ query_params[:'regoin'] = self.regoin if !self.regoin.nil?
130
+ query_params[:'password'] = self.password if !self.password.nil?
131
+
132
+ # header parameters
133
+ header_params = {}
134
+ # HTTP header 'Accept' (if needed)
135
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
136
+ # HTTP header 'Content-Type'
137
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
138
+
139
+ # form parameters
140
+ form_params = {}
141
+ post_body = nil
142
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
143
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
144
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
145
+ end
146
+
147
+ #auth_names = []
148
+ auth_names = ['JWT']
149
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
150
+ :header_params => header_params,
151
+ :query_params => query_params,
152
+ :form_params => form_params,
153
+ :body => post_body,
154
+ :auth_names => auth_names,
155
+ :return_type => 'File')
156
+ if api_client.config.debugging
157
+ api_client.config.logger.debug "API called: Specification.Name>Api.math_calculate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
158
+ end
159
+ return data, status_code, headers
160
+ end
161
+ end
162
+ end
@@ -0,0 +1,162 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="MoveWorksheetInSpreadsheet_request.rb.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 "uri"
30
+
31
+ module AsposeCellsCloud
32
+ class MoveWorksheetInSpreadsheetRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :worksheet
36
+ attr_accessor :position
37
+ attr_accessor :out_path
38
+ attr_accessor :out_storage_name
39
+ attr_accessor :regoin
40
+ attr_accessor :password
41
+
42
+ def initialize(attributes = {})
43
+ return unless attributes.is_a?(Hash)
44
+
45
+ # convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
47
+
48
+ if attributes.has_key?(:'Spreadsheet')
49
+ self.spreadsheet = attributes[:'Spreadsheet']
50
+ end
51
+
52
+ if attributes.has_key?(:'worksheet')
53
+ self.worksheet = attributes[:'worksheet']
54
+ end
55
+
56
+ if attributes.has_key?(:'position')
57
+ self.position = attributes[:'position']
58
+ end
59
+
60
+ if attributes.has_key?(:'outPath')
61
+ self.out_path = attributes[:'outPath']
62
+ end
63
+
64
+ if attributes.has_key?(:'outStorageName')
65
+ self.out_storage_name = attributes[:'outStorageName']
66
+ end
67
+
68
+ if attributes.has_key?(:'regoin')
69
+ self.regoin = attributes[:'regoin']
70
+ end
71
+
72
+ if attributes.has_key?(:'password')
73
+ self.password = attributes[:'password']
74
+ end
75
+
76
+ end
77
+ # Attribute mapping from ruby-style variable name to JSON key.
78
+ def self.attribute_map
79
+ {
80
+ :'spreadsheet' => :'Spreadsheet',
81
+ :'worksheet' => :'worksheet',
82
+ :'position' => :'position',
83
+ :'out_path' => :'outPath',
84
+ :'out_storage_name' => :'outStorageName',
85
+ :'regoin' => :'regoin',
86
+ :'password' => :'password'
87
+ }
88
+ end
89
+
90
+ # Attribute type mapping.
91
+ def self.swagger_types
92
+ {
93
+ :'spreadsheet' => :'String',
94
+ :'worksheet' => :'String',
95
+ :'position' => :'Integer',
96
+ :'out_path' => :'String',
97
+ :'out_storage_name' => :'String',
98
+ :'regoin' => :'String',
99
+ :'password' => :'String'
100
+ }
101
+ end
102
+
103
+ def create_http_request(api_client,opts = {})
104
+ if api_client.config.debugging
105
+ api_client.config.logger.debug "Calling API: CellsApi.move_worksheet_in_spreadsheet ..."
106
+ end
107
+ api_client.request_token_if_needed
108
+ # verify the required parameter 'spreadsheet' is set
109
+ if api_client.config.client_side_validation && spreadsheet.nil?
110
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.move_worksheet_in_spreadsheet "
111
+ end
112
+ # verify the required parameter 'worksheet' is set
113
+ if api_client.config.client_side_validation && worksheet.nil?
114
+ fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.move_worksheet_in_spreadsheet "
115
+ end
116
+ # verify the required parameter 'position' is set
117
+ if api_client.config.client_side_validation && position.nil?
118
+ fail ArgumentError, "Missing the required parameter 'position' when calling CellsApi.move_worksheet_in_spreadsheet "
119
+ end
120
+
121
+ # resource path
122
+ local_var_path = "v4.0/cells/spreadsheet/move/worksheet"
123
+ # query parameters
124
+ query_params = {}
125
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
126
+ query_params[:'position'] = self.position if !self.position.nil?
127
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
128
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
129
+ query_params[:'regoin'] = self.regoin if !self.regoin.nil?
130
+ query_params[:'password'] = self.password if !self.password.nil?
131
+
132
+ # header parameters
133
+ header_params = {}
134
+ # HTTP header 'Accept' (if needed)
135
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
136
+ # HTTP header 'Content-Type'
137
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
138
+
139
+ # form parameters
140
+ form_params = {}
141
+ post_body = nil
142
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
143
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
144
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
145
+ end
146
+
147
+ #auth_names = []
148
+ auth_names = ['JWT']
149
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
150
+ :header_params => header_params,
151
+ :query_params => query_params,
152
+ :form_params => form_params,
153
+ :body => post_body,
154
+ :auth_names => auth_names,
155
+ :return_type => 'File')
156
+ if api_client.config.debugging
157
+ api_client.config.logger.debug "API called: Specification.Name>Api.move_worksheet_in_spreadsheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
158
+ end
159
+ return data, status_code, headers
160
+ end
161
+ end
162
+ end