aspose_cells_cloud 23.10 → 23.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -13
- data/lib/aspose_cells_cloud/api/cells_api.rb +159 -22830
- data/lib/aspose_cells_cloud/models/{value_type.rb → barcode_response.rb} +77 -20
- data/lib/aspose_cells_cloud/models/{total_request.rb → barcode_response_list.rb} +2 -2
- data/lib/aspose_cells_cloud/models/{cells_error.rb → import_json_request.rb} +60 -55
- data/lib/aspose_cells_cloud/models/import_xml_request.rb +16 -4
- data/lib/aspose_cells_cloud/models/{spreadsheet_ml2003_save_options.rb → spreadsheet_m_l2003_save_options.rb} +134 -96
- data/lib/aspose_cells_cloud/requests/post_workbook_import_json_request.rb +156 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +9 -5
- data/spec/api/folder_controller_spec.rb +1 -1
- data/spec/api/workbook_controller_spec.rb +2 -2
- data/spec/conversion/conversion_json_spec.rb +0 -198
- data/spec/conversion/conversion_png_spec.rb +0 -264
- data/spec/conversion/conversion_spec.rb +92 -653
- data/spec/document/light_cells_spec.rb +6 -5
- metadata +9 -12
- data/lib/aspose_cells_cloud/api/light_cells_api.rb +0 -1304
- data/lib/aspose_cells_cloud/api/lite_cells_api.rb +0 -1179
- data/lib/aspose_cells_cloud/models/access_token_response.rb +0 -261
- data/spec/one_case_spec.rb +0 -26
@@ -1,88 +1,90 @@
|
|
1
1
|
=begin
|
2
2
|
--------------------------------------------------------------------------------------------------------------------
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
copies
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
3
|
+
<copyright company="Aspose" file="SpreadsheetML2003SaveOptionsrb.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>
|
19
25
|
--------------------------------------------------------------------------------------------------------------------
|
20
|
-
|
21
26
|
=end
|
22
27
|
|
28
|
+
|
23
29
|
require 'date'
|
24
30
|
|
25
31
|
module AsposeCellsCloud
|
26
32
|
|
27
33
|
class SpreadsheetML2003SaveOptions
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
attr_accessor :is_indented_formatting
|
51
|
-
|
52
|
-
attr_accessor :limit_as_xls
|
53
|
-
|
34
|
+
#The default value is false, it means that column index will be ignored if the cell is contiguous to the previous cell.
|
35
|
+
attr_accessor :export_column_index_of_cell
|
36
|
+
#Causes child elements to be indented.The default value is true. If the value is false, it will reduce the size of the xml file
|
37
|
+
attr_accessor :is_indented_formatting
|
38
|
+
#Limit as xls, the max row index is 65535 and the max column index is 255.
|
39
|
+
attr_accessor :limit_as_xls
|
40
|
+
#
|
41
|
+
attr_accessor :save_format
|
42
|
+
#
|
43
|
+
attr_accessor :cached_file_folder
|
44
|
+
#
|
45
|
+
attr_accessor :clear_data
|
46
|
+
#
|
47
|
+
attr_accessor :create_directory
|
48
|
+
#
|
49
|
+
attr_accessor :enable_http_compression
|
50
|
+
#
|
51
|
+
attr_accessor :refresh_chart_cache
|
52
|
+
#
|
53
|
+
attr_accessor :sort_names
|
54
|
+
#
|
55
|
+
attr_accessor :validate_merged_areas
|
54
56
|
|
55
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
58
|
def self.attribute_map
|
57
59
|
{
|
58
|
-
:'
|
60
|
+
:'export_column_index_of_cell' => :'ExportColumnIndexOfCell',
|
61
|
+
:'is_indented_formatting' => :'IsIndentedFormatting',
|
62
|
+
:'limit_as_xls' => :'LimitAsXls',
|
59
63
|
:'save_format' => :'SaveFormat',
|
60
|
-
:'clear_data' => :'ClearData',
|
61
64
|
:'cached_file_folder' => :'CachedFileFolder',
|
62
|
-
:'
|
63
|
-
:'refresh_chart_cache' => :'RefreshChartCache',
|
65
|
+
:'clear_data' => :'ClearData',
|
64
66
|
:'create_directory' => :'CreateDirectory',
|
67
|
+
:'enable_http_compression' => :'EnableHTTPCompression',
|
68
|
+
:'refresh_chart_cache' => :'RefreshChartCache',
|
65
69
|
:'sort_names' => :'SortNames',
|
66
|
-
:'
|
67
|
-
:'is_indented_formatting' => :'IsIndentedFormatting',
|
68
|
-
:'limit_as_xls' => :'LimitAsXls'
|
70
|
+
:'validate_merged_areas' => :'ValidateMergedAreas'
|
69
71
|
}
|
70
72
|
end
|
71
73
|
|
72
74
|
# Attribute type mapping.
|
73
75
|
def self.swagger_types
|
74
76
|
{
|
75
|
-
:'
|
77
|
+
:'export_column_index_of_cell' => :'BOOLEAN',
|
78
|
+
:'is_indented_formatting' => :'BOOLEAN',
|
79
|
+
:'limit_as_xls' => :'BOOLEAN',
|
76
80
|
:'save_format' => :'String',
|
77
|
-
:'clear_data' => :'BOOLEAN',
|
78
81
|
:'cached_file_folder' => :'String',
|
79
|
-
:'
|
80
|
-
:'refresh_chart_cache' => :'BOOLEAN',
|
82
|
+
:'clear_data' => :'BOOLEAN',
|
81
83
|
:'create_directory' => :'BOOLEAN',
|
84
|
+
:'enable_http_compression' => :'BOOLEAN',
|
85
|
+
:'refresh_chart_cache' => :'BOOLEAN',
|
82
86
|
:'sort_names' => :'BOOLEAN',
|
83
|
-
:'
|
84
|
-
:'is_indented_formatting' => :'BOOLEAN',
|
85
|
-
:'limit_as_xls' => :'BOOLEAN'
|
87
|
+
:'validate_merged_areas' => :'BOOLEAN'
|
86
88
|
}
|
87
89
|
end
|
88
90
|
|
@@ -94,48 +96,38 @@ module AsposeCellsCloud
|
|
94
96
|
# convert string to symbol for hash key
|
95
97
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
96
98
|
|
97
|
-
if attributes.has_key?(:'
|
98
|
-
|
99
|
+
if attributes.has_key?(:'ExportColumnIndexOfCell')
|
100
|
+
self.export_column_index_of_cell = attributes[:'ExportColumnIndexOfCell']
|
99
101
|
end
|
100
|
-
|
101
|
-
|
102
|
-
self.save_format = attributes[:'SaveFormat']
|
102
|
+
if attributes.has_key?(:'IsIndentedFormatting')
|
103
|
+
self.is_indented_formatting = attributes[:'IsIndentedFormatting']
|
103
104
|
end
|
104
|
-
|
105
|
-
|
106
|
-
self.clear_data = attributes[:'ClearData']
|
105
|
+
if attributes.has_key?(:'LimitAsXls')
|
106
|
+
self.limit_as_xls = attributes[:'LimitAsXls']
|
107
107
|
end
|
108
|
-
|
109
|
-
|
110
|
-
self.cached_file_folder = attributes[:'CachedFileFolder']
|
108
|
+
if attributes.has_key?(:'SaveFormat')
|
109
|
+
self.save_format = attributes[:'SaveFormat']
|
111
110
|
end
|
112
|
-
|
113
|
-
|
114
|
-
self.validate_merged_areas = attributes[:'ValidateMergedAreas']
|
111
|
+
if attributes.has_key?(:'CachedFileFolder')
|
112
|
+
self.cached_file_folder = attributes[:'CachedFileFolder']
|
115
113
|
end
|
116
|
-
|
117
|
-
|
118
|
-
self.refresh_chart_cache = attributes[:'RefreshChartCache']
|
114
|
+
if attributes.has_key?(:'ClearData')
|
115
|
+
self.clear_data = attributes[:'ClearData']
|
119
116
|
end
|
120
|
-
|
121
117
|
if attributes.has_key?(:'CreateDirectory')
|
122
|
-
|
118
|
+
self.create_directory = attributes[:'CreateDirectory']
|
123
119
|
end
|
124
|
-
|
125
|
-
|
126
|
-
self.sort_names = attributes[:'SortNames']
|
120
|
+
if attributes.has_key?(:'EnableHTTPCompression')
|
121
|
+
self.enable_http_compression = attributes[:'EnableHTTPCompression']
|
127
122
|
end
|
128
|
-
|
129
|
-
|
130
|
-
self.export_column_index_of_cell = attributes[:'ExportColumnIndexOfCell']
|
123
|
+
if attributes.has_key?(:'RefreshChartCache')
|
124
|
+
self.refresh_chart_cache = attributes[:'RefreshChartCache']
|
131
125
|
end
|
132
|
-
|
133
|
-
|
134
|
-
self.is_indented_formatting = attributes[:'IsIndentedFormatting']
|
126
|
+
if attributes.has_key?(:'SortNames')
|
127
|
+
self.sort_names = attributes[:'SortNames']
|
135
128
|
end
|
136
|
-
|
137
|
-
|
138
|
-
self.limit_as_xls = attributes[:'LimitAsXls']
|
129
|
+
if attributes.has_key?(:'ValidateMergedAreas')
|
130
|
+
self.validate_merged_areas = attributes[:'ValidateMergedAreas']
|
139
131
|
end
|
140
132
|
|
141
133
|
end
|
@@ -144,12 +136,57 @@ module AsposeCellsCloud
|
|
144
136
|
# @return Array for valid properies with the reasons
|
145
137
|
def list_invalid_properties
|
146
138
|
invalid_properties = Array.new
|
139
|
+
if @export_column_index_of_cell.nil?
|
140
|
+
invalid_properties.push("invalid value for 'export_column_index_of_cell', export_column_index_of_cell cannot be nil.")
|
141
|
+
end
|
142
|
+
if @is_indented_formatting.nil?
|
143
|
+
invalid_properties.push("invalid value for 'is_indented_formatting', is_indented_formatting cannot be nil.")
|
144
|
+
end
|
145
|
+
if @limit_as_xls.nil?
|
146
|
+
invalid_properties.push("invalid value for 'limit_as_xls', limit_as_xls cannot be nil.")
|
147
|
+
end
|
148
|
+
if @save_format.nil?
|
149
|
+
invalid_properties.push("invalid value for 'save_format', save_format cannot be nil.")
|
150
|
+
end
|
151
|
+
if @cached_file_folder.nil?
|
152
|
+
invalid_properties.push("invalid value for 'cached_file_folder', cached_file_folder cannot be nil.")
|
153
|
+
end
|
154
|
+
if @clear_data.nil?
|
155
|
+
invalid_properties.push("invalid value for 'clear_data', clear_data cannot be nil.")
|
156
|
+
end
|
157
|
+
if @create_directory.nil?
|
158
|
+
invalid_properties.push("invalid value for 'create_directory', create_directory cannot be nil.")
|
159
|
+
end
|
160
|
+
if @enable_http_compression.nil?
|
161
|
+
invalid_properties.push("invalid value for 'enable_http_compression', enable_http_compression cannot be nil.")
|
162
|
+
end
|
163
|
+
if @refresh_chart_cache.nil?
|
164
|
+
invalid_properties.push("invalid value for 'refresh_chart_cache', refresh_chart_cache cannot be nil.")
|
165
|
+
end
|
166
|
+
if @sort_names.nil?
|
167
|
+
invalid_properties.push("invalid value for 'sort_names', sort_names cannot be nil.")
|
168
|
+
end
|
169
|
+
if @validate_merged_areas.nil?
|
170
|
+
invalid_properties.push("invalid value for 'validate_merged_areas', validate_merged_areas cannot be nil.")
|
171
|
+
end
|
172
|
+
|
147
173
|
return invalid_properties
|
148
174
|
end
|
149
175
|
|
150
176
|
# Check to see if the all the properties in the model are valid
|
151
177
|
# @return true if the model is valid
|
152
178
|
def valid?
|
179
|
+
return false if @export_column_index_of_cell.nil?
|
180
|
+
return false if @is_indented_formatting.nil?
|
181
|
+
return false if @limit_as_xls.nil?
|
182
|
+
return false if @save_format.nil?
|
183
|
+
return false if @cached_file_folder.nil?
|
184
|
+
return false if @clear_data.nil?
|
185
|
+
return false if @create_directory.nil?
|
186
|
+
return false if @enable_http_compression.nil?
|
187
|
+
return false if @refresh_chart_cache.nil?
|
188
|
+
return false if @sort_names.nil?
|
189
|
+
return false if @validate_merged_areas.nil?
|
153
190
|
return true
|
154
191
|
end
|
155
192
|
|
@@ -158,17 +195,18 @@ module AsposeCellsCloud
|
|
158
195
|
def ==(o)
|
159
196
|
return true if self.equal?(o)
|
160
197
|
self.class == o.class &&
|
161
|
-
|
198
|
+
export_column_index_of_cell == o.export_column_index_of_cell &&
|
199
|
+
is_indented_formatting == o.is_indented_formatting &&
|
200
|
+
limit_as_xls == o.limit_as_xls &&
|
162
201
|
save_format == o.save_format &&
|
163
|
-
clear_data == o.clear_data &&
|
164
202
|
cached_file_folder == o.cached_file_folder &&
|
165
|
-
|
166
|
-
refresh_chart_cache == o.refresh_chart_cache &&
|
203
|
+
clear_data == o.clear_data &&
|
167
204
|
create_directory == o.create_directory &&
|
205
|
+
enable_http_compression == o.enable_http_compression &&
|
206
|
+
refresh_chart_cache == o.refresh_chart_cache &&
|
168
207
|
sort_names == o.sort_names &&
|
169
|
-
|
170
|
-
|
171
|
-
limit_as_xls == o.limit_as_xls
|
208
|
+
validate_merged_areas == o.validate_merged_areas
|
209
|
+
std_dev == o.std_dev
|
172
210
|
end
|
173
211
|
|
174
212
|
# @see the `==` method
|
@@ -180,7 +218,7 @@ module AsposeCellsCloud
|
|
180
218
|
# Calculates hash code according to all attributes.
|
181
219
|
# @return [Fixnum] Hash code
|
182
220
|
def hash
|
183
|
-
[
|
221
|
+
[ export_column_index_of_cell , is_indented_formatting , limit_as_xls , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
|
184
222
|
end
|
185
223
|
|
186
224
|
# Builds the object from hash
|
@@ -0,0 +1,156 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="PostWorkbookImportJson_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 PostWorkbookImportJsonRequest
|
33
|
+
|
34
|
+
attr_accessor :name
|
35
|
+
attr_accessor :import_json_request
|
36
|
+
attr_accessor :password
|
37
|
+
attr_accessor :folder
|
38
|
+
attr_accessor :storage_name
|
39
|
+
attr_accessor :out_path
|
40
|
+
attr_accessor :out_storage_name
|
41
|
+
attr_accessor :check_excel_restriction
|
42
|
+
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
|
+
|
49
|
+
if attributes.has_key?(:'name')
|
50
|
+
self.name = attributes[:'name']
|
51
|
+
end
|
52
|
+
if attributes.has_key?(:'importJsonRequest')
|
53
|
+
self.import_json_request = attributes[:'importJsonRequest']
|
54
|
+
end
|
55
|
+
if attributes.has_key?(:'password')
|
56
|
+
self.password = attributes[:'password']
|
57
|
+
end
|
58
|
+
if attributes.has_key?(:'folder')
|
59
|
+
self.folder = attributes[:'folder']
|
60
|
+
end
|
61
|
+
if attributes.has_key?(:'storageName')
|
62
|
+
self.storage_name = attributes[:'storageName']
|
63
|
+
end
|
64
|
+
if attributes.has_key?(:'outPath')
|
65
|
+
self.out_path = attributes[:'outPath']
|
66
|
+
end
|
67
|
+
if attributes.has_key?(:'outStorageName')
|
68
|
+
self.out_storage_name = attributes[:'outStorageName']
|
69
|
+
end
|
70
|
+
if attributes.has_key?(:'checkExcelRestriction')
|
71
|
+
self.check_excel_restriction = attributes[:'checkExcelRestriction']
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
75
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
76
|
+
def self.attribute_map
|
77
|
+
{
|
78
|
+
:'name' => :'name',
|
79
|
+
:'import_json_request' => :'importJsonRequest',
|
80
|
+
:'password' => :'password',
|
81
|
+
:'folder' => :'folder',
|
82
|
+
:'storage_name' => :'storageName',
|
83
|
+
:'out_path' => :'outPath',
|
84
|
+
:'out_storage_name' => :'outStorageName',
|
85
|
+
:'check_excel_restriction' => :'checkExcelRestriction'
|
86
|
+
}
|
87
|
+
end
|
88
|
+
|
89
|
+
# Attribute type mapping.
|
90
|
+
def self.swagger_types
|
91
|
+
{
|
92
|
+
:'name' => :'String',
|
93
|
+
:'import_json_request' => :'ImportJsonRequest',
|
94
|
+
:'password' => :'String',
|
95
|
+
:'folder' => :'String',
|
96
|
+
:'storage_name' => :'String',
|
97
|
+
:'out_path' => :'String',
|
98
|
+
:'out_storage_name' => :'String',
|
99
|
+
:'check_excel_restriction' => :'BOOLEAN'
|
100
|
+
}
|
101
|
+
end
|
102
|
+
|
103
|
+
def create_http_request(api_client,opts = {})
|
104
|
+
if api_client.config.debugging
|
105
|
+
api_client.config.logger.debug "Calling API: CellsApi.post_workbook_import_json ..."
|
106
|
+
end
|
107
|
+
api_client.request_token_if_needed
|
108
|
+
# verify the required parameter 'name' is set
|
109
|
+
if api_client.config.client_side_validation && name.nil?
|
110
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.post_workbook_import_json "
|
111
|
+
end
|
112
|
+
# verify the required parameter 'import_json_request' is set
|
113
|
+
if api_client.config.client_side_validation && import_json_request.nil?
|
114
|
+
fail ArgumentError, "Missing the required parameter 'import_json_request' when calling CellsApi.post_workbook_import_json "
|
115
|
+
end
|
116
|
+
|
117
|
+
# resource path
|
118
|
+
local_var_path = "/cells/{name}/importjson".sub('{' + 'name' + '}', name.to_s)
|
119
|
+
# query parameters
|
120
|
+
query_params = {}
|
121
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
122
|
+
query_params[:'folder'] = self.folder if !self.folder.nil?
|
123
|
+
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
124
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
125
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
126
|
+
query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
|
127
|
+
|
128
|
+
# header parameters
|
129
|
+
header_params = {}
|
130
|
+
# HTTP header 'Accept' (if needed)
|
131
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
132
|
+
# HTTP header 'Content-Type'
|
133
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
134
|
+
|
135
|
+
# form parameters
|
136
|
+
form_params = {}
|
137
|
+
post_body = nil
|
138
|
+
post_body = api_client.object_to_http_body(import_json_request)
|
139
|
+
|
140
|
+
|
141
|
+
#auth_names = []
|
142
|
+
auth_names = ['JWT']
|
143
|
+
data, status_code, headers = api_client.call_api(:POST, local_var_path,
|
144
|
+
:header_params => header_params,
|
145
|
+
:query_params => query_params,
|
146
|
+
:form_params => form_params,
|
147
|
+
:body => post_body,
|
148
|
+
:auth_names => auth_names,
|
149
|
+
:return_type => 'File')
|
150
|
+
if api_client.config.debugging
|
151
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.post_workbook_import_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
|
+
end
|
153
|
+
return data, status_code, headers
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
data/lib/aspose_cells_cloud.rb
CHANGED
@@ -182,7 +182,7 @@ require 'aspose_cells_cloud/models/ooxml_save_options'
|
|
182
182
|
require 'aspose_cells_cloud/models/pdf_save_options'
|
183
183
|
require 'aspose_cells_cloud/models/pptx_save_options'
|
184
184
|
require 'aspose_cells_cloud/models/save_options'
|
185
|
-
require 'aspose_cells_cloud/models/
|
185
|
+
require 'aspose_cells_cloud/models/spreadsheet_m_l2003_save_options'
|
186
186
|
require 'aspose_cells_cloud/models/sql_script_save_options'
|
187
187
|
require 'aspose_cells_cloud/models/svg_save_options'
|
188
188
|
require 'aspose_cells_cloud/models/txt_save_options'
|
@@ -194,6 +194,8 @@ require 'aspose_cells_cloud/models/auto_filter_response'
|
|
194
194
|
require 'aspose_cells_cloud/models/auto_shape_response'
|
195
195
|
require 'aspose_cells_cloud/models/auto_shapes_response'
|
196
196
|
require 'aspose_cells_cloud/models/axis_response'
|
197
|
+
require 'aspose_cells_cloud/models/barcode_response'
|
198
|
+
require 'aspose_cells_cloud/models/barcode_response_list'
|
197
199
|
require 'aspose_cells_cloud/models/border_response'
|
198
200
|
require 'aspose_cells_cloud/models/button_response'
|
199
201
|
require 'aspose_cells_cloud/models/calculate_formula_response'
|
@@ -306,6 +308,7 @@ require 'aspose_cells_cloud/models/batch_split_request'
|
|
306
308
|
require 'aspose_cells_cloud/models/color_filter_request'
|
307
309
|
require 'aspose_cells_cloud/models/convert_parameter'
|
308
310
|
require 'aspose_cells_cloud/models/create_pivot_table_request'
|
311
|
+
require 'aspose_cells_cloud/models/import_json_request'
|
309
312
|
require 'aspose_cells_cloud/models/import_xml_request'
|
310
313
|
require 'aspose_cells_cloud/models/match_condition_request'
|
311
314
|
require 'aspose_cells_cloud/models/password_request'
|
@@ -525,6 +528,11 @@ require 'aspose_cells_cloud/requests/post_convert_workbook_to_markdown_request'
|
|
525
528
|
require 'aspose_cells_cloud/requests/post_convert_workbook_to_json_request'
|
526
529
|
require 'aspose_cells_cloud/requests/post_convert_workbook_to_sql_request'
|
527
530
|
require 'aspose_cells_cloud/requests/post_convert_workbook_to_csv_request'
|
531
|
+
require 'aspose_cells_cloud/requests/post_export_request'
|
532
|
+
require 'aspose_cells_cloud/requests/post_workbook_export_xml_request'
|
533
|
+
require 'aspose_cells_cloud/requests/post_workbook_import_json_request'
|
534
|
+
require 'aspose_cells_cloud/requests/post_workbook_import_xml_request'
|
535
|
+
require 'aspose_cells_cloud/requests/post_import_data_request'
|
528
536
|
require 'aspose_cells_cloud/requests/get_worksheet_hyperlinks_request'
|
529
537
|
require 'aspose_cells_cloud/requests/get_worksheet_hyperlink_request'
|
530
538
|
require 'aspose_cells_cloud/requests/delete_worksheet_hyperlink_request'
|
@@ -533,7 +541,6 @@ require 'aspose_cells_cloud/requests/put_worksheet_hyperlink_request'
|
|
533
541
|
require 'aspose_cells_cloud/requests/delete_worksheet_hyperlinks_request'
|
534
542
|
require 'aspose_cells_cloud/requests/post_assemble_request'
|
535
543
|
require 'aspose_cells_cloud/requests/post_compress_request'
|
536
|
-
require 'aspose_cells_cloud/requests/post_export_request'
|
537
544
|
require 'aspose_cells_cloud/requests/post_merge_request'
|
538
545
|
require 'aspose_cells_cloud/requests/post_split_request'
|
539
546
|
require 'aspose_cells_cloud/requests/post_search_request'
|
@@ -668,7 +675,6 @@ require 'aspose_cells_cloud/requests/post_workbook_text_replace_request'
|
|
668
675
|
require 'aspose_cells_cloud/requests/post_workbook_get_smart_marker_result_request'
|
669
676
|
require 'aspose_cells_cloud/requests/put_workbook_create_request'
|
670
677
|
require 'aspose_cells_cloud/requests/post_workbook_split_request'
|
671
|
-
require 'aspose_cells_cloud/requests/post_import_data_request'
|
672
678
|
require 'aspose_cells_cloud/requests/post_workbook_calculate_formula_request'
|
673
679
|
require 'aspose_cells_cloud/requests/post_autofit_workbook_rows_request'
|
674
680
|
require 'aspose_cells_cloud/requests/post_autofit_workbook_columns_request'
|
@@ -723,8 +729,6 @@ require 'aspose_cells_cloud/requests/put_worksheet_validation_request'
|
|
723
729
|
require 'aspose_cells_cloud/requests/post_worksheet_validation_request'
|
724
730
|
require 'aspose_cells_cloud/requests/delete_worksheet_validation_request'
|
725
731
|
require 'aspose_cells_cloud/requests/delete_worksheet_validations_request'
|
726
|
-
require 'aspose_cells_cloud/requests/post_workbook_export_xml_request'
|
727
|
-
require 'aspose_cells_cloud/requests/post_workbook_import_xml_request'
|
728
732
|
require 'aspose_cells_cloud/requests/download_file_request'
|
729
733
|
require 'aspose_cells_cloud/requests/upload_file_request'
|
730
734
|
require 'aspose_cells_cloud/requests/copy_file_request'
|
@@ -42,7 +42,7 @@ describe 'CellsApi' do
|
|
42
42
|
|
43
43
|
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
44
44
|
@instance.upload_file(uploadrequest)
|
45
|
-
request = AsposeCellsCloud::CreateFolderRequest.new(:path=>'
|
45
|
+
request = AsposeCellsCloud::CreateFolderRequest.new(:path=>'OutResult/NewFolder',:storageName=>'');
|
46
46
|
@instance.create_folder(request);
|
47
47
|
end
|
48
48
|
end
|
@@ -82,7 +82,7 @@ describe 'CellsApi' do
|
|
82
82
|
|
83
83
|
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
84
84
|
@instance.upload_file(uploadrequest)
|
85
|
-
protectWorkbookRequest = AsposeCellsCloud::
|
85
|
+
protectWorkbookRequest = AsposeCellsCloud::ProtectWorkbookRequest.new(:EncryptWithPassword=>'123456' ,:ProtectWorkbookStructure=>'ALL' );
|
86
86
|
request = AsposeCellsCloud::PostProtectWorkbookRequest.new(:name=>remote_name,:protectWorkbookRequest=>protectWorkbookRequest,:folder=>remote_folder,:storageName=>'');
|
87
87
|
@instance.post_protect_workbook(request);
|
88
88
|
end
|
@@ -101,7 +101,7 @@ describe 'CellsApi' do
|
|
101
101
|
|
102
102
|
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
103
103
|
@instance.upload_file(uploadrequest)
|
104
|
-
request = AsposeCellsCloud::DeleteUnProtectWorkbookRequest.new(:name=>remote_name,:password
|
104
|
+
request = AsposeCellsCloud::DeleteUnProtectWorkbookRequest.new(:name=>remote_name,:password=>remote_name,:folder=>remote_folder,:storageName=>'');
|
105
105
|
@instance.delete_un_protect_workbook(request);
|
106
106
|
end
|
107
107
|
end
|