aspose_cells_cloud 24.1.1 → 24.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +303 -91
- data/lib/aspose_cells_cloud/api/cells_api.rb +64 -0
- data/lib/aspose_cells_cloud/models/analyze_excel_request.rb +234 -0
- data/lib/aspose_cells_cloud/models/analyze_excel_response.rb +210 -0
- data/lib/aspose_cells_cloud/models/analyze_suggestion.rb +294 -0
- data/lib/aspose_cells_cloud/models/analyzed_column_description.rb +306 -0
- data/lib/aspose_cells_cloud/models/analyzed_result.rb +258 -0
- data/lib/aspose_cells_cloud/models/analyzed_table_description.rb +390 -0
- data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +1 -13
- data/lib/aspose_cells_cloud/models/cell_area.rb +4 -4
- data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +4 -4
- data/lib/aspose_cells_cloud/models/cells_document_properties.rb +1 -1
- data/lib/aspose_cells_cloud/models/chart.rb +3 -3
- data/lib/aspose_cells_cloud/models/color.rb +4 -4
- data/lib/aspose_cells_cloud/models/color_filter.rb +1 -1
- data/lib/aspose_cells_cloud/models/columns.rb +3 -3
- data/lib/aspose_cells_cloud/models/data_cleansing.rb +234 -0
- data/lib/aspose_cells_cloud/models/data_cleansing_request.rb +258 -0
- data/lib/aspose_cells_cloud/models/data_column_fill_value.rb +222 -0
- data/lib/aspose_cells_cloud/models/data_deduplication_request.rb +258 -0
- data/lib/aspose_cells_cloud/models/data_fill.rb +234 -0
- data/lib/aspose_cells_cloud/models/data_fill_request.rb +258 -0
- data/lib/aspose_cells_cloud/models/data_fill_value.rb +258 -0
- data/lib/aspose_cells_cloud/models/deduplication_region.rb +222 -0
- data/lib/aspose_cells_cloud/models/delete_incomplete_rows_request.rb +258 -0
- data/lib/aspose_cells_cloud/models/discover_chart.rb +270 -0
- data/lib/aspose_cells_cloud/models/discover_pivot_table.rb +282 -0
- data/lib/aspose_cells_cloud/models/excel_data_statistics.rb +222 -0
- data/lib/aspose_cells_cloud/models/file_info.rb +3 -3
- data/lib/aspose_cells_cloud/models/pdf_security_options.rb +1 -13
- data/lib/aspose_cells_cloud/models/workbook_settings.rb +1 -13
- data/lib/aspose_cells_cloud/models/worksheet_data_statistics.rb +318 -0
- data/lib/aspose_cells_cloud/requests/post_analyze_excel_request.rb +103 -0
- data/lib/aspose_cells_cloud/requests/post_data_cleansing_request.rb +103 -0
- data/lib/aspose_cells_cloud/requests/post_data_deduplication_request.rb +103 -0
- data/lib/aspose_cells_cloud/requests/post_data_fill_request.rb +103 -0
- data/lib/aspose_cells_cloud/requests/post_delete_incomplete_rows_request.rb +103 -0
- data/lib/aspose_cells_cloud/requests/post_workbook_data_cleansing_request.rb +149 -0
- data/lib/aspose_cells_cloud/requests/post_workbook_data_deduplication_request.rb +149 -0
- data/lib/aspose_cells_cloud/requests/post_workbook_data_fill_request.rb +149 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +27 -0
- data/spec/api/data_processing_controller_spec.rb +73 -0
- metadata +41 -10
@@ -0,0 +1,318 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="WorksheetDataStatisticsrb.cs">
|
4
|
+
Copyright (c) 2024 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 'date'
|
30
|
+
|
31
|
+
module AsposeCellsCloud
|
32
|
+
|
33
|
+
class WorksheetDataStatistics
|
34
|
+
#
|
35
|
+
attr_accessor :name
|
36
|
+
#
|
37
|
+
attr_accessor :charts_count
|
38
|
+
#
|
39
|
+
attr_accessor :tables_count
|
40
|
+
#
|
41
|
+
attr_accessor :pivot_tables_count
|
42
|
+
#
|
43
|
+
attr_accessor :shapes_count
|
44
|
+
#
|
45
|
+
attr_accessor :hyperlinks_count
|
46
|
+
#
|
47
|
+
attr_accessor :query_tables_count
|
48
|
+
#
|
49
|
+
attr_accessor :cells_count
|
50
|
+
#
|
51
|
+
attr_accessor :cells_count_in_table
|
52
|
+
#
|
53
|
+
attr_accessor :cells_count_is_formula
|
54
|
+
|
55
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
56
|
+
def self.attribute_map
|
57
|
+
{
|
58
|
+
:'name' => :'Name',
|
59
|
+
:'charts_count' => :'ChartsCount',
|
60
|
+
:'tables_count' => :'TablesCount',
|
61
|
+
:'pivot_tables_count' => :'PivotTablesCount',
|
62
|
+
:'shapes_count' => :'ShapesCount',
|
63
|
+
:'hyperlinks_count' => :'HyperlinksCount',
|
64
|
+
:'query_tables_count' => :'QueryTablesCount',
|
65
|
+
:'cells_count' => :'CellsCount',
|
66
|
+
:'cells_count_in_table' => :'CellsCountInTable',
|
67
|
+
:'cells_count_is_formula' => :'CellsCountIsFormula'
|
68
|
+
}
|
69
|
+
end
|
70
|
+
|
71
|
+
# Attribute type mapping.
|
72
|
+
def self.swagger_types
|
73
|
+
{
|
74
|
+
:'name' => :'String',
|
75
|
+
:'charts_count' => :'Integer',
|
76
|
+
:'tables_count' => :'Integer',
|
77
|
+
:'pivot_tables_count' => :'Integer',
|
78
|
+
:'shapes_count' => :'Integer',
|
79
|
+
:'hyperlinks_count' => :'Integer',
|
80
|
+
:'query_tables_count' => :'Integer',
|
81
|
+
:'cells_count' => :'Integer',
|
82
|
+
:'cells_count_in_table' => :'Integer',
|
83
|
+
:'cells_count_is_formula' => :'Integer'
|
84
|
+
}
|
85
|
+
end
|
86
|
+
|
87
|
+
# Initializes the object
|
88
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
89
|
+
def initialize(attributes = {})
|
90
|
+
return unless attributes.is_a?(Hash)
|
91
|
+
|
92
|
+
# convert string to symbol for hash key
|
93
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
94
|
+
|
95
|
+
if attributes.has_key?(:'Name')
|
96
|
+
self.name = attributes[:'Name']
|
97
|
+
end
|
98
|
+
if attributes.has_key?(:'ChartsCount')
|
99
|
+
self.charts_count = attributes[:'ChartsCount']
|
100
|
+
end
|
101
|
+
if attributes.has_key?(:'TablesCount')
|
102
|
+
self.tables_count = attributes[:'TablesCount']
|
103
|
+
end
|
104
|
+
if attributes.has_key?(:'PivotTablesCount')
|
105
|
+
self.pivot_tables_count = attributes[:'PivotTablesCount']
|
106
|
+
end
|
107
|
+
if attributes.has_key?(:'ShapesCount')
|
108
|
+
self.shapes_count = attributes[:'ShapesCount']
|
109
|
+
end
|
110
|
+
if attributes.has_key?(:'HyperlinksCount')
|
111
|
+
self.hyperlinks_count = attributes[:'HyperlinksCount']
|
112
|
+
end
|
113
|
+
if attributes.has_key?(:'QueryTablesCount')
|
114
|
+
self.query_tables_count = attributes[:'QueryTablesCount']
|
115
|
+
end
|
116
|
+
if attributes.has_key?(:'CellsCount')
|
117
|
+
self.cells_count = attributes[:'CellsCount']
|
118
|
+
end
|
119
|
+
if attributes.has_key?(:'CellsCountInTable')
|
120
|
+
self.cells_count_in_table = attributes[:'CellsCountInTable']
|
121
|
+
end
|
122
|
+
if attributes.has_key?(:'CellsCountIsFormula')
|
123
|
+
self.cells_count_is_formula = attributes[:'CellsCountIsFormula']
|
124
|
+
end
|
125
|
+
|
126
|
+
end
|
127
|
+
|
128
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
129
|
+
# @return Array for valid properies with the reasons
|
130
|
+
def list_invalid_properties
|
131
|
+
invalid_properties = Array.new
|
132
|
+
if @name.nil?
|
133
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
134
|
+
end
|
135
|
+
if @charts_count.nil?
|
136
|
+
invalid_properties.push("invalid value for 'charts_count', charts_count cannot be nil.")
|
137
|
+
end
|
138
|
+
if @tables_count.nil?
|
139
|
+
invalid_properties.push("invalid value for 'tables_count', tables_count cannot be nil.")
|
140
|
+
end
|
141
|
+
if @pivot_tables_count.nil?
|
142
|
+
invalid_properties.push("invalid value for 'pivot_tables_count', pivot_tables_count cannot be nil.")
|
143
|
+
end
|
144
|
+
if @shapes_count.nil?
|
145
|
+
invalid_properties.push("invalid value for 'shapes_count', shapes_count cannot be nil.")
|
146
|
+
end
|
147
|
+
if @hyperlinks_count.nil?
|
148
|
+
invalid_properties.push("invalid value for 'hyperlinks_count', hyperlinks_count cannot be nil.")
|
149
|
+
end
|
150
|
+
if @query_tables_count.nil?
|
151
|
+
invalid_properties.push("invalid value for 'query_tables_count', query_tables_count cannot be nil.")
|
152
|
+
end
|
153
|
+
if @cells_count.nil?
|
154
|
+
invalid_properties.push("invalid value for 'cells_count', cells_count cannot be nil.")
|
155
|
+
end
|
156
|
+
if @cells_count_in_table.nil?
|
157
|
+
invalid_properties.push("invalid value for 'cells_count_in_table', cells_count_in_table cannot be nil.")
|
158
|
+
end
|
159
|
+
if @cells_count_is_formula.nil?
|
160
|
+
invalid_properties.push("invalid value for 'cells_count_is_formula', cells_count_is_formula cannot be nil.")
|
161
|
+
end
|
162
|
+
|
163
|
+
return invalid_properties
|
164
|
+
end
|
165
|
+
|
166
|
+
# Check to see if the all the properties in the model are valid
|
167
|
+
# @return true if the model is valid
|
168
|
+
def valid?
|
169
|
+
return false if @name.nil?
|
170
|
+
return false if @charts_count.nil?
|
171
|
+
return false if @tables_count.nil?
|
172
|
+
return false if @pivot_tables_count.nil?
|
173
|
+
return false if @shapes_count.nil?
|
174
|
+
return false if @hyperlinks_count.nil?
|
175
|
+
return false if @query_tables_count.nil?
|
176
|
+
return false if @cells_count.nil?
|
177
|
+
return false if @cells_count_in_table.nil?
|
178
|
+
return false if @cells_count_is_formula.nil?
|
179
|
+
return true
|
180
|
+
end
|
181
|
+
|
182
|
+
# Checks equality by comparing each attribute.
|
183
|
+
# @param [Object] Object to be compared
|
184
|
+
def ==(o)
|
185
|
+
return true if self.equal?(o)
|
186
|
+
self.class == o.class &&
|
187
|
+
name == o.name &&
|
188
|
+
charts_count == o.charts_count &&
|
189
|
+
tables_count == o.tables_count &&
|
190
|
+
pivot_tables_count == o.pivot_tables_count &&
|
191
|
+
shapes_count == o.shapes_count &&
|
192
|
+
hyperlinks_count == o.hyperlinks_count &&
|
193
|
+
query_tables_count == o.query_tables_count &&
|
194
|
+
cells_count == o.cells_count &&
|
195
|
+
cells_count_in_table == o.cells_count_in_table &&
|
196
|
+
cells_count_is_formula == o.cells_count_is_formula
|
197
|
+
std_dev == o.std_dev
|
198
|
+
end
|
199
|
+
|
200
|
+
# @see the `==` method
|
201
|
+
# @param [Object] Object to be compared
|
202
|
+
def eql?(o)
|
203
|
+
self == o
|
204
|
+
end
|
205
|
+
|
206
|
+
# Calculates hash code according to all attributes.
|
207
|
+
# @return [Fixnum] Hash code
|
208
|
+
def hash
|
209
|
+
[ name , charts_count , tables_count , pivot_tables_count , shapes_count , hyperlinks_count , query_tables_count , cells_count , cells_count_in_table , cells_count_is_formula ].hash
|
210
|
+
end
|
211
|
+
|
212
|
+
# Builds the object from hash
|
213
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
214
|
+
# @return [Object] Returns the model itself
|
215
|
+
def build_from_hash(attributes)
|
216
|
+
return nil unless attributes.is_a?(Hash)
|
217
|
+
self.class.swagger_types.each_pair do |key, type|
|
218
|
+
if type =~ /\AArray<(.*)>/i
|
219
|
+
# check to ensure the input is an array given that the the attribute
|
220
|
+
# is documented as an array but the input is not
|
221
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
222
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
223
|
+
end
|
224
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
225
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
226
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
227
|
+
end
|
228
|
+
|
229
|
+
self
|
230
|
+
end
|
231
|
+
|
232
|
+
# Deserializes the data based on type
|
233
|
+
# @param string type Data type
|
234
|
+
# @param string value Value to be deserialized
|
235
|
+
# @return [Object] Deserialized data
|
236
|
+
def _deserialize(type, value)
|
237
|
+
case type.to_sym
|
238
|
+
when :DateTime
|
239
|
+
DateTime.parse(value)
|
240
|
+
when :Date
|
241
|
+
Date.parse(value)
|
242
|
+
when :String
|
243
|
+
value.to_s
|
244
|
+
when :Integer
|
245
|
+
value.to_i
|
246
|
+
when :Float
|
247
|
+
value.to_f
|
248
|
+
when :BOOLEAN
|
249
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
250
|
+
true
|
251
|
+
else
|
252
|
+
false
|
253
|
+
end
|
254
|
+
when :Object
|
255
|
+
# generic object (usually a Hash), return directly
|
256
|
+
value
|
257
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
258
|
+
inner_type = Regexp.last_match[:inner_type]
|
259
|
+
value.map { |v| _deserialize(inner_type, v) }
|
260
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
261
|
+
k_type = Regexp.last_match[:k_type]
|
262
|
+
v_type = Regexp.last_match[:v_type]
|
263
|
+
{}.tap do |hash|
|
264
|
+
value.each do |k, v|
|
265
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
266
|
+
end
|
267
|
+
end
|
268
|
+
else # model
|
269
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
270
|
+
temp_model.build_from_hash(value)
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
# Returns the string representation of the object
|
275
|
+
# @return [String] String presentation of the object
|
276
|
+
def to_s
|
277
|
+
to_hash.to_s
|
278
|
+
end
|
279
|
+
|
280
|
+
# to_body is an alias to to_hash (backward compatibility)
|
281
|
+
# @return [Hash] Returns the object in the form of hash
|
282
|
+
def to_body
|
283
|
+
to_hash
|
284
|
+
end
|
285
|
+
|
286
|
+
# Returns the object in the form of hash
|
287
|
+
# @return [Hash] Returns the object in the form of hash
|
288
|
+
def to_hash
|
289
|
+
hash = {}
|
290
|
+
self.class.attribute_map.each_pair do |attr, param|
|
291
|
+
value = self.send(attr)
|
292
|
+
next if value.nil?
|
293
|
+
hash[param] = _to_hash(value)
|
294
|
+
end
|
295
|
+
hash
|
296
|
+
end
|
297
|
+
|
298
|
+
# Outputs non-array value in the form of hash
|
299
|
+
# For object, use to_hash. Otherwise, just return the value
|
300
|
+
# @param [Object] value Any valid value
|
301
|
+
# @return [Hash] Returns the value in the form of hash
|
302
|
+
def _to_hash(value)
|
303
|
+
if value.is_a?(Array)
|
304
|
+
value.compact.map{ |v| _to_hash(v) }
|
305
|
+
elsif value.is_a?(Hash)
|
306
|
+
{}.tap do |hash|
|
307
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
308
|
+
end
|
309
|
+
elsif value.respond_to? :to_hash
|
310
|
+
value.to_hash
|
311
|
+
else
|
312
|
+
value
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
end
|
317
|
+
|
318
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="PostAnalyzeExcel_request.rb.cs">
|
4
|
+
Copyright (c) 2024 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 PostAnalyzeExcelRequest
|
33
|
+
|
34
|
+
attr_accessor :analyze_excel_request
|
35
|
+
|
36
|
+
def initialize(attributes = {})
|
37
|
+
return unless attributes.is_a?(Hash)
|
38
|
+
|
39
|
+
# convert string to symbol for hash key
|
40
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
41
|
+
|
42
|
+
if attributes.has_key?(:'analyzeExcelRequest')
|
43
|
+
self.analyze_excel_request = attributes[:'analyzeExcelRequest']
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'analyze_excel_request' => :'analyzeExcelRequest'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.swagger_types
|
56
|
+
{
|
57
|
+
:'analyze_excel_request' => :'AnalyzeExcelRequest'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
def create_http_request(api_client,opts = {})
|
62
|
+
if api_client.config.debugging
|
63
|
+
api_client.config.logger.debug "Calling API: CellsApi.post_analyze_excel ..."
|
64
|
+
end
|
65
|
+
api_client.request_token_if_needed
|
66
|
+
# verify the required parameter 'analyze_excel_request' is set
|
67
|
+
if api_client.config.client_side_validation && analyze_excel_request.nil?
|
68
|
+
fail ArgumentError, "Missing the required parameter 'analyze_excel_request' when calling CellsApi.post_analyze_excel "
|
69
|
+
end
|
70
|
+
|
71
|
+
# resource path
|
72
|
+
local_var_path = "/cells/analyze"
|
73
|
+
# query parameters
|
74
|
+
query_params = {}
|
75
|
+
# header parameters
|
76
|
+
header_params = {}
|
77
|
+
# HTTP header 'Accept' (if needed)
|
78
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
79
|
+
# HTTP header 'Content-Type'
|
80
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
81
|
+
|
82
|
+
# form parameters
|
83
|
+
form_params = {}
|
84
|
+
post_body = nil
|
85
|
+
post_body = api_client.object_to_http_body(analyze_excel_request)
|
86
|
+
|
87
|
+
|
88
|
+
#auth_names = []
|
89
|
+
auth_names = ['JWT']
|
90
|
+
data, status_code, headers = api_client.call_api(:POST, local_var_path,
|
91
|
+
:header_params => header_params,
|
92
|
+
:query_params => query_params,
|
93
|
+
:form_params => form_params,
|
94
|
+
:body => post_body,
|
95
|
+
:auth_names => auth_names,
|
96
|
+
:return_type => 'Array<AnalyzedResult>')
|
97
|
+
if api_client.config.debugging
|
98
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.post_analyze_excel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
99
|
+
end
|
100
|
+
return data, status_code, headers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="PostDataCleansing_request.rb.cs">
|
4
|
+
Copyright (c) 2024 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 PostDataCleansingRequest
|
33
|
+
|
34
|
+
attr_accessor :data_cleansing_request
|
35
|
+
|
36
|
+
def initialize(attributes = {})
|
37
|
+
return unless attributes.is_a?(Hash)
|
38
|
+
|
39
|
+
# convert string to symbol for hash key
|
40
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
41
|
+
|
42
|
+
if attributes.has_key?(:'dataCleansingRequest')
|
43
|
+
self.data_cleansing_request = attributes[:'dataCleansingRequest']
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'data_cleansing_request' => :'dataCleansingRequest'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.swagger_types
|
56
|
+
{
|
57
|
+
:'data_cleansing_request' => :'DataCleansingRequest'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
def create_http_request(api_client,opts = {})
|
62
|
+
if api_client.config.debugging
|
63
|
+
api_client.config.logger.debug "Calling API: CellsApi.post_data_cleansing ..."
|
64
|
+
end
|
65
|
+
api_client.request_token_if_needed
|
66
|
+
# verify the required parameter 'data_cleansing_request' is set
|
67
|
+
if api_client.config.client_side_validation && data_cleansing_request.nil?
|
68
|
+
fail ArgumentError, "Missing the required parameter 'data_cleansing_request' when calling CellsApi.post_data_cleansing "
|
69
|
+
end
|
70
|
+
|
71
|
+
# resource path
|
72
|
+
local_var_path = "/cells/datacleansing"
|
73
|
+
# query parameters
|
74
|
+
query_params = {}
|
75
|
+
# header parameters
|
76
|
+
header_params = {}
|
77
|
+
# HTTP header 'Accept' (if needed)
|
78
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
79
|
+
# HTTP header 'Content-Type'
|
80
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
81
|
+
|
82
|
+
# form parameters
|
83
|
+
form_params = {}
|
84
|
+
post_body = nil
|
85
|
+
post_body = api_client.object_to_http_body(data_cleansing_request)
|
86
|
+
|
87
|
+
|
88
|
+
#auth_names = []
|
89
|
+
auth_names = ['JWT']
|
90
|
+
data, status_code, headers = api_client.call_api(:POST, local_var_path,
|
91
|
+
:header_params => header_params,
|
92
|
+
:query_params => query_params,
|
93
|
+
:form_params => form_params,
|
94
|
+
:body => post_body,
|
95
|
+
:auth_names => auth_names,
|
96
|
+
:return_type => 'FileInfo')
|
97
|
+
if api_client.config.debugging
|
98
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.post_data_cleansing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
99
|
+
end
|
100
|
+
return data, status_code, headers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="PostDataDeduplication_request.rb.cs">
|
4
|
+
Copyright (c) 2024 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 PostDataDeduplicationRequest
|
33
|
+
|
34
|
+
attr_accessor :data_deduplication_request
|
35
|
+
|
36
|
+
def initialize(attributes = {})
|
37
|
+
return unless attributes.is_a?(Hash)
|
38
|
+
|
39
|
+
# convert string to symbol for hash key
|
40
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
41
|
+
|
42
|
+
if attributes.has_key?(:'dataDeduplicationRequest')
|
43
|
+
self.data_deduplication_request = attributes[:'dataDeduplicationRequest']
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'data_deduplication_request' => :'dataDeduplicationRequest'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.swagger_types
|
56
|
+
{
|
57
|
+
:'data_deduplication_request' => :'DataDeduplicationRequest'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
def create_http_request(api_client,opts = {})
|
62
|
+
if api_client.config.debugging
|
63
|
+
api_client.config.logger.debug "Calling API: CellsApi.post_data_deduplication ..."
|
64
|
+
end
|
65
|
+
api_client.request_token_if_needed
|
66
|
+
# verify the required parameter 'data_deduplication_request' is set
|
67
|
+
if api_client.config.client_side_validation && data_deduplication_request.nil?
|
68
|
+
fail ArgumentError, "Missing the required parameter 'data_deduplication_request' when calling CellsApi.post_data_deduplication "
|
69
|
+
end
|
70
|
+
|
71
|
+
# resource path
|
72
|
+
local_var_path = "/cells/datadeduplication"
|
73
|
+
# query parameters
|
74
|
+
query_params = {}
|
75
|
+
# header parameters
|
76
|
+
header_params = {}
|
77
|
+
# HTTP header 'Accept' (if needed)
|
78
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
79
|
+
# HTTP header 'Content-Type'
|
80
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
81
|
+
|
82
|
+
# form parameters
|
83
|
+
form_params = {}
|
84
|
+
post_body = nil
|
85
|
+
post_body = api_client.object_to_http_body(data_deduplication_request)
|
86
|
+
|
87
|
+
|
88
|
+
#auth_names = []
|
89
|
+
auth_names = ['JWT']
|
90
|
+
data, status_code, headers = api_client.call_api(:POST, local_var_path,
|
91
|
+
:header_params => header_params,
|
92
|
+
:query_params => query_params,
|
93
|
+
:form_params => form_params,
|
94
|
+
:body => post_body,
|
95
|
+
:auth_names => auth_names,
|
96
|
+
:return_type => 'FileInfo')
|
97
|
+
if api_client.config.debugging
|
98
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.post_data_deduplication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
99
|
+
end
|
100
|
+
return data, status_code, headers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|