aspose_cells_cloud 24.2.1 → 24.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +310 -89
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +56 -0
  4. data/lib/aspose_cells_cloud/models/chart.rb +1 -1
  5. data/lib/aspose_cells_cloud/models/data_cleansing.rb +234 -0
  6. data/lib/aspose_cells_cloud/models/data_cleansing_request.rb +258 -0
  7. data/lib/aspose_cells_cloud/models/data_column_fill_value.rb +222 -0
  8. data/lib/aspose_cells_cloud/models/data_deduplication_request.rb +258 -0
  9. data/lib/aspose_cells_cloud/models/data_fill.rb +234 -0
  10. data/lib/aspose_cells_cloud/models/data_fill_request.rb +258 -0
  11. data/lib/aspose_cells_cloud/models/data_fill_value.rb +258 -0
  12. data/lib/aspose_cells_cloud/models/deduplication_region.rb +222 -0
  13. data/lib/aspose_cells_cloud/models/delete_incomplete_rows_request.rb +258 -0
  14. data/lib/aspose_cells_cloud/models/file_info.rb +3 -3
  15. data/lib/aspose_cells_cloud/models/workbook_settings.rb +1 -13
  16. data/lib/aspose_cells_cloud/requests/post_data_cleansing_request.rb +103 -0
  17. data/lib/aspose_cells_cloud/requests/post_data_deduplication_request.rb +103 -0
  18. data/lib/aspose_cells_cloud/requests/post_data_fill_request.rb +103 -0
  19. data/lib/aspose_cells_cloud/requests/post_delete_incomplete_rows_request.rb +103 -0
  20. data/lib/aspose_cells_cloud/requests/post_workbook_data_cleansing_request.rb +149 -0
  21. data/lib/aspose_cells_cloud/requests/post_workbook_data_deduplication_request.rb +149 -0
  22. data/lib/aspose_cells_cloud/requests/post_workbook_data_fill_request.rb +149 -0
  23. data/lib/aspose_cells_cloud/version.rb +1 -1
  24. data/lib/aspose_cells_cloud.rb +16 -0
  25. data/spec/api/data_processing_controller_spec.rb +73 -0
  26. metadata +30 -10
