aspose_cells_cloud 25.7.1 → 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 +37 -15
- data/lib/aspose_cells_cloud/api/cells_api.rb +181 -9
- data/lib/aspose_cells_cloud/models/aggregate_result_by_color.rb +282 -0
- data/lib/aspose_cells_cloud/models/aggregate_result_by_color_response.rb +234 -0
- 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/models/spreadsheet_template.rb +198 -0
- data/lib/aspose_cells_cloud/requests/add_text_request.rb +198 -0
- data/lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb +162 -0
- data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +154 -0
- data/lib/aspose_cells_cloud/requests/codegen_spec_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/compress_spreadsheet_request.rb +150 -0
- data/lib/aspose_cells_cloud/requests/convert_chart_to_image_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_chart_to_pdf_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +9 -7
- 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 +9 -7
- data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_text_request.rb +190 -0
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/create_spreadsheet_request.rb +139 -0
- data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +150 -0
- 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 +208 -0
- data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +162 -0
- 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 +162 -0
- data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +3 -2
- data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +2 -2
- 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} +15 -13
- data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_rows_request.rb → remove_spreadsheet_blank_rows_request.rb} +15 -13
- data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_worksheets_request.rb → remove_spreadsheet_blank_worksheets_request.rb} +15 -13
- data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +162 -0
- 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 +9 -7
- 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 +10 -8
- data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +9 -7
- 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 +9 -7
- 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/swap_range_request.rb +186 -0
- data/lib/aspose_cells_cloud/requests/trim_character_request.rb +210 -0
- data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +9 -7
- data/lib/aspose_cells_cloud/requests/update_word_case_request.rb +166 -0
- data/lib/aspose_cells_cloud/requests/upload_file_request.rb +3 -1
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +30 -5
- metadata +31 -6
|
@@ -36,7 +36,7 @@ module AsposeCellsCloud
|
|
|
36
36
|
attr_accessor :modify_password
|
|
37
37
|
attr_accessor :out_path
|
|
38
38
|
attr_accessor :out_storage_name
|
|
39
|
-
attr_accessor :
|
|
39
|
+
attr_accessor :region
|
|
40
40
|
|
|
41
41
|
def initialize(attributes = {})
|
|
42
42
|
return unless attributes.is_a?(Hash)
|
|
@@ -64,8 +64,8 @@ module AsposeCellsCloud
|
|
|
64
64
|
self.out_storage_name = attributes[:'outStorageName']
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
if attributes.has_key?(:'
|
|
68
|
-
self.
|
|
67
|
+
if attributes.has_key?(:'region')
|
|
68
|
+
self.region = attributes[:'region']
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
end
|
|
@@ -77,7 +77,7 @@ module AsposeCellsCloud
|
|
|
77
77
|
:'modify_password' => :'modifyPassword',
|
|
78
78
|
:'out_path' => :'outPath',
|
|
79
79
|
:'out_storage_name' => :'outStorageName',
|
|
80
|
-
:'
|
|
80
|
+
:'region' => :'region'
|
|
81
81
|
}
|
|
82
82
|
end
|
|
83
83
|
|
|
@@ -89,7 +89,7 @@ module AsposeCellsCloud
|
|
|
89
89
|
:'modify_password' => :'String',
|
|
90
90
|
:'out_path' => :'String',
|
|
91
91
|
:'out_storage_name' => :'String',
|
|
92
|
-
:'
|
|
92
|
+
:'region' => :'String'
|
|
93
93
|
}
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -119,7 +119,7 @@ module AsposeCellsCloud
|
|
|
119
119
|
query_params[:'modifyPassword'] = self.modify_password if !self.modify_password.nil?
|
|
120
120
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
121
121
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
122
|
-
query_params[:'
|
|
122
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
123
123
|
|
|
124
124
|
# header parameters
|
|
125
125
|
header_params = {}
|
|
@@ -132,7 +132,9 @@ module AsposeCellsCloud
|
|
|
132
132
|
form_params = {}
|
|
133
133
|
post_body = nil
|
|
134
134
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
135
|
-
|
|
135
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
136
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
137
|
+
end
|
|
136
138
|
|
|
137
139
|
#auth_names = []
|
|
138
140
|
auth_names = ['JWT']
|
|
@@ -122,12 +122,13 @@ module AsposeCellsCloud
|
|
|
122
122
|
# form parameters
|
|
123
123
|
form_params = {}
|
|
124
124
|
post_body = nil
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
126
|
+
if !file.nil?
|
|
127
127
|
file.each do |filename , context|
|
|
128
128
|
form_params[File.basename(filename)] = context
|
|
129
129
|
end
|
|
130
130
|
end
|
|
131
|
+
|
|
131
132
|
#auth_names = []
|
|
132
133
|
auth_names = ['JWT']
|
|
133
134
|
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
@@ -133,13 +133,13 @@ module AsposeCellsCloud
|
|
|
133
133
|
# form parameters
|
|
134
134
|
form_params = {}
|
|
135
135
|
post_body = nil
|
|
136
|
-
if
|
|
136
|
+
if !file.nil?
|
|
137
137
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
138
138
|
file.each do |filename , context|
|
|
139
139
|
form_params[File.basename(filename)] = context
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
|
-
|
|
142
|
+
|
|
143
143
|
#auth_names = []
|
|
144
144
|
auth_names = ['JWT']
|
|
145
145
|
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
<copyright company="Aspose" file="RemoveCharacters_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 RemoveCharactersRequest
|
|
33
|
+
|
|
34
|
+
attr_accessor :spreadsheet
|
|
35
|
+
attr_accessor :the_first_n_characters
|
|
36
|
+
attr_accessor :the_last_n_characters
|
|
37
|
+
attr_accessor :all_characters_before_text
|
|
38
|
+
attr_accessor :all_characters_after_text
|
|
39
|
+
attr_accessor :remove_text_method
|
|
40
|
+
attr_accessor :character_sets
|
|
41
|
+
attr_accessor :remove_custom_value
|
|
42
|
+
attr_accessor :worksheet
|
|
43
|
+
attr_accessor :range
|
|
44
|
+
attr_accessor :out_path
|
|
45
|
+
attr_accessor :out_storage_name
|
|
46
|
+
attr_accessor :region
|
|
47
|
+
attr_accessor :password
|
|
48
|
+
|
|
49
|
+
def initialize(attributes = {})
|
|
50
|
+
return unless attributes.is_a?(Hash)
|
|
51
|
+
|
|
52
|
+
# convert string to symbol for hash key
|
|
53
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
54
|
+
|
|
55
|
+
if attributes.has_key?(:'Spreadsheet')
|
|
56
|
+
self.spreadsheet = attributes[:'Spreadsheet']
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
if attributes.has_key?(:'theFirstNCharacters')
|
|
60
|
+
self.the_first_n_characters = attributes[:'theFirstNCharacters']
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
if attributes.has_key?(:'theLastNCharacters')
|
|
64
|
+
self.the_last_n_characters = attributes[:'theLastNCharacters']
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
if attributes.has_key?(:'allCharactersBeforeText')
|
|
68
|
+
self.all_characters_before_text = attributes[:'allCharactersBeforeText']
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
if attributes.has_key?(:'allCharactersAfterText')
|
|
72
|
+
self.all_characters_after_text = attributes[:'allCharactersAfterText']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.has_key?(:'removeTextMethod')
|
|
76
|
+
self.remove_text_method = attributes[:'removeTextMethod']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.has_key?(:'characterSets')
|
|
80
|
+
self.character_sets = attributes[:'characterSets']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.has_key?(:'removeCustomValue')
|
|
84
|
+
self.remove_custom_value = attributes[:'removeCustomValue']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.has_key?(:'worksheet')
|
|
88
|
+
self.worksheet = attributes[:'worksheet']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.has_key?(:'range')
|
|
92
|
+
self.range = attributes[:'range']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.has_key?(:'outPath')
|
|
96
|
+
self.out_path = attributes[:'outPath']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.has_key?(:'outStorageName')
|
|
100
|
+
self.out_storage_name = attributes[:'outStorageName']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.has_key?(:'region')
|
|
104
|
+
self.region = attributes[:'region']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.has_key?(:'password')
|
|
108
|
+
self.password = attributes[:'password']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
end
|
|
112
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
113
|
+
def self.attribute_map
|
|
114
|
+
{
|
|
115
|
+
:'spreadsheet' => :'Spreadsheet',
|
|
116
|
+
:'the_first_n_characters' => :'theFirstNCharacters',
|
|
117
|
+
:'the_last_n_characters' => :'theLastNCharacters',
|
|
118
|
+
:'all_characters_before_text' => :'allCharactersBeforeText',
|
|
119
|
+
:'all_characters_after_text' => :'allCharactersAfterText',
|
|
120
|
+
:'remove_text_method' => :'removeTextMethod',
|
|
121
|
+
:'character_sets' => :'characterSets',
|
|
122
|
+
:'remove_custom_value' => :'removeCustomValue',
|
|
123
|
+
:'worksheet' => :'worksheet',
|
|
124
|
+
:'range' => :'range',
|
|
125
|
+
:'out_path' => :'outPath',
|
|
126
|
+
:'out_storage_name' => :'outStorageName',
|
|
127
|
+
:'region' => :'region',
|
|
128
|
+
:'password' => :'password'
|
|
129
|
+
}
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Attribute type mapping.
|
|
133
|
+
def self.swagger_types
|
|
134
|
+
{
|
|
135
|
+
:'spreadsheet' => :'String',
|
|
136
|
+
:'the_first_n_characters' => :'Integer',
|
|
137
|
+
:'the_last_n_characters' => :'Integer',
|
|
138
|
+
:'all_characters_before_text' => :'String',
|
|
139
|
+
:'all_characters_after_text' => :'String',
|
|
140
|
+
:'remove_text_method' => :'String',
|
|
141
|
+
:'character_sets' => :'String',
|
|
142
|
+
:'remove_custom_value' => :'String',
|
|
143
|
+
:'worksheet' => :'String',
|
|
144
|
+
:'range' => :'String',
|
|
145
|
+
:'out_path' => :'String',
|
|
146
|
+
:'out_storage_name' => :'String',
|
|
147
|
+
:'region' => :'String',
|
|
148
|
+
:'password' => :'String'
|
|
149
|
+
}
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
def create_http_request(api_client,opts = {})
|
|
153
|
+
if api_client.config.debugging
|
|
154
|
+
api_client.config.logger.debug "Calling API: CellsApi.remove_characters ..."
|
|
155
|
+
end
|
|
156
|
+
api_client.request_token_if_needed
|
|
157
|
+
# verify the required parameter 'spreadsheet' is set
|
|
158
|
+
if api_client.config.client_side_validation && spreadsheet.nil?
|
|
159
|
+
fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.remove_characters "
|
|
160
|
+
end
|
|
161
|
+
# verify the required parameter 'the_first_n_characters' is set
|
|
162
|
+
if api_client.config.client_side_validation && the_first_n_characters.nil?
|
|
163
|
+
fail ArgumentError, "Missing the required parameter 'the_first_n_characters' when calling CellsApi.remove_characters "
|
|
164
|
+
end
|
|
165
|
+
# verify the required parameter 'the_last_n_characters' is set
|
|
166
|
+
if api_client.config.client_side_validation && the_last_n_characters.nil?
|
|
167
|
+
fail ArgumentError, "Missing the required parameter 'the_last_n_characters' when calling CellsApi.remove_characters "
|
|
168
|
+
end
|
|
169
|
+
# verify the required parameter 'all_characters_before_text' is set
|
|
170
|
+
if api_client.config.client_side_validation && all_characters_before_text.nil?
|
|
171
|
+
fail ArgumentError, "Missing the required parameter 'all_characters_before_text' when calling CellsApi.remove_characters "
|
|
172
|
+
end
|
|
173
|
+
# verify the required parameter 'all_characters_after_text' is set
|
|
174
|
+
if api_client.config.client_side_validation && all_characters_after_text.nil?
|
|
175
|
+
fail ArgumentError, "Missing the required parameter 'all_characters_after_text' when calling CellsApi.remove_characters "
|
|
176
|
+
end
|
|
177
|
+
# verify the required parameter 'remove_text_method' is set
|
|
178
|
+
if api_client.config.client_side_validation && remove_text_method.nil?
|
|
179
|
+
fail ArgumentError, "Missing the required parameter 'remove_text_method' when calling CellsApi.remove_characters "
|
|
180
|
+
end
|
|
181
|
+
# verify the required parameter 'character_sets' is set
|
|
182
|
+
if api_client.config.client_side_validation && character_sets.nil?
|
|
183
|
+
fail ArgumentError, "Missing the required parameter 'character_sets' when calling CellsApi.remove_characters "
|
|
184
|
+
end
|
|
185
|
+
# verify the required parameter 'remove_custom_value' is set
|
|
186
|
+
if api_client.config.client_side_validation && remove_custom_value.nil?
|
|
187
|
+
fail ArgumentError, "Missing the required parameter 'remove_custom_value' when calling CellsApi.remove_characters "
|
|
188
|
+
end
|
|
189
|
+
# verify the required parameter 'worksheet' is set
|
|
190
|
+
if api_client.config.client_side_validation && worksheet.nil?
|
|
191
|
+
fail ArgumentError, "Missing the required parameter 'worksheet' when calling CellsApi.remove_characters "
|
|
192
|
+
end
|
|
193
|
+
# verify the required parameter 'range' is set
|
|
194
|
+
if api_client.config.client_side_validation && range.nil?
|
|
195
|
+
fail ArgumentError, "Missing the required parameter 'range' when calling CellsApi.remove_characters "
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# resource path
|
|
199
|
+
local_var_path = "v4.0/cells/content/remove/characters"
|
|
200
|
+
# query parameters
|
|
201
|
+
query_params = {}
|
|
202
|
+
query_params[:'theFirstNCharacters'] = self.the_first_n_characters if !self.the_first_n_characters.nil?
|
|
203
|
+
query_params[:'theLastNCharacters'] = self.the_last_n_characters if !self.the_last_n_characters.nil?
|
|
204
|
+
query_params[:'allCharactersBeforeText'] = self.all_characters_before_text if !self.all_characters_before_text.nil?
|
|
205
|
+
query_params[:'allCharactersAfterText'] = self.all_characters_after_text if !self.all_characters_after_text.nil?
|
|
206
|
+
query_params[:'removeTextMethod'] = self.remove_text_method if !self.remove_text_method.nil?
|
|
207
|
+
query_params[:'characterSets'] = self.character_sets if !self.character_sets.nil?
|
|
208
|
+
query_params[:'removeCustomValue'] = self.remove_custom_value if !self.remove_custom_value.nil?
|
|
209
|
+
query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
|
|
210
|
+
query_params[:'range'] = self.range if !self.range.nil?
|
|
211
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
|
212
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
|
213
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
|
214
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
|
215
|
+
|
|
216
|
+
# header parameters
|
|
217
|
+
header_params = {}
|
|
218
|
+
# HTTP header 'Accept' (if needed)
|
|
219
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
|
220
|
+
# HTTP header 'Content-Type'
|
|
221
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
|
222
|
+
|
|
223
|
+
# form parameters
|
|
224
|
+
form_params = {}
|
|
225
|
+
post_body = nil
|
|
226
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
227
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
228
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
#auth_names = []
|
|
232
|
+
auth_names = ['JWT']
|
|
233
|
+
data, status_code, headers = api_client.call_api(:PUT, local_var_path,
|
|
234
|
+
:header_params => header_params,
|
|
235
|
+
:query_params => query_params,
|
|
236
|
+
:form_params => form_params,
|
|
237
|
+
:body => post_body,
|
|
238
|
+
:auth_names => auth_names,
|
|
239
|
+
:return_type => 'File')
|
|
240
|
+
if api_client.config.debugging
|
|
241
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.remove_characters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
242
|
+
end
|
|
243
|
+
return data, status_code, headers
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
end
|
|
@@ -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
|
|
@@ -116,7 +116,9 @@ module AsposeCellsCloud
|
|
|
116
116
|
form_params = {}
|
|
117
117
|
post_body = nil
|
|
118
118
|
header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
|
|
119
|
-
|
|
119
|
+
if !spreadsheet.empty? && File.exist?(spreadsheet )
|
|
120
|
+
form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
|
|
121
|
+
end
|
|
120
122
|
|
|
121
123
|
#auth_names = []
|
|
122
124
|
auth_names = ['JWT']
|
|
@@ -128,7 +130,7 @@ module AsposeCellsCloud
|
|
|
128
130
|
:auth_names => auth_names,
|
|
129
131
|
:return_type => 'File')
|
|
130
132
|
if api_client.config.debugging
|
|
131
|
-
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}"
|
|
132
134
|
end
|
|
133
135
|
return data, status_code, headers
|
|
134
136
|
end
|