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.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -16
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +105 -12
  4. data/lib/aspose_cells_cloud/models/aggregate_result_by_color.rb +4 -16
  5. data/lib/aspose_cells_cloud/models/{broken_links_reponse.rb → broken_links_response.rb} +2 -2
  6. data/lib/aspose_cells_cloud/models/remove_characters_by_position.rb +1 -1
  7. data/lib/aspose_cells_cloud/requests/add_text_request.rb +198 -0
  8. data/lib/aspose_cells_cloud/requests/add_worksheet_to_spreadsheet_request.rb +6 -6
  9. data/lib/aspose_cells_cloud/requests/aggregate_cells_by_color_request.rb +6 -6
  10. data/lib/aspose_cells_cloud/requests/codegen_spec_request.rb +6 -6
  11. data/lib/aspose_cells_cloud/requests/compress_spreadsheet_request.rb +6 -6
  12. data/lib/aspose_cells_cloud/requests/convert_chart_to_image_request.rb +6 -6
  13. data/lib/aspose_cells_cloud/requests/convert_chart_to_pdf_request.rb +6 -6
  14. data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +6 -6
  15. data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +6 -6
  16. data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +6 -6
  17. data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +6 -6
  18. data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +6 -6
  19. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +6 -6
  20. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +146 -0
  21. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +146 -0
  22. data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +6 -6
  23. data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +6 -6
  24. data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +6 -6
  25. data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +6 -6
  26. data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +6 -6
  27. data/lib/aspose_cells_cloud/requests/convert_text_request.rb +190 -0
  28. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +6 -6
  29. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +6 -6
  30. data/lib/aspose_cells_cloud/requests/create_spreadsheet_request.rb +6 -6
  31. data/lib/aspose_cells_cloud/requests/delete_worksheet_from_spreadsheet_request.rb +6 -6
  32. data/lib/aspose_cells_cloud/requests/export_chart_as_format_request.rb +6 -6
  33. data/lib/aspose_cells_cloud/requests/export_range_as_format_request.rb +6 -6
  34. data/lib/aspose_cells_cloud/requests/export_spreadsheet_as_format_request.rb +6 -6
  35. data/lib/aspose_cells_cloud/requests/export_table_as_format_request.rb +6 -6
  36. data/lib/aspose_cells_cloud/requests/export_worksheet_as_format_request.rb +6 -6
  37. data/lib/aspose_cells_cloud/requests/extract_text_request.rb +226 -0
  38. data/lib/aspose_cells_cloud/requests/import_data_into_spreadsheet_request.rb +6 -6
  39. data/lib/aspose_cells_cloud/requests/math_calculate_request.rb +6 -6
  40. data/lib/aspose_cells_cloud/requests/merge_remote_spreadsheet_request.rb +6 -6
  41. data/lib/aspose_cells_cloud/requests/merge_spreadsheets_in_remote_folder_request.rb +6 -6
  42. data/lib/aspose_cells_cloud/requests/merge_spreadsheets_request.rb +6 -6
  43. data/lib/aspose_cells_cloud/requests/move_worksheet_in_spreadsheet_request.rb +6 -6
  44. data/lib/aspose_cells_cloud/requests/protect_spreadsheet_request.rb +6 -6
  45. data/lib/aspose_cells_cloud/requests/put_workbook_background_request.rb +4 -5
  46. data/lib/aspose_cells_cloud/requests/put_worksheet_background_request.rb +3 -3
  47. data/lib/aspose_cells_cloud/requests/remove_characters_request.rb +246 -0
  48. data/lib/aspose_cells_cloud/requests/remove_duplicates_request.rb +162 -0
  49. data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_columns_request.rb → remove_spreadsheet_blank_columns_request.rb} +12 -12
  50. data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_rows_request.rb → remove_spreadsheet_blank_rows_request.rb} +12 -12
  51. data/lib/aspose_cells_cloud/requests/{delete_spreadsheet_blank_worksheets_request.rb → remove_spreadsheet_blank_worksheets_request.rb} +12 -12
  52. data/lib/aspose_cells_cloud/requests/rename_worksheet_in_spreadsheet_request.rb +6 -6
  53. data/lib/aspose_cells_cloud/requests/repair_spreadsheet_request.rb +138 -0
  54. data/lib/aspose_cells_cloud/requests/replace_content_in_remote_range_request.rb +6 -6
  55. data/lib/aspose_cells_cloud/requests/replace_content_in_remote_spreadsheet_request.rb +6 -6
  56. data/lib/aspose_cells_cloud/requests/replace_content_in_remote_worksheet_request.rb +6 -6
  57. data/lib/aspose_cells_cloud/requests/replace_spreadsheet_content_request.rb +6 -6
  58. data/lib/aspose_cells_cloud/requests/save_spreadsheet_as_request.rb +6 -6
  59. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_range_request.rb +7 -7
  60. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_spreadsheet_request.rb +7 -7
  61. data/lib/aspose_cells_cloud/requests/search_broken_links_in_remote_worksheet_request.rb +7 -7
  62. data/lib/aspose_cells_cloud/requests/search_content_in_remote_range_request.rb +6 -6
  63. data/lib/aspose_cells_cloud/requests/search_content_in_remote_spreadsheet_request.rb +6 -6
  64. data/lib/aspose_cells_cloud/requests/search_content_in_remote_worksheet_request.rb +6 -6
  65. data/lib/aspose_cells_cloud/requests/search_spreadsheet_broken_links_request.rb +7 -7
  66. data/lib/aspose_cells_cloud/requests/search_spreadsheet_content_request.rb +6 -6
  67. data/lib/aspose_cells_cloud/requests/spec_request.rb +6 -6
  68. data/lib/aspose_cells_cloud/requests/split_remote_spreadsheet_request.rb +6 -6
  69. data/lib/aspose_cells_cloud/requests/split_spreadsheet_request.rb +6 -6
  70. data/lib/aspose_cells_cloud/requests/split_text_request.rb +214 -0
  71. data/lib/aspose_cells_cloud/requests/spreadsheet_digitalsignature_request.rb +142 -0
  72. data/lib/aspose_cells_cloud/requests/{sawp_range_request.rb → swap_range_request.rb} +15 -15
  73. data/lib/aspose_cells_cloud/requests/trim_character_request.rb +210 -0
  74. data/lib/aspose_cells_cloud/requests/unprotect_spreadsheet_request.rb +6 -6
  75. data/lib/aspose_cells_cloud/requests/update_word_case_request.rb +166 -0
  76. data/lib/aspose_cells_cloud/version.rb +1 -1
  77. data/lib/aspose_cells_cloud.rb +18 -6
  78. 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 :regoin
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?(:'regoin')
89
- self.regoin = attributes[:'regoin']
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
- :'regoin' => :'regoin',
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
- :'regoin' => :'String',
126
+ :'region' => :'String',
127
127
  :'password' => :'String'
