aspose_cells_cloud 26.1 → 26.3.1

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 (21) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -11
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +83 -4
  4. data/lib/aspose_cells_cloud/requests/accept_all_revisions_in_remote_spreadsheet_request.rb +158 -0
  5. data/lib/aspose_cells_cloud/requests/accept_all_revisions_request.rb +146 -0
  6. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_csv_request.rb +158 -0
  7. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_json_request.rb +158 -0
  8. data/lib/aspose_cells_cloud/requests/decompose_user_task_request.rb +1 -1
  9. data/lib/aspose_cells_cloud/requests/get_merged_cells_in_remoted_worksheet_request.rb +145 -0
  10. data/lib/aspose_cells_cloud/requests/get_merged_cells_in_worksheet_request.rb +134 -0
  11. data/lib/aspose_cells_cloud/requests/get_worksheets_with_local_spreadsheet_request.rb +122 -0
  12. data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +3 -3
  13. data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +2 -2
  14. data/lib/aspose_cells_cloud/requests/search_all_text_items_in_remote_spreadsheet_request.rb +138 -0
  15. data/lib/aspose_cells_cloud/requests/search_spreadsheet_all_text_items_request.rb +122 -0
  16. data/lib/aspose_cells_cloud/requests/split_table_request.rb +12 -0
  17. data/lib/aspose_cells_cloud/requests/{translation_spreadsheet_request.rb → translate_spreadsheet_request.rb} +6 -6
  18. data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +2 -3
  19. data/lib/aspose_cells_cloud/version.rb +1 -1
  20. data/lib/aspose_cells_cloud.rb +10 -1
  21. metadata +12 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a7d0c564422a8a35d542193da0199f8bd8827f855d0e2bbcc6e690024dbc69c
4
- data.tar.gz: 8dc0da172b190b3d36585e964591bef61b62488dd2b8c30b18869a69fd06ae76
3
+ metadata.gz: d19bf5eaf6755c9e6c367be8ea2b9f438b7c85217c5c011a8ba03564ca535e93
4
+ data.tar.gz: 6b0d567fad83de5651ba8d5c956aaa558b78c633b614748f21a846ce49d77030
5
5
  SHA512:
6
- metadata.gz: bba452be909c324abf2d385634fc1ded1cc6c080ff8a9d76ce18304dce6911be4d35da02dc41f28512e2bf4b76ef29b8929f2a23d68eaf6889d607f620d27463
7
- data.tar.gz: 619dcf8af0b213b6236c3db31b98a56b3ca3cbc05a90a108131b42f0799116c08683a8acdc87645269cf4864f49ee36b86612882b044dfe18f5872ec0f22eb8e
6
+ metadata.gz: 8884b434584f4c7d19353908e65a91e5bbc674ac3dec3a4aeec793b405e7a097339d2c9e1cf96845c11e26846bd0843d9ddd8cee477df7aaf2feab995587c1b9
7
+ data.tar.gz: d4fd9a57232675eb4c46a47deb84ebcc7ec2b619ae2982690fbf56d39711071388690ce712e77dcdff6c284a28dcd6886d1768e3e10683da0165a5c9f5588d9c
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![](https://img.shields.io/badge/aspose.cells%20Cloud%20SDK-26.1-green?style=for-the-badge&logo=ruby) [![Product Page](https://img.shields.io/badge/Product-0288d1?style=for-the-badge&logo=Google-Chrome&logoColor=white)](https://products.aspose.cloud/cells/ruby/) [![Documentation](https://img.shields.io/badge/Documentation-388e3c?style=for-the-badge&logo=Hugo&logoColor=white)](https://docs.aspose.cloud/cells/) [![API Ref](https://img.shields.io/badge/Reference-f39c12?style=for-the-badge&logo=html5&logoColor=white)](https://reference.aspose.cloud/cells/) [![Examples](https://img.shields.io/badge/Examples-1565c0?style=for-the-badge&logo=Github&logoColor=white)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-perl/tree/master/Examples) [![Blog](https://img.shields.io/badge/Blog-d32f2f?style=for-the-badge&logo=WordPress&logoColor=white)](https://blog.aspose.cloud/categories/aspose.cells-cloud-product-family/) [![Support](https://img.shields.io/badge/Support-7b1fa2?style=for-the-badge&logo=Discourse&logoColor=white)](https://forum.aspose.cloud/c/cells/7) [![Gem](https://img.shields.io/gem/v/aspose_cells_cloud?style=for-the-badge)](https://rubygems.org/gems/aspose_cells_cloud) [![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud?style=for-the-badge)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/archive/refs/heads/master.zip) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby?style=for-the-badge)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/26.1?style=for-the-badge)
1
+ ![](https://img.shields.io/badge/aspose.cells%20Cloud%20SDK-26.3.1-green?style=for-the-badge&logo=ruby) [![Product Page](https://img.shields.io/badge/Product-0288d1?style=for-the-badge&logo=Google-Chrome&logoColor=white)](https://products.aspose.cloud/cells/ruby/) [![Documentation](https://img.shields.io/badge/Documentation-388e3c?style=for-the-badge&logo=Hugo&logoColor=white)](https://docs.aspose.cloud/cells/) [![API Ref](https://img.shields.io/badge/Reference-f39c12?style=for-the-badge&logo=html5&logoColor=white)](https://reference.aspose.cloud/cells/) [![Examples](https://img.shields.io/badge/Examples-1565c0?style=for-the-badge&logo=Github&logoColor=white)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-perl/tree/master/Examples) [![Blog](https://img.shields.io/badge/Blog-d32f2f?style=for-the-badge&logo=WordPress&logoColor=white)](https://blog.aspose.cloud/categories/aspose.cells-cloud-product-family/) [![Support](https://img.shields.io/badge/Support-7b1fa2?style=for-the-badge&logo=Discourse&logoColor=white)](https://forum.aspose.cloud/c/cells/7) [![Gem](https://img.shields.io/gem/v/aspose_cells_cloud?style=for-the-badge)](https://rubygems.org/gems/aspose_cells_cloud) [![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud?style=for-the-badge)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/archive/refs/heads/master.zip) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby?style=for-the-badge)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/26.3.1?style=for-the-badge)
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.1'
25
+ gem 'aspose_cells_cloud', '~> 26.3.1'
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
- ## Manipulate Excel and other spreadsheet files in the Cloud
114
+ ## Architecture
115
+
116
+ ![architecture.png](architecture.png)
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,15 @@ 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 26.1
160
+ ## Feature & Enhancements in Version v26.3.1
128
161
 
129
162
  Full list of issues covering all changes in this release:
130
163
 
131
- | **Summary** | **Category** |
132
- | :--------------------------------------------------------------------------------------- | :----------- |
133
- | Support to AI decompose user task | New Feature |
134
- | Optimization of the data import API: adding support for importing individual data types. | New Feature |
135
- | Support to convert worksheet to html table. | New Feature |
136
-
137
- | Support to flip data in worksheet.
164
+ | **Summary** | **Category** |
165
+ | :------------------------------------------------------------------------------------------------------------ | :----------- |
166
+ | Enhancing the DecomposeUserTask API of Aspose Cells Cloud. | Task |
167
+ | Optimize the APIs related to document splitting | Improvement |
168
+ | Support the accept all revisions feature for share Excel file. | New Feature |
138
169
 
139
170
  ## Available SDKs
140
171
 
@@ -157,3 +188,4 @@ The Aspose.Cells Cloud SDK is available in multiple popular programming language
157
188
  [![Ruby](https://img.shields.io/badge/Ruby-CC342D.svg?style=for-the-badge&logo=ruby&logoColor=white)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby) [![Ruby](https://img.shields.io/badge/Gem-aspose__cells__cloud-red?logo=ruby&style=for-the-badge)](https://rubygems.org/gems/aspose_cells_cloud)
158
189
 
159
190
  ## [Release history version](CHANGELOG.md)
191
+ ```
@@ -40,7 +40,7 @@ module AsposeCellsCloud
40
40
  @api_client.config.host = app_host
41
41
  end
42
42
 
43
- # Translates the entire spreadsheet to the specified target language.
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 translation_spreadsheet( translation_spreadsheet_request, opts = {})
53
+ def translate_spreadsheet( translate_spreadsheet_request, opts = {})
54
54
 
55
- data, _status_code, _headers = translation_spreadsheet_request.create_http_request(@api_client,opts )
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,36 @@ 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
+
499
+
500
+ def accept_all_revisions( accept_all_revisions_request, opts = {})
501
+
502
+ data, _status_code, _headers = accept_all_revisions_request.create_http_request(@api_client,opts )
503
+ return data
504
+ end
505
+
506
+
507
+ def accept_all_revisions_in_remote_spreadsheet( accept_all_revisions_in_remote_spreadsheet_request, opts = {})
508
+
509
+ data, _status_code, _headers = accept_all_revisions_in_remote_spreadsheet_request.create_http_request(@api_client,opts )
510
+ return data
511
+ end
512
+
452
513
  # Applies dual-layer password protection to Excel spreadsheets, supporting both open and modify passwords with encryption.
453
514
 
454
515
  def protect_spreadsheet( protect_spreadsheet_request, opts = {})
@@ -472,6 +533,22 @@ module AsposeCellsCloud
472
533
  return data
473
534
  end
474
535
 
536
+ # Get all text items in the remote spreadsheet.
537
+
538
+ def search_all_text_items_in_remote_spreadsheet( search_all_text_items_in_remote_spreadsheet_request, opts = {})
539
+
540
+ data, _status_code, _headers = search_all_text_items_in_remote_spreadsheet_request.create_http_request(@api_client,opts )
541
+ return data
542
+ end
543
+
544
+ # Get all text items in the remote spreadsheet.
545
+
546
+ def search_spreadsheet_all_text_items( search_spreadsheet_all_text_items_request, opts = {})
547
+
548
+ data, _status_code, _headers = search_spreadsheet_all_text_items_request.create_http_request(@api_client,opts )
549
+ return data
550
+ end
551
+
475
552
  # Search text in the local spreadsheet.
476
553
 
477
554
  def search_spreadsheet_content( search_spreadsheet_content_request, opts = {})
@@ -679,6 +756,7 @@ module AsposeCellsCloud
679
756
  return data
680
757
  end
681
758
 
759
+ # Removes duplicate values in the worksheet/range/table.
682
760
 
683
761
  def remove_duplicates( remove_duplicates_request, opts = {})
684
762
 
@@ -694,6 +772,7 @@ module AsposeCellsCloud
694
772
  return data
695
773
  end
696
774
 
775
+ # Transposes a specified data range (rows become columns, columns become rows).
697
776
 
698
777
  def flip_data( flip_data_request, opts = {})
699
778
 
@@ -0,0 +1,158 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="AcceptAllRevisionsInRemoteSpreadsheet_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 AcceptAllRevisionsInRemoteSpreadsheetRequest
33
+
34
+ attr_accessor :name
35
+ attr_accessor :folder
36
+ attr_accessor :storage_name
37
+ attr_accessor :out_path
38
+ attr_accessor :out_storage_name
39
+ attr_accessor :fonts_location
40
+ attr_accessor :region
41
+ attr_accessor :password
42
+
43
+ def initialize(attributes = {})
44
+ return unless attributes.is_a?(Hash)
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
+
49
+ if attributes.has_key?(:'name')
50
+ self.name = attributes[:'name']
51
+ end
52
+
53
+ if attributes.has_key?(:'folder')
54
+ self.folder = attributes[:'folder']
55
+ end
56
+
57
+ if attributes.has_key?(:'storageName')
58
+ self.storage_name = attributes[:'storageName']
59
+ end
60
+
61
+ if attributes.has_key?(:'outPath')
62
+ self.out_path = attributes[:'outPath']
63
+ end
64
+
65
+ if attributes.has_key?(:'outStorageName')
66
+ self.out_storage_name = attributes[:'outStorageName']
67
+ end
68
+
69
+ if attributes.has_key?(:'fontsLocation')
70
+ self.fonts_location = attributes[:'fontsLocation']
71
+ end
72
+
73
+ if attributes.has_key?(:'region')
74
+ self.region = attributes[:'region']
75
+ end
76
+
77
+ if attributes.has_key?(:'password')
78
+ self.password = attributes[:'password']
79
+ end
80
+
81
+ end
82
+ # Attribute mapping from ruby-style variable name to JSON key.
83
+ def self.attribute_map
84
+ {
85
+ :'name' => :'name',
86
+ :'folder' => :'folder',
87
+ :'storage_name' => :'storageName',
88
+ :'out_path' => :'outPath',
89
+ :'out_storage_name' => :'outStorageName',
90
+ :'fonts_location' => :'fontsLocation',
91
+ :'region' => :'region',
92
+ :'password' => :'password'
93
+ }
94
+ end
95
+
96
+ # Attribute type mapping.
97
+ def self.swagger_types
98
+ {
99
+ :'name' => :'String',
100
+ :'folder' => :'String',
101
+ :'storage_name' => :'String',
102
+ :'out_path' => :'String',
103
+ :'out_storage_name' => :'String',
104
+ :'fonts_location' => :'String',
105
+ :'region' => :'String',
106
+ :'password' => :'String'
107
+ }
108
+ end
109
+
110
+ def create_http_request(api_client,opts = {})
111
+ if api_client.config.debugging
112
+ api_client.config.logger.debug "Calling API: CellsApi.accept_all_revisions_in_remote_spreadsheet ..."
113
+ end
114
+ api_client.request_token_if_needed
115
+ # verify the required parameter 'name' is set
116
+ if api_client.config.client_side_validation && name.nil?
117
+ fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.accept_all_revisions_in_remote_spreadsheet "
118
+ end
119
+
120
+ # resource path
121
+ local_var_path = "v4.0/cells/{name}/accept-all-revisions".sub('{' + 'name' + '}', name.to_s)
122
+ # query parameters
123
+ query_params = {}
124
+ query_params[:'folder'] = self.folder if !self.folder.nil?
125
+ query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
126
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
127
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
128
+ query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
129
+ query_params[:'region'] = self.region if !self.region.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
+
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.accept_all_revisions_in_remote_spreadsheet\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,146 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="AcceptAllRevisions_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 AcceptAllRevisionsRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :out_path
36
+ attr_accessor :out_storage_name
37
+ attr_accessor :fonts_location
38
+ attr_accessor :region
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?(:'outPath')
52
+ self.out_path = attributes[:'outPath']
53
+ end
54
+
55
+ if attributes.has_key?(:'outStorageName')
56
+ self.out_storage_name = attributes[:'outStorageName']
57
+ end
58
+
59
+ if attributes.has_key?(:'fontsLocation')
60
+ self.fonts_location = attributes[:'fontsLocation']
61
+ end
62
+
63
+ if attributes.has_key?(:'region')
64
+ self.region = attributes[:'region']
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
+ :'out_path' => :'outPath',
77
+ :'out_storage_name' => :'outStorageName',
78
+ :'fonts_location' => :'fontsLocation',
79
+ :'region' => :'region',
80
+ :'password' => :'password'
81
+ }
82
+ end
83
+
84
+ # Attribute type mapping.
85
+ def self.swagger_types
86
+ {
87
+ :'spreadsheet' => :'String',
88
+ :'out_path' => :'String',
89
+ :'out_storage_name' => :'String',
90
+ :'fonts_location' => :'String',
91
+ :'region' => :'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.accept_all_revisions ..."
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.accept_all_revisions "
104
+ end
105
+
106
+ # resource path
107
+ local_var_path = "v4.0/cells/spreadsheet/accept-all-revisions"
108
+ # query parameters
109
+ query_params = {}
110
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
111
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
112
+ query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.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
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
127
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
128
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
129
+ end
130
+
131
+ #auth_names = []
132
+ auth_names = ['JWT']
133
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
134
+ :header_params => header_params,
135
+ :query_params => query_params,
136
+ :form_params => form_params,
137
+ :body => post_body,
138
+ :auth_names => auth_names,
139
+ :return_type => 'File')
140
+ if api_client.config.debugging
141
+ api_client.config.logger.debug "API called: Specification.Name>Api.accept_all_revisions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+ end
146
+ end