aspose_cells_cloud 24.3 → 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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -6
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +8 -0
  4. data/lib/aspose_cells_cloud/models/cells_object_operate_task_parameter.rb +13 -1
  5. data/lib/aspose_cells_cloud/models/convert_task_parameter.rb +13 -1
  6. data/lib/aspose_cells_cloud/models/convert_worksheet_task_parameter.rb +25 -1
  7. data/lib/aspose_cells_cloud/models/data_item.rb +222 -0
  8. data/lib/aspose_cells_cloud/models/data_source.rb +222 -0
  9. data/lib/aspose_cells_cloud/models/data_transformation_request.rb +258 -0
  10. data/lib/aspose_cells_cloud/models/import2_dimension_double_array_option.rb +13 -1
  11. data/lib/aspose_cells_cloud/models/import2_dimension_int_array_option.rb +13 -1
  12. data/lib/aspose_cells_cloud/models/import2_dimension_string_array_option.rb +13 -1
  13. data/lib/aspose_cells_cloud/models/import_batch_data_option.rb +13 -1
  14. data/lib/aspose_cells_cloud/models/import_csv_data_option.rb +13 -1
  15. data/lib/aspose_cells_cloud/models/import_data_task_parameter.rb +25 -1
  16. data/lib/aspose_cells_cloud/models/import_double_array_option.rb +13 -1
  17. data/lib/aspose_cells_cloud/models/import_int_array_option.rb +13 -1
  18. data/lib/aspose_cells_cloud/models/import_json_request.rb +1 -1
  19. data/lib/aspose_cells_cloud/models/import_option.rb +13 -1
  20. data/lib/aspose_cells_cloud/models/import_picture_option.rb +13 -1
  21. data/lib/aspose_cells_cloud/models/import_string_array_option.rb +13 -1
  22. data/lib/aspose_cells_cloud/models/import_xml_request.rb +1 -1
  23. data/lib/aspose_cells_cloud/models/load_data.rb +246 -0
  24. data/lib/aspose_cells_cloud/models/load_to.rb +234 -0
  25. data/lib/aspose_cells_cloud/models/operate_object_position.rb +13 -1
  26. data/lib/aspose_cells_cloud/models/pivot_column.rb +222 -0
  27. data/lib/aspose_cells_cloud/models/pptx_save_options.rb +3 -3
  28. data/lib/aspose_cells_cloud/models/query_data_source.rb +234 -0
  29. data/lib/aspose_cells_cloud/models/save_files_to_cloud_result.rb +1 -1
  30. data/lib/aspose_cells_cloud/models/smart_marker_task_parameter.rb +40 -4
  31. data/lib/aspose_cells_cloud/models/split_workbook_task_parameter.rb +25 -1
  32. data/lib/aspose_cells_cloud/models/task_run_result.rb +1 -1
  33. data/lib/aspose_cells_cloud/models/transformation.rb +222 -0
  34. data/lib/aspose_cells_cloud/models/unpivot_column.rb +234 -0
  35. data/lib/aspose_cells_cloud/requests/post_data_transformation_request.rb +103 -0
  36. data/lib/aspose_cells_cloud/version.rb +1 -1
  37. data/lib/aspose_cells_cloud.rb +12 -2
  38. data/spec/api/xml_controller_spec.rb +1 -1
  39. metadata +25 -10
