aspose_cells_cloud 25.2 → 25.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 +59 -62
- data/lib/aspose_cells_cloud/api/cells_api.rb +66 -0
- data/lib/aspose_cells_cloud/models/chart_points.rb +1 -1
- data/lib/aspose_cells_cloud/models/charts.rb +1 -1
- data/lib/aspose_cells_cloud/models/check_external_reference_options.rb +258 -0
- data/lib/aspose_cells_cloud/models/check_formula_error_options.rb +258 -0
- data/lib/aspose_cells_cloud/models/checked_external_reference_response.rb +258 -0
- data/lib/aspose_cells_cloud/models/checked_formula_errors_response.rb +246 -0
- data/lib/aspose_cells_cloud/models/convert_workbook_options.rb +282 -0
- data/lib/aspose_cells_cloud/models/data_cleansing.rb +1 -1
- data/lib/aspose_cells_cloud/models/dif_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/docx_save_options.rb +28 -4
- data/lib/aspose_cells_cloud/models/files_result.rb +1 -1
- data/lib/aspose_cells_cloud/models/html_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/image_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/json_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/m_html_save_options.rb +392 -8
- data/lib/aspose_cells_cloud/models/markdown_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/ods_save_options.rb +100 -4
- data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/page_sections_response.rb +1 -1
- data/lib/aspose_cells_cloud/models/paginated_save_options.rb +28 -4
- data/lib/aspose_cells_cloud/models/pdf_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/pptx_save_options.rb +28 -4
- data/lib/aspose_cells_cloud/models/save_files_to_cloud_result.rb +1 -1
- data/lib/aspose_cells_cloud/models/save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/shapes.rb +1 -1
- data/lib/aspose_cells_cloud/models/specify_cells_object.rb +234 -0
- data/lib/aspose_cells_cloud/models/spreadsheet_m_l2003_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/sql_script_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/styles.rb +1 -1
- data/lib/aspose_cells_cloud/models/styles_response.rb +234 -0
- data/lib/aspose_cells_cloud/models/svg_save_options.rb +208 -4
- data/lib/aspose_cells_cloud/models/txt_save_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/workbook.rb +1 -1
- data/lib/aspose_cells_cloud/models/xls_save_options.rb +88 -4
- data/lib/aspose_cells_cloud/models/xlsb_save_options.rb +88 -4
- data/lib/aspose_cells_cloud/models/xps_save_options.rb +28 -4
- data/lib/aspose_cells_cloud/requests/add_picture_in_cell_request.rb +149 -0
- data/lib/aspose_cells_cloud/requests/check_workbook_formula_errors_request.rb +103 -0
- data/lib/aspose_cells_cloud/requests/check_wrokbook_external_reference_request.rb +103 -0
- data/lib/aspose_cells_cloud/requests/get_all_styles_request.rb +117 -0
- data/lib/aspose_cells_cloud/requests/get_workbook_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_request.rb +111 -0
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_docx_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_html_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_json_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_markdown_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pdf_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pptx_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_worksheet_to_image_request.rb +10 -2
- data/lib/aspose_cells_cloud/requests/post_export_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_import_data_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_workbook_save_as_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_to_image_request.rb +1 -1
- data/lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb +13 -2
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +12 -0
- data/spec/api/batch_controller_spec.rb +23 -0
- data/spec/api/pivot_tables_controller_spec.rb +1 -4
- data/spec/conversion/conversion_json_spec.rb +0 -22
- data/spec/conversion/conversion_png_spec.rb +0 -22
- data/spec/conversion/conversion_spec.rb +18 -104
- data/spec/document/light_cells_spec.rb +54 -428
- data/spec/spec_helper.rb +3 -3
- metadata +14 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4417876ecd3ec11ccb61c8949bd7b7fadc204a90941fa21079dd3f375f068fc
|
4
|
+
data.tar.gz: 658f18a0b9f13d6c5fc7f689e02067c1f5d8324ea25daa21d36ab683332222a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76ef1857ae3f6cb9085dc7ea009aad3548f3807ce7669f26ded6f109b358ad18486bac8bf82c7b35fd2523b64d39330a347edf1793528f654d9213b1d90d4ce3
|
7
|
+
data.tar.gz: 2cee089e939df04b9e1a6a079f6ec1f9f61c44c135b6cae104142360a7523c3ce0a91bc1094734781cae1318855c578e03b9eea6b9bc4ec504fcea8a4490d72d
|
data/README.md
CHANGED
@@ -1,11 +1,68 @@
|
|
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://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) 
|
2
2
|
|
3
|
-
Aspose.Cells Cloud for Ruby
|
3
|
+
Aspose.Cells Cloud SDK for Ruby empowers developers to programmatically manage Excel files with precision. This comprehensive Go library supports advanced Excel operations like cell data formatting, dynamic formulas, pivot tables, conditional styling, charts, hyperlinks, comments, and data validation. It also enables seamless Excel file conversion (XLSX, CSV, PDF, ODS), document splitting/merging, and file repair. Designed for cloud integration, this API-first solution accelerates spreadsheet automation while ensuring data integrity across platforms like AWS, Azure, and Google Cloud.
|
4
4
|
|
5
5
|
# Ruby package for Aspose.Cells Cloud
|
6
6
|
|
7
7
|
Enhance your Ruby applications with the [Aspose.Cells Cloud](https://products.aspose.cloud/cells/ruby) , enabling seamless integration with [Excel, ODS, CSV, Json and other spreadsheet document formats](https://docs.aspose.cloud/cells/supported-file-formats/). With its powerful APIs, developers can effortlessly read, convert, create, edit, and manipulate the contents of Excel documents without the need for any office software installed on the machine.
|
8
8
|
|
9
|
+
## Quick Start Guide
|
10
|
+
|
11
|
+
To begin with Aspose.Cells Cloud, here's what you need to do:
|
12
|
+
|
13
|
+
1. Sign up for an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) to obtain your application details.
|
14
|
+
2. Install the Aspose.Cells Cloud Ruby Package from [RubyGems](https://rubygems.org/).
|
15
|
+
|
16
|
+
- execute the following command to get the latest Gem package.
|
17
|
+
|
18
|
+
```console
|
19
|
+
gem 'aspose_cells_cloud', '~> 20.10'
|
20
|
+
```
|
21
|
+
|
22
|
+
or install directly
|
23
|
+
|
24
|
+
```console
|
25
|
+
gem install aspose_cells_cloud
|
26
|
+
```
|
27
|
+
|
28
|
+
3. Use the conversion code provided below as a reference to add or modify your application.
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
require 'openssl'
|
32
|
+
require 'bundler'
|
33
|
+
require 'aspose_cells_cloud'
|
34
|
+
|
35
|
+
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
|
36
|
+
|
37
|
+
remote_folder = 'TestData/In'
|
38
|
+
|
39
|
+
local_name = 'Book1.xlsx'
|
40
|
+
remote_name = 'Book1.xlsx'
|
41
|
+
|
42
|
+
format = "csv"
|
43
|
+
|
44
|
+
|
45
|
+
mapFiles = { }
|
46
|
+
mapFiles = { }
|
47
|
+
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
48
|
+
|
49
|
+
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
50
|
+
@instance.upload_file(uploadrequest)
|
51
|
+
mapFiles[local_name]= ::File.open(File.expand_path("TestData/"+local_name),"r")
|
52
|
+
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:format=>format);
|
53
|
+
@instance.put_convert_workbook(request);
|
54
|
+
|
55
|
+
```
|
56
|
+
|
57
|
+
## Feature & Enhancements in Version 25.4
|
58
|
+
|
59
|
+
Full list of issues covering all changes in this release:
|
60
|
+
|
61
|
+
|**Summary**|**Category**|
|
62
|
+
| :- | :- |
|
63
|
+
| New API for Comprehensive Formula Error Checks in Excel Workbooks | New Feature |
|
64
|
+
| New API for External Reference Checks in Excel Workbooks | New Feature |
|
65
|
+
|
9
66
|
## Manipulate Excel and other spreadsheet files in the Cloud
|
10
67
|
|
11
68
|
- File Manipulation: Users can upload, download, delete, and manage Excel files stored in the cloud.
|
@@ -19,18 +76,6 @@ Enhance your Ruby applications with the [Aspose.Cells Cloud](https://products.as
|
|
19
76
|
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
|
20
77
|
- 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.
|
21
78
|
|
22
|
-
## Feature & Enhancements in Version 25.2
|
23
|
-
|
24
|
-
Full list of issues covering all changes in this release:
|
25
|
-
|
26
|
-
- Support copying a range from one workbook to another workbook.
|
27
|
-
- Add query parameters for image and print options to enhance the Get Worksheet API.
|
28
|
-
- Added an API to count the number of Excel characters for cells cloud.
|
29
|
-
- Added an API to count the number of Excel words for cells cloud.
|
30
|
-
- Added an API to count the number of occurrences of a specified word in Excel for cells cloud
|
31
|
-
- Add a new feature to support converting range to images.
|
32
|
-
- Add a new feature to support converting worksheets to images
|
33
|
-
|
34
79
|
## Support file format
|
35
80
|
|
36
81
|
|**Format**|**Description**|**Load**|**Save**|
|
@@ -69,54 +114,6 @@ Full list of issues covering all changes in this release:
|
|
69
114
|
|[DOCX](https://docs.fileformat.com/word-processing/docx/)|A well-known format for Microsoft Word documents that is a combination of XML and binary files.||√|
|
70
115
|
|[PPTX](https://docs.fileformat.com/presentation/pptx/)|The PPTX format is based on the Microsoft PowerPoint open XML presentation file format.||√|
|
71
116
|
|
72
|
-
## Quick Start Guide
|
73
|
-
|
74
|
-
To begin with Aspose.Cells Cloud, here's what you need to do:
|
75
|
-
|
76
|
-
1. Sign up for an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) to obtain your application details.
|
77
|
-
2. Install the Aspose.Cells Cloud Ruby Package from [RubyGems](https://rubygems.org/).
|
78
|
-
|
79
|
-
- execute the following command to get the latest Gem package.
|
80
|
-
|
81
|
-
```console
|
82
|
-
gem 'aspose_cells_cloud', '~> 20.10'
|
83
|
-
```
|
84
|
-
|
85
|
-
or install directly
|
86
|
-
|
87
|
-
```console
|
88
|
-
gem install aspose_cells_cloud
|
89
|
-
```
|
90
|
-
|
91
|
-
3. Use the conversion code provided below as a reference to add or modify your application.
|
92
|
-
|
93
|
-
```ruby
|
94
|
-
require 'openssl'
|
95
|
-
require 'bundler'
|
96
|
-
require 'aspose_cells_cloud'
|
97
|
-
|
98
|
-
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
|
99
|
-
|
100
|
-
remote_folder = 'TestData/In'
|
101
|
-
|
102
|
-
local_name = 'Book1.xlsx'
|
103
|
-
remote_name = 'Book1.xlsx'
|
104
|
-
|
105
|
-
format = "csv"
|
106
|
-
|
107
|
-
|
108
|
-
mapFiles = { }
|
109
|
-
mapFiles = { }
|
110
|
-
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
111
|
-
|
112
|
-
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
113
|
-
@instance.upload_file(uploadrequest)
|
114
|
-
mapFiles[local_name]= ::File.open(File.expand_path("TestData/"+local_name),"r")
|
115
|
-
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:format=>format);
|
116
|
-
@instance.put_convert_workbook(request);
|
117
|
-
|
118
|
-
```
|
119
|
-
|
120
117
|
## Aspose.Cells Cloud in Popular Languages
|
121
118
|
|
122
119
|
| .NET | Java | PHP | Python | Node.js | Android | Swift | Perl | GO |
|
@@ -40,6 +40,7 @@ module AsposeCellsCloud
|
|
40
40
|
@api_client.config.host = app_host
|
41
41
|
end
|
42
42
|
|
43
|
+
# Perform business analysis of data in Excel files.
|
43
44
|
|
44
45
|
def post_analyze_excel( post_analyze_excel_request, opts = {})
|
45
46
|
|
@@ -47,6 +48,7 @@ module AsposeCellsCloud
|
|
47
48
|
return data
|
48
49
|
end
|
49
50
|
|
51
|
+
# Retrieve the description of auto filters from a worksheet.
|
50
52
|
|
51
53
|
def get_worksheet_auto_filter( get_worksheet_auto_filter_request, opts = {})
|
52
54
|
|
@@ -150,6 +152,7 @@ module AsposeCellsCloud
|
|
150
152
|
return data
|
151
153
|
end
|
152
154
|
|
155
|
+
# Get autoshapes description in worksheet.
|
153
156
|
|
154
157
|
def get_worksheet_autoshapes( get_worksheet_autoshapes_request, opts = {})
|
155
158
|
|
@@ -165,6 +168,7 @@ module AsposeCellsCloud
|
|
165
168
|
return data
|
166
169
|
end
|
167
170
|
|
171
|
+
# Batch converting files that meet specific matching conditions.
|
168
172
|
|
169
173
|
def post_batch_convert( post_batch_convert_request, opts = {})
|
170
174
|
|
@@ -212,6 +216,7 @@ module AsposeCellsCloud
|
|
212
216
|
return data
|
213
217
|
end
|
214
218
|
|
219
|
+
# Clear cell area contents in the worksheet.
|
215
220
|
|
216
221
|
def post_clear_contents( post_clear_contents_request, opts = {})
|
217
222
|
|
@@ -339,6 +344,7 @@ module AsposeCellsCloud
|
|
339
344
|
return data
|
340
345
|
end
|
341
346
|
|
347
|
+
# Retrieve descriptions of worksheet columns.
|
342
348
|
|
343
349
|
def get_worksheet_columns( get_worksheet_columns_request, opts = {})
|
344
350
|
|
@@ -426,6 +432,7 @@ module AsposeCellsCloud
|
|
426
432
|
return data
|
427
433
|
end
|
428
434
|
|
435
|
+
# Retrieve descriptions of rows in the worksheet.
|
429
436
|
|
430
437
|
def get_worksheet_rows( get_worksheet_rows_request, opts = {})
|
431
438
|
|
@@ -545,6 +552,7 @@ module AsposeCellsCloud
|
|
545
552
|
return data
|
546
553
|
end
|
547
554
|
|
555
|
+
# Retrieve chart area description in the worksheet.
|
548
556
|
|
549
557
|
def get_chart_area( get_chart_area_request, opts = {})
|
550
558
|
|
@@ -568,6 +576,7 @@ module AsposeCellsCloud
|
|
568
576
|
return data
|
569
577
|
end
|
570
578
|
|
579
|
+
# Retrieve descriptions of charts in the worksheet.
|
571
580
|
|
572
581
|
def get_worksheet_charts( get_worksheet_charts_request, opts = {})
|
573
582
|
|
@@ -759,6 +768,7 @@ module AsposeCellsCloud
|
|
759
768
|
return data
|
760
769
|
end
|
761
770
|
|
771
|
+
# Retrieve descriptions of conditional formattings in a worksheet.
|
762
772
|
|
763
773
|
def get_worksheet_conditional_formattings( get_worksheet_conditional_formattings_request, opts = {})
|
764
774
|
|
@@ -830,6 +840,7 @@ module AsposeCellsCloud
|
|
830
840
|
return data
|
831
841
|
end
|
832
842
|
|
843
|
+
# Retrieve workbooks in various formats.
|
833
844
|
|
834
845
|
def get_workbook( get_workbook_request, opts = {})
|
835
846
|
|
@@ -933,6 +944,29 @@ module AsposeCellsCloud
|
|
933
944
|
end
|
934
945
|
|
935
946
|
|
947
|
+
def post_convert_workbook( post_convert_workbook_request, opts = {})
|
948
|
+
|
949
|
+
data, _status_code, _headers = post_convert_workbook_request.create_http_request(@api_client,opts )
|
950
|
+
return data
|
951
|
+
end
|
952
|
+
|
953
|
+
# Export Excel internal elements or the workbook itself to various format files.
|
954
|
+
|
955
|
+
def check_wrokbook_external_reference( check_wrokbook_external_reference_request, opts = {})
|
956
|
+
|
957
|
+
data, _status_code, _headers = check_wrokbook_external_reference_request.create_http_request(@api_client,opts )
|
958
|
+
return data
|
959
|
+
end
|
960
|
+
|
961
|
+
|
962
|
+
def check_workbook_formula_errors( check_workbook_formula_errors_request, opts = {})
|
963
|
+
|
964
|
+
data, _status_code, _headers = check_workbook_formula_errors_request.create_http_request(@api_client,opts )
|
965
|
+
return data
|
966
|
+
end
|
967
|
+
|
968
|
+
# Export Excel internal elements or the workbook itself to various format files.
|
969
|
+
|
936
970
|
def post_export( post_export_request, opts = {})
|
937
971
|
|
938
972
|
data, _status_code, _headers = post_export_request.create_http_request(@api_client,opts )
|
@@ -1036,6 +1070,7 @@ module AsposeCellsCloud
|
|
1036
1070
|
return data
|
1037
1071
|
end
|
1038
1072
|
|
1073
|
+
# Retrieve descriptions of hyperlinks in the worksheet.
|
1039
1074
|
|
1040
1075
|
def get_worksheet_hyperlinks( get_worksheet_hyperlinks_request, opts = {})
|
1041
1076
|
|
@@ -1083,6 +1118,7 @@ module AsposeCellsCloud
|
|
1083
1118
|
return data
|
1084
1119
|
end
|
1085
1120
|
|
1121
|
+
# Assemble data files with template files to generate files in various formats.
|
1086
1122
|
|
1087
1123
|
def post_assemble( post_assemble_request, opts = {})
|
1088
1124
|
|
@@ -1202,6 +1238,7 @@ module AsposeCellsCloud
|
|
1202
1238
|
return data
|
1203
1239
|
end
|
1204
1240
|
|
1241
|
+
# Retrieve descriptions of ListObjects in the worksheet.
|
1205
1242
|
|
1206
1243
|
def get_worksheet_list_objects( get_worksheet_list_objects_request, opts = {})
|
1207
1244
|
|
@@ -1305,6 +1342,7 @@ module AsposeCellsCloud
|
|
1305
1342
|
return data
|
1306
1343
|
end
|
1307
1344
|
|
1345
|
+
# Retrieve descriptions of OLE objects in the worksheet.
|
1308
1346
|
|
1309
1347
|
def get_worksheet_ole_objects( get_worksheet_ole_objects_request, opts = {})
|
1310
1348
|
|
@@ -1352,6 +1390,7 @@ module AsposeCellsCloud
|
|
1352
1390
|
return data
|
1353
1391
|
end
|
1354
1392
|
|
1393
|
+
# Retrieve descriptions of vertical page breaks in the worksheet.
|
1355
1394
|
|
1356
1395
|
def get_vertical_page_breaks( get_vertical_page_breaks_request, opts = {})
|
1357
1396
|
|
@@ -1431,6 +1470,7 @@ module AsposeCellsCloud
|
|
1431
1470
|
return data
|
1432
1471
|
end
|
1433
1472
|
|
1473
|
+
# Retrieve page setup description in the worksheet.
|
1434
1474
|
|
1435
1475
|
def get_page_setup( get_page_setup_request, opts = {})
|
1436
1476
|
|
@@ -1502,6 +1542,7 @@ module AsposeCellsCloud
|
|
1502
1542
|
return data
|
1503
1543
|
end
|
1504
1544
|
|
1545
|
+
# Retrieve descriptions of pictures in the worksheet.
|
1505
1546
|
|
1506
1547
|
def get_worksheet_pictures( get_worksheet_pictures_request, opts = {})
|
1507
1548
|
|
@@ -1525,6 +1566,14 @@ module AsposeCellsCloud
|
|
1525
1566
|
return data
|
1526
1567
|
end
|
1527
1568
|
|
1569
|
+
# add new picture in the cells.
|
1570
|
+
|
1571
|
+
def add_picture_in_cell( add_picture_in_cell_request, opts = {})
|
1572
|
+
|
1573
|
+
data, _status_code, _headers = add_picture_in_cell_request.create_http_request(@api_client,opts )
|
1574
|
+
return data
|
1575
|
+
end
|
1576
|
+
|
1528
1577
|
# Update a picture by index in the worksheet.
|
1529
1578
|
|
1530
1579
|
def post_worksheet_picture( post_worksheet_picture_request, opts = {})
|
@@ -1549,6 +1598,7 @@ module AsposeCellsCloud
|
|
1549
1598
|
return data
|
1550
1599
|
end
|
1551
1600
|
|
1601
|
+
# Retrieve descriptions of pivottables in the worksheet.
|
1552
1602
|
|
1553
1603
|
def get_worksheet_pivot_tables( get_worksheet_pivot_tables_request, opts = {})
|
1554
1604
|
|
@@ -1716,6 +1766,7 @@ module AsposeCellsCloud
|
|
1716
1766
|
return data
|
1717
1767
|
end
|
1718
1768
|
|
1769
|
+
# Retrieve descriptions of Excel file properties.
|
1719
1770
|
|
1720
1771
|
def get_document_properties( get_document_properties_request, opts = {})
|
1721
1772
|
|
@@ -1755,6 +1806,7 @@ module AsposeCellsCloud
|
|
1755
1806
|
return data
|
1756
1807
|
end
|
1757
1808
|
|
1809
|
+
# Excel file digital signature.
|
1758
1810
|
|
1759
1811
|
def post_digital_signature( post_digital_signature_request, opts = {})
|
1760
1812
|
|
@@ -1834,6 +1886,7 @@ module AsposeCellsCloud
|
|
1834
1886
|
return data
|
1835
1887
|
end
|
1836
1888
|
|
1889
|
+
# Copy content from the source range to the destination range in the worksheet.
|
1837
1890
|
|
1838
1891
|
def post_worksheet_cells_ranges_copy( post_worksheet_cells_ranges_copy_request, opts = {})
|
1839
1892
|
|
@@ -1944,6 +1997,7 @@ module AsposeCellsCloud
|
|
1944
1997
|
return data
|
1945
1998
|
end
|
1946
1999
|
|
2000
|
+
# Retrieve descriptions of shapes in the worksheet.
|
1947
2001
|
|
1948
2002
|
def get_worksheet_shapes( get_worksheet_shapes_request, opts = {})
|
1949
2003
|
|
@@ -2007,6 +2061,7 @@ module AsposeCellsCloud
|
|
2007
2061
|
return data
|
2008
2062
|
end
|
2009
2063
|
|
2064
|
+
# Retrieve descriptions of sparkline groups in the worksheet.
|
2010
2065
|
|
2011
2066
|
def get_worksheet_sparkline_groups( get_worksheet_sparkline_groups_request, opts = {})
|
2012
2067
|
|
@@ -2140,6 +2195,7 @@ module AsposeCellsCloud
|
|
2140
2195
|
return data
|
2141
2196
|
end
|
2142
2197
|
|
2198
|
+
# Retrieve the description of the default style for the workbook .
|
2143
2199
|
|
2144
2200
|
def get_workbook_default_style( get_workbook_default_style_request, opts = {})
|
2145
2201
|
|
@@ -2331,6 +2387,15 @@ module AsposeCellsCloud
|
|
2331
2387
|
return data
|
2332
2388
|
end
|
2333
2389
|
|
2390
|
+
# Get all style in the workbook.
|
2391
|
+
|
2392
|
+
def get_all_styles( get_all_styles_request, opts = {})
|
2393
|
+
|
2394
|
+
data, _status_code, _headers = get_all_styles_request.create_http_request(@api_client,opts )
|
2395
|
+
return data
|
2396
|
+
end
|
2397
|
+
|
2398
|
+
# Retrieve the description of worksheets from a workbook.
|
2334
2399
|
|
2335
2400
|
def get_worksheets( get_worksheets_request, opts = {})
|
2336
2401
|
|
@@ -2642,6 +2707,7 @@ module AsposeCellsCloud
|
|
2642
2707
|
return data
|
2643
2708
|
end
|
2644
2709
|
|
2710
|
+
# Retrieve descriptions of validations in the worksheet.
|
2645
2711
|
|
2646
2712
|
def get_worksheet_validations( get_worksheet_validations_request, opts = {})
|
2647
2713
|
|
@@ -0,0 +1,258 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="CheckExternalReferenceOptionsrb.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 'date'
|
30
|
+
|
31
|
+
module AsposeCellsCloud
|
32
|
+
|
33
|
+
class CheckExternalReferenceOptions
|
34
|
+
#
|
35
|
+
attr_accessor :data_source
|
36
|
+
#
|
37
|
+
attr_accessor :file_info
|
38
|
+
#
|
39
|
+
attr_accessor :worksheet
|
40
|
+
#
|
41
|
+
attr_accessor :ranged__table
|
42
|
+
#
|
43
|
+
attr_accessor :chart_index
|
44
|
+
|
45
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
46
|
+
def self.attribute_map
|
47
|
+
{
|
48
|
+
:'data_source' => :'DataSource',
|
49
|
+
:'file_info' => :'FileInfo',
|
50
|
+
:'worksheet' => :'Worksheet',
|
51
|
+
:'ranged__table' => :'Ranged_Table',
|
52
|
+
:'chart_index' => :'ChartIndex'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Attribute type mapping.
|
57
|
+
def self.swagger_types
|
58
|
+
{
|
59
|
+
:'data_source' => :'DataSource',
|
60
|
+
:'file_info' => :'FileInfo',
|
61
|
+
:'worksheet' => :'String',
|
62
|
+
:'ranged__table' => :'String',
|
63
|
+
:'chart_index' => :'Integer'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# Initializes the object
|
68
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
69
|
+
def initialize(attributes = {})
|
70
|
+
return unless attributes.is_a?(Hash)
|
71
|
+
|
72
|
+
# convert string to symbol for hash key
|
73
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
74
|
+
|
75
|
+
if attributes.has_key?(:'DataSource')
|
76
|
+
self.data_source = attributes[:'DataSource']
|
77
|
+
end
|
78
|
+
if attributes.has_key?(:'FileInfo')
|
79
|
+
self.file_info = attributes[:'FileInfo']
|
80
|
+
end
|
81
|
+
if attributes.has_key?(:'Worksheet')
|
82
|
+
self.worksheet = attributes[:'Worksheet']
|
83
|
+
end
|
84
|
+
if attributes.has_key?(:'Ranged_Table')
|
85
|
+
self.ranged__table = attributes[:'Ranged_Table']
|
86
|
+
end
|
87
|
+
if attributes.has_key?(:'ChartIndex')
|
88
|
+
self.chart_index = attributes[:'ChartIndex']
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
94
|
+
# @return Array for valid properies with the reasons
|
95
|
+
def list_invalid_properties
|
96
|
+
invalid_properties = Array.new
|
97
|
+
if @data_source.nil?
|
98
|
+
invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
|
99
|
+
end
|
100
|
+
if @file_info.nil?
|
101
|
+
invalid_properties.push("invalid value for 'file_info', file_info cannot be nil.")
|
102
|
+
end
|
103
|
+
if @worksheet.nil?
|
104
|
+
invalid_properties.push("invalid value for 'worksheet', worksheet cannot be nil.")
|
105
|
+
end
|
106
|
+
if @ranged__table.nil?
|
107
|
+
invalid_properties.push("invalid value for 'ranged__table', ranged__table cannot be nil.")
|
108
|
+
end
|
109
|
+
if @chart_index.nil?
|
110
|
+
invalid_properties.push("invalid value for 'chart_index', chart_index cannot be nil.")
|
111
|
+
end
|
112
|
+
|
113
|
+
return invalid_properties
|
114
|
+
end
|
115
|
+
|
116
|
+
# Check to see if the all the properties in the model are valid
|
117
|
+
# @return true if the model is valid
|
118
|
+
def valid?
|
119
|
+
return false if @data_source.nil?
|
120
|
+
return false if @file_info.nil?
|
121
|
+
return false if @worksheet.nil?
|
122
|
+
return false if @ranged__table.nil?
|
123
|
+
return false if @chart_index.nil?
|
124
|
+
return true
|
125
|
+
end
|
126
|
+
|
127
|
+
# Checks equality by comparing each attribute.
|
128
|
+
# @param [Object] Object to be compared
|
129
|
+
def ==(o)
|
130
|
+
return true if self.equal?(o)
|
131
|
+
self.class == o.class &&
|
132
|
+
data_source == o.data_source &&
|
133
|
+
file_info == o.file_info &&
|
134
|
+
worksheet == o.worksheet &&
|
135
|
+
ranged__table == o.ranged__table &&
|
136
|
+
chart_index == o.chart_index
|
137
|
+
std_dev == o.std_dev
|
138
|
+
end
|
139
|
+
|
140
|
+
# @see the `==` method
|
141
|
+
# @param [Object] Object to be compared
|
142
|
+
def eql?(o)
|
143
|
+
self == o
|
144
|
+
end
|
145
|
+
|
146
|
+
# Calculates hash code according to all attributes.
|
147
|
+
# @return [Fixnum] Hash code
|
148
|
+
def hash
|
149
|
+
[ data_source , file_info , worksheet , ranged__table , chart_index ].hash
|
150
|
+
end
|
151
|
+
|
152
|
+
# Builds the object from hash
|
153
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
154
|
+
# @return [Object] Returns the model itself
|
155
|
+
def build_from_hash(attributes)
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
157
|
+
self.class.swagger_types.each_pair do |key, type|
|
158
|
+
if type =~ /\AArray<(.*)>/i
|
159
|
+
# check to ensure the input is an array given that the the attribute
|
160
|
+
# is documented as an array but the input is not
|
161
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
162
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
163
|
+
end
|
164
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
165
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
166
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
167
|
+
end
|
168
|
+
|
169
|
+
self
|
170
|
+
end
|
171
|
+
|
172
|
+
# Deserializes the data based on type
|
173
|
+
# @param string type Data type
|
174
|
+
# @param string value Value to be deserialized
|
175
|
+
# @return [Object] Deserialized data
|
176
|
+
def _deserialize(type, value)
|
177
|
+
case type.to_sym
|
178
|
+
when :DateTime
|
179
|
+
DateTime.parse(value)
|
180
|
+
when :Date
|
181
|
+
Date.parse(value)
|
182
|
+
when :String
|
183
|
+
value.to_s
|
184
|
+
when :Integer
|
185
|
+
value.to_i
|
186
|
+
when :Float
|
187
|
+
value.to_f
|
188
|
+
when :BOOLEAN
|
189
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
190
|
+
true
|
191
|
+
else
|
192
|
+
false
|
193
|
+
end
|
194
|
+
when :Object
|
195
|
+
# generic object (usually a Hash), return directly
|
196
|
+
value
|
197
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
198
|
+
inner_type = Regexp.last_match[:inner_type]
|
199
|
+
value.map { |v| _deserialize(inner_type, v) }
|
200
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
201
|
+
k_type = Regexp.last_match[:k_type]
|
202
|
+
v_type = Regexp.last_match[:v_type]
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each do |k, v|
|
205
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
206
|
+
end
|
207
|
+
end
|
208
|
+
else # model
|
209
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
210
|
+
temp_model.build_from_hash(value)
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
# Returns the string representation of the object
|
215
|
+
# @return [String] String presentation of the object
|
216
|
+
def to_s
|
217
|
+
to_hash.to_s
|
218
|
+
end
|
219
|
+
|
220
|
+
# to_body is an alias to to_hash (backward compatibility)
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_body
|
223
|
+
to_hash
|
224
|
+
end
|
225
|
+
|
226
|
+
# Returns the object in the form of hash
|
227
|
+
# @return [Hash] Returns the object in the form of hash
|
228
|
+
def to_hash
|
229
|
+
hash = {}
|
230
|
+
self.class.attribute_map.each_pair do |attr, param|
|
231
|
+
value = self.send(attr)
|
232
|
+
next if value.nil?
|
233
|
+
hash[param] = _to_hash(value)
|
234
|
+
end
|
235
|
+
hash
|
236
|
+
end
|
237
|
+
|
238
|
+
# Outputs non-array value in the form of hash
|
239
|
+
# For object, use to_hash. Otherwise, just return the value
|
240
|
+
# @param [Object] value Any valid value
|
241
|
+
# @return [Hash] Returns the value in the form of hash
|
242
|
+
def _to_hash(value)
|
243
|
+
if value.is_a?(Array)
|
244
|
+
value.compact.map{ |v| _to_hash(v) }
|
245
|
+
elsif value.is_a?(Hash)
|
246
|
+
{}.tap do |hash|
|
247
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
248
|
+
end
|
249
|
+
elsif value.respond_to? :to_hash
|
250
|
+
value.to_hash
|
251
|
+
else
|
252
|
+
value
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
end
|
257
|
+
|
258
|
+
end
|