aspose_cells_cloud 23.11 → 23.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -5
- data/lib/aspose_cells_cloud/api/cells_api.rb +94 -88
- 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/import_json_request.rb +1 -1
- 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 +9 -2
- 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 +0 -2
- data/spec/api/batch_controller_spec.rb +4 -4
- data/spec/api/workbook_controller_spec.rb +1 -1
- data/spec/conversion/conversion_json_spec.rb +0 -44
- data/spec/conversion/conversion_png_spec.rb +0 -88
- data/spec/conversion/conversion_spec.rb +0 -239
- data/spec/document/light_cells_spec.rb +80 -192
- metadata +2 -2
@@ -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 = {}
|
@@ -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 = {}
|
@@ -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
@@ -194,8 +194,6 @@ 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'
|
199
197
|
require 'aspose_cells_cloud/models/border_response'
|
200
198
|
require 'aspose_cells_cloud/models/button_response'
|
201
199
|
require 'aspose_cells_cloud/models/calculate_formula_response'
|
@@ -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
|
@@ -416,7 +416,7 @@ describe 'CellsApi' do
|
|
416
416
|
|
417
417
|
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
418
418
|
@instance.upload_file(uploadrequest)
|
419
|
-
request = AsposeCellsCloud::PostWorkbookSplitRequest.new(:name=>remote_name,:format=>'png',:outFolder=>'OutResult',:from=>1,:to=>5,:splitNameRule=>'sheetname',:folder=>remote_folder,:storageName=>'',:outStorageName=>'');
|
419
|
+
request = AsposeCellsCloud::PostWorkbookSplitRequest.new(:name=>remote_name,:format=>'png',:outFolder=>'OutResult',:from=>1,:to=>5,:horizontalResolution=>96,:verticalResolution=>96,:splitNameRule=>'sheetname',:folder=>remote_folder,:storageName=>'',:outStorageName=>'');
|
420
420
|
@instance.post_workbook_split(request);
|
421
421
|
end
|
422
422
|
end
|
@@ -209,28 +209,6 @@ describe 'CellsApi' do
|
|
209
209
|
end
|
210
210
|
end
|
211
211
|
|
212
|
-
describe 'convert_workbook_xlsx test' do
|
213
|
-
it "should work" do
|
214
|
-
remote_folder = 'TestData/In'
|
215
|
-
|
216
|
-
local_name = 'codegen-spec.json'
|
217
|
-
remote_name = 'codegen-spec.json'
|
218
|
-
|
219
|
-
format = "xlsx"
|
220
|
-
|
221
|
-
|
222
|
-
mapFiles = { }
|
223
|
-
mapFiles = { }
|
224
|
-
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
225
|
-
|
226
|
-
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
227
|
-
@instance.upload_file(uploadrequest)
|
228
|
-
mapFiles[local_name]= ::File.open(File.expand_path("TestData/"+local_name),"r")
|
229
|
-
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:format=>format);
|
230
|
-
@instance.put_convert_workbook(request);
|
231
|
-
end
|
232
|
-
end
|
233
|
-
|
234
212
|
describe 'convert_workbook_xps test' do
|
235
213
|
it "should work" do
|
236
214
|
remote_folder = 'TestData/In'
|
@@ -253,28 +231,6 @@ describe 'CellsApi' do
|
|
253
231
|
end
|
254
232
|
end
|
255
233
|
|
256
|
-
describe 'convert_workbook_png test' do
|
257
|
-
it "should work" do
|
258
|
-
remote_folder = 'TestData/In'
|
259
|
-
|
260
|
-
local_name = 'codegen-spec.json'
|
261
|
-
remote_name = 'codegen-spec.json'
|
262
|
-
|
263
|
-
format = "png"
|
264
|
-
|
265
|
-
|
266
|
-
mapFiles = { }
|
267
|
-
mapFiles = { }
|
268
|
-
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
269
|
-
|
270
|
-
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
271
|
-
@instance.upload_file(uploadrequest)
|
272
|
-
mapFiles[local_name]= ::File.open(File.expand_path("TestData/"+local_name),"r")
|
273
|
-
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:format=>format);
|
274
|
-
@instance.put_convert_workbook(request);
|
275
|
-
end
|
276
|
-
end
|
277
|
-
|
278
234
|
describe 'convert_workbook_md test' do
|
279
235
|
it "should work" do
|
280
236
|
remote_folder = 'TestData/In'
|
@@ -143,28 +143,6 @@ describe 'CellsApi' do
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
describe 'convert_workbook_xlsb test' do
|
147
|
-
it "should work" do
|
148
|
-
remote_folder = 'TestData/In'
|
149
|
-
|
150
|
-
local_name = 'cloud.png'
|
151
|
-
remote_name = 'cloud.png'
|
152
|
-
|
153
|
-
format = "xlsb"
|
154
|
-
|
155
|
-
|
156
|
-
mapFiles = { }
|
157
|
-
mapFiles = { }
|
158
|
-
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
159
|
-
|
160
|
-
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
161
|
-
@instance.upload_file(uploadrequest)
|
162
|
-
mapFiles[local_name]= ::File.open(File.expand_path("TestData/"+local_name),"r")
|
163
|
-
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:format=>format);
|
164
|
-
@instance.put_convert_workbook(request);
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
146
|
describe 'convert_workbook_xps test' do
|
169
147
|
it "should work" do
|
170
148
|
remote_folder = 'TestData/In'
|
@@ -285,72 +263,6 @@ describe 'CellsApi' do
|
|
285
263
|
format = "docx"
|
286
264
|
|
287
265
|
|
288
|
-
mapFiles = { }
|
289
|
-
mapFiles = { }
|
290
|
-
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
291
|
-
|
292
|
-
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
293
|
-
@instance.upload_file(uploadrequest)
|
294
|
-
mapFiles[local_name]= ::File.open(File.expand_path("TestData/"+local_name),"r")
|
295
|
-
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:format=>format);
|
296
|
-
@instance.put_convert_workbook(request);
|
297
|
-
end
|
298
|
-
end
|
299
|
-
|
300
|
-
describe 'convert_workbook_pptx test' do
|
301
|
-
it "should work" do
|
302
|
-
remote_folder = 'TestData/In'
|
303
|
-
|
304
|
-
local_name = 'cloud.png'
|
305
|
-
remote_name = 'cloud.png'
|
306
|
-
|
307
|
-
format = "pptx"
|
308
|
-
|
309
|
-
|
310
|
-
mapFiles = { }
|
311
|
-
mapFiles = { }
|
312
|
-
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
313
|
-
|
314
|
-
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
315
|
-
@instance.upload_file(uploadrequest)
|
316
|
-
mapFiles[local_name]= ::File.open(File.expand_path("TestData/"+local_name),"r")
|
317
|
-
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:format=>format);
|
318
|
-
@instance.put_convert_workbook(request);
|
319
|
-
end
|
320
|
-
end
|
321
|
-
|
322
|
-
describe 'convert_workbook_json test' do
|
323
|
-
it "should work" do
|
324
|
-
remote_folder = 'TestData/In'
|
325
|
-
|
326
|
-
local_name = 'cloud.png'
|
327
|
-
remote_name = 'cloud.png'
|
328
|
-
|
329
|
-
format = "json"
|
330
|
-
|
331
|
-
|
332
|
-
mapFiles = { }
|
333
|
-
mapFiles = { }
|
334
|
-
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|
335
|
-
|
336
|
-
uploadrequest = AsposeCellsCloud::UploadFileRequest.new( { :UploadFiles=>mapFiles,:path=>remote_folder })
|
337
|
-
@instance.upload_file(uploadrequest)
|
338
|
-
mapFiles[local_name]= ::File.open(File.expand_path("TestData/"+local_name),"r")
|
339
|
-
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:format=>format);
|
340
|
-
@instance.put_convert_workbook(request);
|
341
|
-
end
|
342
|
-
end
|
343
|
-
|
344
|
-
describe 'convert_workbook_sql test' do
|
345
|
-
it "should work" do
|
346
|
-
remote_folder = 'TestData/In'
|
347
|
-
|
348
|
-
local_name = 'cloud.png'
|
349
|
-
remote_name = 'cloud.png'
|
350
|
-
|
351
|
-
format = "sql"
|
352
|
-
|
353
|
-
|
354
266
|
mapFiles = { }
|
355
267
|
mapFiles = { }
|
356
268
|
mapFiles[local_name] = ::File.open(File.expand_path("TestData/"+local_name),"r")
|