aspose_cells_cloud 23.7 → 23.9

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -4
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +23 -0
  4. data/lib/aspose_cells_cloud/models/abstract_calculation_engine.rb +234 -0
  5. data/lib/aspose_cells_cloud/models/abstract_calculation_monitor.rb +234 -0
  6. data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +64 -4
  7. data/lib/aspose_cells_cloud/models/calculation_options.rb +40 -4
  8. data/lib/aspose_cells_cloud/models/{barcode_response_list.rb → chart_globalization_settings.rb} +2 -2
  9. data/lib/aspose_cells_cloud/models/digital_signature.rb +294 -0
  10. data/lib/aspose_cells_cloud/models/formula_settings.rb +330 -0
  11. data/lib/aspose_cells_cloud/models/globalization_settings.rb +258 -0
  12. data/lib/aspose_cells_cloud/models/html_save_options.rb +61 -1
  13. data/lib/aspose_cells_cloud/models/image_or_print_options.rb +498 -0
  14. data/lib/aspose_cells_cloud/models/list_column.rb +16 -4
  15. data/lib/aspose_cells_cloud/models/list_object.rb +73 -1
  16. data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +49 -1
  17. data/lib/aspose_cells_cloud/models/pdf_save_options.rb +109 -1
  18. data/lib/aspose_cells_cloud/models/pivot_globalization_settings.rb +198 -0
  19. data/lib/aspose_cells_cloud/models/protect_workbook_requst.rb +270 -0
  20. data/lib/aspose_cells_cloud/models/protection.rb +402 -0
  21. data/lib/aspose_cells_cloud/models/query_table.rb +258 -0
  22. data/lib/aspose_cells_cloud/models/range_sort_request.rb +222 -0
  23. data/lib/aspose_cells_cloud/models/{barcode_response.rb → rendering_font.rb} +55 -43
  24. data/lib/aspose_cells_cloud/models/rendering_watermark.rb +330 -0
  25. data/lib/aspose_cells_cloud/models/workbook_settings.rb +220 -4
  26. data/lib/aspose_cells_cloud/models/write_protection.rb +246 -0
  27. data/lib/aspose_cells_cloud/models/xml_data_binding.rb +210 -0
  28. data/lib/aspose_cells_cloud/models/xml_map.rb +234 -0
  29. data/lib/aspose_cells_cloud/requests/post_lock_request.rb +120 -0
  30. data/lib/aspose_cells_cloud/requests/post_protect_request.rb +13 -8
  31. data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_sort_request.rb +138 -0
  32. data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_insert_slicer_request.rb +159 -0
  33. data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_remove_duplicates_request.rb +137 -0
  34. data/lib/aspose_cells_cloud/version.rb +1 -1
  35. data/lib/aspose_cells_cloud.rb +21 -2
  36. data/spec/api/list_objects_controller_spec.rb +35 -0
  37. data/spec/api/ranges_controller_spec.rb +20 -0
  38. data/spec/document/light_cells_spec.rb +2 -1
  39. data/spec/one_case_spec.rb +27 -0
  40. data/spec/onecase_spec.rb +28 -0
  41. metadata +29 -8