128
128
  }
129
129
  end
@@ -150,7 +150,7 @@ module AsposeCellsCloud
150
150
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
151
151
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
152
152
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
153
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
153
+ query_params[:'region'] = self.region if !self.region.nil?
154
154
  query_params[:'password'] = self.password if !self.password.nil?
155
155
 
156
156
  # header parameters
@@ -38,7 +38,7 @@ module AsposeCellsCloud
38
38
  attr_accessor :out_path
39
39
  attr_accessor :out_storage_name
40
40
  attr_accessor :fonts_location
41
- attr_accessor :regoin
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.fonts_location = attributes[:'fontsLocation']
76
76
  end
77
77
 
78
- if attributes.has_key?(:'regoin')
79
- self.regoin = attributes[:'regoin']
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
  :'out_path' => :'outPath',
95
95
  :'out_storage_name' => :'outStorageName',
96
96
  :'fonts_location' => :'fontsLocation',
97
- :'regoin' => :'regoin',
97
+ :'region' => :'region',
98
98
  :'password' => :'password'
99
99
  }
100
100
  end
@@ -109,7 +109,7 @@ module AsposeCellsCloud
109
109
  :'out_path' => :'String',
110
110
  :'out_storage_name' => :'String',
111
111
  :'fonts_location' => :'String',
