aspose_cells_cloud 23.8 → 23.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/lib/aspose_cells_cloud/api/cells_api.rb +23 -0
- data/lib/aspose_cells_cloud/models/abstract_calculation_engine.rb +234 -0
- data/lib/aspose_cells_cloud/models/{barcode_response.rb → abstract_calculation_monitor.rb} +33 -45
- data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/calculation_options.rb +40 -4
- data/lib/aspose_cells_cloud/models/{barcode_response_list.rb → chart_globalization_settings.rb} +2 -2
- data/lib/aspose_cells_cloud/models/formula_settings.rb +330 -0
- data/lib/aspose_cells_cloud/models/globalization_settings.rb +258 -0
- data/lib/aspose_cells_cloud/models/list_column.rb +16 -4
- data/lib/aspose_cells_cloud/models/list_object.rb +73 -1
- data/lib/aspose_cells_cloud/models/pivot_globalization_settings.rb +198 -0
- data/lib/aspose_cells_cloud/models/query_table.rb +258 -0
- data/lib/aspose_cells_cloud/models/range_sort_request.rb +222 -0
- data/lib/aspose_cells_cloud/models/workbook_settings.rb +220 -4
- data/lib/aspose_cells_cloud/models/write_protection.rb +246 -0
- data/lib/aspose_cells_cloud/models/xml_data_binding.rb +210 -0
- data/lib/aspose_cells_cloud/models/xml_map.rb +234 -0
- data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_sort_request.rb +138 -0
- data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_insert_slicer_request.rb +159 -0
- data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_remove_duplicates_request.rb +137 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +14 -2
- data/spec/api/list_objects_controller_spec.rb +35 -0
- data/spec/api/ranges_controller_spec.rb +20 -0
- data/spec/one_case_spec.rb +27 -0
- metadata +17 -4
@@ -0,0 +1,138 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="PostWorksheetCellsRangeSort_request.rb.cs">
|
4
|
+
Copyright (c) 2023 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 PostWorksheetCellsRangeSortRequest
|
33
|
+
|
34
|
+
attr_accessor :name
|
35
|
+
attr_accessor :sheet_name
|
36
|
+
attr_accessor :range_operate
|
37
|
+
attr_accessor :folder
|
38
|
+
attr_accessor :storage_name
|
39
|
+
|
40
|
+
def initialize(attributes = {})
|
41
|
+
return unless attributes.is_a?(Hash)
|
42
|
+
|
43
|
+
# convert string to symbol for hash key
|
44
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
45
|
+
|
46
|
+
if attributes.has_key?(:'name')
|
47
|
+
self.name = attributes[:'name']
|
48
|
+
end
|
49
|
+
if attributes.has_key?(:'sheetName')
|
50
|
+
self.sheet_name = attributes[:'sheetName']
|
51
|
+
end
|
52
|
+
if attributes.has_key?(:'rangeOperate')
|
53
|
+
self.range_operate = attributes[:'rangeOperate']
|
54
|
+
end
|
55
|
+
if attributes.has_key?(:'folder')
|
56
|
+
self.folder = attributes[:'folder']
|
57
|
+
end
|
58
|
+
if attributes.has_key?(:'storageName')
|
59
|
+
self.storage_name = attributes[:'storageName']
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
64
|
+
def self.attribute_map
|
65
|
+
{
|
66
|
+
:'name' => :'name',
|
67
|
+
:'sheet_name' => :'sheetName',
|
68
|
+
:'range_operate' => :'rangeOperate',
|
69
|
+
:'folder' => :'folder',
|
70
|
+
:'storage_name' => :'storageName'
|
71
|
+
}
|
72
|
+
end
|
73
|
+
|
74
|
+
# Attribute type mapping.
|
75
|
+
def self.swagger_types
|
76
|
+
{
|
77
|
+
:'name' => :'String',
|
78
|
+
:'sheet_name' => :'String',
|
79
|
+
:'range_operate' => :'RangeSortRequest',
|
80
|
+
:'folder' => :'String',
|
81
|
+
:'storage_name' => :'String'
|
82
|
+
}
|
83
|
+
end
|
84
|
+
|
85
|
+
def create_http_request(api_client,opts = {})
|
86
|
+
if api_client.config.debugging
|
87
|
+
api_client.config.logger.debug "Calling API: CellsApi.post_worksheet_cells_range_sort ..."
|
88
|
+
end
|
89
|
+
api_client.request_token_if_needed
|
90
|
+
# verify the required parameter 'name' is set
|
91
|
+
if api_client.config.client_side_validation && name.nil?
|
92
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.post_worksheet_cells_range_sort "
|
93
|
+
end
|
94
|
+
# verify the required parameter 'sheet_name' is set
|
95
|
+
if api_client.config.client_side_validation && sheet_name.nil?
|
96
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.post_worksheet_cells_range_sort "
|
97
|
+
end
|
98
|
+
# verify the required parameter 'range_operate' is set
|
99
|
+
if api_client.config.client_side_validation && range_operate.nil?
|
100
|
+
fail ArgumentError, "Missing the required parameter 'range_operate' when calling CellsApi.post_worksheet_cells_range_sort "
|
101
|
+
end
|
102
|
+
|
103
|
+
# resource path
|
104
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/ranges/sort".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s)
|
105
|
+
# query parameters
|
106
|
+
query_params = {}
|
107
|
+
query_params[:'folder'] = self.folder if !self.folder.nil?
|
108
|
+
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
109
|
+
|
110
|
+
# header parameters
|
111
|
+
header_params = {}
|
112
|
+
# HTTP header 'Accept' (if needed)
|
113
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
114
|
+
# HTTP header 'Content-Type'
|
115
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
116
|
+
|
117
|
+
# form parameters
|
118
|
+
form_params = {}
|
119
|
+
post_body = nil
|
120
|
+
post_body = api_client.object_to_http_body(range_operate)
|
121
|
+
|
122
|
+
|
123
|
+
#auth_names = []
|
124
|
+
auth_names = ['JWT']
|
125
|
+
data, status_code, headers = api_client.call_api(:POST, local_var_path,
|
126
|
+
:header_params => header_params,
|
127
|
+
:query_params => query_params,
|
128
|
+
:form_params => form_params,
|
129
|
+
:body => post_body,
|
130
|
+
:auth_names => auth_names,
|
131
|
+
:return_type => 'CellsCloudResponse')
|
132
|
+
if api_client.config.debugging
|
133
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.post_worksheet_cells_range_sort\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
134
|
+
end
|
135
|
+
return data, status_code, headers
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
@@ -0,0 +1,159 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="PostWorksheetListObjectInsertSlicer_request.rb.cs">
|
4
|
+
Copyright (c) 2023 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 PostWorksheetListObjectInsertSlicerRequest
|
33
|
+
|
34
|
+
attr_accessor :name
|
35
|
+
attr_accessor :sheet_name
|
36
|
+
attr_accessor :list_object_index
|
37
|
+
attr_accessor :column_index
|
38
|
+
attr_accessor :dest_cell_name
|
39
|
+
attr_accessor :folder
|
40
|
+
attr_accessor :storage_name
|
41
|
+
|
42
|
+
def initialize(attributes = {})
|
43
|
+
return unless attributes.is_a?(Hash)
|
44
|
+
|
45
|
+
# convert string to symbol for hash key
|
46
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
47
|
+
|
48
|
+
if attributes.has_key?(:'name')
|
49
|
+
self.name = attributes[:'name']
|
50
|
+
end
|
51
|
+
if attributes.has_key?(:'sheetName')
|
52
|
+
self.sheet_name = attributes[:'sheetName']
|
53
|
+
end
|
54
|
+
if attributes.has_key?(:'listObjectIndex')
|
55
|
+
self.list_object_index = attributes[:'listObjectIndex']
|
56
|
+
end
|
57
|
+
if attributes.has_key?(:'columnIndex')
|
58
|
+
self.column_index = attributes[:'columnIndex']
|
59
|
+
end
|
60
|
+
if attributes.has_key?(:'destCellName')
|
61
|
+
self.dest_cell_name = attributes[:'destCellName']
|
62
|
+
end
|
63
|
+
if attributes.has_key?(:'folder')
|
64
|
+
self.folder = attributes[:'folder']
|
65
|
+
end
|
66
|
+
if attributes.has_key?(:'storageName')
|
67
|
+
self.storage_name = attributes[:'storageName']
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
72
|
+
def self.attribute_map
|
73
|
+
{
|
74
|
+
:'name' => :'name',
|
75
|
+
:'sheet_name' => :'sheetName',
|
76
|
+
:'list_object_index' => :'listObjectIndex',
|
77
|
+
:'column_index' => :'columnIndex',
|
78
|
+
:'dest_cell_name' => :'destCellName',
|
79
|
+
:'folder' => :'folder',
|
80
|
+
:'storage_name' => :'storageName'
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
84
|
+
# Attribute type mapping.
|
85
|
+
def self.swagger_types
|
86
|
+
{
|
87
|
+
:'name' => :'String',
|
88
|
+
:'sheet_name' => :'String',
|
89
|
+
:'list_object_index' => :'Integer',
|
90
|
+
:'column_index' => :'Integer',
|
91
|
+
:'dest_cell_name' => :'String',
|
92
|
+
:'folder' => :'String',
|
93
|
+
:'storage_name' => :'String'
|
94
|
+
}
|
95
|
+
end
|
96
|
+
|
97
|
+
def create_http_request(api_client,opts = {})
|
98
|
+
if api_client.config.debugging
|
99
|
+
api_client.config.logger.debug "Calling API: CellsApi.post_worksheet_list_object_insert_slicer ..."
|
100
|
+
end
|
101
|
+
api_client.request_token_if_needed
|
102
|
+
# verify the required parameter 'name' is set
|
103
|
+
if api_client.config.client_side_validation && name.nil?
|
104
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.post_worksheet_list_object_insert_slicer "
|
105
|
+
end
|
106
|
+
# verify the required parameter 'sheet_name' is set
|
107
|
+
if api_client.config.client_side_validation && sheet_name.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.post_worksheet_list_object_insert_slicer "
|
109
|
+
end
|
110
|
+
# verify the required parameter 'list_object_index' is set
|
111
|
+
if api_client.config.client_side_validation && list_object_index.nil?
|
112
|
+
fail ArgumentError, "Missing the required parameter 'list_object_index' when calling CellsApi.post_worksheet_list_object_insert_slicer "
|
113
|
+
end
|
114
|
+
# verify the required parameter 'column_index' is set
|
115
|
+
if api_client.config.client_side_validation && column_index.nil?
|
116
|
+
fail ArgumentError, "Missing the required parameter 'column_index' when calling CellsApi.post_worksheet_list_object_insert_slicer "
|
117
|
+
end
|
118
|
+
# verify the required parameter 'dest_cell_name' is set
|
119
|
+
if api_client.config.client_side_validation && dest_cell_name.nil?
|
120
|
+
fail ArgumentError, "Missing the required parameter 'dest_cell_name' when calling CellsApi.post_worksheet_list_object_insert_slicer "
|
121
|
+
end
|
122
|
+
|
123
|
+
# resource path
|
124
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/listobjects/{listObjectIndex}/InsertSlicer".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'listObjectIndex' + '}', list_object_index.to_s)
|
125
|
+
# query parameters
|
126
|
+
query_params = {}
|
127
|
+
query_params[:'columnIndex'] = self.column_index if !self.column_index.nil?
|
128
|
+
query_params[:'destCellName'] = self.dest_cell_name if !self.dest_cell_name.nil?
|
129
|
+
query_params[:'folder'] = self.folder if !self.folder.nil?
|
130
|
+
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
131
|
+
|
132
|
+
# header parameters
|
133
|
+
header_params = {}
|
134
|
+
# HTTP header 'Accept' (if needed)
|
135
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
136
|
+
# HTTP header 'Content-Type'
|
137
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
138
|
+
|
139
|
+
# form parameters
|
140
|
+
form_params = {}
|
141
|
+
post_body = nil
|
142
|
+
|
143
|
+
|
144
|
+
#auth_names = []
|
145
|
+
auth_names = ['JWT']
|
146
|
+
data, status_code, headers = api_client.call_api(:POST, local_var_path,
|
147
|
+
:header_params => header_params,
|
148
|
+
:query_params => query_params,
|
149
|
+
:form_params => form_params,
|
150
|
+
:body => post_body,
|
151
|
+
:auth_names => auth_names,
|
152
|
+
:return_type => 'CellsCloudResponse')
|
153
|
+
if api_client.config.debugging
|
154
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.post_worksheet_list_object_insert_slicer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
155
|
+
end
|
156
|
+
return data, status_code, headers
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
@@ -0,0 +1,137 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="PostWorksheetListObjectRemoveDuplicates_request.rb.cs">
|
4
|
+
Copyright (c) 2023 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 PostWorksheetListObjectRemoveDuplicatesRequest
|
33
|
+
|
34
|
+
attr_accessor :name
|
35
|
+
attr_accessor :sheet_name
|
36
|
+
attr_accessor :list_object_index
|
37
|
+
attr_accessor :folder
|
38
|
+
attr_accessor :storage_name
|
39
|
+
|
40
|
+
def initialize(attributes = {})
|
41
|
+
return unless attributes.is_a?(Hash)
|
42
|
+
|
43
|
+
# convert string to symbol for hash key
|
44
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
45
|
+
|
46
|
+
if attributes.has_key?(:'name')
|
47
|
+
self.name = attributes[:'name']
|
48
|
+
end
|
49
|
+
if attributes.has_key?(:'sheetName')
|
50
|
+
self.sheet_name = attributes[:'sheetName']
|
51
|
+
end
|
52
|
+
if attributes.has_key?(:'listObjectIndex')
|
53
|
+
self.list_object_index = attributes[:'listObjectIndex']
|
54
|
+
end
|
55
|
+
if attributes.has_key?(:'folder')
|
56
|
+
self.folder = attributes[:'folder']
|
57
|
+
end
|
58
|
+
if attributes.has_key?(:'storageName')
|
59
|
+
self.storage_name = attributes[:'storageName']
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
64
|
+
def self.attribute_map
|
65
|
+
{
|
66
|
+
:'name' => :'name',
|
67
|
+
:'sheet_name' => :'sheetName',
|
68
|
+
:'list_object_index' => :'listObjectIndex',
|
69
|
+
:'folder' => :'folder',
|
70
|
+
:'storage_name' => :'storageName'
|
71
|
+
}
|
72
|
+
end
|
73
|
+
|
74
|
+
# Attribute type mapping.
|
75
|
+
def self.swagger_types
|
76
|
+
{
|
77
|
+
:'name' => :'String',
|
78
|
+
:'sheet_name' => :'String',
|
79
|
+
:'list_object_index' => :'Integer',
|
80
|
+
:'folder' => :'String',
|
81
|
+
:'storage_name' => :'String'
|
82
|
+
}
|
83
|
+
end
|
84
|
+
|
85
|
+
def create_http_request(api_client,opts = {})
|
86
|
+
if api_client.config.debugging
|
87
|
+
api_client.config.logger.debug "Calling API: CellsApi.post_worksheet_list_object_remove_duplicates ..."
|
88
|
+
end
|
89
|
+
api_client.request_token_if_needed
|
90
|
+
# verify the required parameter 'name' is set
|
91
|
+
if api_client.config.client_side_validation && name.nil?
|
92
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.post_worksheet_list_object_remove_duplicates "
|
93
|
+
end
|
94
|
+
# verify the required parameter 'sheet_name' is set
|
95
|
+
if api_client.config.client_side_validation && sheet_name.nil?
|
96
|
+
fail ArgumentError, "Missing the required parameter 'sheet_name' when calling CellsApi.post_worksheet_list_object_remove_duplicates "
|
97
|
+
end
|
98
|
+
# verify the required parameter 'list_object_index' is set
|
99
|
+
if api_client.config.client_side_validation && list_object_index.nil?
|
100
|
+
fail ArgumentError, "Missing the required parameter 'list_object_index' when calling CellsApi.post_worksheet_list_object_remove_duplicates "
|
101
|
+
end
|
102
|
+
|
103
|
+
# resource path
|
104
|
+
local_var_path = "/cells/{name}/worksheets/{sheetName}/listobjects/{listObjectIndex}/RemoveDuplicates".sub('{' + 'name' + '}', name.to_s).sub('{' + 'sheetName' + '}', sheet_name.to_s).sub('{' + 'listObjectIndex' + '}', list_object_index.to_s)
|
105
|
+
# query parameters
|
106
|
+
query_params = {}
|
107
|
+
query_params[:'folder'] = self.folder if !self.folder.nil?
|
108
|
+
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
109
|
+
|
110
|
+
# header parameters
|
111
|
+
header_params = {}
|
112
|
+
# HTTP header 'Accept' (if needed)
|
113
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
114
|
+
# HTTP header 'Content-Type'
|
115
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
116
|
+
|
117
|
+
# form parameters
|
118
|
+
form_params = {}
|
119
|
+
post_body = nil
|
120
|
+
|
121
|
+
|
122
|
+
#auth_names = []
|
123
|
+
auth_names = ['JWT']
|
124
|
+
data, status_code, headers = api_client.call_api(:POST, local_var_path,
|
125
|
+
:header_params => header_params,
|
126
|
+
:query_params => query_params,
|
127
|
+
:form_params => form_params,
|
128
|
+
:body => post_body,
|
129
|
+
:auth_names => auth_names,
|
130
|
+
:return_type => 'CellsCloudResponse')
|
131
|
+
if api_client.config.debugging
|
132
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.post_worksheet_list_object_remove_duplicates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
133
|
+
end
|
134
|
+
return data, status_code, headers
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
data/lib/aspose_cells_cloud.rb
CHANGED
@@ -43,6 +43,8 @@ require 'aspose_cells_cloud/models/files_upload_result'
|
|
43
43
|
require 'aspose_cells_cloud/models/storage_file'
|
44
44
|
require 'aspose_cells_cloud/models/google_drive_storage_file'
|
45
45
|
require 'aspose_cells_cloud/models/above_average'
|
46
|
+
require 'aspose_cells_cloud/models/abstract_calculation_engine'
|
47
|
+
require 'aspose_cells_cloud/models/abstract_calculation_monitor'
|
46
48
|
require 'aspose_cells_cloud/models/auto_filter'
|
47
49
|
require 'aspose_cells_cloud/models/auto_fitter_options'
|
48
50
|
require 'aspose_cells_cloud/models/border'
|
@@ -80,6 +82,8 @@ require 'aspose_cells_cloud/models/font'
|
|
80
82
|
require 'aspose_cells_cloud/models/font_setting'
|
81
83
|
require 'aspose_cells_cloud/models/format_condition'
|
82
84
|
require 'aspose_cells_cloud/models/formula_format_condition'
|
85
|
+
require 'aspose_cells_cloud/models/formula_settings'
|
86
|
+
require 'aspose_cells_cloud/models/globalization_settings'
|
83
87
|
require 'aspose_cells_cloud/models/horizontal_page_break'
|
84
88
|
require 'aspose_cells_cloud/models/horizontal_page_breaks'
|
85
89
|
require 'aspose_cells_cloud/models/hyperlink'
|
@@ -102,6 +106,7 @@ require 'aspose_cells_cloud/models/paste_options'
|
|
102
106
|
require 'aspose_cells_cloud/models/pdf_security_options'
|
103
107
|
require 'aspose_cells_cloud/models/protection'
|
104
108
|
require 'aspose_cells_cloud/models/protect_sheet_parameter'
|
109
|
+
require 'aspose_cells_cloud/models/query_table'
|
105
110
|
require 'aspose_cells_cloud/models/range'
|
106
111
|
require 'aspose_cells_cloud/models/ranges'
|
107
112
|
require 'aspose_cells_cloud/models/row'
|
@@ -130,6 +135,9 @@ require 'aspose_cells_cloud/models/workbook'
|
|
130
135
|
require 'aspose_cells_cloud/models/workbook_settings'
|
131
136
|
require 'aspose_cells_cloud/models/worksheet'
|
132
137
|
require 'aspose_cells_cloud/models/worksheets'
|
138
|
+
require 'aspose_cells_cloud/models/write_protection'
|
139
|
+
require 'aspose_cells_cloud/models/xml_data_binding'
|
140
|
+
require 'aspose_cells_cloud/models/xml_map'
|
133
141
|
require 'aspose_cells_cloud/models/cells_object_operate_task_parameter'
|
134
142
|
require 'aspose_cells_cloud/models/convert_task_parameter'
|
135
143
|
require 'aspose_cells_cloud/models/convert_worksheet_task_parameter'
|
@@ -184,8 +192,6 @@ require 'aspose_cells_cloud/models/auto_filter_response'
|
|
184
192
|
require 'aspose_cells_cloud/models/auto_shape_response'
|
185
193
|
require 'aspose_cells_cloud/models/auto_shapes_response'
|
186
194
|
require 'aspose_cells_cloud/models/axis_response'
|
187
|
-
require 'aspose_cells_cloud/models/barcode_response'
|
188
|
-
require 'aspose_cells_cloud/models/barcode_response_list'
|
189
195
|
require 'aspose_cells_cloud/models/border_response'
|
190
196
|
require 'aspose_cells_cloud/models/button_response'
|
191
197
|
require 'aspose_cells_cloud/models/calculate_formula_response'
|
@@ -306,6 +312,7 @@ require 'aspose_cells_cloud/models/protect_workbook_requst'
|
|
306
312
|
require 'aspose_cells_cloud/models/range_copy_request'
|
307
313
|
require 'aspose_cells_cloud/models/range_set_outline_border_request'
|
308
314
|
require 'aspose_cells_cloud/models/range_set_style_request'
|
315
|
+
require 'aspose_cells_cloud/models/range_sort_request'
|
309
316
|
require 'aspose_cells_cloud/models/table_total_request'
|
310
317
|
require 'aspose_cells_cloud/models/text_water_marker_request'
|
311
318
|
require 'aspose_cells_cloud/models/total_request'
|
@@ -320,6 +327,7 @@ require 'aspose_cells_cloud/models/pivot_filter'
|
|
320
327
|
require 'aspose_cells_cloud/models/pivot_item'
|
321
328
|
require 'aspose_cells_cloud/models/pivot_table'
|
322
329
|
require 'aspose_cells_cloud/models/pivot_tables'
|
330
|
+
require 'aspose_cells_cloud/models/pivot_globalization_settings'
|
323
331
|
require 'aspose_cells_cloud/models/custom_parser_config'
|
324
332
|
require 'aspose_cells_cloud/models/import2_dimension_double_array_option'
|
325
333
|
require 'aspose_cells_cloud/models/import2_dimension_int_array_option'
|
@@ -373,6 +381,7 @@ require 'aspose_cells_cloud/models/text_box'
|
|
373
381
|
require 'aspose_cells_cloud/models/texture_fill'
|
374
382
|
require 'aspose_cells_cloud/models/tile_pic_option'
|
375
383
|
require 'aspose_cells_cloud/models/digital_signature'
|
384
|
+
require 'aspose_cells_cloud/models/chart_globalization_settings'
|
376
385
|
require 'aspose_cells_cloud/models/axis'
|
377
386
|
require 'aspose_cells_cloud/models/chart'
|
378
387
|
require 'aspose_cells_cloud/models/chart_area'
|
@@ -550,6 +559,8 @@ require 'aspose_cells_cloud/requests/post_worksheet_list_object_request'
|
|
550
559
|
require 'aspose_cells_cloud/requests/post_worksheet_list_object_convert_to_range_request'
|
551
560
|
require 'aspose_cells_cloud/requests/post_worksheet_list_object_summarize_with_pivot_table_request'
|
552
561
|
require 'aspose_cells_cloud/requests/post_worksheet_list_object_sort_table_request'
|
562
|
+
require 'aspose_cells_cloud/requests/post_worksheet_list_object_remove_duplicates_request'
|
563
|
+
require 'aspose_cells_cloud/requests/post_worksheet_list_object_insert_slicer_request'
|
553
564
|
require 'aspose_cells_cloud/requests/post_worksheet_list_column_request'
|
554
565
|
require 'aspose_cells_cloud/requests/post_worksheet_list_columns_total_request'
|
555
566
|
require 'aspose_cells_cloud/requests/get_worksheet_ole_objects_request'
|
@@ -614,6 +625,7 @@ require 'aspose_cells_cloud/requests/post_worksheet_cells_range_style_request'
|
|
614
625
|
require 'aspose_cells_cloud/requests/get_worksheet_cells_range_value_request'
|
615
626
|
require 'aspose_cells_cloud/requests/post_worksheet_cells_range_value_request'
|
616
627
|
require 'aspose_cells_cloud/requests/post_worksheet_cells_range_move_to_request'
|
628
|
+
require 'aspose_cells_cloud/requests/post_worksheet_cells_range_sort_request'
|
617
629
|
require 'aspose_cells_cloud/requests/post_worksheet_cells_range_outline_border_request'
|
618
630
|
require 'aspose_cells_cloud/requests/post_worksheet_cells_range_column_width_request'
|
619
631
|
require 'aspose_cells_cloud/requests/post_worksheet_cells_range_row_height_request'
|
@@ -225,4 +225,39 @@ describe 'CellsApi' do
|
|
225
225
|
@instance.post_worksheet_list_columns_total(request);
|
226
226
|
end
|
227
227
|
end
|
228
|
+
describe 'post_worksheet_list_object_remove_duplicates test' do
|
229
|
+
it "should work" do
|
230
|
+
remote_folder = 'TestData/In'
|
231
|
+
|
232
|
+
local_name = 'TestTables.xlsx'
|
233
|
+
remote_name = 'TestTables.xlsx'
|
234
|
+
|
235
|
+
|
236
|
+
mapFiles = { }
|
237
|
+
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
238
|
+
|
239
|
+
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
240
|
+
@instance.upload_file(uploadrequest)
|
241
|
+
request = AsposeCellsCloud::PostWorksheetListObjectRemoveDuplicatesRequest.new(:name=>remote_name,:sheetName=>'Sheet2',:listObjectIndex=>0,:folder=>remote_folder,:storageName=>'');
|
242
|
+
@instance.post_worksheet_list_object_remove_duplicates(request);
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
describe 'post_worksheet_list_object_insert_slicer test' do
|
247
|
+
it "should work" do
|
248
|
+
remote_folder = 'TestData/In'
|
249
|
+
|
250
|
+
local_name = 'TestTables.xlsx'
|
251
|
+
remote_name = 'TestTables.xlsx'
|
252
|
+
|
253
|
+
|
254
|
+
mapFiles = { }
|
255
|
+
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
256
|
+
|
257
|
+
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
258
|
+
@instance.upload_file(uploadrequest)
|
259
|
+
request = AsposeCellsCloud::PostWorksheetListObjectInsertSlicerRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:listObjectIndex=>0,:columnIndex=>2,:destCellName=>'j9',:folder=>remote_folder,:storageName=>'');
|
260
|
+
@instance.post_worksheet_list_object_insert_slicer(request);
|
261
|
+
end
|
262
|
+
end
|
228
263
|
end
|
@@ -242,4 +242,24 @@ describe 'CellsApi' do
|
|
242
242
|
@instance.delete_worksheet_cells_range(request);
|
243
243
|
end
|
244
244
|
end
|
245
|
+
describe 'post_worksheet_cells_range_sort test' do
|
246
|
+
it "should work" do
|
247
|
+
remote_folder = 'TestData/In'
|
248
|
+
|
249
|
+
local_name = 'Group.xlsx'
|
250
|
+
remote_name = 'Group.xlsx'
|
251
|
+
|
252
|
+
|
253
|
+
mapFiles = { }
|
254
|
+
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
255
|
+
|
256
|
+
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
257
|
+
@instance.upload_file(uploadrequest)
|
258
|
+
rangeOperateDataSorter = AsposeCellsCloud::DataSorter.new(:CaseSensitive=>true );
|
259
|
+
rangeOperateCellArea = AsposeCellsCloud::Range.new(:ColumnCount=>3 ,:FirstColumn=>0 ,:FirstRow=>0 ,:RowCount=>15 );
|
260
|
+
rangeOperate = AsposeCellsCloud::RangeSortRequest.new(:DataSorter=>rangeOperateDataSorter ,:CellArea=>rangeOperateCellArea );
|
261
|
+
request = AsposeCellsCloud::PostWorksheetCellsRangeSortRequest.new(:name=>remote_name,:sheetName=>'book1',:rangeOperate=>rangeOperate,:folder=>remote_folder,:storageName=>'');
|
262
|
+
@instance.post_worksheet_cells_range_sort(request);
|
263
|
+
end
|
264
|
+
end
|
245
265
|
end
|
@@ -0,0 +1,27 @@
|
|
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
|
+
describe 'post_protect test' do
|
14
|
+
it "should work" do
|
15
|
+
assembly_test_xlsx = 'assemblytest.xlsx'
|
16
|
+
data_source_xlsx = 'datasource.xlsx'
|
17
|
+
|
18
|
+
|
19
|
+
mapFiles = { }
|
20
|
+
mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
|
21
|
+
mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
|
22
|
+
protectWorkbookRequst = AsposeCellsCloud::ProtectWorkbookRequst.new();
|
23
|
+
request = AsposeCellsCloud::PostProtectRequest.new(:File=>mapFiles,:password=>'123456',:protectWorkbookRequst =>protectWorkbookRequst);
|
24
|
+
@instance.post_protect(request);
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|