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
@@ -40,7 +40,7 @@ module AsposeCellsCloud
|
|
40
40
|
attr_accessor :out_path
|
41
41
|
attr_accessor :out_storage_name
|
42
42
|
attr_accessor :fonts_location
|
43
|
-
attr_accessor :
|
43
|
+
attr_accessor :region
|
44
44
|
attr_accessor :password
|
45
45
|
|
46
46
|
def initialize(attributes = {})
|
@@ -85,8 +85,8 @@ module AsposeCellsCloud
|
|
85
85
|
self.fonts_location = attributes[:'fontsLocation']
|
86
86
|
end
|
87
87
|
|
88
|
-
if attributes.has_key?(:'
|
89
|
-
self.
|
88
|
+
if attributes.has_key?(:'region')
|
89
|
+
self.region = attributes[:'region']
|
90
90
|
end
|
91
91
|
|
92
92
|
if attributes.has_key?(:'password')
|
@@ -106,7 +106,7 @@ module AsposeCellsCloud
|
|
106
106
|
:'out_path' => :'outPath',
|
107
107
|
:'out_storage_name' => :'outStorageName',
|
108
108
|
:'fonts_location' => :'fontsLocation',
|
109
|
-
:'
|
109
|
+
:'region' => :'region',
|
110
110
|
:'password' => :'password'
|
111
111
|
}
|
112
112
|
end
|
@@ -123,7 +123,7 @@ module AsposeCellsCloud
|
|
123
123
|
:'out_path' => :'String',
|
124
124
|
:'out_storage_name' => :'String',
|
125
125
|
:'fonts_location' => :'String',
|
126
|
-
:'
|
126
|
+
:'region' => :'String',
|
127
127
|
:'password' => :'String'
|
128
128
|
}
|
129
129
|
end
|
@@ -154,7 +154,7 @@ module AsposeCellsCloud
|
|
154
154
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
155
155
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
156
156
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
157
|
-
query_params[:'
|
157
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
158
158
|
query_params[:'password'] = self.password if !self.password.nil?
|
159
159
|
|
160
160
|
# header parameters
|
@@ -39,7 +39,7 @@ module AsposeCellsCloud
|
|
39
39
|
attr_accessor :out_path
|
40
40
|
attr_accessor :out_storage_name
|
41
41
|
attr_accessor :fonts_location
|
42
|
-
attr_accessor :
|
42
|
+
attr_accessor :region
|
43
43
|
attr_accessor :password
|
44
44
|
|
45
45
|
def initialize(attributes = {})
|
@@ -80,8 +80,8 @@ module AsposeCellsCloud
|
|
80
80
|
self.fonts_location = attributes[:'fontsLocation']
|
81
81
|
end
|
82
82
|
|
83
|
-
if attributes.has_key?(:'
|
84
|
-
self.
|
83
|
+
if attributes.has_key?(:'region')
|
84
|
+
self.region = attributes[:'region']
|
85
85
|
end
|
86
86
|
|
87
87
|
if attributes.has_key?(:'password')
|
@@ -100,7 +100,7 @@ module AsposeCellsCloud
|
|
100
100
|
:'out_path' => :'outPath',
|
101
101
|
:'out_storage_name' => :'outStorageName',
|
102
102
|
:'fonts_location' => :'fontsLocation',
|
103
|
-
:'
|
103
|
+
:'region' => :'region',
|
104
104
|
:'password' => :'password'
|
105
105
|
}
|
106
106
|
end
|
@@ -116,7 +116,7 @@ module AsposeCellsCloud
|
|
116
116
|
:'out_path' => :'String',
|
117
117
|
:'out_storage_name' => :'String',
|
118
118
|
:'fonts_location' => :'String',
|
119
|
-
:'
|
119
|
+
:'region' => :'String',
|
120
120
|
:'password' => :'String'
|
121
121
|
}
|
122
122
|
end
|
@@ -143,7 +143,7 @@ module AsposeCellsCloud
|
|
143
143
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
144
144
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
145
145
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
|
146
|
-
query_params[:'
|
146
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
147
147
|
query_params[:'password'] = self.password if !self.password.nil?
|
148
148
|
|
149
149
|
# header parameters
|
@@ -37,7 +37,7 @@ module AsposeCellsCloud
|
|
37
37
|
attr_accessor :out_path
|
38
38
|
attr_accessor :out_storage_name
|
39
39
|
attr_accessor :fonts_location
|
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.fonts_location = attributes[:'fontsLocation']
|
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
|
:'out_path' => :'outPath',
|
89
89
|
:'out_storage_name' => :'outStorageName',
|
90
90
|
:'fonts_location' => :'fontsLocation',
|
91
|
-
:'
|
91
|
+
:'region' => :'region',
|
92
92
|
:'password' => :'password'
|
93
93
|
}
|
94
94
|
end
|
@@ -102,7 +102,7 @@ module AsposeCellsCloud
|
|
102
102
|
:'out_path' => :'String',
|
103
103
|
:'out_storage_name' => :'String',
|
104
104
|
:'fonts_location' => :'String',
|
105
|
-
:'
|
105
|
+
:'region' => :'String',
|
106
106
|
:'password' => :'String'
|
107
107
|
}
|
108
108
|
end
|
@@ -126,7 +126,7 @@ module AsposeCellsCloud
|
|
126
126
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
127
127
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
128
128
|
query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.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 :position
|
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
|
:'position' => :'position',
|
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
|
:'position' => :'Integer',
|
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[:'position'] = self.position if !self.position.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 :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 = {}
|
@@ -122,14 +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
|
-
|
132
|
-
|
131
|
+
|
133
132
|
#auth_names = []
|
134
133
|
auth_names = ['JWT']
|
135
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 file
|
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
|