@@ -0,0 +1,258 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="DeleteIncompleteRowsRequestrb.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 DeleteIncompleteRowsRequest
34
+ #Spreadsheet files that require data fulling.
35
+ attr_accessor :file
36
+ #finish to data cleansing, outfile`s file format.
37
+ attr_accessor :out_file_format
38
+ #Whether check restriction of Spreadsheet file when user modify cells related objects.
39
+ attr_accessor :check_excel_restriction
40
+ #The regional settings for workbook.
41
+ attr_accessor :region
42
+ #
43
+ attr_accessor :ranges
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'file' => :'File',
49
+ :'out_file_format' => :'OutFileFormat',
50
+ :'check_excel_restriction' => :'CheckExcelRestriction',
51
+ :'region' => :'Region',
52
+ :'ranges' => :'Ranges'
53
+ }
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.swagger_types
58
+ {
59
+ :'file' => :'FileInfo',
60
+ :'out_file_format' => :'String',
61
+ :'check_excel_restriction' => :'BOOLEAN',
62
+ :'region' => :'String',
63
+ :'ranges' => :'Array<Range>'
64
+ }
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ return unless attributes.is_a?(Hash)
71
+
72
+ # convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
74
+
75
+ if attributes.has_key?(:'File')
76
+ self.file = attributes[:'File']
77
+ end
78
+ if attributes.has_key?(:'OutFileFormat')
79
+ self.out_file_format = attributes[:'OutFileFormat']
80
+ end
81
+ if attributes.has_key?(:'CheckExcelRestriction')
82
+ self.check_excel_restriction = attributes[:'CheckExcelRestriction']
83
+ end
84
+ if attributes.has_key?(:'Region')
85
+ self.region = attributes[:'Region']
86
+ end
87
+ if attributes.has_key?(:'Ranges')
88
+ self.ranges = attributes[:'Ranges']
89
+ end
90
+
91
+ end
92
+
93
+ # Show invalid properties with the reasons. Usually used together with valid?
94
+ # @return Array for valid properies with the reasons
95
+ def list_invalid_properties
96
+ invalid_properties = Array.new
97
+ if @file.nil?
98
+ invalid_properties.push("invalid value for 'file', file cannot be nil.")
99
+ end
100
+ if @out_file_format.nil?
101
+ invalid_properties.push("invalid value for 'out_file_format', out_file_format cannot be nil.")
102
+ end
103
+ if @check_excel_restriction.nil?
104
+ invalid_properties.push("invalid value for 'check_excel_restriction', check_excel_restriction cannot be nil.")
105
+ end
106
+ if @region.nil?
107
+ invalid_properties.push("invalid value for 'region', region cannot be nil.")
108
+ end
109
+ if @ranges.nil?
110
+ invalid_properties.push("invalid value for 'ranges', ranges cannot be nil.")
111
+ end
112
+
113
+ return invalid_properties
114
+ end
115
+
116
+ # Check to see if the all the properties in the model are valid
117
+ # @return true if the model is valid
118
+ def valid?
119
+ return false if @file.nil?
120
+ return false if @out_file_format.nil?
121
+ return false if @check_excel_restriction.nil?
122
+ return false if @region.nil?
123
+ return false if @ranges.nil?
124
+ return true
125
+ end
126
+
127
+ # Checks equality by comparing each attribute.
128
+ # @param [Object] Object to be compared
129
+ def ==(o)
130
+ return true if self.equal?(o)
131
+ self.class == o.class &&
132
+ file == o.file &&
133
+ out_file_format == o.out_file_format &&
134
+ check_excel_restriction == o.check_excel_restriction &&
135
+ region == o.region &&
136
+ ranges == o.ranges
137
+ std_dev == o.std_dev
138
+ end
139
+
140
+ # @see the `==` method
141
+ # @param [Object] Object to be compared
142
+ def eql?(o)
143
+ self == o
144
+ end
145
+
146
+ # Calculates hash code according to all attributes.
147
+ # @return [Fixnum] Hash code
148
+ def hash
149
+ [ file , out_file_format , check_excel_restriction , region , ranges ].hash
150
+ end
151
+
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def build_from_hash(attributes)
156
+ return nil unless attributes.is_a?(Hash)
157
+ self.class.swagger_types.each_pair do |key, type|
158
+ if type =~ /\AArray<(.*)>/i
159
+ # check to ensure the input is an array given that the the attribute
160
+ # is documented as an array but the input is not
161
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
162
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
163
+ end
164
+ elsif !attributes[self.class.attribute_map[key]].nil?
165
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
166
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
167
+ end
168
+
169
+ self
170
+ end
171
+
172
+ # Deserializes the data based on type
173
+ # @param string type Data type
174
+ # @param string value Value to be deserialized
175
+ # @return [Object] Deserialized data
176
+ def _deserialize(type, value)
177
+ case type.to_sym
178
+ when :DateTime
179
+ DateTime.parse(value)
180
+ when :Date
181
+ Date.parse(value)
182
+ when :String
183
+ value.to_s
184
+ when :Integer
185
+ value.to_i
186
+ when :Float
187
+ value.to_f
188
+ when :BOOLEAN
189
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
190
+ true
191
+ else
192
+ false
193
+ end
194
+ when :Object
195
+ # generic object (usually a Hash), return directly
196
+ value
197
+ when /\AArray<(?<inner_type>.+)>\z/
198
+ inner_type = Regexp.last_match[:inner_type]
199
+ value.map { |v| _deserialize(inner_type, v) }
200
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
201
+ k_type = Regexp.last_match[:k_type]
202
+ v_type = Regexp.last_match[:v_type]
203
+ {}.tap do |hash|
204
+ value.each do |k, v|
205
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
206
+ end
207
+ end
208
+ else # model
209
+ temp_model = AsposeCellsCloud.const_get(type).new
210
+ temp_model.build_from_hash(value)
211
+ end
212
+ end
213
+
214
+ # Returns the string representation of the object
215
+ # @return [String] String presentation of the object
216
+ def to_s
217
+ to_hash.to_s
218
+ end
219
+
220
+ # to_body is an alias to to_hash (backward compatibility)
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_body
223
+ to_hash
224
+ end
225
+
226
+ # Returns the object in the form of hash
227
+ # @return [Hash] Returns the object in the form of hash
228
+ def to_hash
229
+ hash = {}
230
+ self.class.attribute_map.each_pair do |attr, param|
231
+ value = self.send(attr)
232
+ next if value.nil?
233
+ hash[param] = _to_hash(value)
234
+ end
235
+ hash
236
+ end
237
+
238
+ # Outputs non-array value in the form of hash
239
+ # For object, use to_hash. Otherwise, just return the value
240
+ # @param [Object] value Any valid value
241
+ # @return [Hash] Returns the value in the form of hash
242
+ def _to_hash(value)
243
+ if value.is_a?(Array)
244
+ value.compact.map{ |v| _to_hash(v) }
245
+ elsif value.is_a?(Hash)
246
+ {}.tap do |hash|
247
+ value.each { |k, v| hash[k] = _to_hash(v) }
248
+ end
249
+ elsif value.respond_to? :to_hash
250
+ value.to_hash
251
+ else
252
+ value
253
+ end
254
+ end
255
+
256
+ end
257
+
258
+ end
@@ -31,11 +31,11 @@ require 'date'
31
31
  module AsposeCellsCloud
