aspose_cells_cloud 24.2.1 → 24.4

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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +314 -89
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +64 -0
  4. data/lib/aspose_cells_cloud/models/cells_object_operate_task_parameter.rb +13 -1
  5. data/lib/aspose_cells_cloud/models/chart.rb +1 -1
  6. data/lib/aspose_cells_cloud/models/convert_task_parameter.rb +13 -1
  7. data/lib/aspose_cells_cloud/models/convert_worksheet_task_parameter.rb +25 -1
  8. data/lib/aspose_cells_cloud/models/data_cleansing.rb +234 -0
  9. data/lib/aspose_cells_cloud/models/data_cleansing_request.rb +258 -0
  10. data/lib/aspose_cells_cloud/models/data_column_fill_value.rb +222 -0
  11. data/lib/aspose_cells_cloud/models/data_deduplication_request.rb +258 -0
  12. data/lib/aspose_cells_cloud/models/data_fill.rb +234 -0
  13. data/lib/aspose_cells_cloud/models/data_fill_request.rb +258 -0
  14. data/lib/aspose_cells_cloud/models/data_fill_value.rb +258 -0
  15. data/lib/aspose_cells_cloud/models/data_item.rb +222 -0
  16. data/lib/aspose_cells_cloud/models/data_source.rb +222 -0
  17. data/lib/aspose_cells_cloud/models/data_transformation_request.rb +258 -0
  18. data/lib/aspose_cells_cloud/models/deduplication_region.rb +222 -0
  19. data/lib/aspose_cells_cloud/models/delete_incomplete_rows_request.rb +258 -0
  20. data/lib/aspose_cells_cloud/models/file_info.rb +3 -3
  21. data/lib/aspose_cells_cloud/models/import2_dimension_double_array_option.rb +13 -1
  22. data/lib/aspose_cells_cloud/models/import2_dimension_int_array_option.rb +13 -1
  23. data/lib/aspose_cells_cloud/models/import2_dimension_string_array_option.rb +13 -1
  24. data/lib/aspose_cells_cloud/models/import_batch_data_option.rb +13 -1
  25. data/lib/aspose_cells_cloud/models/import_csv_data_option.rb +13 -1
  26. data/lib/aspose_cells_cloud/models/import_data_task_parameter.rb +25 -1
  27. data/lib/aspose_cells_cloud/models/import_double_array_option.rb +13 -1
  28. data/lib/aspose_cells_cloud/models/import_int_array_option.rb +13 -1
  29. data/lib/aspose_cells_cloud/models/import_json_request.rb +1 -1
  30. data/lib/aspose_cells_cloud/models/import_option.rb +13 -1
  31. data/lib/aspose_cells_cloud/models/import_picture_option.rb +13 -1
  32. data/lib/aspose_cells_cloud/models/import_string_array_option.rb +13 -1
  33. data/lib/aspose_cells_cloud/models/import_xml_request.rb +1 -1
  34. data/lib/aspose_cells_cloud/models/load_data.rb +246 -0
  35. data/lib/aspose_cells_cloud/models/load_to.rb +234 -0
  36. data/lib/aspose_cells_cloud/models/operate_object_position.rb +13 -1
  37. data/lib/aspose_cells_cloud/models/pivot_column.rb +222 -0
  38. data/lib/aspose_cells_cloud/models/pptx_save_options.rb +3 -3
  39. data/lib/aspose_cells_cloud/models/query_data_source.rb +234 -0
  40. data/lib/aspose_cells_cloud/models/save_files_to_cloud_result.rb +1 -1
  41. data/lib/aspose_cells_cloud/models/smart_marker_task_parameter.rb +40 -4
  42. data/lib/aspose_cells_cloud/models/split_workbook_task_parameter.rb +25 -1
  43. data/lib/aspose_cells_cloud/models/task_run_result.rb +1 -1
  44. data/lib/aspose_cells_cloud/models/transformation.rb +222 -0
  45. data/lib/aspose_cells_cloud/models/unpivot_column.rb +234 -0
  46. data/lib/aspose_cells_cloud/models/workbook_settings.rb +1 -13
  47. data/lib/aspose_cells_cloud/requests/post_data_cleansing_request.rb +103 -0
  48. data/lib/aspose_cells_cloud/requests/post_data_deduplication_request.rb +103 -0
  49. data/lib/aspose_cells_cloud/requests/post_data_fill_request.rb +103 -0
  50. data/lib/aspose_cells_cloud/requests/post_data_transformation_request.rb +103 -0
  51. data/lib/aspose_cells_cloud/requests/post_delete_incomplete_rows_request.rb +103 -0
  52. data/lib/aspose_cells_cloud/requests/post_workbook_data_cleansing_request.rb +149 -0
  53. data/lib/aspose_cells_cloud/requests/post_workbook_data_deduplication_request.rb +149 -0
  54. data/lib/aspose_cells_cloud/requests/post_workbook_data_fill_request.rb +149 -0
  55. data/lib/aspose_cells_cloud/version.rb +1 -1
  56. data/lib/aspose_cells_cloud.rb +28 -2
  57. data/spec/api/data_processing_controller_spec.rb +73 -0
  58. data/spec/api/xml_controller_spec.rb +1 -1
  59. metadata +45 -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.
