aspose_cells_cloud 24.1.1 → 24.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +303 -91
  4. data/lib/aspose_cells_cloud/api/cells_api.rb +64 -0
  5. data/lib/aspose_cells_cloud/models/analyze_excel_request.rb +234 -0
  6. data/lib/aspose_cells_cloud/models/analyze_excel_response.rb +210 -0
  7. data/lib/aspose_cells_cloud/models/analyze_suggestion.rb +294 -0
  8. data/lib/aspose_cells_cloud/models/analyzed_column_description.rb +306 -0
  9. data/lib/aspose_cells_cloud/models/analyzed_result.rb +258 -0
  10. data/lib/aspose_cells_cloud/models/analyzed_table_description.rb +390 -0
  11. data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +1 -13
  12. data/lib/aspose_cells_cloud/models/cell_area.rb +4 -4
  13. data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +4 -4
  14. data/lib/aspose_cells_cloud/models/cells_document_properties.rb +1 -1
  15. data/lib/aspose_cells_cloud/models/chart.rb +3 -3
  16. data/lib/aspose_cells_cloud/models/color.rb +4 -4
  17. data/lib/aspose_cells_cloud/models/color_filter.rb +1 -1
  18. data/lib/aspose_cells_cloud/models/columns.rb +3 -3
  19. data/lib/aspose_cells_cloud/models/data_cleansing.rb +234 -0
  20. data/lib/aspose_cells_cloud/models/data_cleansing_request.rb +258 -0
  21. data/lib/aspose_cells_cloud/models/data_column_fill_value.rb +222 -0
  22. data/lib/aspose_cells_cloud/models/data_deduplication_request.rb +258 -0
  23. data/lib/aspose_cells_cloud/models/data_fill.rb +234 -0
  24. data/lib/aspose_cells_cloud/models/data_fill_request.rb +258 -0
  25. data/lib/aspose_cells_cloud/models/data_fill_value.rb +258 -0
  26. data/lib/aspose_cells_cloud/models/deduplication_region.rb +222 -0
  27. data/lib/aspose_cells_cloud/models/delete_incomplete_rows_request.rb +258 -0
  28. data/lib/aspose_cells_cloud/models/discover_chart.rb +270 -0
  29. data/lib/aspose_cells_cloud/models/discover_pivot_table.rb +282 -0
  30. data/lib/aspose_cells_cloud/models/excel_data_statistics.rb +222 -0
  31. data/lib/aspose_cells_cloud/models/file_info.rb +3 -3
  32. data/lib/aspose_cells_cloud/models/pdf_security_options.rb +1 -13
  33. data/lib/aspose_cells_cloud/models/workbook_settings.rb +1 -13
  34. data/lib/aspose_cells_cloud/models/worksheet_data_statistics.rb +318 -0
  35. data/lib/aspose_cells_cloud/requests/post_analyze_excel_request.rb +103 -0
  36. data/lib/aspose_cells_cloud/requests/post_data_cleansing_request.rb +103 -0
  37. data/lib/aspose_cells_cloud/requests/post_data_deduplication_request.rb +103 -0
  38. data/lib/aspose_cells_cloud/requests/post_data_fill_request.rb +103 -0
  39. data/lib/aspose_cells_cloud/requests/post_delete_incomplete_rows_request.rb +103 -0
  40. data/lib/aspose_cells_cloud/requests/post_workbook_data_cleansing_request.rb +149 -0
  41. data/lib/aspose_cells_cloud/requests/post_workbook_data_deduplication_request.rb +149 -0
  42. data/lib/aspose_cells_cloud/requests/post_workbook_data_fill_request.rb +149 -0
  43. data/lib/aspose_cells_cloud/version.rb +1 -1
  44. data/lib/aspose_cells_cloud.rb +27 -0
  45. data/spec/api/data_processing_controller_spec.rb +73 -0
  46. metadata +41 -10