32
32
 
33
33
  class FileInfo
34
- #
34
+ #Filename.
35
35
  attr_accessor :filename
36
- #
36
+ #File size.
37
37
  attr_accessor :file_size
38
- #
38
+ #File content, byte to base64 string.
39
39
  attr_accessor :file_content
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -39,8 +39,6 @@ module AsposeCellsCloud
39
39
  attr_accessor :build_version
40
40
  #It specifies whether to calculate formulas manually, automatically or automatically except for multiple table operations.
41
41
  attr_accessor :calc_mode
42
- #Specifies the stack size for calculating cells recursively. The large value for this size will give better performance when there are lots of cells need to be calculated recursively. On the other hand, larger value will raise the risk of StackOverflowException. If user gets StackOverflowException when calculating formulas, this value should be decreased.
43
- attr_accessor :calc_stack_size
44
42
  #Specifies the version of the calculation engine used to calculate values in the workbook.
45
43
  attr_accessor :calculation_id
46
44
  #Indicates whether check comptiliblity when saving workbook. Remarks: The default value is true.
@@ -165,7 +163,6 @@ module AsposeCellsCloud
165
163
  :'auto_recover' => :'AutoRecover',
166
164
  :'build_version' => :'BuildVersion',
167
165
  :'calc_mode' => :'CalcMode',
168
- :'calc_stack_size' => :'CalcStackSize',
169
166
  :'calculation_id' => :'CalculationId',
170
167
  :'check_comptiliblity' => :'CheckComptiliblity',
171
168
  :'check_excel_restriction' => :'CheckExcelRestriction',
@@ -234,7 +231,6 @@ module AsposeCellsCloud
234
231
  :'auto_recover' => :'BOOLEAN',
235
232
  :'build_version' => :'String',
236
233
  :'calc_mode' => :'String',
237
- :'calc_stack_size' => :'Integer',
238
234
  :'calculation_id' => :'String',
239
235
  :'check_comptiliblity' => :'BOOLEAN',
240
236
  :'check_excel_restriction' => :'BOOLEAN',
@@ -316,9 +312,6 @@ module AsposeCellsCloud
316
312
  if attributes.has_key?(:'CalcMode')
317
313
  self.calc_mode = attributes[:'CalcMode']
318
314
  end
319
- if attributes.has_key?(:'CalcStackSize')
320
- self.calc_stack_size = attributes[:'CalcStackSize']
321
- end
322
315
  if attributes.has_key?(:'CalculationId')
323
316
  self.calculation_id = attributes[:'CalculationId']
324
317
  end
@@ -512,9 +505,6 @@ module AsposeCellsCloud
512
505
  if @calc_mode.nil?
513
506
  invalid_properties.push("invalid value for 'calc_mode', calc_mode cannot be nil.")
514
507
  end
515
- if @calc_stack_size.nil?
516
- invalid_properties.push("invalid value for 'calc_stack_size', calc_stack_size cannot be nil.")
517
- end
518
508
  if @calculation_id.nil?
519
509
  invalid_properties.push("invalid value for 'calculation_id', calculation_id cannot be nil.")
520
510
  end
@@ -700,7 +690,6 @@ module AsposeCellsCloud
700
690
  return false if @auto_recover.nil?
