aspose_cells_cloud 25.8 → 25.10
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 +13 -16
- data/lib/aspose_cells_cloud/api/cells_api.rb +105 -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 +198 -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_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 +190 -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 +226 -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_request.rb +246 -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 +7 -7
- 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 +214 -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/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 +18 -6
- metadata +19 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cbd190fc6a52a9ab31719aee387fcef5864ddae02d8523934c4a51135476bb7
|
4
|
+
data.tar.gz: 5152b3839c1e466c791a958a770b18da92945c6124091c5689d6469b8064a975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 255f7a0f2b04da523d262bc333a24753756df370e02f034d0808352a169f7221ec0747ceb697fa0e693822e66d029acfb9d2b7788721e46502cf1a0b67397542
|
7
|
+
data.tar.gz: 60c2d4d437b04faf4d02d459b7fb0936f8a345600f00ce4c05b87da9157d7114e39c3279f616160048c803c4ec6235f39bfb538a520643614c0e145ba3c2dcbc
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
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
|
-
|
4
|
-
|
5
|
-
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.
|
3
|
+
[Aspose.Cells Cloud SDK for Ruby](https://products.aspose.cloud/cells/ruby) is a cloud-first REST API that lets Ruby applications create, read, edit, convert, and repair [Excel, ODS, CSV, JSON, and other spreadsheet files](https://docs.aspose.cloud/cells/supported-file-formats/) without installing Microsoft Office. It supports advanced features, including cell formatting, formulas, pivot tables, conditional styling, charts, hyperlinks, comments, data validation, document splitting, and merging, and runs on AWS, Azure, and Google Cloud, while ensuring data integrity.
|
6
4
|
|
7
5
|
## Quick Start Guide
|
8
6
|
|
@@ -14,7 +12,7 @@ To begin with Aspose.Cells Cloud, here's what you need to do:
|
|
14
12
|
- execute the following command to get the latest Gem package.
|
15
13
|
|
16
14
|
```console
|
17
|
-
gem 'aspose_cells_cloud', '~> 25.
|
15
|
+
gem 'aspose_cells_cloud', '~> 25.10'
|
18
16
|
```
|
19
17
|
|
20
18
|
or install directly
|
@@ -116,21 +114,20 @@ request = AsposeCellsCloud::UploadFileRequest.new(:UploadFiles=>"EmployeeSales
|
|
116
114
|
- Import/Export: Facilitates importing data from various sources into spreadsheets and exporting spreadsheet data to other formats.
|
117
115
|
- 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
116
|
|
119
|
-
## Feature & Enhancements in Version 25.
|
117
|
+
## Feature & Enhancements in Version 25.10
|
120
118
|
|
121
119
|
Full list of issues covering all changes in this release:
|
122
120
|
|
123
121
|
|**Summary**|**Category**|
|
124
122
|
| :- | :- |
|
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 |
|
123
|
+
| Optimize data Transform API: replace delete with remove. | Improvement |
|
124
|
+
| Support to update the spreadsheet content words case in Cells Cloud 4.0. | Improvement |
|
125
|
+
| Support to remove characters from spreadsheet content in Cells Cloud 4.0. | Improvement |
|
126
|
+
| Support to add text for spreadsheet content in Cells Cloud 4.0. | Improvement |
|
127
|
+
| Support to convert text for spreadsheet content in Cells Cloud 4.0. | Improvement |
|
128
|
+
| Support to extract text for spreadsheet content in Cells Cloud 4.0. | Improvement |
|
129
|
+
| Support to extract text for spreadsheet content in Cells Cloud 4.0. | Improvement |
|
130
|
+
| Support to split text for spreadsheet content in Cells Cloud 4.0. | Improvement |
|
134
131
|
|
135
132
|
## Available SDKs
|
136
133
|
|
@@ -152,4 +149,4 @@ The Aspose.Cells Cloud SDK is available in multiple popular programming language
|
|
152
149
|
|
153
150
|
[](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby) [](https://rubygems.org/gems/aspose_cells_cloud)
|
154
151
|
|
155
|
-
## [Release history version](
|
152
|
+
## [Release history version](CHANGELOG.md)
|
@@ -48,7 +48,6 @@ module AsposeCellsCloud
|
|
48
48
|
return data
|
49
49
|
end
|
50
50
|
|
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
51
|
|
53
52
|
def math_calculate( math_calculate_request, opts = {})
|
54
53
|
|
@@ -129,6 +128,22 @@ module AsposeCellsCloud
|
|
129
128
|
return data
|
130
129
|
end
|
131
130
|
|
131
|
+
# Converts a spreadsheet on a local drive to the pdf file.
|
132
|
+
|
133
|
+
def convert_spreadsheet_to_pdf( convert_spreadsheet_to_pdf_request, opts = {})
|
134
|
+
|
135
|
+
data, _status_code, _headers = convert_spreadsheet_to_pdf_request.create_http_request(@api_client,opts )
|
136
|
+
return data
|
137
|
+
end
|
138
|
+
|
139
|
+
# Converts a spreadsheet on a local drive to the csv file.
|
140
|
+
|
141
|
+
def convert_spreadsheet_to_csv( convert_spreadsheet_to_csv_request, opts = {})
|
142
|
+
|
143
|
+
data, _status_code, _headers = convert_spreadsheet_to_csv_request.create_http_request(@api_client,opts )
|
144
|
+
return data
|
145
|
+
end
|
146
|
+
|
132
147
|
# Converts a worksheet of spreadsheet on a local drive to the image format.
|
133
148
|
|
134
149
|
def convert_worksheet_to_image( convert_worksheet_to_image_request, opts = {})
|
@@ -289,6 +304,7 @@ module AsposeCellsCloud
|
|
289
304
|
return data
|
290
305
|
end
|
291
306
|
|
307
|
+
# Import data into a spreadsheet from a supported data file format.
|
292
308
|
|
293
309
|
def import_data_into_spreadsheet( import_data_into_spreadsheet_request, opts = {})
|
294
310
|
|
@@ -352,6 +368,13 @@ module AsposeCellsCloud
|
|
352
368
|
return data
|
353
369
|
end
|
354
370
|
|
371
|
+
|
372
|
+
def repair_spreadsheet( repair_spreadsheet_request, opts = {})
|
373
|
+
|
374
|
+
data, _status_code, _headers = repair_spreadsheet_request.create_http_request(@api_client,opts )
|
375
|
+
return data
|
376
|
+
end
|
377
|
+
|
355
378
|
# Applies dual-layer password protection to Excel spreadsheets, supporting both open and modify passwords with encryption.
|
356
379
|
|
357
380
|
def protect_spreadsheet( protect_spreadsheet_request, opts = {})
|
@@ -368,6 +391,13 @@ module AsposeCellsCloud
|
|
368
391
|
return data
|
369
392
|
end
|
370
393
|
|
394
|
+
|
395
|
+
def spreadsheet_digitalsignature( spreadsheet_digitalsignature_request, opts = {})
|
396
|
+
|
397
|
+
data, _status_code, _headers = spreadsheet_digitalsignature_request.create_http_request(@api_client,opts )
|
398
|
+
return data
|
399
|
+
end
|
400
|
+
|
371
401
|
# Search text in the local spreadsheet.
|
372
402
|
|
373
403
|
def search_spreadsheet_content( search_spreadsheet_content_request, opts = {})
|
@@ -479,35 +509,98 @@ module AsposeCellsCloud
|
|
479
509
|
return data
|
480
510
|
end
|
481
511
|
|
482
|
-
#
|
512
|
+
# 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
|
513
|
+
|
514
|
+
def trim_character( trim_character_request, opts = {})
|
515
|
+
|
516
|
+
data, _status_code, _headers = trim_character_request.create_http_request(@api_client,opts )
|
517
|
+
return data
|
518
|
+
end
|
519
|
+
|
520
|
+
# 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.
|
521
|
+
|
522
|
+
def update_word_case( update_word_case_request, opts = {})
|
523
|
+
|
524
|
+
data, _status_code, _headers = update_word_case_request.create_http_request(@api_client,opts )
|
525
|
+
return data
|
526
|
+
end
|
527
|
+
|
528
|
+
# Perform operations or delete any custom characters, character sets, and substrings within a selected range for a specific position.
|
529
|
+
|
530
|
+
def remove_characters( remove_characters_request, opts = {})
|
531
|
+
|
532
|
+
data, _status_code, _headers = remove_characters_request.create_http_request(@api_client,opts )
|
533
|
+
return data
|
534
|
+
end
|
535
|
+
|
536
|
+
# 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.
|
537
|
+
|
538
|
+
def add_text( add_text_request, opts = {})
|
539
|
+
|
540
|
+
data, _status_code, _headers = add_text_request.create_http_request(@api_client,opts )
|
541
|
+
return data
|
542
|
+
end
|
543
|
+
|
544
|
+
# 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.
|
545
|
+
|
546
|
+
def convert_text( convert_text_request, opts = {})
|
547
|
+
|
548
|
+
data, _status_code, _headers = convert_text_request.create_http_request(@api_client,opts )
|
549
|
+
return data
|
550
|
+
end
|
551
|
+
|
552
|
+
# 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.
|
553
|
+
|
554
|
+
def extract_text( extract_text_request, opts = {})
|
555
|
+
|
556
|
+
data, _status_code, _headers = extract_text_request.create_http_request(@api_client,opts )
|
557
|
+
return data
|
558
|
+
end
|
559
|
+
|
560
|
+
# Indicates performing text segmentation on the specified area according to the segmentation method, and outputting to the designated interval.
|
561
|
+
|
562
|
+
def split_text( split_text_request, opts = {})
|
563
|
+
|
564
|
+
data, _status_code, _headers = split_text_request.create_http_request(@api_client,opts )
|
565
|
+
return data
|
566
|
+
end
|
567
|
+
|
568
|
+
# Delete all blank rows that do not contain any data or other objects.
|
569
|
+
|
570
|
+
def remove_spreadsheet_blank_rows( remove_spreadsheet_blank_rows_request, opts = {})
|
571
|
+
|
572
|
+
data, _status_code, _headers = remove_spreadsheet_blank_rows_request.create_http_request(@api_client,opts )
|
573
|
+
return data
|
574
|
+
end
|
575
|
+
|
576
|
+
# Delete all blank rows that do not contain any data or other objects.
|
483
577
|
|
484
|
-
def
|
578
|
+
def remove_spreadsheet_blank_columns( remove_spreadsheet_blank_columns_request, opts = {})
|
485
579
|
|
486
|
-
data, _status_code, _headers =
|
580
|
+
data, _status_code, _headers = remove_spreadsheet_blank_columns_request.create_http_request(@api_client,opts )
|
487
581
|
return data
|
488
582
|
end
|
489
583
|
|
490
|
-
# Delete all blank
|
584
|
+
# Delete all blank rows that do not contain any data or other objects.
|
491
585
|
|
492
|
-
def
|
586
|
+
def remove_spreadsheet_blank_worksheets( remove_spreadsheet_blank_worksheets_request, opts = {})
|
493
587
|
|
494
|
-
data, _status_code, _headers =
|
588
|
+
data, _status_code, _headers = remove_spreadsheet_blank_worksheets_request.create_http_request(@api_client,opts )
|
495
589
|
return data
|
496
590
|
end
|
497
591
|
|
498
|
-
# Delete all blank worksheets which do not contain any data or other object.
|
499
592
|
|
500
|
-
def
|
593
|
+
def remove_duplicates( remove_duplicates_request, opts = {})
|
501
594
|
|
502
|
-
data, _status_code, _headers =
|
595
|
+
data, _status_code, _headers = remove_duplicates_request.create_http_request(@api_client,opts )
|
503
596
|
return data
|
504
597
|
end
|
505
598
|
|
506
599
|
# 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
600
|
|
508
|
-
def
|
601
|
+
def swap_range( swap_range_request, opts = {})
|
509
602
|
|
510
|
-
data, _status_code, _headers =
|
603
|
+
data, _status_code, _headers = swap_range_request.create_http_request(@api_client,opts )
|
511
604
|
return data
|
512
605
|
end
|
513
606
|
|
@@ -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,198 @@
|
|
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
|
+
# verify the required parameter 'select_text' is set
|
149
|
+
if api_client.config.client_side_validation && select_text.nil?
|
150
|
+
fail ArgumentError, "Missing the required parameter 'select_text' when calling CellsApi.add_text "
|
151
|
+
end
|
152
|
+
|
153
|
+
# resource path
|
154
|
+
local_var_path = "v4.0/cells/content/add/text"
|
155
|
+
# query parameters
|
156
|
+
query_params = {}
|
157
|
+
query_params[:'text'] = self.text if !self.text.nil?
|
158
|
+
query_params[:'position'] = self.position if !self.position.nil?
|
159
|
+
query_params[:'selectText'] = self.select_text if !self.select_text.nil?
|
160
|
+
query_params[:'skipEmptyCells'] = self.skip_empty_cells if !self.skip_empty_cells.nil?
|
161
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
162
|
+
query_params[:'range'] = self.range if !self.range.nil?
|
163
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
164
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
165
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
166
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
167
|
+
|
168
|
+
# header parameters
|
169
|
+
header_params = {}
|
170
|
+
# HTTP header 'Accept' (if needed)
|
171
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
172
|
+
# HTTP header 'Content-Type'
|
173
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
174
|
+
|
175
|
+
# form parameters
|
176
|
+
form_params = {}
|
177
|
+
post_body = nil
|
178
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
179
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
180
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
181
|
+
end
|
182
|
+
|
183
|
+
#auth_names = []
|
184
|
+
auth_names = ['JWT']
|
185
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
186
|
+
:header_params => header_params,
|
187
|
+
:query_params => query_params,
|
188
|
+
:form_params => form_params,
|
189
|
+
:body => post_body,
|
190
|
+
:auth_names => auth_names,
|
191
|
+
:return_type => 'File')
|
192
|
+
if api_client.config.debugging
|
193
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.add_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
194
|
+
end
|
195
|
+
return data, status_code, headers
|
196
|
+
end
|
197
|
+
end
|
198
|
+
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
|
@@ -36,7 +36,7 @@ module AsposeCellsCloud
|
|
36
36
|
attr_accessor :range
|
37
37
|
attr_accessor :operation
|
38
38
|
attr_accessor :color_position
|
39
|
-
attr_accessor :
|
39
|
+
attr_accessor :region
|
40
40
|
attr_accessor :password
|
41
41
|
|
42
42
|
def initialize(attributes = {})
|
@@ -65,8 +65,8 @@ module AsposeCellsCloud
|
|
65
65
|
self.color_position = attributes[:'colorPosition']
|
66
66
|
end
|
67
67
|
|
68
|
-
if attributes.has_key?(:'
|
69
|
-
self.
|
68
|
+
if attributes.has_key?(:'region')
|
69
|
+
self.region = attributes[:'region']
|
70
70
|
end
|
71
71
|
|
72
72
|
if attributes.has_key?(:'password')
|
@@ -82,7 +82,7 @@ module AsposeCellsCloud
|
|
82
82
|
:'range' => :'range',
|
83
83
|
:'operation' => :'operation',
|
84
84
|
:'color_position' => :'colorPosition',
|
85
|
-
:'
|
85
|
+
:'region' => :'region',
|
86
86
|
:'password' => :'password'
|
87
87
|
}
|
88
88
|
end
|
@@ -95,7 +95,7 @@ module AsposeCellsCloud
|
|
95
95
|
:'range' => :'String',
|
96
96
|
:'operation' => :'String',
|
97
97
|
:'color_position' => :'String',
|
98
|
-
:'
|
98
|
+
:'region' => :'String',
|
99
99
|
:'password' => :'String'
|
100
100
|
}
|
101
101
|
end
|
@@ -118,7 +118,7 @@ module AsposeCellsCloud
|
|
118
118
|
query_params[:'range'] = self.range if !self.range.nil?
|
119
119
|
query_params[:'operation'] = self.operation if !self.operation.nil?
|
120
120
|
query_params[:'colorPosition'] = self.color_position if !self.color_position.nil?
|
121
|
-
query_params[:'
|
121
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
122
122
|
query_params[:'password'] = self.password if !self.password.nil?
|
123
123
|
|
124
124
|
# header parameters
|