112
- :'regoin' => :'String',
112
+ :'region' => :'String',
113
113
  :'password' => :'String'
114
114
  }
115
115
  end
@@ -134,7 +134,7 @@ module AsposeCellsCloud
134
134
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
135
135
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
136
136
  query_params[:'fontsLocation'] = self.fonts_location if !self.fonts_location.nil?
137
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
137
+ query_params[:'region'] = self.region if !self.region.nil?
138
138
  query_params[:'password'] = self.password if !self.password.nil?
139
139
 
140
140
  # header parameters
@@ -0,0 +1,214 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="SplitText_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 SplitTextRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :split_delimiters_type
36
+ attr_accessor :custom_delimiter
37
+ attr_accessor :keep_delimiters_in_resulting_cells
38
+ attr_accessor :keep_delimiters_position
39
+ attr_accessor :how_to_split
40
+ attr_accessor :worksheet
41
+ attr_accessor :range
42
+ attr_accessor :out_path
43
+ attr_accessor :out_storage_name
44
+ attr_accessor :region
45
+ attr_accessor :password
46
+
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
52
+
53
+ if attributes.has_key?(:'Spreadsheet')
54
+ self.spreadsheet = attributes[:'Spreadsheet']
55
+ end
56
+
57
+ if attributes.has_key?(:'splitDelimitersType')
58
+ self.split_delimiters_type = attributes[:'splitDelimitersType']
59
+ end
60
+
61
+ if attributes.has_key?(:'customDelimiter')
62
+ self.custom_delimiter = attributes[:'customDelimiter']
63
+ end
64
+
65
+ if attributes.has_key?(:'keepDelimitersInResultingCells')
66
+ self.keep_delimiters_in_resulting_cells = attributes[:'keepDelimitersInResultingCells']
67
+ end
68
+
69
+ if attributes.has_key?(:'keepDelimitersPosition')
70
+ self.keep_delimiters_position = attributes[:'keepDelimitersPosition']
71
+ end
72
+
73
+ if attributes.has_key?(:'HowToSplit')
74
+ self.how_to_split = attributes[:'HowToSplit']
75
+ end
76
+
77
+ if attributes.has_key?(:'worksheet')
78
+ self.worksheet = attributes[:'worksheet']
79
+ end
80
+
81
+ if attributes.has_key?(:'range')
82
+ self.range = attributes[:'range']
83
+ end
84
+
85
+ if attributes.has_key?(:'outPath')
86
+ self.out_path = attributes[:'outPath']
87
+ end
88
+
89
+ if attributes.has_key?(:'outStorageName')
90
+ self.out_storage_name = attributes[:'outStorageName']
91
+ end
92
+
93
+ if attributes.has_key?(:'region')
94
+ self.region = attributes[:'region']
95
+ end
96
+
97
+ if attributes.has_key?(:'password')
98
+ self.password = attributes[:'password']
99
+ end
100
+
101
+ end
102
+ # Attribute mapping from ruby-style variable name to JSON key.
103
+ def self.attribute_map
104
+ {
105
+ :'spreadsheet' => :'Spreadsheet',
106
+ :'split_delimiters_type' => :'splitDelimitersType',
107
+ :'custom_delimiter' => :'customDelimiter',
108
+ :'keep_delimiters_in_resulting_cells' => :'keepDelimitersInResultingCells',
109
+ :'keep_delimiters_position' => :'keepDelimitersPosition',
110
+ :'how_to_split' => :'HowToSplit',
111
+ :'worksheet' => :'worksheet',
112
+ :'range' => :'range',
113
+ :'out_path' => :'outPath',
114
+ :'out_storage_name' => :'outStorageName',
115
+ :'region' => :'region',
116
+ :'password' => :'password'
117
+ }
118
+ end
119
+
120
+ # Attribute type mapping.
121
+ def self.swagger_types
122
+ {
123
+ :'spreadsheet' => :'String',
124
+ :'split_delimiters_type' => :'String',
125
+ :'custom_delimiter' => :'String',
126
+ :'keep_delimiters_in_resulting_cells' => :'BOOLEAN',
127
+ :'keep_delimiters_position' => :'String',
128
+ :'how_to_split' => :'String',
129
+ :'worksheet' => :'String',
130
+ :'range' => :'String',
131
+ :'out_path' => :'String',
132
+ :'out_storage_name' => :'String',
133
+ :'region' => :'String',
134
+ :'password' => :'String'
135
+ }
136
+ end
137
+
138
+ def create_http_request(api_client,opts = {})
139
+ if api_client.config.debugging
140
+ api_client.config.logger.debug "Calling API: CellsApi.split_text ..."
141
+ end
142
+ api_client.request_token_if_needed
143
+ # verify the required parameter 'spreadsheet' is set
144
+ if api_client.config.client_side_validation && spreadsheet.nil?
145
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.split_text "
146
+ end
147
+ # verify the required parameter 'split_delimiters_type' is set
148
+ if api_client.config.client_side_validation && split_delimiters_type.nil?
149
+ fail ArgumentError, "Missing the required parameter 'split_delimiters_type' when calling CellsApi.split_text "
150
+ end
151
+ # verify the required parameter 'custom_delimiter' is set
152
+ if api_client.config.client_side_validation && custom_delimiter.nil?
153
+ fail ArgumentError, "Missing the required parameter 'custom_delimiter' when calling CellsApi.split_text "
154
+ end
155
+ # verify the required parameter 'keep_delimiters_in_resulting_cells' is set
156
+ if api_client.config.client_side_validation && keep_delimiters_in_resulting_cells.nil?
157
+ fail ArgumentError, "Missing the required parameter 'keep_delimiters_in_resulting_cells' when calling CellsApi.split_text "
158
+ end
159
+ # verify the required parameter 'keep_delimiters_position' is set
160
+ if api_client.config.client_side_validation && keep_delimiters_position.nil?
161
+ fail ArgumentError, "Missing the required parameter 'keep_delimiters_position' when calling CellsApi.split_text "
162
+ end
163
+ # verify the required parameter 'how_to_split' is set
164
+ if api_client.config.client_side_validation && how_to_split.nil?
165
+ fail ArgumentError, "Missing the required parameter 'how_to_split' when calling CellsApi.split_text "
166
+ end
167
+
168
+ # resource path
169
+ local_var_path = "v4.0/cells/content/split/text"
170
+ # query parameters
171
+ query_params = {}
172
+ query_params[:'splitDelimitersType'] = self.split_delimiters_type if !self.split_delimiters_type.nil?
173
+ query_params[:'customDelimiter'] = self.custom_delimiter if !self.custom_delimiter.nil?
174
+ query_params[:'keepDelimitersInResultingCells'] = self.keep_delimiters_in_resulting_cells if !self.keep_delimiters_in_resulting_cells.nil?
175
+ query_params[:'keepDelimitersPosition'] = self.keep_delimiters_position if !self.keep_delimiters_position.nil?
176
+ query_params[:'HowToSplit'] = self.how_to_split if !self.how_to_split.nil?
177
+ query_params[:'worksheet'] = self.worksheet if !self.worksheet.nil?
178
+ query_params[:'range'] = self.range if !self.range.nil?
179
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
180
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
181
+ query_params[:'region'] = self.region if !self.region.nil?
182
+ query_params[:'password'] = self.password if !self.password.nil?
183
+
184
+ # header parameters
185
+ header_params = {}
186
+ # HTTP header 'Accept' (if needed)
187
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
188
+ # HTTP header 'Content-Type'
189
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
190
+
191
+ # form parameters
192
+ form_params = {}
193
+ post_body = nil
194
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
195
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
196
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
197
+ end
198
+
199
+ #auth_names = []
200
+ auth_names = ['JWT']
201
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
202
+ :header_params => header_params,
203
+ :query_params => query_params,
204
+ :form_params => form_params,
205
+ :body => post_body,
206
+ :auth_names => auth_names,
207
+ :return_type => 'File')
208
+ if api_client.config.debugging
209
+ api_client.config.logger.debug "API called: Specification.Name>Api.split_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+ end
214
+ end
@@ -0,0 +1,142 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="SpreadsheetDigitalsignature_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 SpreadsheetDigitalsignatureRequest
33
+
34
+ attr_accessor :spreadsheet
35
+ attr_accessor :password
36
+ attr_accessor :out_path
37
+ attr_accessor :out_storage_name
38
+ attr_accessor :region
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?(:'password')
51
+ self.password = attributes[:'password']
52
+ end
53
+
54
+ if attributes.has_key?(:'outPath')
55
+ self.out_path = attributes[:'outPath']
56
+ end
57
+
58
+ if attributes.has_key?(:'outStorageName')
59
+ self.out_storage_name = attributes[:'outStorageName']
60
+ end
61
+
62
+ if attributes.has_key?(:'region')
63
+ self.region = attributes[:'region']
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
+ :'password' => :'password',
72
+ :'out_path' => :'outPath',
73
+ :'out_storage_name' => :'outStorageName',
74
+ :'region' => :'region'
75
+ }
76
+ end
77
+
78
+ # Attribute type mapping.
79
+ def self.swagger_types
80
+ {
81
+ :'spreadsheet' => :'String',
82
+ :'password' => :'String',
83
+ :'out_path' => :'String',
84
+ :'out_storage_name' => :'String',
85
+ :'region' => :'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.spreadsheet_digitalsignature ..."
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.spreadsheet_digitalsignature "
97
+ end
98
+ # verify the required parameter 'password' is set
99
+ if api_client.config.client_side_validation && password.nil?
100
+ fail ArgumentError, "Missing the required parameter 'password' when calling CellsApi.spreadsheet_digitalsignature "
101
+ end
102
+
103
+ # resource path
104
+ local_var_path = "v4.0/cells/digitalsignature/spreadsheet"
105
+ # query parameters
106
+ query_params = {}
107
+ query_params[:'password'] = self.password if !self.password.nil?
108
+ query_params[:'outPath'] = self.out_path if !self.out_path.nil?
109
+ query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
110
+ query_params[:'region'] = self.region if !self.region.nil?
111
+
112
+ # header parameters
113
+ header_params = {}
114
+ # HTTP header 'Accept' (if needed)
115
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
116
+ # HTTP header 'Content-Type'
117
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
118
+
119
+ # form parameters
120
+ form_params = {}
121
+ post_body = nil
122
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
123
+ if !spreadsheet.empty? && File.exist?(spreadsheet )
124
+ form_params[File.basename(spreadsheet)] = ::File.open(spreadsheet,"r")
125
+ end
126
+
127
+ #auth_names = []
128
+ auth_names = ['JWT']
129
+ data, status_code, headers = api_client.call_api(:PUT, local_var_path,
130
+ :header_params => header_params,
131
+ :query_params => query_params,
132
+ :form_params => form_params,
133
+ :body => post_body,
134
+ :auth_names => auth_names,
135
+ :return_type => 'File')
136
+ if api_client.config.debugging
137
+ api_client.config.logger.debug "API called: Specification.Name>Api.spreadsheet_digitalsignature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
138
+ end
139
+ return data, status_code, headers
140
+ end
141
+ end
142
+ end
@@ -1,6 +1,6 @@
1
1
  =begin
2
2
  --------------------------------------------------------------------------------------------------------------------
3
- <copyright company="Aspose" file="SawpRange_request.rb.cs">
3
+ <copyright company="Aspose" file="SwapRange_request.rb.cs">
4
4
  Copyright (c) 2025 Aspose.Cells Cloud
5
5
  </copyright>
6
6
  <summary>
@@ -29,7 +29,7 @@
29
29
  require "uri"
30
30
 
31
31
  module AsposeCellsCloud
32
- class SawpRangeRequest
32
+ class SwapRangeRequest
33
33
 
34
34
  attr_accessor :spreadsheet
35
35
  attr_accessor :worksheet1
@@ -38,7 +38,7 @@ module AsposeCellsCloud
38
38
  attr_accessor :range2
39
39
  attr_accessor :out_path
40
40
  attr_accessor :out_storage_name
41
- attr_accessor :regoin
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.out_storage_name = attributes[:'outStorageName']
76
76
  end
77
77
 
78
- if attributes.has_key?(:'regoin')
79
- self.regoin = attributes[:'regoin']
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
  :'range2' => :'range2',
95
95
  :'out_path' => :'outPath',
96
96
  :'out_storage_name' => :'outStorageName',
97
- :'regoin' => :'regoin',
97
+ :'region' => :'region',
98
98
  :'password' => :'password'
99
99
  }
