aspose_cells_cloud 24.5 → 24.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -5
- data/lib/aspose_cells_cloud/api/cells_api.rb +23 -1
- data/lib/aspose_cells_cloud/api_client.rb +5 -4
- data/lib/aspose_cells_cloud/models/abstract_calculation_monitor.rb +3 -3
- data/lib/aspose_cells_cloud/models/add_text_options.rb +306 -0
- data/lib/aspose_cells_cloud/models/applied_operate.rb +210 -0
- data/lib/aspose_cells_cloud/models/{transformation.rb → applied_step.rb} +23 -23
- data/lib/aspose_cells_cloud/models/base_operate_options.rb +210 -0
- data/lib/aspose_cells_cloud/models/{query_table.rb → data_query.rb} +46 -46
- data/lib/aspose_cells_cloud/models/data_transformation_request.rb +26 -14
- data/lib/aspose_cells_cloud/models/load_data.rb +11 -47
- data/lib/aspose_cells_cloud/models/load_to.rb +3 -3
- data/lib/aspose_cells_cloud/models/merge_queries.rb +39 -75
- data/lib/aspose_cells_cloud/models/pivot_column.rb +18 -6
- data/lib/aspose_cells_cloud/models/{query_data_source.rb → scope_item.rb} +21 -33
- data/lib/aspose_cells_cloud/models/scope_options.rb +222 -0
- data/lib/aspose_cells_cloud/models/trim_content_options.rb +318 -0
- data/lib/aspose_cells_cloud/models/unpivot_column.rb +19 -7
- data/lib/aspose_cells_cloud/requests/post_access_token_request.rb +92 -0
- data/lib/aspose_cells_cloud/requests/post_add_text_content_request.rb +103 -0
- data/lib/aspose_cells_cloud/requests/post_trim_content_request.rb +103 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +11 -3
- data/spec/api/data_processing_controller_spec.rb +34 -0
- data/spec/api/text_processing_controller_spec.rb +54 -0
- metadata +14 -5
@@ -0,0 +1,92 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="PostAccessToken_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 PostAccessTokenRequest
|
33
|
+
|
34
|
+
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return unless attributes.is_a?(Hash)
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
40
|
+
|
41
|
+
|
42
|
+
end
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
44
|
+
def self.attribute_map
|
45
|
+
{
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.swagger_types
|
51
|
+
{
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
def create_http_request(api_client,opts = {})
|
56
|
+
if api_client.config.debugging
|
57
|
+
api_client.config.logger.debug "Calling API: CellsApi.post_access_token ..."
|
58
|
+
end
|
59
|
+
api_client.request_token_if_needed
|
60
|
+
|
61
|
+
# resource path
|
62
|
+
local_var_path = "/cells/connect/token"
|
63
|
+
# query parameters
|
64
|
+
query_params = {}
|
65
|
+
# header parameters
|
66
|
+
header_params = {}
|
67
|
+
# HTTP header 'Accept' (if needed)
|
68
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
69
|
+
# HTTP header 'Content-Type'
|
70
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
post_body = nil
|
75
|
+
|
76
|
+
|
77
|
+
#auth_names = []
|
78
|
+
auth_names = ['JWT']
|
79
|
+
data, status_code, headers = api_client.call_api(:POST, local_var_path,
|
80
|
+
:header_params => header_params,
|
81
|
+
:query_params => query_params,
|
82
|
+
:form_params => form_params,
|
83
|
+
:body => post_body,
|
84
|
+
:auth_names => auth_names,
|
85
|
+
:return_type => 'String')
|
86
|
+
if api_client.config.debugging
|
87
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.post_access_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="PostAddTextContent_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 PostAddTextContentRequest
|
33
|
+
|
34
|
+
attr_accessor :add_text_options
|
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?(:'addTextOptions')
|
43
|
+
self.add_text_options = attributes[:'addTextOptions']
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'add_text_options' => :'addTextOptions'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.swagger_types
|
56
|
+
{
|
57
|
+
:'add_text_options' => :'AddTextOptions'
|
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_add_text_content ..."
|
64
|
+
end
|
65
|
+
api_client.request_token_if_needed
|
66
|
+
# verify the required parameter 'add_text_options' is set
|
67
|
+
if api_client.config.client_side_validation && add_text_options.nil?
|
68
|
+
fail ArgumentError, "Missing the required parameter 'add_text_options' when calling CellsApi.post_add_text_content "
|
69
|
+
end
|
70
|
+
|
71
|
+
# resource path
|
72
|
+
local_var_path = "/cells/addtext"
|
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(add_text_options)
|
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_add_text_content\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="PostTrimContent_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 PostTrimContentRequest
|
33
|
+
|
34
|
+
attr_accessor :trim_content_options
|
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?(:'trimContentOptions')
|
43
|
+
self.trim_content_options = attributes[:'trimContentOptions']
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'trim_content_options' => :'trimContentOptions'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.swagger_types
|
56
|
+
{
|
57
|
+
:'trim_content_options' => :'TrimContentOptions'
|
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_trim_content ..."
|
64
|
+
end
|
65
|
+
api_client.request_token_if_needed
|
66
|
+
# verify the required parameter 'trim_content_options' is set
|
67
|
+
if api_client.config.client_side_validation && trim_content_options.nil?
|
68
|
+
fail ArgumentError, "Missing the required parameter 'trim_content_options' when calling CellsApi.post_trim_content "
|
69
|
+
end
|
70
|
+
|
71
|
+
# resource path
|
72
|
+
local_var_path = "/cells/trimcontent"
|
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(trim_content_options)
|
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_trim_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
99
|
+
end
|
100
|
+
return data, status_code, headers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
data/lib/aspose_cells_cloud.rb
CHANGED
@@ -336,19 +336,24 @@ require 'aspose_cells_cloud/models/worksheet_moving_request'
|
|
336
336
|
require 'aspose_cells_cloud/models/image_or_print_options'
|
337
337
|
require 'aspose_cells_cloud/models/rendering_font'
|
338
338
|
require 'aspose_cells_cloud/models/rendering_watermark'
|
339
|
+
require 'aspose_cells_cloud/models/applied_operate'
|
340
|
+
require 'aspose_cells_cloud/models/applied_step'
|
341
|
+
require 'aspose_cells_cloud/models/data_query'
|
339
342
|
require 'aspose_cells_cloud/models/load_data'
|
340
343
|
require 'aspose_cells_cloud/models/load_to'
|
341
344
|
require 'aspose_cells_cloud/models/merge_queries'
|
342
345
|
require 'aspose_cells_cloud/models/pivot_column'
|
343
|
-
require 'aspose_cells_cloud/models/query_data_source'
|
344
|
-
require 'aspose_cells_cloud/models/query_table'
|
345
|
-
require 'aspose_cells_cloud/models/transformation'
|
346
346
|
require 'aspose_cells_cloud/models/unpivot_column'
|
347
347
|
require 'aspose_cells_cloud/models/pivot_field'
|
348
348
|
require 'aspose_cells_cloud/models/pivot_filter'
|
349
349
|
require 'aspose_cells_cloud/models/pivot_item'
|
350
350
|
require 'aspose_cells_cloud/models/pivot_table'
|
351
351
|
require 'aspose_cells_cloud/models/pivot_tables'
|
352
|
+
require 'aspose_cells_cloud/models/add_text_options'
|
353
|
+
require 'aspose_cells_cloud/models/base_operate_options'
|
354
|
+
require 'aspose_cells_cloud/models/scope_item'
|
355
|
+
require 'aspose_cells_cloud/models/scope_options'
|
356
|
+
require 'aspose_cells_cloud/models/trim_content_options'
|
352
357
|
require 'aspose_cells_cloud/models/cell_value'
|
353
358
|
require 'aspose_cells_cloud/models/custom_parser_config'
|
354
359
|
require 'aspose_cells_cloud/models/import2_dimension_double_array_option'
|
@@ -464,6 +469,7 @@ require 'aspose_cells_cloud/requests/post_batch_protect_request'
|
|
464
469
|
require 'aspose_cells_cloud/requests/post_batch_lock_request'
|
465
470
|
require 'aspose_cells_cloud/requests/post_batch_unlock_request'
|
466
471
|
require 'aspose_cells_cloud/requests/post_batch_split_request'
|
472
|
+
require 'aspose_cells_cloud/requests/post_access_token_request'
|
467
473
|
require 'aspose_cells_cloud/requests/post_clear_contents_request'
|
468
474
|
require 'aspose_cells_cloud/requests/post_clear_formats_request'
|
469
475
|
require 'aspose_cells_cloud/requests/post_update_worksheet_range_style_request'
|
@@ -696,6 +702,8 @@ require 'aspose_cells_cloud/requests/delete_worksheet_sparkline_group_request'
|
|
696
702
|
require 'aspose_cells_cloud/requests/put_worksheet_sparkline_group_request'
|
697
703
|
require 'aspose_cells_cloud/requests/post_worksheet_sparkline_group_request'
|
698
704
|
require 'aspose_cells_cloud/requests/post_run_task_request'
|
705
|
+
require 'aspose_cells_cloud/requests/post_add_text_content_request'
|
706
|
+
require 'aspose_cells_cloud/requests/post_trim_content_request'
|
699
707
|
require 'aspose_cells_cloud/requests/get_workbook_default_style_request'
|
700
708
|
require 'aspose_cells_cloud/requests/get_workbook_text_items_request'
|
701
709
|
require 'aspose_cells_cloud/requests/get_workbook_names_request'
|
@@ -70,4 +70,38 @@ describe 'CellsApi' do
|
|
70
70
|
@instance.post_workbook_data_fill(request);
|
71
71
|
end
|
72
72
|
end
|
73
|
+
|
74
|
+
describe 'post_data_transformation test' do
|
75
|
+
it "should work" do
|
76
|
+
remote_folder = 'TestData/In'
|
77
|
+
|
78
|
+
local_name = 'BookTableL2W.xlsx'
|
79
|
+
remote_name = 'BookTableL2W.xlsx'
|
80
|
+
|
81
|
+
|
82
|
+
mapFiles = { }
|
83
|
+
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
84
|
+
|
85
|
+
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
86
|
+
@instance.upload_file(uploadrequest)
|
87
|
+
dataTransformationRequestLoadDataLoadTo = AsposeCellsCloud::LoadTo.new(:beginColumnIndex=>2 ,:beginRowIndex=>3 ,:Worksheet=>'L2W' );
|
88
|
+
dataTransformationRequestLoadDataDataQueryDataItem = AsposeCellsCloud::DataItem.new(:DataItemType=>'Table' ,:Value=>'Table1' );
|
89
|
+
dataTransformationRequestLoadDataDataQueryDataSource = AsposeCellsCloud::DataSource.new(:DataSourceType=>'CloudFileSystem' ,:DataPath=>'BookTableL2W.xlsx' );
|
90
|
+
dataTransformationRequestLoadDataDataQuery = AsposeCellsCloud::DataQuery.new(:Name=>'DataQuery' ,:DataItem=>dataTransformationRequestLoadDataDataQueryDataItem ,:DataSource=>dataTransformationRequestLoadDataDataQueryDataSource ,:DataSourceDataType=>'ListObject' );
|
91
|
+
dataTransformationRequestLoadData = AsposeCellsCloud::LoadData.new(:LoadTo=>dataTransformationRequestLoadDataLoadTo ,:DataQuery=>dataTransformationRequestLoadDataDataQuery );
|
92
|
+
dataTransformationRequestAppliedStepsAppliedStep0AppliedOperateUnpivotColumnNames = [
|
93
|
+
'2017',
|
94
|
+
'2018',
|
95
|
+
'2019'
|
96
|
+
];
|
97
|
+
dataTransformationRequestAppliedStepsAppliedStep0AppliedOperate = AsposeCellsCloud::UnpivotColumn.new(:AppliedOperateType=>'UnpivotColumn' ,:ValueMapName=>'Count' ,:ColumnMapName=>'Date' ,:UnpivotColumnNames=>dataTransformationRequestAppliedStepsAppliedStep0AppliedOperateUnpivotColumnNames );
|
98
|
+
dataTransformationRequestAppliedStepsAppliedStep0 = AsposeCellsCloud::AppliedStep.new(:StepName=>'UnpivotColumn' ,:AppliedOperate=>dataTransformationRequestAppliedStepsAppliedStep0AppliedOperate );
|
99
|
+
dataTransformationRequestAppliedSteps = [
|
100
|
+
dataTransformationRequestAppliedStepsAppliedStep0
|
101
|
+
];
|
102
|
+
dataTransformationRequest = AsposeCellsCloud::DataTransformationRequest.new(:LoadData=>dataTransformationRequestLoadData ,:AppliedSteps=>dataTransformationRequestAppliedSteps );
|
103
|
+
request = AsposeCellsCloud::PostDataTransformationRequest.new(:dataTransformationRequest=>dataTransformationRequest);
|
104
|
+
@instance.post_data_transformation(request);
|
105
|
+
end
|
106
|
+
end
|
73
107
|
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
describe 'CellsApi' do
|
5
|
+
before do
|
6
|
+
@instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
7
|
+
$VERBOSE = nil
|
8
|
+
end
|
9
|
+
|
10
|
+
after do
|
11
|
+
# run after each test
|
12
|
+
end
|
13
|
+
|
14
|
+
describe 'post_add_text_content test' do
|
15
|
+
it "should work" do
|
16
|
+
remote_folder = 'TestData/In'
|
17
|
+
|
18
|
+
local_name = 'BookText.xlsx'
|
19
|
+
remote_name = 'BookText.xlsx'
|
20
|
+
|
21
|
+
|
22
|
+
mapFiles = { }
|
23
|
+
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
24
|
+
|
25
|
+
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
26
|
+
@instance.upload_file(uploadrequest)
|
27
|
+
addTextOptionsDataSource = AsposeCellsCloud::DataSource.new(:DataSourceType=>'CloudFileSystem' ,:DataPath=>'BookText.xlsx' );
|
28
|
+
addTextOptions = AsposeCellsCloud::AddTextOptions.new(:DataSource=>addTextOptionsDataSource ,:Text=>'Aspose.Cells Cloud is an excellent product.' ,:Worksheet=>'202401' ,:SelectPoistion=>'AtTheBeginning' ,:SkipEmptyCells=>true );
|
29
|
+
request = AsposeCellsCloud::PostAddTextContentRequest.new(:addTextOptions=>addTextOptions);
|
30
|
+
@instance.post_add_text_content(request);
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'post_trim_content test' do
|
35
|
+
it "should work" do
|
36
|
+
remote_folder = 'TestData/In'
|
37
|
+
|
38
|
+
local_name = 'BookText.xlsx'
|
39
|
+
remote_name = 'BookText.xlsx'
|
40
|
+
|
41
|
+
|
42
|
+
mapFiles = { }
|
43
|
+
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
44
|
+
|
45
|
+
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
46
|
+
@instance.upload_file(uploadrequest)
|
47
|
+
trimContentOptionsDataSource = AsposeCellsCloud::DataSource.new(:DataSourceType=>'CloudFileSystem' ,:DataPath=>'BookText.xlsx' );
|
48
|
+
trimContentOptionsScopeOptions = AsposeCellsCloud::ScopeOptions.new(:Scope=>'EntireWorkbook' );
|
49
|
+
trimContentOptions = AsposeCellsCloud::TrimContentOptions.new(:DataSource=>trimContentOptionsDataSource ,:TrimLeading=>true ,:TrimTrailing=>true ,:TrimSpaceBetweenWordTo1=>true ,:RemoveAllLineBreaks=>true ,:ScopeOptions=>trimContentOptionsScopeOptions );
|
50
|
+
request = AsposeCellsCloud::PostTrimContentRequest.new(:trimContentOptions=>trimContentOptions);
|
51
|
+
@instance.post_trim_content(request);
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_cells_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '24.
|
4
|
+
version: '24.8'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aspose Cells Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -241,10 +241,13 @@ files:
|
|
241
241
|
- lib/aspose_cells_cloud/models/above_average.rb
|
242
242
|
- lib/aspose_cells_cloud/models/abstract_calculation_engine.rb
|
243
243
|
- lib/aspose_cells_cloud/models/abstract_calculation_monitor.rb
|
244
|
+
- lib/aspose_cells_cloud/models/add_text_options.rb
|
244
245
|
- lib/aspose_cells_cloud/models/analyze_excel_request.rb
|
245
246
|
- lib/aspose_cells_cloud/models/analyzed_column_description.rb
|
246
247
|
- lib/aspose_cells_cloud/models/analyzed_result.rb
|
247
248
|
- lib/aspose_cells_cloud/models/analyzed_table_description.rb
|
249
|
+
- lib/aspose_cells_cloud/models/applied_operate.rb
|
250
|
+
- lib/aspose_cells_cloud/models/applied_step.rb
|
248
251
|
- lib/aspose_cells_cloud/models/arc_shape.rb
|
249
252
|
- lib/aspose_cells_cloud/models/arc_shape_response.rb
|
250
253
|
- lib/aspose_cells_cloud/models/area.rb
|
@@ -257,6 +260,7 @@ files:
|
|
257
260
|
- lib/aspose_cells_cloud/models/auto_shapes_response.rb
|
258
261
|
- lib/aspose_cells_cloud/models/axis.rb
|
259
262
|
- lib/aspose_cells_cloud/models/axis_response.rb
|
263
|
+
- lib/aspose_cells_cloud/models/base_operate_options.rb
|
260
264
|
- lib/aspose_cells_cloud/models/batch_convert_request.rb
|
261
265
|
- lib/aspose_cells_cloud/models/batch_lock_request.rb
|
262
266
|
- lib/aspose_cells_cloud/models/batch_protect_request.rb
|
@@ -344,6 +348,7 @@ files:
|
|
344
348
|
- lib/aspose_cells_cloud/models/data_item.rb
|
345
349
|
- lib/aspose_cells_cloud/models/data_labels.rb
|
346
350
|
- lib/aspose_cells_cloud/models/data_labels_response.rb
|
351
|
+
- lib/aspose_cells_cloud/models/data_query.rb
|
347
352
|
- lib/aspose_cells_cloud/models/data_sorter.rb
|
348
353
|
- lib/aspose_cells_cloud/models/data_sorter_key.rb
|
349
354
|
- lib/aspose_cells_cloud/models/data_source.rb
|
@@ -516,8 +521,6 @@ files:
|
|
516
521
|
- lib/aspose_cells_cloud/models/protect_sheet_parameter.rb
|
517
522
|
- lib/aspose_cells_cloud/models/protect_workbook_request.rb
|
518
523
|
- lib/aspose_cells_cloud/models/protection.rb
|
519
|
-
- lib/aspose_cells_cloud/models/query_data_source.rb
|
520
|
-
- lib/aspose_cells_cloud/models/query_table.rb
|
521
524
|
- lib/aspose_cells_cloud/models/radio_button.rb
|
522
525
|
- lib/aspose_cells_cloud/models/radio_button_response.rb
|
523
526
|
- lib/aspose_cells_cloud/models/range.rb
|
@@ -544,6 +547,8 @@ files:
|
|
544
547
|
- lib/aspose_cells_cloud/models/save_response.rb
|
545
548
|
- lib/aspose_cells_cloud/models/save_result.rb
|
546
549
|
- lib/aspose_cells_cloud/models/save_result_task_parameter.rb
|
550
|
+
- lib/aspose_cells_cloud/models/scope_item.rb
|
551
|
+
- lib/aspose_cells_cloud/models/scope_options.rb
|
547
552
|
- lib/aspose_cells_cloud/models/scroll_bar.rb
|
548
553
|
- lib/aspose_cells_cloud/models/scroll_bar_response.rb
|
549
554
|
- lib/aspose_cells_cloud/models/series.rb
|
@@ -606,11 +611,11 @@ files:
|
|
606
611
|
- lib/aspose_cells_cloud/models/title_response.rb
|
607
612
|
- lib/aspose_cells_cloud/models/top10.rb
|
608
613
|
- lib/aspose_cells_cloud/models/top10_filter.rb
|
609
|
-
- lib/aspose_cells_cloud/models/transformation.rb
|
610
614
|
- lib/aspose_cells_cloud/models/trendline.rb
|
611
615
|
- lib/aspose_cells_cloud/models/trendline_response.rb
|
612
616
|
- lib/aspose_cells_cloud/models/trendlines.rb
|
613
617
|
- lib/aspose_cells_cloud/models/trendlines_response.rb
|
618
|
+
- lib/aspose_cells_cloud/models/trim_content_options.rb
|
614
619
|
- lib/aspose_cells_cloud/models/txt_save_options.rb
|
615
620
|
- lib/aspose_cells_cloud/models/unpivot_column.rb
|
616
621
|
- lib/aspose_cells_cloud/models/validation.rb
|
@@ -788,6 +793,8 @@ files:
|
|
788
793
|
- lib/aspose_cells_cloud/requests/move_file_request.rb
|
789
794
|
- lib/aspose_cells_cloud/requests/move_folder_request.rb
|
790
795
|
- lib/aspose_cells_cloud/requests/object_exists_request.rb
|
796
|
+
- lib/aspose_cells_cloud/requests/post_access_token_request.rb
|
797
|
+
- lib/aspose_cells_cloud/requests/post_add_text_content_request.rb
|
791
798
|
- lib/aspose_cells_cloud/requests/post_analyze_excel_request.rb
|
792
799
|
- lib/aspose_cells_cloud/requests/post_assemble_request.rb
|
793
800
|
- lib/aspose_cells_cloud/requests/post_autofit_workbook_columns_request.rb
|
@@ -868,6 +875,7 @@ files:
|
|
868
875
|
- lib/aspose_cells_cloud/requests/post_set_cell_range_value_request.rb
|
869
876
|
- lib/aspose_cells_cloud/requests/post_set_worksheet_column_width_request.rb
|
870
877
|
- lib/aspose_cells_cloud/requests/post_split_request.rb
|
878
|
+
- lib/aspose_cells_cloud/requests/post_trim_content_request.rb
|
871
879
|
- lib/aspose_cells_cloud/requests/post_ungroup_worksheet_columns_request.rb
|
872
880
|
- lib/aspose_cells_cloud/requests/post_ungroup_worksheet_rows_request.rb
|
873
881
|
- lib/aspose_cells_cloud/requests/post_unhide_worksheet_columns_request.rb
|
@@ -1006,6 +1014,7 @@ files:
|
|
1006
1014
|
- spec/api/shapes_controller_spec.rb
|
1007
1015
|
- spec/api/sparkline_groups_controller_spec.rb
|
1008
1016
|
- spec/api/storage_controller_spec.rb
|
1017
|
+
- spec/api/text_processing_controller_spec.rb
|
1009
1018
|
- spec/api/workbook_controller_spec.rb
|
1010
1019
|
- spec/api/worksheet_controller_spec.rb
|
1011
1020
|
- spec/api/worksheet_validations_controller_spec.rb
|