@@ -44,6 +44,8 @@ module AsposeCellsCloud
44
44
  #
45
45
  attr_accessor :import_data_type
46
46
  #
47
+ attr_accessor :data_source
48
+ #
47
49
  attr_accessor :source
48
50
 
49
51
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -55,6 +57,7 @@ module AsposeCellsCloud
55
57
  :'destination_worksheet' => :'DestinationWorksheet',
56
58
  :'is_insert' => :'IsInsert',
57
59
  :'import_data_type' => :'ImportDataType',
60
+ :'data_source' => :'DataSource',
58
61
  :'source' => :'Source'
59
62
  }
60
63
  end
@@ -68,6 +71,7 @@ module AsposeCellsCloud
68
71
  :'destination_worksheet' => :'String',
69
72
  :'is_insert' => :'BOOLEAN',
70
73
  :'import_data_type' => :'String',
74
+ :'data_source' => :'DataSource',
71
75
  :'source' => :'FileSource'
72
76
  }
73
77
  end
@@ -98,6 +102,9 @@ module AsposeCellsCloud
98
102
  if attributes.has_key?(:'ImportDataType')
99
103
  self.import_data_type = attributes[:'ImportDataType']
100
104
  end
105
+ if attributes.has_key?(:'DataSource')
106
+ self.data_source = attributes[:'DataSource']
107
+ end
101
108
  if attributes.has_key?(:'Source')
102
109
  self.source = attributes[:'Source']
103
110
  end
@@ -126,6 +133,9 @@ module AsposeCellsCloud
126
133
  if @import_data_type.nil?
127
134
  invalid_properties.push("invalid value for 'import_data_type', import_data_type cannot be nil.")
128
135
  end
136
+ if @data_source.nil?
137
+ invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
138
+ end
129
139
  if @source.nil?
130
140
  invalid_properties.push("invalid value for 'source', source cannot be nil.")
131
141
  end
@@ -142,6 +152,7 @@ module AsposeCellsCloud
142
152
  return false if @destination_worksheet.nil?
143
153
  return false if @is_insert.nil?
144
154
  return false if @import_data_type.nil?
155
+ return false if @data_source.nil?
145
156
  return false if @source.nil?
146
157
  return true
147
158
  end
@@ -157,6 +168,7 @@ module AsposeCellsCloud
157
168
  destination_worksheet == o.destination_worksheet &&
158
169
  is_insert == o.is_insert &&
159
170
  import_data_type == o.import_data_type &&
171
+ data_source == o.data_source &&
160
172
  source == o.source
161
173
  std_dev == o.std_dev
162
174
  end
@@ -170,7 +182,7 @@ module AsposeCellsCloud
170
182
  # Calculates hash code according to all attributes.
171
183
  # @return [Fixnum] Hash code
172
184
  def hash
173
- [ first_row , first_column , data , destination_worksheet , is_insert , import_data_type , source ].hash
185
+ [ first_row , first_column , data , destination_worksheet , is_insert , import_data_type , data_source , source ].hash
174
186
  end
175
187
 
176
188
  # Builds the object from hash