100
100
  end
@@ -109,35 +109,35 @@ module AsposeCellsCloud
109
109
  :'range2' => :'String',
110
110
  :'out_path' => :'String',
111
111
  :'out_storage_name' => :'String',
112
- :'regoin' => :'String',
112
+ :'region' => :'String',
113
113
  :'password' => :'String'
114
114
  }
115
115
  end
116
116
 
117
117
  def create_http_request(api_client,opts = {})
118
118
  if api_client.config.debugging
119
- api_client.config.logger.debug "Calling API: CellsApi.sawp_range ..."
119
+ api_client.config.logger.debug "Calling API: CellsApi.swap_range ..."
120
120
  end
121
121
  api_client.request_token_if_needed
122
122
  # verify the required parameter 'spreadsheet' is set
123
123
  if api_client.config.client_side_validation && spreadsheet.nil?
124
- fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.sawp_range "
124
+ fail ArgumentError, "Missing the required parameter 'spreadsheet' when calling CellsApi.swap_range "
125
125
  end
126
126
  # verify the required parameter 'worksheet1' is set
127
127
  if api_client.config.client_side_validation && worksheet1.nil?
128
- fail ArgumentError, "Missing the required parameter 'worksheet1' when calling CellsApi.sawp_range "
128
+ fail ArgumentError, "Missing the required parameter 'worksheet1' when calling CellsApi.swap_range "
129
129
  end