@@ -0,0 +1,103 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostDataFill_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 PostDataFillRequest
33
+
34
+ attr_accessor :data_fill_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?(:'dataFillRequest')
43
+ self.data_fill_request = attributes[:'dataFillRequest']
44
+ end
45
+
46
+ end
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'data_fill_request' => :'dataFillRequest'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.swagger_types
56
+ {
57
+ :'data_fill_request' => :'DataFillRequest'
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_fill ..."
64
+ end
65
+ api_client.request_token_if_needed
66
+ # verify the required parameter 'data_fill_request' is set
67
+ if api_client.config.client_side_validation && data_fill_request.nil?
68
+ fail ArgumentError, "Missing the required parameter 'data_fill_request' when calling CellsApi.post_data_fill "
69
+ end
70
+
71
+ # resource path
72
+ local_var_path = "/cells/datafill"
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_fill_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_fill\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="PostDeleteIncompleteRows_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 PostDeleteIncompleteRowsRequest
33
+
34
+ attr_accessor :delete_incomplete_rows_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?(:'deleteIncompleteRowsRequest')
43
+ self.delete_incomplete_rows_request = attributes[:'deleteIncompleteRowsRequest']
44
+ end
45
+
46
+ end
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'delete_incomplete_rows_request' => :'deleteIncompleteRowsRequest'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.swagger_types
56
+ {
57
+ :'delete_incomplete_rows_request' => :'DeleteIncompleteRowsRequest'
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_delete_incomplete_rows ..."
64
+ end
65
+ api_client.request_token_if_needed
66
+ # verify the required parameter 'delete_incomplete_rows_request' is set
67
+ if api_client.config.client_side_validation && delete_incomplete_rows_request.nil?
68
+ fail ArgumentError, "Missing the required parameter 'delete_incomplete_rows_request' when calling CellsApi.post_delete_incomplete_rows "
69
+ end
70
+
71
+ # resource path
72
+ local_var_path = "/cells/deleteincompleterows"
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(delete_incomplete_rows_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_delete_incomplete_rows\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,149 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostWorkbookDataCleansing_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 PostWorkbookDataCleansingRequest
33
+
34
+ attr_accessor :name
35
+ attr_accessor :data_cleansing
36
+ attr_accessor :folder
37
+ attr_accessor :storage_name
38
+ attr_accessor :password
39
+ attr_accessor :region
40
+ attr_accessor :check_excel_restriction
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?(:'dataCleansing')
52
+ self.data_cleansing = attributes[:'dataCleansing']
53
+ end
54
+ if attributes.has_key?(:'folder')
55
+ self.folder = attributes[:'folder']
56
+ end
57
+ if attributes.has_key?(:'storageName')
58
+ self.storage_name = attributes[:'storageName']
59
+ end
60
+ if attributes.has_key?(:'password')
61
+ self.password = attributes[:'password']
62
+ end
63
+ if attributes.has_key?(:'region')
64
+ self.region = attributes[:'region']
65
+ end
66
+ if attributes.has_key?(:'checkExcelRestriction')
67
+ self.check_excel_restriction = attributes[:'checkExcelRestriction']
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
+ :'data_cleansing' => :'dataCleansing',
76
+ :'folder' => :'folder',
77
+ :'storage_name' => :'storageName',
78
+ :'password' => :'password',
79
+ :'region' => :'region',
80
+ :'check_excel_restriction' => :'checkExcelRestriction'
81
+ }
82
+ end
83
+
84
+ # Attribute type mapping.
85
+ def self.swagger_types
86
+ {
87
+ :'name' => :'String',
88
+ :'data_cleansing' => :'DataCleansing',
89
+ :'folder' => :'String',
90
+ :'storage_name' => :'String',
91
+ :'password' => :'String',
92
+ :'region' => :'String',
93
+ :'check_excel_restriction' => :'BOOLEAN'
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_workbook_data_cleansing ..."
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_workbook_data_cleansing "
105
+ end
106
+ # verify the required parameter 'data_cleansing' is set
107
+ if api_client.config.client_side_validation && data_cleansing.nil?
108
+ fail ArgumentError, "Missing the required parameter 'data_cleansing' when calling CellsApi.post_workbook_data_cleansing "
109
+ end
110
+
111
+ # resource path
112
+ local_var_path = "/cells/{name}/datacleansing".sub('{' + 'name' + '}', name.to_s)
113
+ # query parameters
114
+ query_params = {}
115
+ query_params[:'folder'] = self.folder if !self.folder.nil?
116
+ query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
117
+ query_params[:'password'] = self.password if !self.password.nil?
118
+ query_params[:'region'] = self.region if !self.region.nil?
119
+ query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
120
+
121
+ # header parameters
122
+ header_params = {}
123
+ # HTTP header 'Accept' (if needed)
124
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
125
+ # HTTP header 'Content-Type'
126
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
127
+
128
+ # form parameters
129
+ form_params = {}
130
+ post_body = nil
131
+ post_body = api_client.object_to_http_body(data_cleansing)
132
+
133
+
134
+ #auth_names = []
135
+ auth_names = ['JWT']
136
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
137
+ :header_params => header_params,
138
+ :query_params => query_params,
139
+ :form_params => form_params,
140
+ :body => post_body,
141
+ :auth_names => auth_names,
142
+ :return_type => 'FileInfo')
143
+ if api_client.config.debugging
144
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_workbook_data_cleansing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
+ end
146
+ return data, status_code, headers
147
+ end
148
+ end
149
+ end
@@ -0,0 +1,149 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostWorkbookDataDeduplication_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 PostWorkbookDataDeduplicationRequest
33
+
34
+ attr_accessor :name
35
+ attr_accessor :deduplication_region
36
+ attr_accessor :folder
37
+ attr_accessor :storage_name
38
+ attr_accessor :password
39
+ attr_accessor :region
40
+ attr_accessor :check_excel_restriction
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?(:'deduplicationRegion')
52
+ self.deduplication_region = attributes[:'deduplicationRegion']
53
+ end
54
+ if attributes.has_key?(:'folder')
55
+ self.folder = attributes[:'folder']
56
+ end
57
+ if attributes.has_key?(:'storageName')
58
+ self.storage_name = attributes[:'storageName']
59
+ end
60
+ if attributes.has_key?(:'password')
61
+ self.password = attributes[:'password']
62
+ end
63
+ if attributes.has_key?(:'region')
64
+ self.region = attributes[:'region']
65
+ end
66
+ if attributes.has_key?(:'checkExcelRestriction')
67
+ self.check_excel_restriction = attributes[:'checkExcelRestriction']
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
+ :'deduplication_region' => :'deduplicationRegion',
76
+ :'folder' => :'folder',
77
+ :'storage_name' => :'storageName',
78
+ :'password' => :'password',
79
+ :'region' => :'region',
80
+ :'check_excel_restriction' => :'checkExcelRestriction'
81
+ }
82
+ end
83
+
84
+ # Attribute type mapping.
85
+ def self.swagger_types
86
+ {
87
+ :'name' => :'String',
88
+ :'deduplication_region' => :'DeduplicationRegion',
89
+ :'folder' => :'String',
90
+ :'storage_name' => :'String',
91
+ :'password' => :'String',
92
+ :'region' => :'String',
93
+ :'check_excel_restriction' => :'BOOLEAN'
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_workbook_data_deduplication ..."
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_workbook_data_deduplication "
105
+ end
106
+ # verify the required parameter 'deduplication_region' is set
107
+ if api_client.config.client_side_validation && deduplication_region.nil?
108
+ fail ArgumentError, "Missing the required parameter 'deduplication_region' when calling CellsApi.post_workbook_data_deduplication "
109
+ end
110
+
111
+ # resource path
112
+ local_var_path = "/cells/{name}/datadeduplication".sub('{' + 'name' + '}', name.to_s)
113
+ # query parameters
114
+ query_params = {}
115
+ query_params[:'folder'] = self.folder if !self.folder.nil?
116
+ query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
117
+ query_params[:'password'] = self.password if !self.password.nil?
118
+ query_params[:'region'] = self.region if !self.region.nil?
119
+ query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
120
+
121
+ # header parameters
122
+ header_params = {}
123
+ # HTTP header 'Accept' (if needed)
124
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
125
+ # HTTP header 'Content-Type'
126
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
127
+
128
+ # form parameters
129
+ form_params = {}
130
+ post_body = nil
131
+ post_body = api_client.object_to_http_body(deduplication_region)
132
+
133
+
134
+ #auth_names = []
135
+ auth_names = ['JWT']
136
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
137
+ :header_params => header_params,
138
+ :query_params => query_params,
139
+ :form_params => form_params,
140
+ :body => post_body,
141
+ :auth_names => auth_names,
142
+ :return_type => 'FileInfo')
143
+ if api_client.config.debugging
144
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_workbook_data_deduplication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
+ end
146
+ return data, status_code, headers
147
+ end
148
+ end
149
+ end
@@ -0,0 +1,149 @@
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ <copyright company="Aspose" file="PostWorkbookDataFill_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 PostWorkbookDataFillRequest
33
+
34
+ attr_accessor :name
35
+ attr_accessor :data_fill
36
+ attr_accessor :folder
37
+ attr_accessor :storage_name
38
+ attr_accessor :password
39
+ attr_accessor :region
40
+ attr_accessor :check_excel_restriction
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?(:'dataFill')
52
+ self.data_fill = attributes[:'dataFill']
53
+ end
54
+ if attributes.has_key?(:'folder')
55
+ self.folder = attributes[:'folder']
56
+ end
57
+ if attributes.has_key?(:'storageName')
58
+ self.storage_name = attributes[:'storageName']
59
+ end
60
+ if attributes.has_key?(:'password')
61
+ self.password = attributes[:'password']
62
+ end
63
+ if attributes.has_key?(:'region')
64
+ self.region = attributes[:'region']
65
+ end
66
+ if attributes.has_key?(:'checkExcelRestriction')
67
+ self.check_excel_restriction = attributes[:'checkExcelRestriction']
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
+ :'data_fill' => :'dataFill',
76
+ :'folder' => :'folder',
77
+ :'storage_name' => :'storageName',
78
+ :'password' => :'password',
79
+ :'region' => :'region',
80
+ :'check_excel_restriction' => :'checkExcelRestriction'
81
+ }
82
+ end
83
+
84
+ # Attribute type mapping.
85
+ def self.swagger_types
86
+ {
87
+ :'name' => :'String',
88
+ :'data_fill' => :'DataFill',
89
+ :'folder' => :'String',
90
+ :'storage_name' => :'String',
91
+ :'password' => :'String',
92
+ :'region' => :'String',
93
+ :'check_excel_restriction' => :'BOOLEAN'
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_workbook_data_fill ..."
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_workbook_data_fill "
105
+ end
106
+ # verify the required parameter 'data_fill' is set
107
+ if api_client.config.client_side_validation && data_fill.nil?
108
+ fail ArgumentError, "Missing the required parameter 'data_fill' when calling CellsApi.post_workbook_data_fill "
109
+ end
110
+
111
+ # resource path
112
+ local_var_path = "/cells/{name}/datafill".sub('{' + 'name' + '}', name.to_s)
113
+ # query parameters
114
+ query_params = {}
115
+ query_params[:'folder'] = self.folder if !self.folder.nil?
116
+ query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
117
+ query_params[:'password'] = self.password if !self.password.nil?
118
+ query_params[:'region'] = self.region if !self.region.nil?
119
+ query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
120
+
121
+ # header parameters
122
+ header_params = {}
123
+ # HTTP header 'Accept' (if needed)
124
+ header_params['Accept'] = api_client.select_header_accept(['application/json'])
125
+ # HTTP header 'Content-Type'
126
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
127
+
128
+ # form parameters
129
+ form_params = {}
130
+ post_body = nil
131
+ post_body = api_client.object_to_http_body(data_fill)
132
+
133
+
134
+ #auth_names = []
135
+ auth_names = ['JWT']
136
+ data, status_code, headers = api_client.call_api(:POST, local_var_path,
137
+ :header_params => header_params,
138
+ :query_params => query_params,
139
+ :form_params => form_params,
140
+ :body => post_body,
141
+ :auth_names => auth_names,
142
+ :return_type => 'FileInfo')
143
+ if api_client.config.debugging
144
+ api_client.config.logger.debug "API called: Specification.Name>Api.post_workbook_data_fill\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
145
+ end
146
+ return data, status_code, headers
147
+ end
148
+ end
149
+ end
@@ -27,5 +27,5 @@
27
27
 
28
28
 
29
29
  module AsposeCellsCloud
30
- VERSION = "24.1.1"
30
+ VERSION = "24.3"
31
31
  end