@@ -0,0 +1,120 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostLock_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 PostLockRequest
33
+
34
+ attr_accessor :file
35
+ attr_accessor :password
36
+
37
+ def initialize(attributes = {})
38
+ return unless attributes.is_a?(Hash)
39
+
40
+ # convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
42
+
43
+ if attributes.has_key?(:'File')
44
+ self.file = attributes[:'File']
45
+ end
46
+ if attributes.has_key?(:'password')
47
+ self.password = attributes[:'password']
48
+ end
49
+
50
+ end
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'file' => :'File',
55
+ :'password' => :'password'
56
+ }
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.swagger_types
61
+ {
62
+ :'file' => :'Hash',
63
+ :'password' => :'String'
64
+ }
65
+ end
66
+
67
+ def create_http_request(api_client,opts = {})
68
+ if api_client.config.debugging
69
+ api_client.config.logger.debug "Calling API: CellsApi.post_lock ..."
70
+ end
71
+ api_client.request_token_if_needed
72
+ # verify the required parameter 'file' is set
73
+ if api_client.config.client_side_validation && file.nil?
74
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_lock "
75
+ end
76
+ # verify the required parameter 'password' is set
77
+ if api_client.config.client_side_validation && password.nil?
78
+ fail ArgumentError, "Missing the required parameter 'password' when calling CellsApi.post_lock "
79
+ end
80
+
81
+ # resource path
82
+ local_var_path = "/cells/lock"
83
+ # query parameters
84
+ query_params = {}
85
+ query_params[:'password'] = self.password if !self.password.nil?
86
+
87
+ # header parameters
88
+ header_params = {}
89
+ # HTTP header 'Accept' (if needed)
90
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
91
+ # HTTP header 'Content-Type'
92
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
93
+
94
+ # form parameters
95
+ form_params = {}
96
+ post_body = nil
97
+ if(!file.nil?)
98
+ file.each do |filename , context|
99
+ form_params[filename] = context
100
+ end
101
+ end
102
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
103
+
104
+
105
+ #auth_names = []
106
+ auth_names = ['JWT']
107
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
108
+ :header_params => header_params,
109
+ :query_params => query_params,
110
+ :form_params => form_params,
111
+ :body => post_body,
112
+ :auth_names => auth_names,
113
+ :return_type => 'FilesResult')
114
+ if api_client.config.debugging
115
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_lock\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
116
+ end
117
+ return data, status_code, headers
118
+ end
119
+ end
120
+ end
@@ -32,6 +32,7 @@ module AsposeCellsCloud
32
32
  class PostProtectRequest
33
33
 
34
34
  attr_accessor :file
35
+ attr_accessor :protect_workbook_requst
35
36
  attr_accessor :password
36
37
 
37
38
  def initialize(attributes = {})
@@ -43,6 +44,9 @@ module AsposeCellsCloud
43
44
  if attributes.has_key?(:'File')
44
45
  self.file = attributes[:'File']
45
46
  end
47
+ if attributes.has_key?(:'protectWorkbookRequst')
48
+ self.protect_workbook_requst = attributes[:'protectWorkbookRequst']
49
+ end
46
50
  if attributes.has_key?(:'password')
47
51
  self.password = attributes[:'password']
48
52
  end
@@ -52,6 +56,7 @@ module AsposeCellsCloud
52
56
  def self.attribute_map
53
57
  {
54
58
  :'file' => :'File',
59
+ :'protect_workbook_requst' => :'protectWorkbookRequst',
55
60
  :'password' => :'password'
56
61
  }
57
62
  end
@@ -60,6 +65,7 @@ module AsposeCellsCloud
60
65
  def self.swagger_types
61
66
  {
62
67
  :'file' => :'Hash',
68
+ :'protect_workbook_requst' => :'ProtectWorkbookRequst',
63
69
  :'password' => :'String'
64
70
  }
65
71
  end
@@ -73,9 +79,9 @@ module AsposeCellsCloud
73
79
  if api_client.config.client_side_validation && file.nil?
74
80
  fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_protect "
75
81
  end
76
- # verify the required parameter 'password' is set
77
- if api_client.config.client_side_validation && password.nil?
78
- fail ArgumentError, "Missing the required parameter 'password' when calling CellsApi.post_protect "
82
+ # verify the required parameter 'protect_workbook_requst' is set
83
+ if api_client.config.client_side_validation && protect_workbook_requst.nil?
84
+ fail ArgumentError, "Missing the required parameter 'protect_workbook_requst' when calling CellsApi.post_protect "
79
85
  end
80
86
 
81
87
  # resource path
@@ -94,11 +100,10 @@ module AsposeCellsCloud
94
100
  # form parameters
95
101
  form_params = {}
96
102
  post_body = nil
97
- if(!file.nil?)
98
- file.each do |filename , context|
99
- form_params[filename] = context
100
- end
101
- end
103
+ file.each do |filename , context|
104
+ form_params[filename] = context
105
+ end
106
+ form_params['protect_workbook_requst'] = post_body.to_json
102
107
  header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
103
108
 
104
109
 
@@ -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
@@ -27,5 +27,5 @@
27
27
 
28
28
 
29
29
  module AsposeCellsCloud
30
- VERSION = "23.7"
30
+ VERSION = "23.9"
31
31
  end