aspose_cells_cloud 23.10 → 23.12.0
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.
- checksums.yaml +4 -4
- data/README.md +23 -13
- data/lib/aspose_cells_cloud/api/cells_api.rb +234 -22899
- 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/batch_convert_request.rb +13 -1
- data/lib/aspose_cells_cloud/models/batch_split_request.rb +13 -1
- data/lib/aspose_cells_cloud/models/convert_task_parameter.rb +13 -1
- 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/delete_metadata_request.rb +7 -0
- data/lib/aspose_cells_cloud/requests/get_workbook_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_assemble_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_clear_objects_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_csv_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_docx_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_html_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_json_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_markdown_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pdf_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_png_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_pptx_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_convert_workbook_to_sql_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_export_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_import_data_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_import_request.rb +31 -2
- data/lib/aspose_cells_cloud/requests/post_merge_request.rb +15 -8
- data/lib/aspose_cells_cloud/requests/post_metadata_request.rb +16 -2
- data/lib/aspose_cells_cloud/requests/post_repair_request.rb +6 -6
- data/lib/aspose_cells_cloud/requests/post_reverse_request.rb +15 -8
- data/lib/aspose_cells_cloud/requests/post_rotate_request.rb +15 -8
- data/lib/aspose_cells_cloud/requests/post_split_request.rb +18 -11
- data/lib/aspose_cells_cloud/requests/post_watermark_request.rb +16 -2
- data/lib/aspose_cells_cloud/requests/post_workbook_export_xml_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_workbook_import_json_request.rb +163 -0
- data/lib/aspose_cells_cloud/requests/post_workbook_import_xml_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/post_workbook_save_as_request.rb +9 -2
- data/lib/aspose_cells_cloud/requests/put_convert_workbook_request.rb +9 -2
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +7 -5
- data/spec/api/batch_controller_spec.rb +4 -4
- data/spec/api/folder_controller_spec.rb +1 -1
- data/spec/api/workbook_controller_spec.rb +3 -3
- data/spec/conversion/conversion_json_spec.rb +0 -242
- data/spec/conversion/conversion_png_spec.rb +0 -352
- data/spec/conversion/conversion_spec.rb +203 -1003
- data/spec/document/light_cells_spec.rb +86 -197
- 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
@@ -33,9 +33,10 @@ module AsposeCellsCloud
|
|
33
33
|
|
34
34
|
attr_accessor :file
|
35
35
|
attr_accessor :rotate_type
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :out_format
|
37
37
|
attr_accessor :password
|
38
38
|
attr_accessor :check_excel_restriction
|
39
|
+
attr_accessor :region
|
39
40
|
|
40
41
|
def initialize(attributes = {})
|
41
42
|
return unless attributes.is_a?(Hash)
|
@@ -49,8 +50,8 @@ module AsposeCellsCloud
|
|
49
50
|
if attributes.has_key?(:'rotateType')
|
50
51
|
self.rotate_type = attributes[:'rotateType']
|
51
52
|
end
|
52
|
-
if attributes.has_key?(:'
|
53
|
-
self.
|
53
|
+
if attributes.has_key?(:'outFormat')
|
54
|
+
self.out_format = attributes[:'outFormat']
|
54
55
|
end
|
55
56
|
if attributes.has_key?(:'password')
|
56
57
|
self.password = attributes[:'password']
|
@@ -58,6 +59,9 @@ module AsposeCellsCloud
|
|
58
59
|
if attributes.has_key?(:'checkExcelRestriction')
|
59
60
|
self.check_excel_restriction = attributes[:'checkExcelRestriction']
|
60
61
|
end
|
62
|
+
if attributes.has_key?(:'region')
|
63
|
+
self.region = attributes[:'region']
|
64
|
+
end
|
61
65
|
|
62
66
|
end
|
63
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -65,9 +69,10 @@ module AsposeCellsCloud
|
|
65
69
|
{
|
66
70
|
:'file' => :'File',
|
67
71
|
:'rotate_type' => :'rotateType',
|
68
|
-
:'
|
72
|
+
:'out_format' => :'outFormat',
|
69
73
|
:'password' => :'password',
|
70
|
-
:'check_excel_restriction' => :'checkExcelRestriction'
|
74
|
+
:'check_excel_restriction' => :'checkExcelRestriction',
|
75
|
+
:'region' => :'region'
|
71
76
|
}
|
72
77
|
end
|
73
78
|
|
@@ -76,9 +81,10 @@ module AsposeCellsCloud
|
|
76
81
|
{
|
77
82
|
:'file' => :'Hash',
|
78
83
|
:'rotate_type' => :'String',
|
79
|
-
:'
|
84
|
+
:'out_format' => :'String',
|
80
85
|
:'password' => :'String',
|
81
|
-
:'check_excel_restriction' => :'BOOLEAN'
|
86
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
87
|
+
:'region' => :'String'
|
82
88
|
}
|
83
89
|
end
|
84
90
|
|
@@ -101,9 +107,10 @@ module AsposeCellsCloud
|
|
101
107
|
# query parameters
|
102
108
|
query_params = {}
|
103
109
|
query_params[:'rotateType'] = self.rotate_type if !self.rotate_type.nil?
|
104
|
-
query_params[:'
|
110
|
+
query_params[:'outFormat'] = self.out_format if !self.out_format.nil?
|
105
111
|
query_params[:'password'] = self.password if !self.password.nil?
|
106
112
|
query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
|
113
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
107
114
|
|
108
115
|
# header parameters
|
109
116
|
header_params = {}
|
@@ -32,11 +32,12 @@ module AsposeCellsCloud
|
|
32
32
|
class PostSplitRequest
|
33
33
|
|
34
34
|
attr_accessor :file
|
35
|
-
attr_accessor :
|
35
|
+
attr_accessor :out_format
|
36
36
|
attr_accessor :password
|
37
37
|
attr_accessor :from
|
38
38
|
attr_accessor :to
|
39
39
|
attr_accessor :check_excel_restriction
|
40
|
+
attr_accessor :region
|
40
41
|
|
41
42
|
def initialize(attributes = {})
|
42
43
|
return unless attributes.is_a?(Hash)
|
@@ -47,8 +48,8 @@ module AsposeCellsCloud
|
|
47
48
|
if attributes.has_key?(:'File')
|
48
49
|
self.file = attributes[:'File']
|
49
50
|
end
|
50
|
-
if attributes.has_key?(:'
|
51
|
-
self.
|
51
|
+
if attributes.has_key?(:'outFormat')
|
52
|
+
self.out_format = attributes[:'outFormat']
|
52
53
|
end
|
53
54
|
if attributes.has_key?(:'password')
|
54
55
|
self.password = attributes[:'password']
|
@@ -62,17 +63,21 @@ module AsposeCellsCloud
|
|
62
63
|
if attributes.has_key?(:'checkExcelRestriction')
|
63
64
|
self.check_excel_restriction = attributes[:'checkExcelRestriction']
|
64
65
|
end
|
66
|
+
if attributes.has_key?(:'region')
|
67
|
+
self.region = attributes[:'region']
|
68
|
+
end
|
65
69
|
|
66
70
|
end
|
67
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
68
72
|
def self.attribute_map
|
69
73
|
{
|
70
74
|
:'file' => :'File',
|
71
|
-
:'
|
75
|
+
:'out_format' => :'outFormat',
|
72
76
|
:'password' => :'password',
|
73
77
|
:'from' => :'from',
|
74
78
|
:'to' => :'to',
|
75
|
-
:'check_excel_restriction' => :'checkExcelRestriction'
|
79
|
+
:'check_excel_restriction' => :'checkExcelRestriction',
|
80
|
+
:'region' => :'region'
|
76
81
|
}
|
77
82
|
end
|
78
83
|
|
@@ -80,11 +85,12 @@ module AsposeCellsCloud
|
|
80
85
|
def self.swagger_types
|
81
86
|
{
|
82
87
|
:'file' => :'Hash',
|
83
|
-
:'
|
88
|
+
:'out_format' => :'String',
|
84
89
|
:'password' => :'String',
|
85
90
|
:'from' => :'Integer',
|
86
91
|
:'to' => :'Integer',
|
87
|
-
:'check_excel_restriction' => :'BOOLEAN'
|
92
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
93
|
+
:'region' => :'String'
|
88
94
|
}
|
89
95
|
end
|
90
96
|
|
@@ -97,20 +103,21 @@ module AsposeCellsCloud
|
|
97
103
|
if api_client.config.client_side_validation && file.nil?
|
98
104
|
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_split "
|
99
105
|
end
|
100
|
-
# verify the required parameter '
|
101
|
-
if api_client.config.client_side_validation &&
|
102
|
-
fail ArgumentError, "Missing the required parameter '
|
106
|
+
# verify the required parameter 'out_format' is set
|
107
|
+
if api_client.config.client_side_validation && out_format.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'out_format' when calling CellsApi.post_split "
|
103
109
|
end
|
104
110
|
|
105
111
|
# resource path
|
106
112
|
local_var_path = "/cells/split"
|
107
113
|
# query parameters
|
108
114
|
query_params = {}
|
109
|
-
query_params[:'
|
115
|
+
query_params[:'outFormat'] = self.out_format if !self.out_format.nil?
|
110
116
|
query_params[:'password'] = self.password if !self.password.nil?
|
111
117
|
query_params[:'from'] = self.from if !self.from.nil?
|
112
118
|
query_params[:'to'] = self.to if !self.to.nil?
|
113
119
|
query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
|
120
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
114
121
|
|
115
122
|
# header parameters
|
116
123
|
header_params = {}
|
@@ -34,8 +34,10 @@ module AsposeCellsCloud
|
|
34
34
|
attr_accessor :file
|
35
35
|
attr_accessor :text
|
36
36
|
attr_accessor :color
|
37
|
+
attr_accessor :out_format
|
37
38
|
attr_accessor :password
|
38
39
|
attr_accessor :check_excel_restriction
|
40
|
+
attr_accessor :region
|
39
41
|
|
40
42
|
def initialize(attributes = {})
|
41
43
|
return unless attributes.is_a?(Hash)
|
@@ -52,12 +54,18 @@ module AsposeCellsCloud
|
|
52
54
|
if attributes.has_key?(:'color')
|
53
55
|
self.color = attributes[:'color']
|
54
56
|
end
|
57
|
+
if attributes.has_key?(:'outFormat')
|
58
|
+
self.out_format = attributes[:'outFormat']
|
59
|
+
end
|
55
60
|
if attributes.has_key?(:'password')
|
56
61
|
self.password = attributes[:'password']
|
57
62
|
end
|
58
63
|
if attributes.has_key?(:'checkExcelRestriction')
|
59
64
|
self.check_excel_restriction = attributes[:'checkExcelRestriction']
|
60
65
|
end
|
66
|
+
if attributes.has_key?(:'region')
|
67
|
+
self.region = attributes[:'region']
|
68
|
+
end
|
61
69
|
|
62
70
|
end
|
63
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -66,8 +74,10 @@ module AsposeCellsCloud
|
|
66
74
|
:'file' => :'File',
|
67
75
|
:'text' => :'text',
|
68
76
|
:'color' => :'color',
|
77
|
+
:'out_format' => :'outFormat',
|
69
78
|
:'password' => :'password',
|
70
|
-
:'check_excel_restriction' => :'checkExcelRestriction'
|
79
|
+
:'check_excel_restriction' => :'checkExcelRestriction',
|
80
|
+
:'region' => :'region'
|
71
81
|
}
|
72
82
|
end
|
73
83
|
|
@@ -77,8 +87,10 @@ module AsposeCellsCloud
|
|
77
87
|
:'file' => :'Hash',
|
78
88
|
:'text' => :'String',
|
79
89
|
:'color' => :'String',
|
90
|
+
:'out_format' => :'String',
|
80
91
|
:'password' => :'String',
|
81
|
-
:'check_excel_restriction' => :'BOOLEAN'
|
92
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
93
|
+
:'region' => :'String'
|
82
94
|
}
|
83
95
|
end
|
84
96
|
|
@@ -106,8 +118,10 @@ module AsposeCellsCloud
|
|
106
118
|
query_params = {}
|
107
119
|
query_params[:'text'] = self.text if !self.text.nil?
|
108
120
|
query_params[:'color'] = self.color if !self.color.nil?
|
121
|
+
query_params[:'outFormat'] = self.out_format if !self.out_format.nil?
|
109
122
|
query_params[:'password'] = self.password if !self.password.nil?
|
110
123
|
query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
|
124
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
111
125
|
|
112
126
|
# header parameters
|
113
127
|
header_params = {}
|
@@ -38,6 +38,7 @@ module AsposeCellsCloud
|
|
38
38
|
attr_accessor :out_path
|
39
39
|
attr_accessor :out_storage_name
|
40
40
|
attr_accessor :check_excel_restriction
|
41
|
+
attr_accessor :region
|
41
42
|
|
42
43
|
def initialize(attributes = {})
|
43
44
|
return unless attributes.is_a?(Hash)
|
@@ -66,6 +67,9 @@ module AsposeCellsCloud
|
|
66
67
|
if attributes.has_key?(:'checkExcelRestriction')
|
67
68
|
self.check_excel_restriction = attributes[:'checkExcelRestriction']
|
68
69
|
end
|
70
|
+
if attributes.has_key?(:'region')
|
71
|
+
self.region = attributes[:'region']
|
72
|
+
end
|
69
73
|
|
70
74
|
end
|
71
75
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -77,7 +81,8 @@ module AsposeCellsCloud
|
|
77
81
|
:'storage_name' => :'storageName',
|
78
82
|
:'out_path' => :'outPath',
|
79
83
|
:'out_storage_name' => :'outStorageName',
|
80
|
-
:'check_excel_restriction' => :'checkExcelRestriction'
|
84
|
+
:'check_excel_restriction' => :'checkExcelRestriction',
|
85
|
+
:'region' => :'region'
|
81
86
|
}
|
82
87
|
end
|
83
88
|
|
@@ -90,7 +95,8 @@ module AsposeCellsCloud
|
|
90
95
|
:'storage_name' => :'String',
|
91
96
|
:'out_path' => :'String',
|
92
97
|
:'out_storage_name' => :'String',
|
93
|
-
:'check_excel_restriction' => :'BOOLEAN'
|
98
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
99
|
+
:'region' => :'String'
|
94
100
|
}
|
95
101
|
end
|
96
102
|
|
@@ -114,6 +120,7 @@ module AsposeCellsCloud
|
|
114
120
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
115
121
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
116
122
|
query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
|
123
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
117
124
|
|
118
125
|
# header parameters
|
119
126
|
header_params = {}
|
@@ -0,0 +1,163 @@
|
|
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
|
+
attr_accessor :region
|
43
|
+
|
44
|
+
def initialize(attributes = {})
|
45
|
+
return unless attributes.is_a?(Hash)
|
46
|
+
|
47
|
+
# convert string to symbol for hash key
|
48
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
49
|
+
|
50
|
+
if attributes.has_key?(:'name')
|
51
|
+
self.name = attributes[:'name']
|
52
|
+
end
|
53
|
+
if attributes.has_key?(:'importJsonRequest')
|
54
|
+
self.import_json_request = attributes[:'importJsonRequest']
|
55
|
+
end
|
56
|
+
if attributes.has_key?(:'password')
|
57
|
+
self.password = attributes[:'password']
|
58
|
+
end
|
59
|
+
if attributes.has_key?(:'folder')
|
60
|
+
self.folder = attributes[:'folder']
|
61
|
+
end
|
62
|
+
if attributes.has_key?(:'storageName')
|
63
|
+
self.storage_name = attributes[:'storageName']
|
64
|
+
end
|
65
|
+
if attributes.has_key?(:'outPath')
|
66
|
+
self.out_path = attributes[:'outPath']
|
67
|
+
end
|
68
|
+
if attributes.has_key?(:'outStorageName')
|
69
|
+
self.out_storage_name = attributes[:'outStorageName']
|
70
|
+
end
|
71
|
+
if attributes.has_key?(:'checkExcelRestriction')
|
72
|
+
self.check_excel_restriction = attributes[:'checkExcelRestriction']
|
73
|
+
end
|
74
|
+
if attributes.has_key?(:'region')
|
75
|
+
self.region = attributes[:'region']
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
79
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
80
|
+
def self.attribute_map
|
81
|
+
{
|
82
|
+
:'name' => :'name',
|
83
|
+
:'import_json_request' => :'importJsonRequest',
|
84
|
+
:'password' => :'password',
|
85
|
+
:'folder' => :'folder',
|
86
|
+
:'storage_name' => :'storageName',
|
87
|
+
:'out_path' => :'outPath',
|
88
|
+
:'out_storage_name' => :'outStorageName',
|
89
|
+
:'check_excel_restriction' => :'checkExcelRestriction',
|
90
|
+
:'region' => :'region'
|
91
|
+
}
|
92
|
+
end
|
93
|
+
|
94
|
+
# Attribute type mapping.
|
95
|
+
def self.swagger_types
|
96
|
+
{
|
97
|
+
:'name' => :'String',
|
98
|
+
:'import_json_request' => :'ImportJsonRequest',
|
99
|
+
:'password' => :'String',
|
100
|
+
:'folder' => :'String',
|
101
|
+
:'storage_name' => :'String',
|
102
|
+
:'out_path' => :'String',
|
103
|
+
:'out_storage_name' => :'String',
|
104
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
105
|
+
:'region' => :'String'
|
106
|
+
}
|
107
|
+
end
|
108
|
+
|
109
|
+
def create_http_request(api_client,opts = {})
|
110
|
+
if api_client.config.debugging
|
111
|
+
api_client.config.logger.debug "Calling API: CellsApi.post_workbook_import_json ..."
|
112
|
+
end
|
113
|
+
api_client.request_token_if_needed
|
114
|
+
# verify the required parameter 'name' is set
|
115
|
+
if api_client.config.client_side_validation && name.nil?
|
116
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.post_workbook_import_json "
|
117
|
+
end
|
118
|
+
# verify the required parameter 'import_json_request' is set
|
119
|
+
if api_client.config.client_side_validation && import_json_request.nil?
|
120
|
+
fail ArgumentError, "Missing the required parameter 'import_json_request' when calling CellsApi.post_workbook_import_json "
|
121
|
+
end
|
122
|
+
|
123
|
+
# resource path
|
124
|
+
local_var_path = "/cells/{name}/importjson".sub('{' + 'name' + '}', name.to_s)
|
125
|
+
# query parameters
|
126
|
+
query_params = {}
|
127
|
+
query_params[:'password'] = self.password if !self.password.nil?
|
128
|
+
query_params[:'folder'] = self.folder if !self.folder.nil?
|
129
|
+
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
130
|
+
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
131
|
+
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
132
|
+
query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
|
133
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
134
|
+
|
135
|
+
# header parameters
|
136
|
+
header_params = {}
|
137
|
+
# HTTP header 'Accept' (if needed)
|
138
|
+
header_params['Accept'] = api_client.select_header_accept(['application/json'])
|
139
|
+
# HTTP header 'Content-Type'
|
140
|
+
header_params['Content-Type'] = api_client.select_header_content_type(['application/json'])
|
141
|
+
|
142
|
+
# form parameters
|
143
|
+
form_params = {}
|
144
|
+
post_body = nil
|
145
|
+
post_body = api_client.object_to_http_body(import_json_request)
|
146
|
+
|
147
|
+
|
148
|
+
#auth_names = []
|
149
|
+
auth_names = ['JWT']
|
150
|
+
data, status_code, headers = api_client.call_api(:POST, local_var_path,
|
151
|
+
:header_params => header_params,
|
152
|
+
:query_params => query_params,
|
153
|
+
:form_params => form_params,
|
154
|
+
:body => post_body,
|
155
|
+
:auth_names => auth_names,
|
156
|
+
:return_type => 'File')
|
157
|
+
if api_client.config.debugging
|
158
|
+
api_client.config.logger.debug "API called: Specification.Name>Api.post_workbook_import_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
159
|
+
end
|
160
|
+
return data, status_code, headers
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
@@ -39,6 +39,7 @@ module AsposeCellsCloud
|
|
39
39
|
attr_accessor :out_path
|
40
40
|
attr_accessor :out_storage_name
|
41
41
|
attr_accessor :check_excel_restriction
|
42
|
+
attr_accessor :region
|
42
43
|
|
43
44
|
def initialize(attributes = {})
|
44
45
|
return unless attributes.is_a?(Hash)
|
@@ -70,6 +71,9 @@ module AsposeCellsCloud
|
|
70
71
|
if attributes.has_key?(:'checkExcelRestriction')
|
71
72
|
self.check_excel_restriction = attributes[:'checkExcelRestriction']
|
72
73
|
end
|
74
|
+
if attributes.has_key?(:'region')
|
75
|
+
self.region = attributes[:'region']
|
76
|
+
end
|
73
77
|
|
74
78
|
end
|
75
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -82,7 +86,8 @@ module AsposeCellsCloud
|
|
82
86
|
:'storage_name' => :'storageName',
|
83
87
|
:'out_path' => :'outPath',
|
84
88
|
:'out_storage_name' => :'outStorageName',
|
85
|
-
:'check_excel_restriction' => :'checkExcelRestriction'
|
89
|
+
:'check_excel_restriction' => :'checkExcelRestriction',
|
90
|
+
:'region' => :'region'
|
86
91
|
}
|
87
92
|
end
|
88
93
|
|
@@ -96,7 +101,8 @@ module AsposeCellsCloud
|
|
96
101
|
:'storage_name' => :'String',
|
97
102
|
:'out_path' => :'String',
|
98
103
|
:'out_storage_name' => :'String',
|
99
|
-
:'check_excel_restriction' => :'BOOLEAN'
|
104
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
105
|
+
:'region' => :'String'
|
100
106
|
}
|
101
107
|
end
|
102
108
|
|
@@ -124,6 +130,7 @@ module AsposeCellsCloud
|
|
124
130
|
query_params[:'outPath'] = self.out_path if !self.out_path.nil?
|
125
131
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
126
132
|
query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
|
133
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
127
134
|
|
128
135
|
# header parameters
|
129
136
|
header_params = {}
|
@@ -40,6 +40,7 @@ module AsposeCellsCloud
|
|
40
40
|
attr_accessor :storage_name
|
41
41
|
attr_accessor :out_storage_name
|
42
42
|
attr_accessor :check_excel_restriction
|
43
|
+
attr_accessor :region
|
43
44
|
|
44
45
|
def initialize(attributes = {})
|
45
46
|
return unless attributes.is_a?(Hash)
|
@@ -74,6 +75,9 @@ module AsposeCellsCloud
|
|
74
75
|
if attributes.has_key?(:'checkExcelRestriction')
|
75
76
|
self.check_excel_restriction = attributes[:'checkExcelRestriction']
|
76
77
|
end
|
78
|
+
if attributes.has_key?(:'region')
|
79
|
+
self.region = attributes[:'region']
|
80
|
+
end
|
77
81
|
|
78
82
|
end
|
79
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -87,7 +91,8 @@ module AsposeCellsCloud
|
|
87
91
|
:'folder' => :'folder',
|
88
92
|
:'storage_name' => :'storageName',
|
89
93
|
:'out_storage_name' => :'outStorageName',
|
90
|
-
:'check_excel_restriction' => :'checkExcelRestriction'
|
94
|
+
:'check_excel_restriction' => :'checkExcelRestriction',
|
95
|
+
:'region' => :'region'
|
91
96
|
}
|
92
97
|
end
|
93
98
|
|
@@ -102,7 +107,8 @@ module AsposeCellsCloud
|
|
102
107
|
:'folder' => :'String',
|
103
108
|
:'storage_name' => :'String',
|
104
109
|
:'out_storage_name' => :'String',
|
105
|
-
:'check_excel_restriction' => :'BOOLEAN'
|
110
|
+
:'check_excel_restriction' => :'BOOLEAN',
|
111
|
+
:'region' => :'String'
|
106
112
|
}
|
107
113
|
end
|
108
114
|
|
@@ -131,6 +137,7 @@ module AsposeCellsCloud
|
|
131
137
|
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
132
138
|
query_params[:'outStorageName'] = self.out_storage_name if !self.out_storage_name.nil?
|
133
139
|
query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
|
140
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
134
141
|
|
135
142
|
# header parameters
|
136
143
|
header_params = {}
|
@@ -38,6 +38,7 @@ module AsposeCellsCloud
|
|
38
38
|
attr_accessor :storage_name
|
39
39
|
attr_accessor :check_excel_restriction
|
40
40
|
attr_accessor :stream_format
|
41
|
+
attr_accessor :region
|
41
42
|
|
42
43
|
def initialize(attributes = {})
|
43
44
|
return unless attributes.is_a?(Hash)
|
@@ -66,6 +67,9 @@ module AsposeCellsCloud
|
|
66
67
|
if attributes.has_key?(:'streamFormat')
|
67
68
|
self.stream_format = attributes[:'streamFormat']
|
68
69
|
end
|
70
|
+
if attributes.has_key?(:'region')
|
71
|
+
self.region = attributes[:'region']
|
72
|
+
end
|
69
73
|
|
70
74
|
end
|
71
75
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -77,7 +81,8 @@ module AsposeCellsCloud
|
|
77
81
|
:'out_path' => :'outPath',
|
78
82
|
:'storage_name' => :'storageName',
|
79
83
|
:'check_excel_restriction' => :'checkExcelRestriction',
|
80
|
-
:'stream_format' => :'streamFormat'
|
84
|
+
:'stream_format' => :'streamFormat',
|
85
|
+
:'region' => :'region'
|
81
86
|
}
|
82
87
|
end
|
83
88
|
|
@@ -90,7 +95,8 @@ module AsposeCellsCloud
|
|
90
95
|
:'out_path' => :'String',
|
91
96
|
:'storage_name' => :'String',
|
92
97
|
:'check_excel_restriction' => :'BOOLEAN',
|
93
|
-
:'stream_format' => :'String'
|
98
|
+
:'stream_format' => :'String',
|
99
|
+
:'region' => :'String'
|
94
100
|
}
|
95
101
|
end
|
96
102
|
|
@@ -114,6 +120,7 @@ module AsposeCellsCloud
|
|
114
120
|
query_params[:'storageName'] = self.storage_name if !self.storage_name.nil?
|
115
121
|
query_params[:'checkExcelRestriction'] = self.check_excel_restriction if !self.check_excel_restriction.nil?
|
116
122
|
query_params[:'streamFormat'] = self.stream_format if !self.stream_format.nil?
|
123
|
+
query_params[:'region'] = self.region if !self.region.nil?
|
117
124
|
|
118
125
|
# header parameters
|
119
126
|
header_params = {}
|
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'
|
@@ -306,6 +306,7 @@ require 'aspose_cells_cloud/models/batch_split_request'
|
|
306
306
|
require 'aspose_cells_cloud/models/color_filter_request'
|
307
307
|
require 'aspose_cells_cloud/models/convert_parameter'
|
308
308
|
require 'aspose_cells_cloud/models/create_pivot_table_request'
|
309
|
+
require 'aspose_cells_cloud/models/import_json_request'
|
309
310
|
require 'aspose_cells_cloud/models/import_xml_request'
|
310
311
|
require 'aspose_cells_cloud/models/match_condition_request'
|
311
312
|
require 'aspose_cells_cloud/models/password_request'
|
@@ -525,6 +526,11 @@ require 'aspose_cells_cloud/requests/post_convert_workbook_to_markdown_request'
|
|
525
526
|
require 'aspose_cells_cloud/requests/post_convert_workbook_to_json_request'
|
526
527
|
require 'aspose_cells_cloud/requests/post_convert_workbook_to_sql_request'
|
527
528
|
require 'aspose_cells_cloud/requests/post_convert_workbook_to_csv_request'
|
529
|
+
require 'aspose_cells_cloud/requests/post_export_request'
|
530
|
+
require 'aspose_cells_cloud/requests/post_workbook_export_xml_request'
|
531
|
+
require 'aspose_cells_cloud/requests/post_workbook_import_json_request'
|
532
|
+
require 'aspose_cells_cloud/requests/post_workbook_import_xml_request'
|
533
|
+
require 'aspose_cells_cloud/requests/post_import_data_request'
|
528
534
|
require 'aspose_cells_cloud/requests/get_worksheet_hyperlinks_request'
|
529
535
|
require 'aspose_cells_cloud/requests/get_worksheet_hyperlink_request'
|
530
536
|
require 'aspose_cells_cloud/requests/delete_worksheet_hyperlink_request'
|
@@ -533,7 +539,6 @@ require 'aspose_cells_cloud/requests/put_worksheet_hyperlink_request'
|
|
533
539
|
require 'aspose_cells_cloud/requests/delete_worksheet_hyperlinks_request'
|
534
540
|
require 'aspose_cells_cloud/requests/post_assemble_request'
|
535
541
|
require 'aspose_cells_cloud/requests/post_compress_request'
|
536
|
-
require 'aspose_cells_cloud/requests/post_export_request'
|
537
542
|
require 'aspose_cells_cloud/requests/post_merge_request'
|
538
543
|
require 'aspose_cells_cloud/requests/post_split_request'
|
539
544
|
require 'aspose_cells_cloud/requests/post_search_request'
|
@@ -668,7 +673,6 @@ require 'aspose_cells_cloud/requests/post_workbook_text_replace_request'
|
|
668
673
|
require 'aspose_cells_cloud/requests/post_workbook_get_smart_marker_result_request'
|
669
674
|
require 'aspose_cells_cloud/requests/put_workbook_create_request'
|
670
675
|
require 'aspose_cells_cloud/requests/post_workbook_split_request'
|
671
|
-
require 'aspose_cells_cloud/requests/post_import_data_request'
|
672
676
|
require 'aspose_cells_cloud/requests/post_workbook_calculate_formula_request'
|
673
677
|
require 'aspose_cells_cloud/requests/post_autofit_workbook_rows_request'
|
674
678
|
require 'aspose_cells_cloud/requests/post_autofit_workbook_columns_request'
|
@@ -723,8 +727,6 @@ require 'aspose_cells_cloud/requests/put_worksheet_validation_request'
|
|
723
727
|
require 'aspose_cells_cloud/requests/post_worksheet_validation_request'
|
724
728
|
require 'aspose_cells_cloud/requests/delete_worksheet_validation_request'
|
725
729
|
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
730
|
require 'aspose_cells_cloud/requests/download_file_request'
|
729
731
|
require 'aspose_cells_cloud/requests/upload_file_request'
|
730
732
|
require 'aspose_cells_cloud/requests/copy_file_request'
|
@@ -28,7 +28,7 @@ describe 'CellsApi' do
|
|
28
28
|
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
29
29
|
@instance.upload_file(uploadrequest)
|
30
30
|
batchConvertRequestMatchCondition = AsposeCellsCloud::MatchConditionRequest.new(:RegexPattern=>'(^Book)(.+)(xlsx$)' );
|
31
|
-
batchConvertRequest = AsposeCellsCloud::BatchConvertRequest.new(:SourceFolder=>remote_folder ,:Format=>'pdf' ,:OutFolder=>'
|
31
|
+
batchConvertRequest = AsposeCellsCloud::BatchConvertRequest.new(:SourceFolder=>remote_folder ,:Format=>'pdf' ,:OutFolder=>'OutResult' ,:MatchCondition=>batchConvertRequestMatchCondition );
|
32
32
|
request = AsposeCellsCloud::PostBatchConvertRequest.new(:batchConvertRequest=>batchConvertRequest);
|
33
33
|
@instance.post_batch_convert(request);
|
34
34
|
end
|
@@ -51,7 +51,7 @@ describe 'CellsApi' do
|
|
51
51
|
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
52
52
|
@instance.upload_file(uploadrequest)
|
53
53
|
batchProtectRequestMatchCondition = AsposeCellsCloud::MatchConditionRequest.new(:RegexPattern=>'(^Book)(.+)(xlsx$)' );
|
54
|
-
batchProtectRequest = AsposeCellsCloud::BatchProtectRequest.new(:SourceFolder=>remote_folder ,:ProtectionType=>'All' ,:Password=>'123456' ,:OutFolder=>'
|
54
|
+
batchProtectRequest = AsposeCellsCloud::BatchProtectRequest.new(:SourceFolder=>remote_folder ,:ProtectionType=>'All' ,:Password=>'123456' ,:OutFolder=>'OutResult' ,:MatchCondition=>batchProtectRequestMatchCondition );
|
55
55
|
request = AsposeCellsCloud::PostBatchProtectRequest.new(:batchProtectRequest=>batchProtectRequest);
|
56
56
|
@instance.post_batch_protect(request);
|
57
57
|
end
|
@@ -74,7 +74,7 @@ describe 'CellsApi' do
|
|
74
74
|
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
75
75
|
@instance.upload_file(uploadrequest)
|
76
76
|
batchLockRequestMatchCondition = AsposeCellsCloud::MatchConditionRequest.new(:RegexPattern=>'(^Book)(.+)(xlsx$)' );
|
77
|
-
batchLockRequest = AsposeCellsCloud::BatchLockRequest.new(:SourceFolder=>remote_folder ,:Password=>'123456' ,:OutFolder=>'
|
77
|
+
batchLockRequest = AsposeCellsCloud::BatchLockRequest.new(:SourceFolder=>remote_folder ,:Password=>'123456' ,:OutFolder=>'OutResult' ,:MatchCondition=>batchLockRequestMatchCondition );
|
78
78
|
request = AsposeCellsCloud::PostBatchLockRequest.new(:batchLockRequest=>batchLockRequest);
|
79
79
|
@instance.post_batch_lock(request);
|
80
80
|
end
|
@@ -97,7 +97,7 @@ describe 'CellsApi' do
|
|
97
97
|
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
98
98
|
@instance.upload_file(uploadrequest)
|
99
99
|
batchLockRequestMatchCondition = AsposeCellsCloud::MatchConditionRequest.new(:RegexPattern=>'(^Book)(.+)(xlsx$)' );
|
100
|
-
batchLockRequest = AsposeCellsCloud::BatchLockRequest.new(:SourceFolder=>remote_folder ,:Password=>'123456' ,:OutFolder=>'
|
100
|
+
batchLockRequest = AsposeCellsCloud::BatchLockRequest.new(:SourceFolder=>remote_folder ,:Password=>'123456' ,:OutFolder=>'OutResult' ,:MatchCondition=>batchLockRequestMatchCondition );
|
101
101
|
request = AsposeCellsCloud::PostBatchUnlockRequest.new(:batchLockRequest=>batchLockRequest);
|
102
102
|
@instance.post_batch_unlock(request);
|
103
103
|
end
|