@@ -44,6 +44,8 @@ module AsposeCellsCloud
44
44
  #
45
45
  attr_accessor :import_data_type
46
46
  #
47
+ attr_accessor :data_source
48
+ #
47
49
  attr_accessor :source
48
50
 
49
51
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -55,6 +57,7 @@ module AsposeCellsCloud
55
57
  :'destination_worksheet' => :'DestinationWorksheet',
56
58
  :'is_insert' => :'IsInsert',
57
59
  :'import_data_type' => :'ImportDataType',
60
+ :'data_source' => :'DataSource',
58
61
  :'source' => :'Source'
59
62
  }
60
63
  end
@@ -68,6 +71,7 @@ module AsposeCellsCloud
68
71
  :'destination_worksheet' => :'String',
69
72
  :'is_insert' => :'BOOLEAN',
70
73
  :'import_data_type' => :'String',
74
+ :'data_source' => :'DataSource',
71
75
  :'source' => :'FileSource'
72
76
  }
73
77
  end
@@ -98,6 +102,9 @@ module AsposeCellsCloud
98
102
  if attributes.has_key?(:'ImportDataType')
99
103
  self.import_data_type = attributes[:'ImportDataType']
100
104
  end
105
+ if attributes.has_key?(:'DataSource')
106
+ self.data_source = attributes[:'DataSource']
107
+ end
101
108
  if attributes.has_key?(:'Source')
102
109
  self.source = attributes[:'Source']
103
110
  end
@@ -126,6 +133,9 @@ module AsposeCellsCloud
126
133
  if @import_data_type.nil?
127
134
  invalid_properties.push("invalid value for 'import_data_type', import_data_type cannot be nil.")
128
135
  end
136
+ if @data_source.nil?
137
+ invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
138
+ end
129
139
  if @source.nil?
130
140
  invalid_properties.push("invalid value for 'source', source cannot be nil.")
131
141
  end
@@ -142,6 +152,7 @@ module AsposeCellsCloud
142
152
  return false if @destination_worksheet.nil?
143
153
  return false if @is_insert.nil?
144
154
  return false if @import_data_type.nil?
155
+ return false if @data_source.nil?
145
156
  return false if @source.nil?
146
157
  return true
147
158
  end
@@ -157,6 +168,7 @@ module AsposeCellsCloud
157
168
  destination_worksheet == o.destination_worksheet &&
158
169
  is_insert == o.is_insert &&
159
170
  import_data_type == o.import_data_type &&
171
+ data_source == o.data_source &&
160
172
  source == o.source
161
173
  std_dev == o.std_dev
162
174
  end
@@ -170,7 +182,7 @@ module AsposeCellsCloud
170
182
  # Calculates hash code according to all attributes.
171
183
  # @return [Fixnum] Hash code
172
184
  def hash
173
- [ first_row , first_column , data , destination_worksheet , is_insert , import_data_type , source ].hash
185
+ [ first_row , first_column , data , destination_worksheet , is_insert , import_data_type , data_source , source ].hash
174
186
  end
175
187
 
176
188
  # Builds the object from hash
@@ -44,6 +44,8 @@ module AsposeCellsCloud
44
44
  #
45
45
  attr_accessor :import_data_type
46
46
  #
47
+ attr_accessor :data_source
48
+ #
47
49
  attr_accessor :source
48
50
 
49
51
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -55,6 +57,7 @@ module AsposeCellsCloud
55
57
  :'destination_worksheet' => :'DestinationWorksheet',
56
58
  :'is_insert' => :'IsInsert',
57
59
  :'import_data_type' => :'ImportDataType',
60
+ :'data_source' => :'DataSource',
58
61
  :'source' => :'Source'
59
62
  }
60
63
  end
@@ -68,6 +71,7 @@ module AsposeCellsCloud
68
71
  :'destination_worksheet' => :'String',
69
72
  :'is_insert' => :'BOOLEAN',
70
73
  :'import_data_type' => :'String',
74
+ :'data_source' => :'DataSource',
71
75
  :'source' => :'FileSource'
72
76
  }
73
77
  end
