aspose_cells_cloud 25.8 → 25.11
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 +22 -15
- data/lib/aspose_cells_cloud/api/cells_api.rb +143 -12
- data/lib/aspose_cells_cloud/models/aggregate_result_by_color.rb +4 -16
- data/lib/aspose_cells_cloud/models/{broken_links_reponse.rb → broken_links_response.rb} +2 -2
- data/lib/aspose_cells_cloud/models/remove_characters_by_position.rb +1 -1
- data/lib/aspose_cells_cloud/requests/add_text_request.rb +194 -0
- data/lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/codegen_spec_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/compress_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_chart_to_image_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_chart_to_pdf_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +146 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_json_request.rb +146 -0
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +146 -0
- data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_text_request.rb +182 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/create_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/export_chart_as_format_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/export_range_as_format_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/export_spreadsheet_as_format_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/export_table_as_format_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/export_worksheet_as_format_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/extract_text_request.rb +210 -0
- data/lib/aspose_cells_cloud/requests/import_data_into_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/merge_remote_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/merge_spreadsheets_in_remote_folder_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/merge_spreadsheets_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/move_worksheet_in_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +4 -5
- data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +3 -3
- data/lib/aspose_cells_cloud/requests/remove_characters_by_position_request.rb +194 -0
- data/lib/aspose_cells_cloud/requests/remove_characters_request.rb +186 -0
- data/lib/aspose_cells_cloud/requests/remove_duplicate_substrings_request.rb +182 -0
- data/lib/aspose_cells_cloud/requests/remove_duplicates_request.rb +162 -0
- data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_columns_request.rb → remove_spreadsheet_blank_columns_request.rb} +12 -12
- data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_rows_request.rb → remove_spreadsheet_blank_rows_request.rb} +12 -12
- data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_worksheets_request.rb → remove_spreadsheet_blank_worksheets_request.rb} +12 -12
- data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/repair_spreadsheet_request.rb +138 -0
- data/lib/aspose_cells_cloud/requests/replace_content_in_remote_range_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/replace_content_in_remote_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/replace_content_in_remote_worksheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/replace_spreadsheet_content_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/save_spreadsheet_as_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_range_request.rb +8 -8
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_spreadsheet_request.rb +7 -7
- data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_worksheet_request.rb +7 -7
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_range_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/search_content_in_remote_worksheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb +7 -7
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/spec_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/split_remote_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/split_text_request.rb +198 -0
- data/lib/aspose_cells_cloud/requests/spreadsheet_digitalsignature_request.rb +142 -0
- data/lib/aspose_cells_cloud/requests/{sawp_range_request.rb → swap_range_request.rb} +15 -15
- data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +134 -0
- data/lib/aspose_cells_cloud/requests/translation_spreadsheet_request.rb +134 -0
- data/lib/aspose_cells_cloud/requests/trim_character_request.rb +210 -0
- data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/update_word_case_request.rb +166 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +23 -6
- metadata +24 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '068bd9a9a338997b49052a6777b766cc42be2f525870858e68187e3e9abafa8e'
|
|
4
|
+
data.tar.gz: e884c74fd67056b5788b5f97a5740325caaff1536abef3f1fc5001e3f3d907a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 403af39a5e2643fd8bbd9e4fd3d6272aa2c6f300c5e8d397bbe2962a7e2cf215aa1193ec4c8e0665b2df1795788d46918b13ed42b7bcd051dc5d9dbca4ce5048
|
|
7
|
+
data.tar.gz: 675cac3ae29a61332a4b88094d173c0caf56464af545d75dc18fb64713fa9e2919e4d1f34f28272317dd21a36c1def255bc4c405a8fc3a7e2802bc44084ea759
|
data/README.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
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
|
|
|
5
|
-
|
|
5
|
+
Built on the **Aspose.Cells Cloud Web API**, this MIT-licensed SDK supports advanced spreadsheet operations such as:
|
|
6
|
+
|
|
7
|
+
- Cell formatting, formulas, and data validation
|
|
8
|
+
- Pivot tables, charts, hyperlinks, and comments
|
|
9
|
+
- Conditional formatting and smart markers
|
|
10
|
+
- Worksheet merging, splitting, and protection
|
|
11
|
+
- Batch processing and background removal
|
|
12
|
+
|
|
13
|
+
It seamlessly integrates with **AWS**, **Microsoft Azure**, and **Google Cloud**, ensuring **high availability**, **scalability**, and **data integrity**. Ideal for serverless apps, microservices, and cloud automation workflows.
|
|
6
14
|
|
|
7
15
|
## Quick Start Guide
|
|
8
16
|
|
|
@@ -14,7 +22,7 @@ To begin with Aspose.Cells Cloud, here's what you need to do:
|
|
|
14
22
|
- execute the following command to get the latest Gem package.
|
|
15
23
|
|
|
16
24
|
```console
|
|
17
|
-
gem 'aspose_cells_cloud', '~> 25.
|
|
25
|
+
gem 'aspose_cells_cloud', '~> 25.11'
|
|
18
26
|
```
|
|
19
27
|
|
|
20
28
|
or install directly
|
|
@@ -116,21 +124,20 @@ request = AsposeCellsCloud::UploadFileRequest.new(:UploadFiles=>"EmployeeSales
|
|
|
116
124
|
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
|
|
117
125
|
- 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.
|
|
118
126
|
|
|
119
|
-
## Feature & Enhancements in Version 25.
|
|
127
|
+
## Feature & Enhancements in Version 25.11
|
|
120
128
|
|
|
121
129
|
Full list of issues covering all changes in this release:
|
|
122
130
|
|
|
123
131
|
|**Summary**|**Category**|
|
|
124
132
|
| :- | :- |
|
|
125
|
-
|
|
|
126
|
-
|
|
|
127
|
-
|
|
|
128
|
-
|
|
|
129
|
-
|
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
|
|
|
133
|
-
| Fix the code generator of the cells cloud SDK specification for the enum query parameter. | Bug |
|
|
133
|
+
| Optimize data Transform API: replace delete with remove. | Improvement |
|
|
134
|
+
| Support to update the spreadsheet content words case in Cells Cloud 4.0. | Improvement |
|
|
135
|
+
| Support to remove characters from spreadsheet content in Cells Cloud 4.0. | Improvement |
|
|
136
|
+
| Support to add text for spreadsheet content in Cells Cloud 4.0. | Improvement |
|
|
137
|
+
| Support to convert text for spreadsheet content in Cells Cloud 4.0. | Improvement |
|
|
138
|
+
| Support to extract text for spreadsheet content in Cells Cloud 4.0. | Improvement |
|
|
139
|
+
| Support to extract text for spreadsheet content in Cells Cloud 4.0. | Improvement |
|
|
140
|
+
| Support to split text for spreadsheet content in Cells Cloud 4.0. | Improvement |
|
|
134
141
|
|
|
135
142
|
## Available SDKs
|
|
136
143
|
|
|
@@ -152,4 +159,4 @@ The Aspose.Cells Cloud SDK is available in multiple popular programming language
|
|
|
152
159
|
|
|
153
160
|
[](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby) [](https://rubygems.org/gems/aspose_cells_cloud)
|
|
154
161
|
|
|
155
|
-
## [Release history version](
|
|
162
|
+
## [Release history version](CHANGELOG.md)
|
|
@@ -40,6 +40,21 @@ 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.
|
|
44
|
+
|
|
45
|
+
def translation_spreadsheet( translation_spreadsheet_request, opts = {})
|
|
46
|
+
|
|
47
|
+
data, _status_code, _headers = translation_spreadsheet_request.create_http_request(@api_client,opts )
|
|
48
|
+
return data
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def translate_text_file( translate_text_file_request, opts = {})
|
|
53
|
+
|
|
54
|
+
data, _status_code, _headers = translate_text_file_request.create_http_request(@api_client,opts )
|
|
55
|
+
return data
|
|
56
|
+
end
|
|
57
|
+
|
|
43
58
|
# The Aggregate by Color API provides a convenient way to perform calculations on cells that share the same fill or font color. This API supports a range of aggregate operations, including count, sum, maximum value, minimum value, and average value, enabling you to analyze and summarize data based on color distinctions.
|
|
44
59
|
|
|
45
60
|
def aggregate_cells_by_color( aggregate_cells_by_color_request, opts = {})
|
|
@@ -48,7 +63,6 @@ module AsposeCellsCloud
|
|
|
48
63
|
return data
|
|
49
64
|
end
|
|
50
65
|
|
|
51
|
-
# The Math Calculate API enables you to perform a variety of mathematical operations on a selected range of cells. You can add or subtract a specific number from all selected cells, as well as multiply or divide individual cells and entire columns. This API simplifies complex calculations and enhances data manipulation capabilities.
|
|
52
66
|
|
|
53
67
|
def math_calculate( math_calculate_request, opts = {})
|
|
54
68
|
|
|
@@ -129,6 +143,29 @@ module AsposeCellsCloud
|
|
|
129
143
|
return data
|
|
130
144
|
end
|
|
131
145
|
|
|
146
|
+
# Converts a spreadsheet on a local drive to the pdf file.
|
|
147
|
+
|
|
148
|
+
def convert_spreadsheet_to_pdf( convert_spreadsheet_to_pdf_request, opts = {})
|
|
149
|
+
|
|
150
|
+
data, _status_code, _headers = convert_spreadsheet_to_pdf_request.create_http_request(@api_client,opts )
|
|
151
|
+
return data
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def convert_spreadsheet_to_json( convert_spreadsheet_to_json_request, opts = {})
|
|
156
|
+
|
|
157
|
+
data, _status_code, _headers = convert_spreadsheet_to_json_request.create_http_request(@api_client,opts )
|
|
158
|
+
return data
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Converts a spreadsheet on a local drive to the csv file.
|
|
162
|
+
|
|
163
|
+
def convert_spreadsheet_to_csv( convert_spreadsheet_to_csv_request, opts = {})
|
|
164
|
+
|
|
165
|
+
data, _status_code, _headers = convert_spreadsheet_to_csv_request.create_http_request(@api_client,opts )
|
|
166
|
+
return data
|
|
167
|
+
end
|
|
168
|
+
|
|
132
169
|
# Converts a worksheet of spreadsheet on a local drive to the image format.
|
|
133
170
|
|
|
134
171
|
def convert_worksheet_to_image( convert_worksheet_to_image_request, opts = {})
|
|
@@ -289,6 +326,7 @@ module AsposeCellsCloud
|
|
|
289
326
|
return data
|
|
290
327
|
end
|
|
291
328
|
|
|
329
|
+
# Import data into a spreadsheet from a supported data file format.
|
|
292
330
|
|
|
293
331
|
def import_data_into_spreadsheet( import_data_into_spreadsheet_request, opts = {})
|
|
294
332
|
|
|
@@ -352,6 +390,13 @@ module AsposeCellsCloud
|
|
|
352
390
|
return data
|
|
353
391
|
end
|
|
354
392
|
|
|
393
|
+
|
|
394
|
+
def repair_spreadsheet( repair_spreadsheet_request, opts = {})
|
|
395
|
+
|
|
396
|
+
data, _status_code, _headers = repair_spreadsheet_request.create_http_request(@api_client,opts )
|
|
397
|
+
return data
|
|
398
|
+
end
|
|
399
|
+
|
|
355
400
|
# Applies dual-layer password protection to Excel spreadsheets, supporting both open and modify passwords with encryption.
|
|
356
401
|
|
|
357
402
|
def protect_spreadsheet( protect_spreadsheet_request, opts = {})
|
|
@@ -368,6 +413,13 @@ module AsposeCellsCloud
|
|
|
368
413
|
return data
|
|
369
414
|
end
|
|
370
415
|
|
|
416
|
+
|
|
417
|
+
def spreadsheet_digitalsignature( spreadsheet_digitalsignature_request, opts = {})
|
|
418
|
+
|
|
419
|
+
data, _status_code, _headers = spreadsheet_digitalsignature_request.create_http_request(@api_client,opts )
|
|
420
|
+
return data
|
|
421
|
+
end
|
|
422
|
+
|
|
371
423
|
# Search text in the local spreadsheet.
|
|
372
424
|
|
|
373
425
|
def search_spreadsheet_content( search_spreadsheet_content_request, opts = {})
|
|
@@ -479,35 +531,114 @@ module AsposeCellsCloud
|
|
|
479
531
|
return data
|
|
480
532
|
end
|
|
481
533
|
|
|
482
|
-
#
|
|
534
|
+
# The TrimSpreadsheetContent API is designed to process and trim content within a spreadsheet. This API allows users to remove extra spaces, line breaks, or other unnecessary characters from the content of selected cells. It is particularly useful for cleaning up data entries and ensuring consistency in spreadsheet formatting
|
|
535
|
+
|
|
536
|
+
def trim_character( trim_character_request, opts = {})
|
|
537
|
+
|
|
538
|
+
data, _status_code, _headers = trim_character_request.create_http_request(@api_client,opts )
|
|
539
|
+
return data
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
# Specify changing the text case in a spreadsheet to switch between uppercase, lowercase, capitalizing the first letter of each word, or capitalizing the first letter of a sentence, and adjust the text according to specific needs.
|
|
543
|
+
|
|
544
|
+
def update_word_case( update_word_case_request, opts = {})
|
|
545
|
+
|
|
546
|
+
data, _status_code, _headers = update_word_case_request.create_http_request(@api_client,opts )
|
|
547
|
+
return data
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# Deletes user-defined characters, predefined symbol sets, or any substring from every cell in the chosen range while preserving formulas, formatting and data-validation.
|
|
551
|
+
|
|
552
|
+
def remove_characters( remove_characters_request, opts = {})
|
|
553
|
+
|
|
554
|
+
data, _status_code, _headers = remove_characters_request.create_http_request(@api_client,opts )
|
|
555
|
+
return data
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
# Deletes characters from every cell in the target range by position (first/last N, before/after a substring, or between two delimiters) while preserving formulas, formatting and data-validation.
|
|
559
|
+
|
|
560
|
+
def remove_characters_by_position( remove_characters_by_position_request, opts = {})
|
|
561
|
+
|
|
562
|
+
data, _status_code, _headers = remove_characters_by_position_request.create_http_request(@api_client,opts )
|
|
563
|
+
return data
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
# Finds and removes repeated substrings inside every cell of the chosen range, using user-defined or preset delimiters, while preserving formulas, formatting and data-validation.
|
|
567
|
+
|
|
568
|
+
def remove_duplicate_substrings( remove_duplicate_substrings_request, opts = {})
|
|
569
|
+
|
|
570
|
+
data, _status_code, _headers = remove_duplicate_substrings_request.create_http_request(@api_client,opts )
|
|
571
|
+
return data
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
# Specify appending text to multiple cells at once, allowing you to add prefixes, suffixes, labels, or any specific characters. You can choose the exact position of the text—in the beginning, at the end, or before or after certain characters in the cell.
|
|
575
|
+
|
|
576
|
+
def add_text( add_text_request, opts = {})
|
|
577
|
+
|
|
578
|
+
data, _status_code, _headers = add_text_request.create_http_request(@api_client,opts )
|
|
579
|
+
return data
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
# Indicates converting the numbers stored as text into the correct number format, replacing unwanted characters and line breaks with the desired characters, and converting accented characters to their equivalent characters without accents.
|
|
583
|
+
|
|
584
|
+
def convert_text( convert_text_request, opts = {})
|
|
585
|
+
|
|
586
|
+
data, _status_code, _headers = convert_text_request.create_http_request(@api_client,opts )
|
|
587
|
+
return data
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
# Indicates extracting substrings, text characters, and numbers from a spreadsheet cell into another cell without having to use complex FIND, MIN, LEFT, or RIGHT formulas.
|
|
591
|
+
|
|
592
|
+
def extract_text( extract_text_request, opts = {})
|
|
593
|
+
|
|
594
|
+
data, _status_code, _headers = extract_text_request.create_http_request(@api_client,opts )
|
|
595
|
+
return data
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
# Indicates performing text segmentation on the specified area according to the segmentation method, and outputting to the designated interval.
|
|
599
|
+
|
|
600
|
+
def split_text( split_text_request, opts = {})
|
|
601
|
+
|
|
602
|
+
data, _status_code, _headers = split_text_request.create_http_request(@api_client,opts )
|
|
603
|
+
return data
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
# Delete all blank rows that do not contain any data or other objects.
|
|
607
|
+
|
|
608
|
+
def remove_spreadsheet_blank_rows( remove_spreadsheet_blank_rows_request, opts = {})
|
|
609
|
+
|
|
610
|
+
data, _status_code, _headers = remove_spreadsheet_blank_rows_request.create_http_request(@api_client,opts )
|
|
611
|
+
return data
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
# Delete all blank rows that do not contain any data or other objects.
|
|
483
615
|
|
|
484
|
-
def
|
|
616
|
+
def remove_spreadsheet_blank_columns( remove_spreadsheet_blank_columns_request, opts = {})
|
|
485
617
|
|
|
486
|
-
data, _status_code, _headers =
|
|
618
|
+
data, _status_code, _headers = remove_spreadsheet_blank_columns_request.create_http_request(@api_client,opts )
|
|
487
619
|
return data
|
|
488
620
|
end
|
|
489
621
|
|
|
490
|
-
# Delete all blank
|
|
622
|
+
# Delete all blank rows that do not contain any data or other objects.
|
|
491
623
|
|
|
492
|
-
def
|
|
624
|
+
def remove_spreadsheet_blank_worksheets( remove_spreadsheet_blank_worksheets_request, opts = {})
|
|
493
625
|
|
|
494
|
-
data, _status_code, _headers =
|
|
626
|
+
data, _status_code, _headers = remove_spreadsheet_blank_worksheets_request.create_http_request(@api_client,opts )
|
|
495
627
|
return data
|
|
496
628
|
end
|
|
497
629
|
|
|
498
|
-
# Delete all blank worksheets which do not contain any data or other object.
|
|
499
630
|
|
|
500
|
-
def
|
|
631
|
+
def remove_duplicates( remove_duplicates_request, opts = {})
|
|
501
632
|
|
|
502
|
-
data, _status_code, _headers =
|
|
633
|
+
data, _status_code, _headers = remove_duplicates_request.create_http_request(@api_client,opts )
|
|
503
634
|
return data
|
|
504
635
|
end
|
|
505
636
|
|
|
506
637
|
# The Swap Ranges for Excel API provides a powerful tool to move any two columns, rows, ranges, or individual cells within an Excel file. This API allows users to re-arrange their tables quickly and efficiently, ensuring that the original data formatting is preserved and all existing formulas continue to function correctly. By leveraging this API, users can streamline their data manipulation tasks and maintain the integrity of their spreadsheets.
|
|
507
638
|
|
|
508
|
-
def
|
|
639
|
+
def swap_range( swap_range_request, opts = {})
|
|
509
640
|
|
|
510
|
-
data, _status_code, _headers =
|
|
641
|
+
data, _status_code, _headers = swap_range_request.create_http_request(@api_client,opts )
|
|
511
642
|
return data
|
|
512
643
|
end
|
|
513
644
|
|
|
@@ -45,8 +45,6 @@ module AsposeCellsCloud
|
|
|
45
45
|
attr_accessor :min_value
|
|
46
46
|
#
|
|
47
47
|
attr_accessor :average_value
|
|
48
|
-
#
|
|
49
|
-
attr_accessor :value
|
|
50
48
|
|
|
51
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
50
|
def self.attribute_map
|
|
@@ -57,8 +55,7 @@ module AsposeCellsCloud
|
|
|
57
55
|
:'sum' => :'Sum',
|
|
58
56
|
:'max_value' => :'MaxValue',
|
|
59
57
|
:'min_value' => :'MinValue',
|
|
60
|
-
:'average_value' => :'AverageValue'
|
|
61
|
-
:'value' => :'Value'
|
|
58
|
+
:'average_value' => :'AverageValue'
|
|
62
59
|
}
|
|
63
60
|
end
|
|
64
61
|
|
|
@@ -71,8 +68,7 @@ module AsposeCellsCloud
|
|
|
71
68
|
:'sum' => :'Float',
|
|
72
69
|
:'max_value' => :'Float',
|
|
73
70
|
:'min_value' => :'Float',
|
|
74
|
-
:'average_value' => :'Float'
|
|
75
|
-
:'value' => :'Float'
|
|
71
|
+
:'average_value' => :'Float'
|
|
76
72
|
}
|
|
77
73
|
end
|
|
78
74
|
|
|
@@ -105,9 +101,6 @@ module AsposeCellsCloud
|
|
|
105
101
|
if attributes.has_key?(:'AverageValue')
|
|
106
102
|
self.average_value = attributes[:'AverageValue']
|
|
107
103
|
end
|
|
108
|
-
if attributes.has_key?(:'Value')
|
|
109
|
-
self.value = attributes[:'Value']
|
|
110
|
-
end
|
|
111
104
|
|
|
112
105
|
end
|
|
113
106
|
|
|
@@ -136,9 +129,6 @@ module AsposeCellsCloud
|
|
|
136
129
|
if @average_value.nil?
|
|
137
130
|
invalid_properties.push("invalid value for 'average_value', average_value cannot be nil.")
|
|
138
131
|
end
|
|
139
|
-
if @value.nil?
|
|
140
|
-
invalid_properties.push("invalid value for 'value', value cannot be nil.")
|
|
141
|
-
end
|
|
142
132
|
|
|
143
133
|
return invalid_properties
|
|
144
134
|
end
|
|
@@ -153,7 +143,6 @@ module AsposeCellsCloud
|
|
|
153
143
|
return false if @max_value.nil?
|
|
154
144
|
return false if @min_value.nil?
|
|
155
145
|
return false if @average_value.nil?
|
|
156
|
-
return false if @value.nil?
|
|
157
146
|
return true
|
|
158
147
|
end
|
|
159
148
|
|
|
@@ -168,8 +157,7 @@ module AsposeCellsCloud
|
|
|
168
157
|
sum == o.sum &&
|
|
169
158
|
max_value == o.max_value &&
|
|
170
159
|
min_value == o.min_value &&
|
|
171
|
-
average_value == o.average_value
|
|
172
|
-
value == o.value
|
|
160
|
+
average_value == o.average_value
|
|
173
161
|
std_dev == o.std_dev
|
|
174
162
|
end
|
|
175
163
|
|
|
@@ -182,7 +170,7 @@ module AsposeCellsCloud
|
|
|
182
170
|
# Calculates hash code according to all attributes.
|
|
183
171
|
# @return [Fixnum] Hash code
|
|
184
172
|
def hash
|
|
185
|
-
[ aggregate_operation , color_name , count , sum , max_value , min_value , average_value
|
|
173
|
+
[ aggregate_operation , color_name , count , sum , max_value , min_value , average_value ].hash
|
|
186
174
|
end
|
|
187
175
|
|
|
188
176
|
# Builds the object from hash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
-
<copyright company="Aspose" file="
|
|
3
|
+
<copyright company="Aspose" file="BrokenLinksResponserb.cs">
|
|
4
4
|
Copyright (c) 2025 Aspose.Cells Cloud
|
|
5
5
|
</copyright>
|
|
6
6
|
<summary>
|
|
@@ -30,7 +30,7 @@ require 'date'
|
|
|
30
30
|
|
|
31
31
|
module AsposeCellsCloud
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class BrokenLinksResponse
|
|
34
34
|
#
|
|
35
35
|
attr_accessor :broken_links
|
|
36
36
|
#
|
|
@@ -31,7 +31,7 @@ require 'date'
|
|
|
31
31
|
module AsposeCellsCloud
|
|
32
32
|
|
|
33
33
|
class RemoveCharactersByPosition
|
|
34
|
-
#
|
|
34
|
+
#
|
|
35
35
|
attr_accessor :the_first_n_characters
|
|
36
36
|
#
|
|
37
37
|
attr_accessor :the_last_n_characters
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="AddText_request.rb.cs">
|
|
4
|
+
Copyright (c) 2025 Aspose.Cells Cloud
|
|
5
|
+
</copyright>
|
|
6
|
+
<summary>
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
|
24
|
+
</summary>
|
|
25
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
26
|
+
=end
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
require "uri"
|
|
30
|
+
|
|
31
|
+
module AsposeCellsCloud
|
|
32
|
+
class AddTextRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :spreadsheet
|
|
35
|
+
attr_accessor :text
|
|
36
|
+
attr_accessor :position
|
|
37
|
+
attr_accessor :select_text
|
|
38
|
+
attr_accessor :skip_empty_cells
|
|
39
|
+
attr_accessor :worksheet
|
|
40
|
+
attr_accessor :range
|
|
41
|
+
attr_accessor :out_path
|
|
42
|
+
attr_accessor :out_storage_name
|
|
43
|
+
attr_accessor :region
|
|
44
|
+
attr_accessor :password
|
|
45
|
+
|
|
46
|
+
def initialize(attributes = {})
|
|
47
|
+
return unless attributes.is_a?(Hash)
|
|
48
|
+
|
|
49
|
+
# convert string to symbol for hash key
|
|
50
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
51
|
+
|
|
52
|
+
if attributes.has_key?(:'Spreadsheet')
|
|
53
|
+
self.spreadsheet = attributes[:'Spreadsheet']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if attributes.has_key?(:'text')
|
|
57
|
+
self.text = attributes[:'text']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
if attributes.has_key?(:'position')
|
|
61
|
+
self.position = attributes[:'position']
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
if attributes.has_key?(:'selectText')
|
|
65
|
+
self.select_text = attributes[:'selectText']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'skipEmptyCells')
|
|
69
|
+
self.skip_empty_cells = attributes[:'skipEmptyCells']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.has_key?(:'worksheet')
|
|
73
|
+
self.worksheet = attributes[:'worksheet']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.has_key?(:'range')
|
|
77
|
+
self.range = attributes[:'range']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.has_key?(:'outPath')
|
|
81
|
+
self.out_path = attributes[:'outPath']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.has_key?(:'outStorageName')
|
|
85
|
+
self.out_storage_name = attributes[:'outStorageName']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.has_key?(:'region')
|
|
89
|
+
self.region = attributes[:'region']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.has_key?(:'password')
|
|
93
|
+
self.password = attributes[:'password']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
end
|
|
97
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
98
|
+
def self.attribute_map
|
|
99
|
+
{
|
|
100
|
+
:'spreadsheet' => :'Spreadsheet',
|
|
101
|
+
:'text' => :'text',
|
|
102
|
+
:'position' => :'position',
|
|
103
|
+
:'select_text' => :'selectText',
|
|
104
|
+
:'skip_empty_cells' => :'skipEmptyCells',
|
|
105
|
+
:'worksheet' => :'worksheet',
|
|
106
|
+
:'range' => :'range',
|
|
107
|
+
:'out_path' => :'outPath',
|
|
108
|
+
:'out_storage_name' => :'outStorageName',
|
|
109
|
+
:'region' => :'region',
|
|
110
|
+
:'password' => :'password'
|
|
111
|
+
}
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Attribute type mapping.
|
|
115
|
+
def self.swagger_types
|
|
116
|
+
{
|
|
117
|
+
:'spreadsheet' => :'String',
|
|
118
|
+
:'text' => :'String',
|
|
119
|
+
:'position' => :'String',
|
|
120
|
+
:'select_text' => :'String',
|
|
121
|
+
:'skip_empty_cells' => :'BOOLEAN',
|
|
122
|
+
:'worksheet' => :'String',
|
|
123
|
+
:'range' => :'String',
|
|
124
|
+
:'out_path' => :'String',
|
|
125
|
+
:'out_storage_name' => :'String',
|
|
126
|
+
:'region' => :'String',
|
|
127
|
+
:'password' => :'String'
|
|
128
|
+
}
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def create_http_request(api_client,opts = {})
|
|
132
|
+
if api_client.config.debugging
|
|
133
|
+
api_client.config.logger.debug "Calling API: CellsApi.add_text ..."
|
|
134
|
+
end
|
|
135
|
+
api_client.request_token_if_needed
|
|
136
|
+
# verify the required parameter 'spreadsheet' is set
|
|
137
|
+
if api_client.config.client_side_validation && spreadsheet.nil?
|
|
138
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.add_text "
|
|
139
|
+
end
|
|
140
|
+
# verify the required parameter 'text' is set
|
|
141
|
+
if api_client.config.client_side_validation && text.nil?
|
|
142
|
+
fail ArgumentError, "Missing the required parameter 'text' when calling CellsApi.add_text "
|
|
143
|
+
end
|
|
144
|
+
# verify the required parameter 'position' is set
|
|
145
|
+
if api_client.config.client_side_validation && position.nil?
|
|
146
|
+
fail ArgumentError, "Missing the required parameter 'position' when calling CellsApi.add_text "
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# resource path
|
|
150
|
+
local_var_path = "v4.0/cells/content/add/text"
|
|
151
|
+
# query parameters
|
|
152
|
+
query_params = {}
|
|
153
|
+
query_params[:'text'] = self.text if !self.text.nil?
|
|
154
|
+
query_params[:'position'] = self.position if !self.position.nil?
|
|
155
|
+
query_params[:'selectText'] = self.select_text if !self.select_text.nil?
|
|
156
|
+
query_params[:'skipEmptyCells'] = self.skip_empty_cells if !self.skip_empty_cells.nil?
|
|
157
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
|
158
|
+
query_params[:'range'] = self.range if !self.range.nil?
|
|
159
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
160
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
161
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
162
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
163
|
+
|
|
164
|
+
# header parameters
|
|
165
|
+
header_params = {}
|
|
166
|
+
# HTTP header 'Accept' (if needed)
|
|
167
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
168
|
+
# HTTP header 'Content-Type'
|
|
169
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
170
|
+
|
|
171
|
+
# form parameters
|
|
172
|
+
form_params = {}
|
|
173
|
+
post_body = nil
|
|
174
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
175
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
176
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
#auth_names = []
|
|
180
|
+
auth_names = ['JWT']
|
|
181
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
182
|
+
:header_params => header_params,
|
|
183
|
+
:query_params => query_params,
|
|
184
|
+
:form_params => form_params,
|
|
185
|
+
:body => post_body,
|
|
186
|
+
:auth_names => auth_names,
|
|
187
|
+
:return_type => 'File')
|
|
188
|
+
if api_client.config.debugging
|
|
189
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.add_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
190
|
+
end
|
|
191
|
+
return data, status_code, headers
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
end
|
|
@@ -37,7 +37,7 @@ module AsposeCellsCloud
|
|
|
37
37
|
attr_accessor :sheet_name
|
|
38
38
|
attr_accessor :out_path
|
|
39
39
|
attr_accessor :out_storage_name
|
|
40
|
-
attr_accessor :
|
|
40
|
+
attr_accessor :region
|
|
41
41
|
attr_accessor :password
|
|
42
42
|
|
|
43
43
|
def initialize(attributes = {})
|
|
@@ -70,8 +70,8 @@ module AsposeCellsCloud
|
|
|
70
70
|
self.out_storage_name = attributes[:'outStorageName']
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
-
if attributes.has_key?(:'
|
|
74
|
-
self.
|
|
73
|
+
if attributes.has_key?(:'region')
|
|
74
|
+
self.region = attributes[:'region']
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
if attributes.has_key?(:'password')
|
|
@@ -88,7 +88,7 @@ module AsposeCellsCloud
|
|
|
88
88
|
:'sheet_name' => :'sheetName',
|
|
89
89
|
:'out_path' => :'outPath',
|
|
90
90
|
:'out_storage_name' => :'outStorageName',
|
|
91
|
-
:'
|
|
91
|
+
:'region' => :'region',
|
|
92
92
|
:'password' => :'password'
|
|
93
93
|
}
|
|
94
94
|
end
|
|
@@ -102,7 +102,7 @@ module AsposeCellsCloud
|
|
|
102
102
|
:'sheet_name' => :'String',
|
|
103
103
|
:'out_path' => :'String',
|
|
104
104
|
:'out_storage_name' => :'String',
|
|
105
|
-
:'
|
|
105
|
+
:'region' => :'String',
|
|
106
106
|
:'password' => :'String'
|
|
107
107
|
}
|
|
108
108
|
end
|
|
@@ -126,7 +126,7 @@ module AsposeCellsCloud
|
|
|
126
126
|
query_params[:'sheetName'] = self.sheet_name if !self.sheet_name.nil?
|
|
127
127
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
128
128
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
129
|
-
query_params[:'
|
|
129
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
130
130
|
query_params[:'password'] = self.password if !self.password.nil?
|
|
131
131
|
|
|
132
132
|
# header parameters
|