701
691
  return false if @build_version.nil?
702
692
  return false if @calc_mode.nil?
703
- return false if @calc_stack_size.nil?
704
693
  return false if @calculation_id.nil?
705
694
  return false if @check_comptiliblity.nil?
706
695
  return false if @check_excel_restriction.nil?
@@ -771,7 +760,6 @@ module AsposeCellsCloud
771
760
  auto_recover == o.auto_recover &&
772
761
  build_version == o.build_version &&
773
762
  calc_mode == o.calc_mode &&
774
- calc_stack_size == o.calc_stack_size &&
775
763
  calculation_id == o.calculation_id &&
776
764
  check_comptiliblity == o.check_comptiliblity &&
777
765
  check_excel_restriction == o.check_excel_restriction &&
@@ -842,7 +830,7 @@ module AsposeCellsCloud
842
830
  # Calculates hash code according to all attributes.
843
831
  # @return [Fixnum] Hash code
844
832
  def hash
845
- [ auto_compress_pictures , auto_recover , build_version , calc_mode , calc_stack_size , calculation_id , check_comptiliblity , check_excel_restriction , crash_save , create_calc_chain , data_extract_load , date1904 , display_drawing_objects , enable_macros , first_visible_tab , hide_pivot_field_list , is_default_encrypted , is_hidden , is_h_scroll_bar_visible , is_minimized , is_v_scroll_bar_visible , iteration , language_code , max_change , max_iteration , memory_setting , number_decimal_separator , number_group_separator , parsing_formula_on_open , precision_as_displayed , recalculate_before_save , re_calculate_on_open , recommend_read_only , region , remove_personal_information , repair_load , shared , sheet_tab_bar_width , show_tabs , update_adjacent_cells_border , update_links_type , window_height , window_left , window_top , window_width , author , check_custom_number_format , protection_type , globalization_settings , password , write_protection , is_encrypted , is_protected , max_row , max_column , significant_digits , check_compatibility , paper_size , max_rows_of_shared_formula , compliance , quote_prefix_to_style , formula_settings , force_full_calculate ].hash
833
+ [ auto_compress_pictures , auto_recover , build_version , calc_mode , calculation_id , check_comptiliblity , check_excel_restriction , crash_save , create_calc_chain , data_extract_load , date1904 , display_drawing_objects , enable_macros , first_visible_tab , hide_pivot_field_list , is_default_encrypted , is_hidden , is_h_scroll_bar_visible , is_minimized , is_v_scroll_bar_visible , iteration , language_code , max_change , max_iteration , memory_setting , number_decimal_separator , number_group_separator , parsing_formula_on_open , precision_as_displayed , recalculate_before_save , re_calculate_on_open , recommend_read_only , region , remove_personal_information , repair_load , shared , sheet_tab_bar_width , show_tabs , update_adjacent_cells_border , update_links_type , window_height , window_left , window_top , window_width , author , check_custom_number_format , protection_type , globalization_settings , password , write_protection , is_encrypted , is_protected , max_row , max_column , significant_digits , check_compatibility , paper_size , max_rows_of_shared_formula , compliance , quote_prefix_to_style , formula_settings , force_full_calculate ].hash
846
834
  end
847
835
 
848
836
  # Builds the object from hash
@@ -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
@@ -0,0 +1,103 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostDataFill_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 PostDataFillRequest
33
+
34
+ attr_accessor :data_fill_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?(:'dataFillRequest')
43
+ self.data_fill_request = attributes[:'dataFillRequest']
44
+ end
45
+
46
+ end
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'data_fill_request' => :'dataFillRequest'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.swagger_types
56
+ {
57
+ :'data_fill_request' => :'DataFillRequest'
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_fill ..."
64
+ end
65
+ api_client.request_token_if_needed
66
+ # verify the required parameter 'data_fill_request' is set
67
+ if api_client.config.client_side_validation && data_fill_request.nil?
68
+ fail ArgumentError, "Missing the required parameter 'data_fill_request' when calling CellsApi.post_data_fill "
69
+ end
70
+
71
+ # resource path
72
+ local_var_path = "/cells/datafill"
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_fill_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_fill\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
+ end
100
+ return data, status_code, headers
101
+ end
102
+ end
103
+ end