aspose_cells_cloud 26.1 → 26.2
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.
- checksums.yaml +4 -4
- data/README.md +52 -11
- data/lib/aspose_cells_cloud/api/cells_api.rb +69 -4
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_csv_request.rb +158 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_json_request.rb +158 -0
- data/lib/aspose_cells_cloud/requests/decompose_user_task_request.rb +1 -1
- data/lib/aspose_cells_cloud/requests/get_merged_cells_in_remoted_worksheet_request.rb +145 -0
- data/lib/aspose_cells_cloud/requests/get_merged_cells_in_worksheet_request.rb +134 -0
- data/lib/aspose_cells_cloud/requests/get_worksheets_with_local_spreadsheet_request.rb +122 -0
- data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +3 -3
- data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +2 -2
- data/lib/aspose_cells_cloud/requests/search_all_text_items_in_remote_spreadsheet_request.rb +138 -0
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_all_text_items_request.rb +122 -0
- data/lib/aspose_cells_cloud/requests/{translation_spreadsheet_request.rb → translate_spreadsheet_request.rb} +6 -6
- data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +2 -3
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +8 -1
- metadata +10 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7dc98a9ddf45219f1ed6741af212af90653854d6ed4fef8952c63ea42163a4d9
|
|
4
|
+
data.tar.gz: 0ec83ac6104ef5f9b4afe18f1fa08876e3db66fe4415804a337b219b704527d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd4d3a4251eca23606cea539efc3d5c3cce6bc6470e819c6a3e240bafaa42fed6f1b781774c803d99dd84c9f01b513559a3e52fe3c3dc4ea956e75d25c358eb0
|
|
7
|
+
data.tar.gz: a21a1fca79e8762d134fad742c1ad24ccc3ee8deffce9b8de2c48f41466837b11fd376b36463e53bac3a526acbbc25c5b98913bd37ea5999a8835a745c37df56
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
 [](https://products.aspose.cloud/cells/ruby/) [](https://docs.aspose.cloud/cells/) [](https://reference.aspose.cloud/cells/) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-perl/tree/master/Examples) [](https://blog.aspose.cloud/categories/aspose.cells-cloud-product-family/) [](https://forum.aspose.cloud/c/cells/7) [](https://rubygems.org/gems/aspose_cells_cloud) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/archive/refs/heads/master.zip) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) 
|
|
2
2
|
|
|
3
3
|
[Aspose.Cells Cloud SDK for Ruby](https://products.aspose.cloud/cells/ruby) is a cloud-native REST API that enables Ruby developers to **create**, **read**, **edit**, **convert**, and **repair** spreadsheet files—including **Excel** (**XLS**, **XLSX**, **XLSB**, **XLSM**), **OpenDocument Spreadsheet (ODS**), **CSV**, **TSV**, **JSON**, **HTML**, **PDF**, and **more—without requiring Microsoft Excel or Office to be installed**.
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ To begin with Aspose.Cells Cloud, here's what you need to do:
|
|
|
22
22
|
- execute the following command to get the latest Gem package.
|
|
23
23
|
|
|
24
24
|
```console
|
|
25
|
-
gem 'aspose_cells_cloud', '~> 26.
|
|
25
|
+
gem 'aspose_cells_cloud', '~> 26.2'
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
or install directly
|
|
@@ -111,7 +111,40 @@ request = AsposeCellsCloud::UploadFileRequest.new(:UploadFiles=>"EmployeeSales
|
|
|
111
111
|
| [EPUB](https://docs.fileformat.com/database/dbf/) | database file | | √ |
|
|
112
112
|
| [XHTML](https://docs.fileformat.com/web/xhtml/) | XHTML File Format | | √ |
|
|
113
113
|
|
|
114
|
-
##
|
|
114
|
+
## Architecture
|
|
115
|
+
|
|
116
|
+

|
|
117
|
+
graph TB
|
|
118
|
+
|
|
119
|
+
subgraph "Client Layer"
|
|
120
|
+
C1[Web Application]
|
|
121
|
+
C2[Mobile Application]
|
|
122
|
+
C3[Desktop Application]
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
subgraph "API Gateway Layer"
|
|
126
|
+
G1[Gateway Service]
|
|
127
|
+
G2[Authentication Services]
|
|
128
|
+
G3[Load Balancing]
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
subgraph "Cloud Microservices layer"
|
|
132
|
+
S1[User Application]
|
|
133
|
+
S2[Product Services]
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
C1 & C2 & C3 --> G1
|
|
137
|
+
G1 --> S1 & S2
|
|
138
|
+
|
|
139
|
+
style C1 fill:#e1f5fe
|
|
140
|
+
style G1 fill:#f3e5f5
|
|
141
|
+
style S1 fill:#e8f5e8
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## [Developer Reference](docs/DeveloperGuide.md#overview)
|
|
146
|
+
|
|
147
|
+
### Manipulate Excel and other spreadsheet files in the Cloud
|
|
115
148
|
|
|
116
149
|
- File Manipulation: Users can upload, download, delete, and manage Excel files stored in the cloud.
|
|
117
150
|
- Formatting: Supports formatting of cells, fonts, colors, and alignment modes in Excel files to cater to users' specific requirements.
|
|
@@ -124,17 +157,24 @@ request = AsposeCellsCloud::UploadFileRequest.new(:UploadFiles=>"EmployeeSales
|
|
|
124
157
|
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
|
|
125
158
|
- Security Management: Offers a range of security features like data encryption, access control, and permission management to safeguard the security and integrity of spreadsheet data.
|
|
126
159
|
|
|
127
|
-
## Feature & Enhancements in Version
|
|
160
|
+
## Feature & Enhancements in Version v26.2
|
|
128
161
|
|
|
129
162
|
Full list of issues covering all changes in this release:
|
|
130
163
|
|
|
131
|
-
| **Summary**
|
|
132
|
-
|
|
|
133
|
-
|
|
|
134
|
-
|
|
|
135
|
-
| Support
|
|
136
|
-
|
|
137
|
-
| Support
|
|
164
|
+
| **Summary** | **Category** |
|
|
165
|
+
| :------------------------------------------------------------------------------------------------------------ | :----------- |
|
|
166
|
+
| Aspose.Cells Cloud python plugin for marker. | New Feature |
|
|
167
|
+
| Support converting Worksheet to JSON format file | New Feature |
|
|
168
|
+
| Support converting Worksheet to CSV format file | New Feature |
|
|
169
|
+
| Support getting worksheets with the spreadsheet | New Feature |
|
|
170
|
+
| Support getting all text items from the spreadsheet. | New Feature |
|
|
171
|
+
| Support getting all merged cell areas from the spreadsheet. | New Feature |
|
|
172
|
+
| The TranslationSpreadsheet API has been modified to support multiple input and output formats. | New Feature |
|
|
173
|
+
| The TranslateTextFile API has been updated to support the translation of plain text content other than files. | New Feature |
|
|
174
|
+
| Enhancing the Get Workbook function when only a data stream is available. | New Feature |
|
|
175
|
+
| Enhance MaxResponseBufferSize for Aspose.Cells Cloud | Improvement |
|
|
176
|
+
| Format exception about converting table to html API | Bug |
|
|
177
|
+
| Build error in the From Body parameter description in the code generation specification. | Bug |
|
|
138
178
|
|
|
139
179
|
## Available SDKs
|
|
140
180
|
|
|
@@ -157,3 +197,4 @@ The Aspose.Cells Cloud SDK is available in multiple popular programming language
|
|
|
157
197
|
[](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby) [](https://rubygems.org/gems/aspose_cells_cloud)
|
|
158
198
|
|
|
159
199
|
## [Release history version](CHANGELOG.md)
|
|
200
|
+
```
|
|
@@ -40,7 +40,7 @@ module AsposeCellsCloud
|
|
|
40
40
|
@api_client.config.host = app_host
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
#
|
|
43
|
+
# AI task decomposition: Convert user objectives to sequential action plans with formatted file export.
|
|
44
44
|
|
|
45
45
|
def decompose_user_task( decompose_user_task_request, opts = {})
|
|
46
46
|
|
|
@@ -50,12 +50,13 @@ module AsposeCellsCloud
|
|
|
50
50
|
|
|
51
51
|
# Translates the entire spreadsheet to the specified target language.
|
|
52
52
|
|
|
53
|
-
def
|
|
53
|
+
def translate_spreadsheet( translate_spreadsheet_request, opts = {})
|
|
54
54
|
|
|
55
|
-
data, _status_code, _headers =
|
|
55
|
+
data, _status_code, _headers = translate_spreadsheet_request.create_http_request(@api_client,opts )
|
|
56
56
|
return data
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
# Translates text file content to the specified target language.
|
|
59
60
|
|
|
60
61
|
def translate_text_file( translate_text_file_request, opts = {})
|
|
61
62
|
|
|
@@ -159,6 +160,7 @@ module AsposeCellsCloud
|
|
|
159
160
|
return data
|
|
160
161
|
end
|
|
161
162
|
|
|
163
|
+
# Converts a spreadsheet on a local drive to the JSON file.
|
|
162
164
|
|
|
163
165
|
def convert_spreadsheet_to_json( convert_spreadsheet_to_json_request, opts = {})
|
|
164
166
|
|
|
@@ -190,6 +192,22 @@ module AsposeCellsCloud
|
|
|
190
192
|
return data
|
|
191
193
|
end
|
|
192
194
|
|
|
195
|
+
# Converts a worksheet of spreadsheet on a local drive to the JSON file.
|
|
196
|
+
|
|
197
|
+
def convert_worksheet_to_json( convert_worksheet_to_json_request, opts = {})
|
|
198
|
+
|
|
199
|
+
data, _status_code, _headers = convert_worksheet_to_json_request.create_http_request(@api_client,opts )
|
|
200
|
+
return data
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Converts a worksheet of spreadsheet on a local drive to the CSV file.
|
|
204
|
+
|
|
205
|
+
def convert_worksheet_to_csv( convert_worksheet_to_csv_request, opts = {})
|
|
206
|
+
|
|
207
|
+
data, _status_code, _headers = convert_worksheet_to_csv_request.create_http_request(@api_client,opts )
|
|
208
|
+
return data
|
|
209
|
+
end
|
|
210
|
+
|
|
193
211
|
# Converts a worksheet of spreadsheet on a local drive to the html file.
|
|
194
212
|
|
|
195
213
|
def convert_worksheet_to_html( convert_worksheet_to_html_request, opts = {})
|
|
@@ -198,6 +216,7 @@ module AsposeCellsCloud
|
|
|
198
216
|
return data
|
|
199
217
|
end
|
|
200
218
|
|
|
219
|
+
# Converts a worksheet of spreadsheet on a local drive to the HTML table file.
|
|
201
220
|
|
|
202
221
|
def convert_worksheet_to_html_table( convert_worksheet_to_html_table_request, opts = {})
|
|
203
222
|
|
|
@@ -341,7 +360,7 @@ module AsposeCellsCloud
|
|
|
341
360
|
return data
|
|
342
361
|
end
|
|
343
362
|
|
|
344
|
-
# Split an Excel worksheet into multiple sheets by column value.
|
|
363
|
+
# Split an Excel worksheet tale into multiple sheets by column value.
|
|
345
364
|
|
|
346
365
|
def split_table( split_table_request, opts = {})
|
|
347
366
|
|
|
@@ -365,6 +384,7 @@ module AsposeCellsCloud
|
|
|
365
384
|
return data
|
|
366
385
|
end
|
|
367
386
|
|
|
387
|
+
# Import JSON data file into the local spreadsheet.
|
|
368
388
|
|
|
369
389
|
def import_json_data_into_spreadsheet( import_json_data_into_spreadsheet_request, opts = {})
|
|
370
390
|
|
|
@@ -372,6 +392,7 @@ module AsposeCellsCloud
|
|
|
372
392
|
return data
|
|
373
393
|
end
|
|
374
394
|
|
|
395
|
+
# Import XML data file into the local spreadsheet.
|
|
375
396
|
|
|
376
397
|
def import_xml_data_into_spreadsheet( import_xml_data_into_spreadsheet_request, opts = {})
|
|
377
398
|
|
|
@@ -379,6 +400,7 @@ module AsposeCellsCloud
|
|
|
379
400
|
return data
|
|
380
401
|
end
|
|
381
402
|
|
|
403
|
+
# Import CSV data file into the local spreadsheet.
|
|
382
404
|
|
|
383
405
|
def import_csv_data_into_spreadsheet( import_csv_data_into_spreadsheet_request, opts = {})
|
|
384
406
|
|
|
@@ -402,6 +424,14 @@ module AsposeCellsCloud
|
|
|
402
424
|
return data
|
|
403
425
|
end
|
|
404
426
|
|
|
427
|
+
# Fetches a complete list of worksheets from the currently active local spreadsheet.
|
|
428
|
+
|
|
429
|
+
def get_worksheets_with_local_spreadsheet( get_worksheets_with_local_spreadsheet_request, opts = {})
|
|
430
|
+
|
|
431
|
+
data, _status_code, _headers = get_worksheets_with_local_spreadsheet_request.create_http_request(@api_client,opts )
|
|
432
|
+
return data
|
|
433
|
+
end
|
|
434
|
+
|
|
405
435
|
# The Web API enables users to add a new worksheet to a workbook, specifying the worksheet's type, position, and name. This function provides flexibility in managing workbook structure by allowing detailed control over worksheet addition.
|
|
406
436
|
|
|
407
437
|
def add_worksheet_to_spreadsheet( add_worksheet_to_spreadsheet_request, opts = {})
|
|
@@ -442,6 +472,7 @@ module AsposeCellsCloud
|
|
|
442
472
|
return data
|
|
443
473
|
end
|
|
444
474
|
|
|
475
|
+
# The Web API endpoint allows users to repair a spreadsheet.
|
|
445
476
|
|
|
446
477
|
def repair_spreadsheet( repair_spreadsheet_request, opts = {})
|
|
447
478
|
|
|
@@ -449,6 +480,22 @@ module AsposeCellsCloud
|
|
|
449
480
|
return data
|
|
450
481
|
end
|
|
451
482
|
|
|
483
|
+
# Get all merged cell area form a remote spreadsheet worksheet.
|
|
484
|
+
|
|
485
|
+
def get_merged_cells_in_remoted_worksheet( get_merged_cells_in_remoted_worksheet_request, opts = {})
|
|
486
|
+
|
|
487
|
+
data, _status_code, _headers = get_merged_cells_in_remoted_worksheet_request.create_http_request(@api_client,opts )
|
|
488
|
+
return data
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# Get all merged cell area form a local spreadsheet worksheet.
|
|
492
|
+
|
|
493
|
+
def get_merged_cells_in_worksheet( get_merged_cells_in_worksheet_request, opts = {})
|
|
494
|
+
|
|
495
|
+
data, _status_code, _headers = get_merged_cells_in_worksheet_request.create_http_request(@api_client,opts )
|
|
496
|
+
return data
|
|
497
|
+
end
|
|
498
|
+
|
|
452
499
|
# Applies dual-layer password protection to Excel spreadsheets, supporting both open and modify passwords with encryption.
|
|
453
500
|
|
|
454
501
|
def protect_spreadsheet( protect_spreadsheet_request, opts = {})
|
|
@@ -472,6 +519,22 @@ module AsposeCellsCloud
|
|
|
472
519
|
return data
|
|
473
520
|
end
|
|
474
521
|
|
|
522
|
+
# Get all text items in the remote spreadsheet.
|
|
523
|
+
|
|
524
|
+
def search_all_text_items_in_remote_spreadsheet( search_all_text_items_in_remote_spreadsheet_request, opts = {})
|
|
525
|
+
|
|
526
|
+
data, _status_code, _headers = search_all_text_items_in_remote_spreadsheet_request.create_http_request(@api_client,opts )
|
|
527
|
+
return data
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
# Get all text items in the remote spreadsheet.
|
|
531
|
+
|
|
532
|
+
def search_spreadsheet_all_text_items( search_spreadsheet_all_text_items_request, opts = {})
|
|
533
|
+
|
|
534
|
+
data, _status_code, _headers = search_spreadsheet_all_text_items_request.create_http_request(@api_client,opts )
|
|
535
|
+
return data
|
|
536
|
+
end
|
|
537
|
+
|
|
475
538
|
# Search text in the local spreadsheet.
|
|
476
539
|
|
|
477
540
|
def search_spreadsheet_content( search_spreadsheet_content_request, opts = {})
|
|
@@ -679,6 +742,7 @@ module AsposeCellsCloud
|
|
|
679
742
|
return data
|
|
680
743
|
end
|
|
681
744
|
|
|
745
|
+
# Removes duplicate values in the worksheet/range/table.
|
|
682
746
|
|
|
683
747
|
def remove_duplicates( remove_duplicates_request, opts = {})
|
|
684
748
|
|
|
@@ -694,6 +758,7 @@ module AsposeCellsCloud
|
|
|
694
758
|
return data
|
|
695
759
|
end
|
|
696
760
|
|
|
761
|
+
# Transposes a specified data range (rows become columns, columns become rows).
|
|
697
762
|
|
|
698
763
|
def flip_data( flip_data_request, opts = {})
|
|
699
764
|
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="ConvertWorksheetToCsv_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 ConvertWorksheetToCsvRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :spreadsheet
|
|
35
|
+
attr_accessor :worksheet
|
|
36
|
+
attr_accessor :out_path
|
|
37
|
+
attr_accessor :out_storage_name
|
|
38
|
+
attr_accessor :fonts_location
|
|
39
|
+
attr_accessor :region
|
|
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?(:'outPath')
|
|
57
|
+
self.out_path = attributes[:'outPath']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
if attributes.has_key?(:'outStorageName')
|
|
61
|
+
self.out_storage_name = attributes[:'outStorageName']
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
if attributes.has_key?(:'fontsLocation')
|
|
65
|
+
self.fonts_location = attributes[:'fontsLocation']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'region')
|
|
69
|
+
self.region = attributes[:'region']
|
|
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
|
+
:'out_path' => :'outPath',
|
|
83
|
+
:'out_storage_name' => :'outStorageName',
|
|
84
|
+
:'fonts_location' => :'fontsLocation',
|
|
85
|
+
:'region' => :'region',
|
|
86
|
+
:'password' => :'password'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Attribute type mapping.
|
|
91
|
+
def self.swagger_types
|
|
92
|
+
{
|
|
93
|
+
:'spreadsheet' => :'String',
|
|
94
|
+
:'worksheet' => :'String',
|
|
95
|
+
:'out_path' => :'String',
|
|
96
|
+
:'out_storage_name' => :'String',
|
|
97
|
+
:'fonts_location' => :'String',
|
|
98
|
+
:'region' => :'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.convert_worksheet_to_csv ..."
|
|
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.convert_worksheet_to_csv "
|
|
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.convert_worksheet_to_csv "
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# resource path
|
|
118
|
+
local_var_path = "v4.0/cells/convert/worksheet/csv"
|
|
119
|
+
# query parameters
|
|
120
|
+
query_params = {}
|
|
121
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
|
122
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
123
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
124
|
+
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
125
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
126
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
127
|
+
|
|
128
|
+
# header parameters
|
|
129
|
+
header_params = {}
|
|
130
|
+
# HTTP header 'Accept' (if needed)
|
|
131
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
132
|
+
# HTTP header 'Content-Type'
|
|
133
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
134
|
+
|
|
135
|
+
# form parameters
|
|
136
|
+
form_params = {}
|
|
137
|
+
post_body = nil
|
|
138
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
139
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
140
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
#auth_names = []
|
|
144
|
+
auth_names = ['JWT']
|
|
145
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
146
|
+
:header_params => header_params,
|
|
147
|
+
:query_params => query_params,
|
|
148
|
+
:form_params => form_params,
|
|
149
|
+
:body => post_body,
|
|
150
|
+
:auth_names => auth_names,
|
|
151
|
+
:return_type => 'File')
|
|
152
|
+
if api_client.config.debugging
|
|
153
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.convert_worksheet_to_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
154
|
+
end
|
|
155
|
+
return data, status_code, headers
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="ConvertWorksheetToJson_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 ConvertWorksheetToJsonRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :spreadsheet
|
|
35
|
+
attr_accessor :worksheet
|
|
36
|
+
attr_accessor :out_path
|
|
37
|
+
attr_accessor :out_storage_name
|
|
38
|
+
attr_accessor :fonts_location
|
|
39
|
+
attr_accessor :region
|
|
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?(:'outPath')
|
|
57
|
+
self.out_path = attributes[:'outPath']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
if attributes.has_key?(:'outStorageName')
|
|
61
|
+
self.out_storage_name = attributes[:'outStorageName']
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
if attributes.has_key?(:'fontsLocation')
|
|
65
|
+
self.fonts_location = attributes[:'fontsLocation']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'region')
|
|
69
|
+
self.region = attributes[:'region']
|
|
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
|
+
:'out_path' => :'outPath',
|
|
83
|
+
:'out_storage_name' => :'outStorageName',
|
|
84
|
+
:'fonts_location' => :'fontsLocation',
|
|
85
|
+
:'region' => :'region',
|
|
86
|
+
:'password' => :'password'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Attribute type mapping.
|
|
91
|
+
def self.swagger_types
|
|
92
|
+
{
|
|
93
|
+
:'spreadsheet' => :'String',
|
|
94
|
+
:'worksheet' => :'String',
|
|
95
|
+
:'out_path' => :'String',
|
|
96
|
+
:'out_storage_name' => :'String',
|
|
97
|
+
:'fonts_location' => :'String',
|
|
98
|
+
:'region' => :'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.convert_worksheet_to_json ..."
|
|
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.convert_worksheet_to_json "
|
|
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.convert_worksheet_to_json "
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# resource path
|
|
118
|
+
local_var_path = "v4.0/cells/convert/worksheet/json"
|
|
119
|
+
# query parameters
|
|
120
|
+
query_params = {}
|
|
121
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
|
122
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
123
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
124
|
+
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
|
125
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
126
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
127
|
+
|
|
128
|
+
# header parameters
|
|
129
|
+
header_params = {}
|
|
130
|
+
# HTTP header 'Accept' (if needed)
|
|
131
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
132
|
+
# HTTP header 'Content-Type'
|
|
133
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
134
|
+
|
|
135
|
+
# form parameters
|
|
136
|
+
form_params = {}
|
|
137
|
+
post_body = nil
|
|
138
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
139
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
140
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
#auth_names = []
|
|
144
|
+
auth_names = ['JWT']
|
|
145
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
146
|
+
:header_params => header_params,
|
|
147
|
+
:query_params => query_params,
|
|
148
|
+
:form_params => form_params,
|
|
149
|
+
:body => post_body,
|
|
150
|
+
:auth_names => auth_names,
|
|
151
|
+
:return_type => 'File')
|
|
152
|
+
if api_client.config.debugging
|
|
153
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.convert_worksheet_to_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
154
|
+
end
|
|
155
|
+
return data, status_code, headers
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
@@ -86,7 +86,6 @@ module AsposeCellsCloud
|
|
|
86
86
|
local_var_path = "v4.0/cells/ai/task/decompose"
|
|
87
87
|
# query parameters
|
|
88
88
|
query_params = {}
|
|
89
|
-
query_params[:'TaskDescription'] = self.task_description if !self.task_description.nil?
|
|
90
89
|
query_params[:'region'] = self.region if !self.region.nil?
|
|
91
90
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
92
91
|
|
|
@@ -100,6 +99,7 @@ module AsposeCellsCloud
|
|
|
100
99
|
# form parameters
|
|
101
100
|
form_params = {}
|
|
102
101
|
post_body = nil
|
|
102
|
+
post_body = api_client.object_to_http_body(task_description)
|
|
103
103
|
|
|
104
104
|
#auth_names = []
|
|
105
105
|
auth_names = ['JWT']
|