@@ -0,0 +1,222 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="Transformationrb.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 Transformation
34
+ #long table to a wide table.
35
+ attr_accessor :pivot_column
36
+ #wide table to a long table
37
+ attr_accessor :unpivot_column
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'pivot_column' => :'PivotColumn',
43
+ :'unpivot_column' => :'UnpivotColumn'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.swagger_types
49
+ {
50
+ :'pivot_column' => :'PivotColumn',
51
+ :'unpivot_column' => :'UnpivotColumn'
52
+ }
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ return unless attributes.is_a?(Hash)
59
+
60
+ # convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
62
+
63
+ if attributes.has_key?(:'PivotColumn')
64
+ self.pivot_column = attributes[:'PivotColumn']
65
+ end
66
+ if attributes.has_key?(:'UnpivotColumn')
67
+ self.unpivot_column = attributes[:'UnpivotColumn']
68
+ end
69
+
70
+ end
71
+
72
+ # Show invalid properties with the reasons. Usually used together with valid?
73
+ # @return Array for valid properies with the reasons
74
+ def list_invalid_properties
75
+ invalid_properties = Array.new
76
+ if @pivot_column.nil?
77
+ invalid_properties.push("invalid value for 'pivot_column', pivot_column cannot be nil.")
78
+ end
79
+ if @unpivot_column.nil?
80
+ invalid_properties.push("invalid value for 'unpivot_column', unpivot_column cannot be nil.")
81
+ end
82
+
83
+ return invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ return false if @pivot_column.nil?
90
+ return false if @unpivot_column.nil?
91
+ return true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ pivot_column == o.pivot_column &&
100
+ unpivot_column == o.unpivot_column
101
+ std_dev == o.std_dev
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Fixnum] Hash code
112
+ def hash
113
+ [ pivot_column , unpivot_column ].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.swagger_types.each_pair do |key, type|
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
131
+ end
132
+
133
+ self
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def _deserialize(type, value)
141
+ case type.to_sym
142
+ when :DateTime
143
+ DateTime.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :BOOLEAN
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ temp_model = AsposeCellsCloud.const_get(type).new
174
+ temp_model.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ next if value.nil?
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map{ |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ end
221
+
222
+ end
@@ -0,0 +1,234 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="UnpivotColumnrb.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 UnpivotColumn
34
+ #
35
+ attr_accessor :unpivot_column_names
36
+ #
37
+ attr_accessor :column_map_name
38
+ #
39
+ attr_accessor :value_map_name
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'unpivot_column_names' => :'UnpivotColumnNames',
45
+ :'column_map_name' => :'ColumnMapName',
46
+ :'value_map_name' => :'ValueMapName'
47
+ }
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ {
53
+ :'unpivot_column_names' => :'Array<String>',
54
+ :'column_map_name' => :'String',
55
+ :'value_map_name' => :'String'
56
+ }
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ return unless attributes.is_a?(Hash)
63
+
64
+ # convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
66
+
67
+ if attributes.has_key?(:'UnpivotColumnNames')
68
+ self.unpivot_column_names = attributes[:'UnpivotColumnNames']
69
+ end
70
+ if attributes.has_key?(:'ColumnMapName')
71
+ self.column_map_name = attributes[:'ColumnMapName']
72
+ end
73
+ if attributes.has_key?(:'ValueMapName')
74
+ self.value_map_name = attributes[:'ValueMapName']
75
+ end
76
+
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properies with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ if @unpivot_column_names.nil?
84
+ invalid_properties.push("invalid value for 'unpivot_column_names', unpivot_column_names cannot be nil.")
85
+ end
86
+ if @column_map_name.nil?
87
+ invalid_properties.push("invalid value for 'column_map_name', column_map_name cannot be nil.")
88
+ end
89
+ if @value_map_name.nil?
90
+ invalid_properties.push("invalid value for 'value_map_name', value_map_name cannot be nil.")
91
+ end
92
+
93
+ return invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @unpivot_column_names.nil?
100
+ return false if @column_map_name.nil?
101
+ return false if @value_map_name.nil?
102
+ return true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ unpivot_column_names == o.unpivot_column_names &&
111
+ column_map_name == o.column_map_name &&
112
+ value_map_name == o.value_map_name
113
+ std_dev == o.std_dev
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Fixnum] Hash code
124
+ def hash
125
+ [ unpivot_column_names , column_map_name , value_map_name ].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ self.class.swagger_types.each_pair do |key, type|
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :DateTime
155
+ DateTime.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :BOOLEAN
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ temp_model = AsposeCellsCloud.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map{ |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -0,0 +1,103 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostDataTransformation_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 PostDataTransformationRequest
33
+
34
+ attr_accessor :data_transformation_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?(:'dataTransformationRequest')
43
+ self.data_transformation_request = attributes[:'dataTransformationRequest']
44
+ end
45
+
46
+ end
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'data_transformation_request' => :'dataTransformationRequest'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.swagger_types
56
+ {
57
+ :'data_transformation_request' => :'DataTransformationRequest'
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_transformation ..."
64
+ end
65
+ api_client.request_token_if_needed
66
+ # verify the required parameter 'data_transformation_request' is set
67
+ if api_client.config.client_side_validation && data_transformation_request.nil?
68
+ fail ArgumentError, "Missing the required parameter 'data_transformation_request' when calling CellsApi.post_data_transformation "
69
+ end
70
+
71
+ # resource path
72
+ local_var_path = "/cells/datatransformation"
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_transformation_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_transformation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
+ end
100
+ return data, status_code, headers
101
+ end
102
+ end
103
+ end
@@ -27,5 +27,5 @@
27
27
 
28
28
 
29
29
  module AsposeCellsCloud
30
- VERSION = "24.3"
30
+ VERSION = "24.4"
31
31
  end
@@ -76,12 +76,15 @@ require 'aspose_cells_cloud/models/data_cleansing'
76
76
  require 'aspose_cells_cloud/models/data_column_fill_value'
77
77
  require 'aspose_cells_cloud/models/data_fill'
78
78
  require 'aspose_cells_cloud/models/data_fill_value'
79
+ require 'aspose_cells_cloud/models/data_item'
79
80
  require 'aspose_cells_cloud/models/data_sorter'
80
81
  require 'aspose_cells_cloud/models/data_sorter_key'
82
+ require 'aspose_cells_cloud/models/data_source'
81
83
  require 'aspose_cells_cloud/models/date_time_group_item'
82
84
  require 'aspose_cells_cloud/models/deduplication_region'
83
85
  require 'aspose_cells_cloud/models/dynamic_filter'
84
86
  require 'aspose_cells_cloud/models/file_info'
87
+ require 'aspose_cells_cloud/models/file_source'
85
88
  require 'aspose_cells_cloud/models/files_result'
86
89
  require 'aspose_cells_cloud/models/filter_column'
87
90
  require 'aspose_cells_cloud/models/font'
@@ -112,7 +115,6 @@ require 'aspose_cells_cloud/models/paste_options'
112
115
  require 'aspose_cells_cloud/models/pdf_security_options'
113
116
  require 'aspose_cells_cloud/models/protection'
114
117
  require 'aspose_cells_cloud/models/protect_sheet_parameter'
115
- require 'aspose_cells_cloud/models/query_table'
116
118
  require 'aspose_cells_cloud/models/range'
117
119
  require 'aspose_cells_cloud/models/ranges'
118
120
  require 'aspose_cells_cloud/models/row'
@@ -148,7 +150,6 @@ require 'aspose_cells_cloud/models/xml_map'
148
150
  require 'aspose_cells_cloud/models/cells_object_operate_task_parameter'
149
151
  require 'aspose_cells_cloud/models/convert_task_parameter'
150
152
  require 'aspose_cells_cloud/models/convert_worksheet_task_parameter'
151
- require 'aspose_cells_cloud/models/file_source'
152
153
  require 'aspose_cells_cloud/models/import_data_task_parameter'
153
154
  require 'aspose_cells_cloud/models/result_destination'
154
155
  require 'aspose_cells_cloud/models/save_files_to_cloud_result'
@@ -317,6 +318,7 @@ require 'aspose_cells_cloud/models/create_pivot_table_request'
317
318
  require 'aspose_cells_cloud/models/data_cleansing_request'
318
319
  require 'aspose_cells_cloud/models/data_deduplication_request'
319
320
  require 'aspose_cells_cloud/models/data_fill_request'
321
+ require 'aspose_cells_cloud/models/data_transformation_request'
320
322
  require 'aspose_cells_cloud/models/delete_incomplete_rows_request'
321
323
  require 'aspose_cells_cloud/models/import_json_request'
322
324
  require 'aspose_cells_cloud/models/import_xml_request'
@@ -336,6 +338,13 @@ require 'aspose_cells_cloud/models/worksheet_moving_request'
336
338
  require 'aspose_cells_cloud/models/image_or_print_options'
337
339
  require 'aspose_cells_cloud/models/rendering_font'
338
340
  require 'aspose_cells_cloud/models/rendering_watermark'
341
+ require 'aspose_cells_cloud/models/load_data'
342
+ require 'aspose_cells_cloud/models/load_to'
343
+ require 'aspose_cells_cloud/models/pivot_column'
344
+ require 'aspose_cells_cloud/models/query_data_source'
345
+ require 'aspose_cells_cloud/models/query_table'
346
+ require 'aspose_cells_cloud/models/transformation'
347
+ require 'aspose_cells_cloud/models/unpivot_column'
339
348
  require 'aspose_cells_cloud/models/pivot_field'
340
349
  require 'aspose_cells_cloud/models/pivot_filter'
341
350
  require 'aspose_cells_cloud/models/pivot_item'
@@ -559,6 +568,7 @@ require 'aspose_cells_cloud/requests/post_data_deduplication_request'
559
568
  require 'aspose_cells_cloud/requests/post_workbook_data_fill_request'
560
569
  require 'aspose_cells_cloud/requests/post_data_fill_request'
561
570
  require 'aspose_cells_cloud/requests/post_delete_incomplete_rows_request'
571
+ require 'aspose_cells_cloud/requests/post_data_transformation_request'
562
572
  require 'aspose_cells_cloud/requests/get_worksheet_hyperlinks_request'
563
573
  require 'aspose_cells_cloud/requests/get_worksheet_hyperlink_request'
564
574
  require 'aspose_cells_cloud/requests/delete_worksheet_hyperlink_request'
@@ -44,7 +44,7 @@ describe 'CellsApi' do
44
44
 
45
45
  uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
46
46
  @instance.upload_file(uploadrequest)
47
- importXMLRequestXMLFileSource = AsposeCellsCloud::FileSource.new(:FileSourceType=>'CloudFileSystem' ,:FilePath=>remote_folder + '/data.xml' );
47
+ importXMLRequestXMLFileSource = AsposeCellsCloud::DataSource.new(:DataSourceType=>'CloudFileSystem' ,:DataPath=>remote_folder + '/data.xml' );
48
48
  importXMLRequestImportPosition = AsposeCellsCloud::ImportPosition.new(:SheetName=>'Sheet1' ,:RowIndex=>3 ,:ColumnIndex=>4 );
49
49
  importXMLRequest = AsposeCellsCloud::ImportXMLRequest.new(:XMLFileSource=>importXMLRequestXMLFileSource ,:ImportPosition=>importXMLRequestImportPosition );
50
50
  request = AsposeCellsCloud::PostWorkbookImportXMLRequest.new(:name=>remote_name,:importXMLRequest=>importXMLRequest,:folder=>remote_folder,:storageName=>'');