aspose_cells_cloud 26.2 → 26.4
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 +7 -20
- data/lib/aspose_cells_cloud/api/cells_api.rb +38 -0
- data/lib/aspose_cells_cloud/requests/accept_all_revisions_in_remote_spreadsheet_request.rb +158 -0
- data/lib/aspose_cells_cloud/requests/accept_all_revisions_request.rb +147 -0
- data/lib/aspose_cells_cloud/requests/add_text_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/compress_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_chart_to_image_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_chart_to_pdf_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_json_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_text_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_csv_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_html_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_html_table_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_json_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/delete_metadata_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/extract_text_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/flip_data_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/get_merged_cells_in_worksheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/get_metadata_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/get_worksheets_with_local_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/import_csv_data_into_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/import_data_into_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/import_json_data_into_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/import_xml_data_into_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/merge_spreadsheets_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/move_worksheet_in_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/post_assemble_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/post_clear_objects_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_compress_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_csv_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_docx_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_html_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_json_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_markdown_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pdf_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_png_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pptx_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_sql_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_export_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_import_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_lock_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_merge_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/post_metadata_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_protect_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_repair_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_replace_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_reverse_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_rotate_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_search_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_split_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_unlock_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/post_watermark_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb +5 -2
- data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +4 -3
- data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +4 -3
- data/lib/aspose_cells_cloud/requests/remove_characters_by_position_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_characters_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_duplicate_substrings_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_duplicates_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_spreadsheet_blank_columns_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_spreadsheet_blank_rows_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/remove_spreadsheet_blank_worksheets_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/repair_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/replace_spreadsheet_content_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_all_text_items_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/split_table_request.rb +13 -0
- data/lib/aspose_cells_cloud/requests/split_text_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/spreadsheet_digitalsignature_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/swap_range_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/translate_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/transpose_data_request.rb +163 -0
- data/lib/aspose_cells_cloud/requests/trim_character_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/unpivot_range_request.rb +171 -0
- data/lib/aspose_cells_cloud/requests/unpivot_table_request.rb +171 -0
- data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/update_word_case_request.rb +1 -0
- data/lib/aspose_cells_cloud/requests/upload_file_request.rb +1 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +5 -0
- metadata +7 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9addf3ef9b3231c8ac5b20c2a6276234abd954af8f647ec921cc6eeb62468b5
|
|
4
|
+
data.tar.gz: 9fb4011ee4dd3b7951b4010d817e33627c2388db3dbf3c565ee49a6652423bac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 14a9c19a6feac7b6d77f3ffc65b0775ef54f0448296a8f13b233019b7bcabe69207749f1da90d953ea0cbe4bb2645943d0af6e4da9971b3fba0982db4bbe6650
|
|
7
|
+
data.tar.gz: 14d03af0fe1fbc5a3b979cb75e6451a70fe2f402842108fb039010e91034eb767ae804358c38759040f802a19206500abd8ac8b0eeab234205c03b8d373d2746
|
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.4.0'
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
or install directly
|
|
@@ -45,7 +45,6 @@ CellsCloudClientSecret = "...." # get from https://dashboard.aspose.cloud/#/ap
|
|
|
45
45
|
request = AsposeCellsCloud::ConvertSpreadsheetRequest.new(:Spreadsheet=>'EmployeeSalesSummary.xlsx',:format=>format);
|
|
46
46
|
response = @instance.convert_spreadsheet(request);
|
|
47
47
|
FileUtils.cp(response.path, 'EmployeeSalesSummary.csv')
|
|
48
|
-
|
|
49
48
|
```
|
|
50
49
|
|
|
51
50
|
1. How to upload a file to cloud storage.
|
|
@@ -61,7 +60,6 @@ CellsCloudClientSecret = "...." # get from https://dashboard.aspose.cloud/#/ap
|
|
|
61
60
|
@instance = AsposeCellsCloud::CellsApi.new(CellsCloudClientId, CellsCloudClientSecret)
|
|
62
61
|
request = AsposeCellsCloud::UploadFileRequest.new(:UploadFiles=>"EmployeeSalesSummary.xlsx",:path=>"TestData/EmployeeSalesSummary.xlsx",:storageName=>'');
|
|
63
62
|
@instance.upload_file(request);
|
|
64
|
-
|
|
65
63
|
```
|
|
66
64
|
|
|
67
65
|
## Support file format
|
|
@@ -157,24 +155,14 @@ graph TB
|
|
|
157
155
|
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
|
|
158
156
|
- 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.
|
|
159
157
|
|
|
160
|
-
## Feature & Enhancements in Version v26.
|
|
158
|
+
## Feature & Enhancements in Version v26.4.0
|
|
161
159
|
|
|
162
160
|
Full list of issues covering all changes in this release:
|
|
163
161
|
|
|
164
162
|
| **Summary** | **Category** |
|
|
165
163
|
| :------------------------------------------------------------------------------------------------------------ | :----------- |
|
|
166
|
-
|
|
|
167
|
-
|
|
|
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 |
|
|
164
|
+
| Implement the data transpose Web API on Aspose Cells Cloud. | New Feature |
|
|
165
|
+
| Implement the data unpivot Web API on Aspose Cells Cloud. | New Feature |
|
|
178
166
|
|
|
179
167
|
## Available SDKs
|
|
180
168
|
|
|
@@ -184,7 +172,7 @@ The Aspose.Cells Cloud SDK is available in multiple popular programming language
|
|
|
184
172
|
|
|
185
173
|
[](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java) [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-java/blob/master/Aspose.Cells.Cloud.pom.xml)
|
|
186
174
|
|
|
187
|
-
[](https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet) [](https://www.nuget.org/packages/Aspose.cells-Cloud/#readme-body-tab)
|
|
188
176
|
|
|
189
177
|
[](https://github.com/aspose-cells-cloud/aspose-cells-cloud-node) [](https://www.npmjs.com/package/asposecellscloud)
|
|
190
178
|
|
|
@@ -196,5 +184,4 @@ The Aspose.Cells Cloud SDK is available in multiple popular programming language
|
|
|
196
184
|
|
|
197
185
|
[](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby) [](https://rubygems.org/gems/aspose_cells_cloud)
|
|
198
186
|
|
|
199
|
-
## [Release history version](CHANGELOG.md)
|
|
200
|
-
```
|
|
187
|
+
## [Release history version](CHANGELOG.md)
|
|
@@ -496,6 +496,20 @@ module AsposeCellsCloud
|
|
|
496
496
|
return data
|
|
497
497
|
end
|
|
498
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
|
+
|
|
499
513
|
# Applies dual-layer password protection to Excel spreadsheets, supporting both open and modify passwords with encryption.
|
|
500
514
|
|
|
501
515
|
def protect_spreadsheet( protect_spreadsheet_request, opts = {})
|
|
@@ -766,6 +780,30 @@ module AsposeCellsCloud
|
|
|
766
780
|
return data
|
|
767
781
|
end
|
|
768
782
|
|
|
783
|
+
# Switch rows and columns in the spreadsheet.
|
|
784
|
+
|
|
785
|
+
def transpose_data( transpose_data_request, opts = {})
|
|
786
|
+
|
|
787
|
+
data, _status_code, _headers = transpose_data_request.create_http_request(@api_client,opts )
|
|
788
|
+
return data
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
# Switch rows and columns in the spreadsheet.
|
|
792
|
+
|
|
793
|
+
def unpivot_range( unpivot_range_request, opts = {})
|
|
794
|
+
|
|
795
|
+
data, _status_code, _headers = unpivot_range_request.create_http_request(@api_client,opts )
|
|
796
|
+
return data
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
# Switch rows and columns in the spreadsheet.
|
|
800
|
+
|
|
801
|
+
def unpivot_table( unpivot_table_request, opts = {})
|
|
802
|
+
|
|
803
|
+
data, _status_code, _headers = unpivot_table_request.create_http_request(@api_client,opts )
|
|
804
|
+
return data
|
|
805
|
+
end
|
|
806
|
+
|
|
769
807
|
|
|
770
808
|
def download_file( download_file_request, opts = {})
|
|
771
809
|
|
|
@@ -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,147 @@
|
|
|
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
|
+
|
|
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.accept_all_revisions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
143
|
+
end
|
|
144
|
+
return data, status_code, headers
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|
|
@@ -171,6 +171,7 @@ module AsposeCellsCloud
|
|
|
171
171
|
# form parameters
|
|
172
172
|
form_params = {}
|
|
173
173
|
post_body = nil
|
|
174
|
+
|
|
174
175
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
175
176
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
176
177
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -139,6 +139,7 @@ module AsposeCellsCloud
|
|
|
139
139
|
# form parameters
|
|
140
140
|
form_params = {}
|
|
141
141
|
post_body = nil
|
|
142
|
+
|
|
142
143
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
143
144
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
144
145
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -131,6 +131,7 @@ module AsposeCellsCloud
|
|
|
131
131
|
# form parameters
|
|
132
132
|
form_params = {}
|
|
133
133
|
post_body = nil
|
|
134
|
+
|
|
134
135
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
135
136
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
136
137
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -127,6 +127,7 @@ module AsposeCellsCloud
|
|
|
127
127
|
# form parameters
|
|
128
128
|
form_params = {}
|
|
129
129
|
post_body = nil
|
|
130
|
+
|
|
130
131
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
131
132
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
132
133
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -159,6 +159,7 @@ module AsposeCellsCloud
|
|
|
159
159
|
# form parameters
|
|
160
160
|
form_params = {}
|
|
161
161
|
post_body = nil
|
|
162
|
+
|
|
162
163
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
163
164
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
164
165
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -147,6 +147,7 @@ module AsposeCellsCloud
|
|
|
147
147
|
# form parameters
|
|
148
148
|
form_params = {}
|
|
149
149
|
post_body = nil
|
|
150
|
+
|
|
150
151
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
152
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
153
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -147,6 +147,7 @@ module AsposeCellsCloud
|
|
|
147
147
|
# form parameters
|
|
148
148
|
form_params = {}
|
|
149
149
|
post_body = nil
|
|
150
|
+
|
|
150
151
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
152
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
153
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -147,6 +147,7 @@ module AsposeCellsCloud
|
|
|
147
147
|
# form parameters
|
|
148
148
|
form_params = {}
|
|
149
149
|
post_body = nil
|
|
150
|
+
|
|
150
151
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
152
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
153
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -167,6 +167,7 @@ module AsposeCellsCloud
|
|
|
167
167
|
# form parameters
|
|
168
168
|
form_params = {}
|
|
169
169
|
post_body = nil
|
|
170
|
+
|
|
170
171
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
171
172
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
172
173
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -147,6 +147,7 @@ module AsposeCellsCloud
|
|
|
147
147
|
# form parameters
|
|
148
148
|
form_params = {}
|
|
149
149
|
post_body = nil
|
|
150
|
+
|
|
150
151
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
152
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
153
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -147,6 +147,7 @@ module AsposeCellsCloud
|
|
|
147
147
|
# form parameters
|
|
148
148
|
form_params = {}
|
|
149
149
|
post_body = nil
|
|
150
|
+
|
|
150
151
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
152
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
153
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -135,6 +135,7 @@ module AsposeCellsCloud
|
|
|
135
135
|
# form parameters
|
|
136
136
|
form_params = {}
|
|
137
137
|
post_body = nil
|
|
138
|
+
|
|
138
139
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
139
140
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
140
141
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -123,6 +123,7 @@ module AsposeCellsCloud
|
|
|
123
123
|
# form parameters
|
|
124
124
|
form_params = {}
|
|
125
125
|
post_body = nil
|
|
126
|
+
|
|
126
127
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
127
128
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
128
129
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -123,6 +123,7 @@ module AsposeCellsCloud
|
|
|
123
123
|
# form parameters
|
|
124
124
|
form_params = {}
|
|
125
125
|
post_body = nil
|
|
126
|
+
|
|
126
127
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
127
128
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
128
129
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -123,6 +123,7 @@ module AsposeCellsCloud
|
|
|
123
123
|
# form parameters
|
|
124
124
|
form_params = {}
|
|
125
125
|
post_body = nil
|
|
126
|
+
|
|
126
127
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
127
128
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
128
129
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -147,6 +147,7 @@ module AsposeCellsCloud
|
|
|
147
147
|
# form parameters
|
|
148
148
|
form_params = {}
|
|
149
149
|
post_body = nil
|
|
150
|
+
|
|
150
151
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
152
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
153
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -147,6 +147,7 @@ module AsposeCellsCloud
|
|
|
147
147
|
# form parameters
|
|
148
148
|
form_params = {}
|
|
149
149
|
post_body = nil
|
|
150
|
+
|
|
150
151
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
152
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
153
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -159,6 +159,7 @@ module AsposeCellsCloud
|
|
|
159
159
|
# form parameters
|
|
160
160
|
form_params = {}
|
|
161
161
|
post_body = nil
|
|
162
|
+
|
|
162
163
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
163
164
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
164
165
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -147,6 +147,7 @@ module AsposeCellsCloud
|
|
|
147
147
|
# form parameters
|
|
148
148
|
form_params = {}
|
|
149
149
|
post_body = nil
|
|
150
|
+
|
|
150
151
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
152
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
153
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -147,6 +147,7 @@ module AsposeCellsCloud
|
|
|
147
147
|
# form parameters
|
|
148
148
|
form_params = {}
|
|
149
149
|
post_body = nil
|
|
150
|
+
|
|
150
151
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
151
152
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
152
153
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
@@ -159,6 +159,7 @@ module AsposeCellsCloud
|
|
|
159
159
|
# form parameters
|
|
160
160
|
form_params = {}
|
|
161
161
|
post_body = nil
|
|
162
|
+
|
|
162
163
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
163
164
|
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
164
165
|
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|