130
130
  # verify the required parameter 'range1' is set
131
131
  if api_client.config.client_side_validation && range1.nil?
132
- fail ArgumentError, "Missing the required parameter 'range1' when calling CellsApi.sawp_range "
132
+ fail ArgumentError, "Missing the required parameter 'range1' when calling CellsApi.swap_range "
133
133
  end
134
134
  # verify the required parameter 'worksheet2' is set
135
135
  if api_client.config.client_side_validation && worksheet2.nil?
136
- fail ArgumentError, "Missing the required parameter 'worksheet2' when calling CellsApi.sawp_range "
136
+ fail ArgumentError, "Missing the required parameter 'worksheet2' when calling CellsApi.swap_range "
137
137
  end
138
138
  # verify the required parameter 'range2' is set
139
139
  if api_client.config.client_side_validation && range2.nil?
140
- fail ArgumentError, "Missing the required parameter 'range2' when calling CellsApi.sawp_range "
140
+ fail ArgumentError, "Missing the required parameter 'range2' when calling CellsApi.swap_range "
141
141
  end
142
142
 
143
143
  # resource path
@@ -150,7 +150,7 @@ module AsposeCellsCloud
150
150
  query_params[:'range2'] = self.range2 if !self.range2.nil?
151
151
  query_params[:'outPath'] = self.out_path if !self.out_path.nil?
152
152
  query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
153
- query_params[:'regoin'] = self.regoin if !self.regoin.nil?
153
+ query_params[:'region'] = self.region if !self.region.nil?
154
154
  query_params[:'password'] = self.password if !self.password.nil?
155
155
 
156
156
  # header parameters
@@ -178,7 +178,7 @@ module AsposeCellsCloud
178
178
  :auth_names => auth_names,
179
179
  :return_type => 'File')
180
180
  if api_client.config.debugging
181
- api_client.config.logger.debug "API called: Specification.Name>Api.sawp_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
+ api_client.config.logger.debug "API called: Specification.Name>Api.swap_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
182
182
  end
183
183
  return data, status_code, headers
184
184
  end