@@ -98,6 +102,9 @@ module AsposeCellsCloud
98
102
  if attributes.has_key?(:'ImportDataType')
99
103
  self.import_data_type = attributes[:'ImportDataType']
100
104
  end
105
+ if attributes.has_key?(:'DataSource')
106
+ self.data_source = attributes[:'DataSource']
107
+ end
101
108
  if attributes.has_key?(:'Source')
102
109
  self.source = attributes[:'Source']
103
110
  end
@@ -126,6 +133,9 @@ module AsposeCellsCloud
126
133
  if @import_data_type.nil?
127
134
  invalid_properties.push("invalid value for 'import_data_type', import_data_type cannot be nil.")
128
135
  end
136
+ if @data_source.nil?
137
+ invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
138
+ end
129
139
  if @source.nil?
130
140
  invalid_properties.push("invalid value for 'source', source cannot be nil.")
131
141
  end
@@ -142,6 +152,7 @@ module AsposeCellsCloud
142
152
  return false if @destination_worksheet.nil?
143
153
  return false if @is_insert.nil?
144
154
  return false if @import_data_type.nil?
155
+ return false if @data_source.nil?
145
156
  return false if @source.nil?
146
157
  return true
147
158
  end
@@ -157,6 +168,7 @@ module AsposeCellsCloud
157
168
  destination_worksheet == o.destination_worksheet &&
158
169
  is_insert == o.is_insert &&
159
170
  import_data_type == o.import_data_type &&
171
+ data_source == o.data_source &&
160
172
  source == o.source
161
173
  std_dev == o.std_dev
162
174
  end
@@ -170,7 +182,7 @@ module AsposeCellsCloud
170
182
  # Calculates hash code according to all attributes.
171
183
  # @return [Fixnum] Hash code
172
184
  def hash
173
- [ first_row , first_column , data , destination_worksheet , is_insert , import_data_type , source ].hash
185
+ [ first_row , first_column , data , destination_worksheet , is_insert , import_data_type , data_source , source ].hash
174
186
  end
175
187
 
176
188
  # Builds the object from hash
@@ -40,6 +40,8 @@ module AsposeCellsCloud
40
40
  #
41
41
  attr_accessor :import_data_type
42
42
  #
43
+ attr_accessor :data_source
44
+ #
43
45
  attr_accessor :source
44
46
 
45
47
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -49,6 +51,7 @@ module AsposeCellsCloud
49
51
  :'destination_worksheet' => :'DestinationWorksheet',
50
52
  :'is_insert' => :'IsInsert',
51
53
  :'import_data_type' => :'ImportDataType',
54
+ :'data_source' => :'DataSource',
52
55
  :'source' => :'Source'
53
56
  }
54
57
  end
@@ -60,6 +63,7 @@ module AsposeCellsCloud
60
63
  :'destination_worksheet' => :'String',
61
64
  :'is_insert' => :'BOOLEAN',
62
65
  :'import_data_type' => :'String',
66
+ :'data_source' => :'DataSource',
63
67
  :'source' => :'FileSource'
64
68
  }
65
69
  end
@@ -84,6 +88,9 @@ module AsposeCellsCloud
84
88
  if attributes.has_key?(:'ImportDataType')
85
89
  self.import_data_type = attributes[:'ImportDataType']
86
90
  end
91
+ if attributes.has_key?(:'DataSource')
92
+ self.data_source = attributes[:'DataSource']
93
+ end
87
94
  if attributes.has_key?(:'Source')
88
95
  self.source = attributes[:'Source']
89
96
  end
@@ -106,6 +113,9 @@ module AsposeCellsCloud
106
113
  if @import_data_type.nil?
107
114
  invalid_properties.push("invalid value for 'import_data_type', import_data_type cannot be nil.")
108
115
  end
116
+ if @data_source.nil?
117
+ invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
118
+ end
109
119
  if @source.nil?
110
120
  invalid_properties.push("invalid value for 'source', source cannot be nil.")
111
121
  end
@@ -120,6 +130,7 @@ module AsposeCellsCloud
120
130
  return false if @destination_worksheet.nil?
121
131
  return false if @is_insert.nil?
122
132
  return false if @import_data_type.nil?
