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
@@ -0,0 +1,162 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="RemoveDuplicates_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 RemoveDuplicatesRequest
|
33
|
+
|
34
|
+
attr_accessor :spreadsheet
|
35
|
+
attr_accessor :worksheet
|
36
|
+
attr_accessor :range
|
37
|
+
attr_accessor :table
|
38
|
+
attr_accessor :out_path
|
39
|
+
attr_accessor :out_storage_name
|
40
|
+
attr_accessor :region
|
41
|
+
attr_accessor :password
|
42
|
+
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
|
+
|
49
|
+
if attributes.has_key?(:'Spreadsheet')
|
50
|
+
self.spreadsheet = attributes[:'Spreadsheet']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'worksheet')
|
54
|
+
self.worksheet = attributes[:'worksheet']
|
55
|
+
end
|
56
|
+
|
57
|
+
if attributes.has_key?(:'range')
|
58
|
+
self.range = attributes[:'range']
|
59
|
+
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'table')
|
62
|
+
self.table = attributes[:'table']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'outPath')
|
66
|
+
self.out_path = attributes[:'outPath']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'outStorageName')
|
70
|
+
self.out_storage_name = attributes[:'outStorageName']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'region')
|
74
|
+
self.region = attributes[:'region']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'password')
|
78
|
+
self.password = attributes[:'password']
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
82
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
83
|
+
def self.attribute_map
|
84
|
+
{
|
85
|
+
:'spreadsheet' => :'Spreadsheet',
|
86
|
+
:'worksheet' => :'worksheet',
|
87
|
+
:'range' => :'range',
|
88
|
+
:'table' => :'table',
|
89
|
+
:'out_path' => :'outPath',
|
90
|
+
:'out_storage_name' => :'outStorageName',
|
91
|
+
:'region' => :'region',
|
92
|
+
:'password' => :'password'
|
93
|
+
}
|
94
|
+
end
|
95
|
+
|
96
|
+
# Attribute type mapping.
|
97
|
+
def self.swagger_types
|
98
|
+
{
|
99
|
+
:'spreadsheet' => :'String',
|
100
|
+
:'worksheet' => :'String',
|
101
|
+
:'range' => :'String',
|
102
|
+
:'table' => :'String',
|
103
|
+
:'out_path' => :'String',
|
104
|
+
:'out_storage_name' => :'String',
|
105
|
+
:'region' => :'String',
|
106
|
+
:'password' => :'String'
|
107
|
+
}
|
108
|
+
end
|
109
|
+
|
110
|
+
def create_http_request(api_client,opts = {})
|
111
|
+
if api_client.config.debugging
|
112
|
+
api_client.config.logger.debug "Calling API: CellsApi.remove_duplicates ..."
|
113
|
+
end
|
114
|
+
api_client.request_token_if_needed
|
115
|
+
# verify the required parameter 'spreadsheet' is set
|
116
|
+
if api_client.config.client_side_validation && spreadsheet.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.remove_duplicates "
|
118
|
+
end
|
119
|
+
|
120
|
+
# resource path
|
121
|
+
local_var_path = "v4.0/cells/remove/duplicates"
|
122
|
+
# query parameters
|
123
|
+
query_params = {}
|
124
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
125
|
+
query_params[:'range'] = self.range if !self.range.nil?
|
126
|
+
query_params[:'table'] = self.table if !self.table.nil?
|
127
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
128
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
129
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
130
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
131
|
+
|
132
|
+
# header parameters
|
133
|
+
header_params = {}
|
134
|
+
# HTTP header 'Accept' (if needed)
|
135
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
136
|
+
# HTTP header 'Content-Type'
|
137
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
138
|
+
|
139
|
+
# form parameters
|
140
|
+
form_params = {}
|
141
|
+
post_body = nil
|
142
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
143
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
144
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
145
|
+
end
|
146
|
+
|
147
|
+
#auth_names = []
|
148
|
+
auth_names = ['JWT']
|
149
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
150
|
+
:header_params => header_params,
|
151
|
+
:query_params => query_params,
|
152
|
+
:form_params => form_params,
|
153
|
+
:body => post_body,
|
154
|
+
:auth_names => auth_names,
|
155
|
+
:return_type => 'File')
|
156
|
+
if api_client.config.debugging
|
157
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.remove_duplicates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
158
|
+
end
|
159
|
+
return data, status_code, headers
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
=begin
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
<copyright company="Aspose" file="
|
3
|
+
<copyright company="Aspose" file="RemoveSpreadsheetBlankColumns_request.rb.cs">
|
4
4
|
Copyright (c) 2025 Aspose.Cells Cloud
|
5
5
|
</copyright>
|
6
6
|
<summary>
|
@@ -29,12 +29,12 @@
|
|
29
29
|
require "uri"
|
30
30
|
|
31
31
|
module AsposeCellsCloud
|
32
|
-
class
|
32
|
+
class RemoveSpreadsheetBlankColumnsRequest
|
33
33
|
|
34
34
|
attr_accessor :spreadsheet
|
35
35
|
attr_accessor :out_path
|
36
36
|
attr_accessor :out_storage_name
|
37
|
-
attr_accessor :
|
37
|
+
attr_accessor :region
|
38
38
|
attr_accessor :password
|
39
39
|
|
40
40
|
def initialize(attributes = {})
|
@@ -55,8 +55,8 @@ module AsposeCellsCloud
|
|
55
55
|
self.out_storage_name = attributes[:'outStorageName']
|
56
56
|
end
|
57
57
|
|
58
|
-
if attributes.has_key?(:'
|
59
|
-
self.
|
58
|
+
if attributes.has_key?(:'region')
|
59
|
+
self.region = attributes[:'region']
|
60
60
|
end
|
61
61
|
|
62
62
|
if attributes.has_key?(:'password')
|
@@ -70,7 +70,7 @@ module AsposeCellsCloud
|
|
70
70
|
:'spreadsheet' => :'Spreadsheet',
|
71
71
|
:'out_path' => :'outPath',
|
72
72
|
:'out_storage_name' => :'outStorageName',
|
73
|
-
:'
|
73
|
+
:'region' => :'region',
|
74
74
|
:'password' => :'password'
|
75
75
|
}
|
76
76
|
end
|
@@ -81,28 +81,28 @@ module AsposeCellsCloud
|
|
81
81
|
:'spreadsheet' => :'String',
|
82
82
|
:'out_path' => :'String',
|
83
83
|
:'out_storage_name' => :'String',
|
84
|
-
:'
|
84
|
+
:'region' => :'String',
|
85
85
|
:'password' => :'String'
|
86
86
|
}
|
87
87
|
end
|
88
88
|
|
89
89
|
def create_http_request(api_client,opts = {})
|
90
90
|
if api_client.config.debugging
|
91
|
-
api_client.config.logger.debug "Calling API: CellsApi.
|
91
|
+
api_client.config.logger.debug "Calling API: CellsApi.remove_spreadsheet_blank_columns ..."
|
92
92
|
end
|
93
93
|
api_client.request_token_if_needed
|
94
94
|
# verify the required parameter 'spreadsheet' is set
|
95
95
|
if api_client.config.client_side_validation && spreadsheet.nil?
|
96
|
-
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.
|
96
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.remove_spreadsheet_blank_columns "
|
97
97
|
end
|
98
98
|
|
99
99
|
# resource path
|
100
|
-
local_var_path = "v4.0/cells/
|
100
|
+
local_var_path = "v4.0/cells/remove/blank-columns"
|
101
101
|
# query parameters
|
102
102
|
query_params = {}
|
103
103
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
104
104
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
105
|
-
query_params[:'
|
105
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
106
106
|
query_params[:'password'] = self.password if !self.password.nil?
|
107
107
|
|
108
108
|
# header parameters
|
@@ -130,7 +130,7 @@ module AsposeCellsCloud
|
|
130
130
|
:auth_names => auth_names,
|
131
131
|
:return_type => 'File')
|
132
132
|
if api_client.config.debugging
|
133
|
-
api_client.config.logger.debug "API called: Specification.Name>Api.
|
133
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.remove_spreadsheet_blank_columns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
134
134
|
end
|
135
135
|
return data, status_code, headers
|
136
136
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
=begin
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
<copyright company="Aspose" file="
|
3
|
+
<copyright company="Aspose" file="RemoveSpreadsheetBlankRows_request.rb.cs">
|
4
4
|
Copyright (c) 2025 Aspose.Cells Cloud
|
5
5
|
</copyright>
|
6
6
|
<summary>
|
@@ -29,12 +29,12 @@
|
|
29
29
|
require "uri"
|
30
30
|
|
31
31
|
module AsposeCellsCloud
|
32
|
-
class
|
32
|
+
class RemoveSpreadsheetBlankRowsRequest
|
33
33
|
|
34
34
|
attr_accessor :spreadsheet
|
35
35
|
attr_accessor :out_path
|
36
36
|
attr_accessor :out_storage_name
|
37
|
-
attr_accessor :
|
37
|
+
attr_accessor :region
|
38
38
|
attr_accessor :password
|
39
39
|
|
40
40
|
def initialize(attributes = {})
|
@@ -55,8 +55,8 @@ module AsposeCellsCloud
|
|
55
55
|
self.out_storage_name = attributes[:'outStorageName']
|
56
56
|
end
|
57
57
|
|
58
|
-
if attributes.has_key?(:'
|
59
|
-
self.
|
58
|
+
if attributes.has_key?(:'region')
|
59
|
+
self.region = attributes[:'region']
|
60
60
|
end
|
61
61
|
|
62
62
|
if attributes.has_key?(:'password')
|
@@ -70,7 +70,7 @@ module AsposeCellsCloud
|
|
70
70
|
:'spreadsheet' => :'Spreadsheet',
|
71
71
|
:'out_path' => :'outPath',
|
72
72
|
:'out_storage_name' => :'outStorageName',
|
73
|
-
:'
|
73
|
+
:'region' => :'region',
|
74
74
|
:'password' => :'password'
|
75
75
|
}
|
76
76
|
end
|
@@ -81,28 +81,28 @@ module AsposeCellsCloud
|
|
81
81
|
:'spreadsheet' => :'String',
|
82
82
|
:'out_path' => :'String',
|
83
83
|
:'out_storage_name' => :'String',
|
84
|
-
:'
|
84
|
+
:'region' => :'String',
|
85
85
|
:'password' => :'String'
|
86
86
|
}
|
87
87
|
end
|
88
88
|
|
89
89
|
def create_http_request(api_client,opts = {})
|
90
90
|
if api_client.config.debugging
|
91
|
-
api_client.config.logger.debug "Calling API: CellsApi.
|
91
|
+
api_client.config.logger.debug "Calling API: CellsApi.remove_spreadsheet_blank_rows ..."
|
92
92
|
end
|
93
93
|
api_client.request_token_if_needed
|
94
94
|
# verify the required parameter 'spreadsheet' is set
|
95
95
|
if api_client.config.client_side_validation && spreadsheet.nil?
|
96
|
-
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.
|
96
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.remove_spreadsheet_blank_rows "
|
97
97
|
end
|
98
98
|
|
99
99
|
# resource path
|
100
|
-
local_var_path = "v4.0/cells/
|
100
|
+
local_var_path = "v4.0/cells/remove/blank-rows"
|
101
101
|
# query parameters
|
102
102
|
query_params = {}
|
103
103
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
104
104
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
105
|
-
query_params[:'
|
105
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
106
106
|
query_params[:'password'] = self.password if !self.password.nil?
|
107
107
|
|
108
108
|
# header parameters
|
@@ -130,7 +130,7 @@ module AsposeCellsCloud
|
|
130
130
|
:auth_names => auth_names,
|
131
131
|
:return_type => 'File')
|
132
132
|
if api_client.config.debugging
|
133
|
-
api_client.config.logger.debug "API called: Specification.Name>Api.
|
133
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.remove_spreadsheet_blank_rows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
134
134
|
end
|
135
135
|
return data, status_code, headers
|
136
136
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
=begin
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
<copyright company="Aspose" file="
|
3
|
+
<copyright company="Aspose" file="RemoveSpreadsheetBlankWorksheets_request.rb.cs">
|
4
4
|
Copyright (c) 2025 Aspose.Cells Cloud
|
5
5
|
</copyright>
|
6
6
|
<summary>
|
@@ -29,12 +29,12 @@
|
|
29
29
|
require "uri"
|
30
30
|
|
31
31
|
module AsposeCellsCloud
|
32
|
-
class
|
32
|
+
class RemoveSpreadsheetBlankWorksheetsRequest
|
33
33
|
|
34
34
|
attr_accessor :spreadsheet
|
35
35
|
attr_accessor :out_path
|
36
36
|
attr_accessor :out_storage_name
|
37
|
-
attr_accessor :
|
37
|
+
attr_accessor :region
|
38
38
|
attr_accessor :password
|
39
39
|
|
40
40
|
def initialize(attributes = {})
|
@@ -55,8 +55,8 @@ module AsposeCellsCloud
|
|
55
55
|
self.out_storage_name = attributes[:'outStorageName']
|
56
56
|
end
|
57
57
|
|
58
|
-
if attributes.has_key?(:'
|
59
|
-
self.
|
58
|
+
if attributes.has_key?(:'region')
|
59
|
+
self.region = attributes[:'region']
|
60
60
|
end
|
61
61
|
|
62
62
|
if attributes.has_key?(:'password')
|
@@ -70,7 +70,7 @@ module AsposeCellsCloud
|
|
70
70
|
:'spreadsheet' => :'Spreadsheet',
|
71
71
|
:'out_path' => :'outPath',
|
72
72
|
:'out_storage_name' => :'outStorageName',
|
73
|
-
:'
|
73
|
+
:'region' => :'region',
|
74
74
|
:'password' => :'password'
|
75
75
|
}
|
76
76
|
end
|
@@ -81,28 +81,28 @@ module AsposeCellsCloud
|
|
81
81
|
:'spreadsheet' => :'String',
|
82
82
|
:'out_path' => :'String',
|
83
83
|
:'out_storage_name' => :'String',
|
84
|
-
:'
|
84
|
+
:'region' => :'String',
|
85
85
|
:'password' => :'String'
|
86
86
|
}
|
87
87
|
end
|
88
88
|
|
89
89
|
def create_http_request(api_client,opts = {})
|
90
90
|
if api_client.config.debugging
|
91
|
-
api_client.config.logger.debug "Calling API: CellsApi.
|
91
|
+
api_client.config.logger.debug "Calling API: CellsApi.remove_spreadsheet_blank_worksheets ..."
|
92
92
|
end
|
93
93
|
api_client.request_token_if_needed
|
94
94
|
# verify the required parameter 'spreadsheet' is set
|
95
95
|
if api_client.config.client_side_validation && spreadsheet.nil?
|
96
|
-
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.
|
96
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.remove_spreadsheet_blank_worksheets "
|
97
97
|
end
|
98
98
|
|
99
99
|
# resource path
|
100
|
-
local_var_path = "v4.0/cells/
|
100
|
+
local_var_path = "v4.0/cells/remove/blank-worksheets"
|
101
101
|
# query parameters
|
102
102
|
query_params = {}
|
103
103
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
104
104
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
105
|
-
query_params[:'
|
105
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
106
106
|
query_params[:'password'] = self.password if !self.password.nil?
|
107
107
|
|
108
108
|
# header parameters
|
@@ -130,7 +130,7 @@ module AsposeCellsCloud
|
|
130
130
|
:auth_names => auth_names,
|
131
131
|
:return_type => 'File')
|
132
132
|
if api_client.config.debugging
|
133
|
-
api_client.config.logger.debug "API called: Specification.Name>Api.
|
133
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.remove_spreadsheet_blank_worksheets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
134
134
|
end
|
135
135
|
return data, status_code, headers
|
136
136
|
end
|
@@ -36,7 +36,7 @@ module AsposeCellsCloud
|
|
36
36
|
attr_accessor :target_name
|
37
37
|
attr_accessor :out_path
|
38
38
|
attr_accessor :out_storage_name
|
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.out_storage_name = attributes[:'outStorageName']
|
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
|
:'target_name' => :'targetName',
|
83
83
|
:'out_path' => :'outPath',
|
84
84
|
:'out_storage_name' => :'outStorageName',
|
85
|
-
:'
|
85
|
+
:'region' => :'region',
|
86
86
|
:'password' => :'password'
|
87
87
|
}
|
88
88
|
end
|
@@ -95,7 +95,7 @@ module AsposeCellsCloud
|
|
95
95
|
:'target_name' => :'String',
|
96
96
|
:'out_path' => :'String',
|
97
97
|
:'out_storage_name' => :'String',
|
98
|
-
:'
|
98
|
+
:'region' => :'String',
|
99
99
|
:'password' => :'String'
|
100
100
|
}
|
101
101
|
end
|
@@ -126,7 +126,7 @@ module AsposeCellsCloud
|
|
126
126
|
query_params[:'targetName'] = self.target_name if !self.target_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
|
@@ -0,0 +1,138 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="RepairSpreadsheet_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 RepairSpreadsheetRequest
|
33
|
+
|
34
|
+
attr_accessor :spreadsheet
|
35
|
+
attr_accessor :out_path
|
36
|
+
attr_accessor :out_storage_name
|
37
|
+
attr_accessor :region
|
38
|
+
attr_accessor :password
|
39
|
+
|
40
|
+
def initialize(attributes = {})
|
41
|
+
return unless attributes.is_a?(Hash)
|
42
|
+
|
43
|
+
# convert string to symbol for hash key
|
44
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
45
|
+
|
46
|
+
if attributes.has_key?(:'Spreadsheet')
|
47
|
+
self.spreadsheet = attributes[:'Spreadsheet']
|
48
|
+
end
|
49
|
+
|
50
|
+
if attributes.has_key?(:'outPath')
|
51
|
+
self.out_path = attributes[:'outPath']
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes.has_key?(:'outStorageName')
|
55
|
+
self.out_storage_name = attributes[:'outStorageName']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes.has_key?(:'region')
|
59
|
+
self.region = attributes[:'region']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'password')
|
63
|
+
self.password = attributes[:'password']
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
68
|
+
def self.attribute_map
|
69
|
+
{
|
70
|
+
:'spreadsheet' => :'Spreadsheet',
|
71
|
+
:'out_path' => :'outPath',
|
72
|
+
:'out_storage_name' => :'outStorageName',
|
73
|
+
:'region' => :'region',
|
74
|
+
:'password' => :'password'
|
75
|
+
}
|
76
|
+
end
|
77
|
+
|
78
|
+
# Attribute type mapping.
|
79
|
+
def self.swagger_types
|
80
|
+
{
|
81
|
+
:'spreadsheet' => :'String',
|
82
|
+
:'out_path' => :'String',
|
83
|
+
:'out_storage_name' => :'String',
|
84
|
+
:'region' => :'String',
|
85
|
+
:'password' => :'String'
|
86
|
+
}
|
87
|
+
end
|
88
|
+
|
89
|
+
def create_http_request(api_client,opts = {})
|
90
|
+
if api_client.config.debugging
|
91
|
+
api_client.config.logger.debug "Calling API: CellsApi.repair_spreadsheet ..."
|
92
|
+
end
|
93
|
+
api_client.request_token_if_needed
|
94
|
+
# verify the required parameter 'spreadsheet' is set
|
95
|
+
if api_client.config.client_side_validation && spreadsheet.nil?
|
96
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.repair_spreadsheet "
|
97
|
+
end
|
98
|
+
|
99
|
+
# resource path
|
100
|
+
local_var_path = "v4.0/cells/spreadsheet/repair"
|
101
|
+
# query parameters
|
102
|
+
query_params = {}
|
103
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
104
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
105
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
106
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
107
|
+
|
108
|
+
# header parameters
|
109
|
+
header_params = {}
|
110
|
+
# HTTP header 'Accept' (if needed)
|
111
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
112
|
+
# HTTP header 'Content-Type'
|
113
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
114
|
+
|
115
|
+
# form parameters
|
116
|
+
form_params = {}
|
117
|
+
post_body = nil
|
118
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
119
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
120
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
121
|
+
end
|
122
|
+
|
123
|
+
#auth_names = []
|
124
|
+
auth_names = ['JWT']
|
125
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
126
|
+
:header_params => header_params,
|
127
|
+
:query_params => query_params,
|
128
|
+
:form_params => form_params,
|
129
|
+
:body => post_body,
|
130
|
+
:auth_names => auth_names,
|
131
|
+
:return_type => 'File')
|
132
|
+
if api_client.config.debugging
|
133
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.repair_spreadsheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
134
|
+
end
|
135
|
+
return data, status_code, headers
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
@@ -38,7 +38,7 @@ module AsposeCellsCloud
|
|
38
38
|
attr_accessor :cell_area
|
39
39
|
attr_accessor :folder
|
40
40
|
attr_accessor :storage_name
|
41
|
-
attr_accessor :
|
41
|
+
attr_accessor :region
|
42
42
|
attr_accessor :password
|
43
43
|
|
44
44
|
def initialize(attributes = {})
|
@@ -75,8 +75,8 @@ module AsposeCellsCloud
|
|
75
75
|
self.storage_name = attributes[:'storageName']
|
76
76
|
end
|
77
77
|
|
78
|
-
if attributes.has_key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.has_key?(:'region')
|
79
|
+
self.region = attributes[:'region']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.has_key?(:'password')
|
@@ -94,7 +94,7 @@ module AsposeCellsCloud
|
|
94
94
|
:'cell_area' => :'cellArea',
|
95
95
|
:'folder' => :'folder',
|
96
96
|
:'storage_name' => :'storageName',
|
97
|
-
:'
|
97
|
+
:'region' => :'region',
|
98
98
|
:'password' => :'password'
|
99
99
|
}
|
100
100
|
end
|
@@ -109,7 +109,7 @@ module AsposeCellsCloud
|
|
109
109
|
:'cell_area' => :'String',
|
110
110
|
:'folder' => :'String',
|
111
111
|
:'storage_name' => :'String',
|
112
|
-
:'
|
112
|
+
:'region' => :'String',
|
113
113
|
:'password' => :'String'
|
114
114
|
}
|
115
115
|
end
|
@@ -148,7 +148,7 @@ module AsposeCellsCloud
|
|
148
148
|
query_params[:'replaceText'] = self.replace_text if !self.replace_text.nil?
|
149
149
|
query_params[:'folder'] = self.folder if !self.folder.nil?
|
150
150
|
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
151
|
-
query_params[:'
|
151
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
152
152
|
query_params[:'password'] = self.password if !self.password.nil?
|
153
153
|
|
154
154
|
# header parameters
|