133
+ return false if @data_source.nil?
123
134
  return false if @source.nil?
124
135
  return true
125
136
  end
@@ -133,6 +144,7 @@ module AsposeCellsCloud
133
144
  destination_worksheet == o.destination_worksheet &&
134
145
  is_insert == o.is_insert &&
135
146
  import_data_type == o.import_data_type &&
147
+ data_source == o.data_source &&
136
148
  source == o.source
137
149
  std_dev == o.std_dev
138
150
  end
@@ -146,7 +158,7 @@ module AsposeCellsCloud
146
158
  # Calculates hash code according to all attributes.
147
159
  # @return [Fixnum] Hash code
148
160
  def hash
149
- [ batch_data , destination_worksheet , is_insert , import_data_type , source ].hash
161
+ [ batch_data , destination_worksheet , is_insert , import_data_type , data_source , source ].hash
150
162
  end
151
163
 
152
164
  # Builds the object from hash
@@ -50,6 +50,8 @@ module AsposeCellsCloud
50
50
  #
51
51
  attr_accessor :import_data_type
52
52
  #
53
+ attr_accessor :data_source
54
+ #
53
55
  attr_accessor :source
54
56
 
55
57
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -64,6 +66,7 @@ module AsposeCellsCloud
64
66
  :'destination_worksheet' => :'DestinationWorksheet',
65
67
  :'is_insert' => :'IsInsert',
66
68
  :'import_data_type' => :'ImportDataType',
69
+ :'data_source' => :'DataSource',
67
70
  :'source' => :'Source'
68
71
  }
69
72
  end
@@ -80,6 +83,7 @@ module AsposeCellsCloud
80
83
  :'destination_worksheet' => :'String',
81
84
  :'is_insert' => :'BOOLEAN',
82
85
  :'import_data_type' => :'String',
86
+ :'data_source' => :'DataSource',
83
87
  :'source' => :'FileSource'
84
88
  }
85
89
  end
@@ -119,6 +123,9 @@ module AsposeCellsCloud
119
123
  if attributes.has_key?(:'ImportDataType')
120
124
  self.import_data_type = attributes[:'ImportDataType']
121
125
  end
126
+ if attributes.has_key?(:'DataSource')
127
+ self.data_source = attributes[:'DataSource']
128
+ end
122
129
  if attributes.has_key?(:'Source')
123
130
  self.source = attributes[:'Source']
124
131
  end
@@ -156,6 +163,9 @@ module AsposeCellsCloud
156
163
  if @import_data_type.nil?
157
164
  invalid_properties.push("invalid value for 'import_data_type', import_data_type cannot be nil.")
158
165
  end
166
+ if @data_source.nil?
167
+ invalid_properties.push("invalid value for 'data_source', data_source cannot be nil.")
168
+ end
159
169
  if @source.nil?
160
170
  invalid_properties.push("invalid value for 'source', source cannot be nil.")
161
171
  end
@@ -175,6 +185,7 @@ module AsposeCellsCloud
175
185
  return false if @destination_worksheet.nil?
176
186
  return false if @is_insert.nil?
177
187
  return false if @import_data_type.nil?
188
+ return false if @data_source.nil?
178
189
  return false if @source.nil?
179
190
  return true
180
191
  end
@@ -193,6 +204,7 @@ module AsposeCellsCloud
193
204
  destination_worksheet == o.destination_worksheet &&
194
205
  is_insert == o.is_insert &&
195
206
  import_data_type == o.import_data_type &&
207
+ data_source == o.data_source &&
196
208
  source == o.source
197
209
  std_dev == o.std_dev
198
210
  end
@@ -206,7 +218,7 @@ module AsposeCellsCloud
206
218
  # Calculates hash code according to all attributes.
207
219
  # @return [Fixnum] Hash code
208
220
  def hash
209
- [ separator_string , convert_numeric_data , first_row , first_column , source_file , custom_parsers , destination_worksheet , is_insert , import_data_type , source ].hash
221
+ [ separator_string , convert_numeric_data , first_row , first_column , source_file , custom_parsers , destination_worksheet , is_insert , import_data_type , data_source , source ].hash
210
222
  end
211
223
 
212
224
  # Builds the object from hash