aspose_slides_cloud 24.8.0 → 24.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -7
- data/README.md +4 -0
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +110 -0
- data/lib/aspose_slides_cloud/models/shape_base.rb +0 -5
- data/lib/aspose_slides_cloud/models/table_row.rb +0 -10
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_async_api_spec.rb +170 -0
- data/testRules.json +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c8fcabd1dec89602f7187e17e260535eb94f19956482773ac9cb3c2a662236e
|
4
|
+
data.tar.gz: 47ffe13f3b3b81b71141b8fccea059515f4f01d87e0cff7b2eb16d8f8d267692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33aeef7fe847968ddd2391a4bd4154a83130c109bbd6f00d90e203049cbf94fb228bf11b74dacbea76ea2a2568996abf4b94bc0a6e870de1c5f1db0043a0291c
|
7
|
+
data.tar.gz: 8295d67f63e70d40de051485920906ab8be1b58a9fece34c4f965702cbcd5b2837883a038988bb401527a49109f1e2ba081f9f94413cc70ff330113b00b97fb2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aspose_slides_cloud (24.
|
4
|
+
aspose_slides_cloud (24.9.0)
|
5
5
|
faraday (~> 1.0, >= 1.0.0)
|
6
6
|
faraday-httpclient (~> 1.0, >= 1.0.0)
|
7
7
|
httpclient (~> 2.2, >= 2.2.0)
|
@@ -23,7 +23,7 @@ GEM
|
|
23
23
|
bigdecimal
|
24
24
|
rexml
|
25
25
|
diff-lcs (1.5.1)
|
26
|
-
faraday (1.10.
|
26
|
+
faraday (1.10.4)
|
27
27
|
faraday-em_http (~> 1.0)
|
28
28
|
faraday-em_synchrony (~> 1.0)
|
29
29
|
faraday-excon (~> 1.1)
|
@@ -52,15 +52,14 @@ GEM
|
|
52
52
|
multipart-post (2.4.1)
|
53
53
|
public_suffix (6.0.1)
|
54
54
|
rake (12.3.3)
|
55
|
-
rexml (3.3.
|
56
|
-
strscan
|
55
|
+
rexml (3.3.8)
|
57
56
|
rspec (3.13.0)
|
58
57
|
rspec-core (~> 3.13.0)
|
59
58
|
rspec-expectations (~> 3.13.0)
|
60
59
|
rspec-mocks (~> 3.13.0)
|
61
|
-
rspec-core (3.13.
|
60
|
+
rspec-core (3.13.1)
|
62
61
|
rspec-support (~> 3.13.0)
|
63
|
-
rspec-expectations (3.13.
|
62
|
+
rspec-expectations (3.13.3)
|
64
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
65
64
|
rspec-support (~> 3.13.0)
|
66
65
|
rspec-mocks (3.13.1)
|
@@ -71,7 +70,6 @@ GEM
|
|
71
70
|
rspec-core (>= 2, < 4, != 2.12.0)
|
72
71
|
ruby2_keywords (0.0.5)
|
73
72
|
rubyzip (2.3.2)
|
74
|
-
strscan (3.1.0)
|
75
73
|
vcr (3.0.3)
|
76
74
|
warning (1.4.0)
|
77
75
|
webmock (1.24.6)
|
data/README.md
CHANGED
@@ -27,6 +27,10 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
|
|
27
27
|
**Web:** HTML/HTML5
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
29
29
|
|
30
|
+
## Enhancements in Version 24.9
|
31
|
+
|
32
|
+
* Added **Upload** and **Download** methods to async API. They are identical to **UploadFile** and **DownloadFile** methods of the regular API, but file size is not restricted for them.
|
33
|
+
|
30
34
|
## Enhancements in Version 24.8
|
31
35
|
|
32
36
|
* Added **StartSplit** and **StartUploadAndSplit** methods to async API.
|
@@ -30,6 +30,58 @@ module AsposeSlidesCloud
|
|
30
30
|
@api_client = AsposeSlidesCloud::ApiClient.new(configuration)
|
31
31
|
end
|
32
32
|
|
33
|
+
# @param path
|
34
|
+
# @param storage_name
|
35
|
+
# @param version_id
|
36
|
+
def download(path, storage_name = nil, version_id = nil)
|
37
|
+
data, _status_code, _headers = download_with_http_info(path, storage_name, version_id)
|
38
|
+
data
|
39
|
+
end
|
40
|
+
|
41
|
+
# @param path
|
42
|
+
# @param storage_name
|
43
|
+
# @param version_id
|
44
|
+
def download_with_http_info(path, storage_name = nil, version_id = nil)
|
45
|
+
if @api_client.config.debugging
|
46
|
+
@api_client.config.logger.debug 'Calling API: SlidesAsyncApi.download ...'
|
47
|
+
end
|
48
|
+
|
49
|
+
# verify the required parameter 'path' is set
|
50
|
+
if @api_client.config.client_side_validation && path.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling SlidesAsyncApi.download"
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/slides/async/storage/file/{path}'
|
55
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'path', path)
|
56
|
+
|
57
|
+
# query parameters
|
58
|
+
query_params = {}
|
59
|
+
query_params[:'storageName'] = @api_client.prepare_for_query(storage_name) unless storage_name.nil?
|
60
|
+
query_params[:'versionId'] = @api_client.prepare_for_query(version_id) unless version_id.nil?
|
61
|
+
|
62
|
+
# header parameters
|
63
|
+
header_params = {}
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
66
|
+
# HTTP header 'Content-Type'
|
67
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = nil
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
post_files = []
|
74
|
+
|
75
|
+
auth_names = ['JWT']
|
76
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:body => post_body,
|
80
|
+
:files => post_files,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => 'File')
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
33
85
|
# @param id
|
34
86
|
def get_operation_result(id)
|
35
87
|
data, _status_code, _headers = get_operation_result_with_http_info(id)
|
@@ -706,5 +758,63 @@ module AsposeSlidesCloud
|
|
706
758
|
:return_type => 'String')
|
707
759
|
return data, status_code, headers
|
708
760
|
end
|
761
|
+
# @param path
|
762
|
+
# @param file File to upload
|
763
|
+
# @param storage_name
|
764
|
+
def upload(path, file, storage_name = nil)
|
765
|
+
data, _status_code, _headers = upload_with_http_info(path, file, storage_name)
|
766
|
+
data
|
767
|
+
end
|
768
|
+
|
769
|
+
# @param path
|
770
|
+
# @param file File to upload
|
771
|
+
# @param storage_name
|
772
|
+
def upload_with_http_info(path, file, storage_name = nil)
|
773
|
+
if @api_client.config.debugging
|
774
|
+
@api_client.config.logger.debug 'Calling API: SlidesAsyncApi.upload ...'
|
775
|
+
end
|
776
|
+
|
777
|
+
# verify the required parameter 'path' is set
|
778
|
+
if @api_client.config.client_side_validation && path.nil?
|
779
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling SlidesAsyncApi.upload"
|
780
|
+
end
|
781
|
+
# verify the required parameter 'file' is set
|
782
|
+
if @api_client.config.client_side_validation && file.nil?
|
783
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling SlidesAsyncApi.upload"
|
784
|
+
end
|
785
|
+
# resource path
|
786
|
+
local_var_path = '/slides/async/storage/file/{path}'
|
787
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'path', path)
|
788
|
+
|
789
|
+
# query parameters
|
790
|
+
query_params = {}
|
791
|
+
query_params[:'storageName'] = @api_client.prepare_for_query(storage_name) unless storage_name.nil?
|
792
|
+
|
793
|
+
# header parameters
|
794
|
+
header_params = {}
|
795
|
+
# HTTP header 'Accept' (if needed)
|
796
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
797
|
+
# HTTP header 'Content-Type'
|
798
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
799
|
+
|
800
|
+
# http body (model)
|
801
|
+
post_body = nil
|
802
|
+
|
803
|
+
# form parameters
|
804
|
+
post_files = []
|
805
|
+
if file
|
806
|
+
post_files = post_files.push(file)
|
807
|
+
end
|
808
|
+
|
809
|
+
auth_names = ['JWT']
|
810
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
811
|
+
:header_params => header_params,
|
812
|
+
:query_params => query_params,
|
813
|
+
:body => post_body,
|
814
|
+
:files => post_files,
|
815
|
+
:auth_names => auth_names,
|
816
|
+
:return_type => 'FilesUploadResult')
|
817
|
+
return data, status_code, headers
|
818
|
+
end
|
709
819
|
end
|
710
820
|
end
|
@@ -199,10 +199,6 @@ module AsposeSlidesCloud
|
|
199
199
|
# @return Array for valid properties with the reasons
|
200
200
|
def list_invalid_properties
|
201
201
|
invalid_properties = super
|
202
|
-
if @z_order_position.nil?
|
203
|
-
invalid_properties.push('invalid value for "z_order_position", z_order_position cannot be nil.')
|
204
|
-
end
|
205
|
-
|
206
202
|
invalid_properties
|
207
203
|
end
|
208
204
|
|
@@ -210,7 +206,6 @@ module AsposeSlidesCloud
|
|
210
206
|
# @return true if the model is valid
|
211
207
|
def valid?
|
212
208
|
return false if !super
|
213
|
-
return false if @z_order_position.nil?
|
214
209
|
type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape', 'ZoomFrame', 'SectionZoomFrame', 'SummaryZoomFrame', 'SummaryZoomSection'])
|
215
210
|
return false unless type_validator.valid?(@type)
|
216
211
|
true
|
@@ -79,22 +79,12 @@ module AsposeSlidesCloud
|
|
79
79
|
# @return Array for valid properties with the reasons
|
80
80
|
def list_invalid_properties
|
81
81
|
invalid_properties = Array.new
|
82
|
-
if @minimal_height.nil?
|
83
|
-
invalid_properties.push('invalid value for "minimal_height", minimal_height cannot be nil.')
|
84
|
-
end
|
85
|
-
|
86
|
-
if @height.nil?
|
87
|
-
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
88
|
-
end
|
89
|
-
|
90
82
|
invalid_properties
|
91
83
|
end
|
92
84
|
|
93
85
|
# Check to see if the all the properties in the model are valid
|
94
86
|
# @return true if the model is valid
|
95
87
|
def valid?
|
96
|
-
return false if @minimal_height.nil?
|
97
|
-
return false if @height.nil?
|
98
88
|
true
|
99
89
|
end
|
100
90
|
|
@@ -28,6 +28,91 @@ require 'spec_helper'
|
|
28
28
|
# Please update as you see appropriate
|
29
29
|
describe 'SlidesAsyncApi' do
|
30
30
|
|
31
|
+
# unit tests for download
|
32
|
+
# @param path
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @option opts [String] :storage_name
|
35
|
+
# @option opts [String] :version_id
|
36
|
+
# @return [File]
|
37
|
+
describe 'download test' do
|
38
|
+
it 'should work' do
|
39
|
+
parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Download', 'String')
|
40
|
+
paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Download', 'String')
|
41
|
+
paramversion_id = AsposeSlidesCloud::SpecUtils.get_param_value('versionId', 'Download', 'String')
|
42
|
+
AsposeSlidesCloud::SpecUtils.initialize('Download', nil, nil)
|
43
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.download_with_http_info(parampath, paramstorage_name, paramversion_id)
|
44
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', nil, nil, nil)
|
45
|
+
expect(c).to eq(code)
|
46
|
+
expect(o).not_to be_nil
|
47
|
+
end
|
48
|
+
|
49
|
+
it 'invalid path' do
|
50
|
+
parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Download', 'String')
|
51
|
+
paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Download', 'String')
|
52
|
+
paramversion_id = AsposeSlidesCloud::SpecUtils.get_param_value('versionId', 'Download', 'String')
|
53
|
+
parampath = AsposeSlidesCloud::SpecUtils.invalidize_param_value('path', 'Download', parampath, 'String')
|
54
|
+
AsposeSlidesCloud::SpecUtils.initialize('Download', 'path', parampath)
|
55
|
+
begin
|
56
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.download_with_http_info(parampath, paramstorage_name, paramversion_id)
|
57
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('Download', 'path')
|
58
|
+
fail "An exception expected"
|
59
|
+
end
|
60
|
+
rescue AsposeSlidesCloud::ApiError => e
|
61
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'path', parampath, 'String')
|
62
|
+
expect(e.code).to eq(code)
|
63
|
+
expect(e.response_body).to include(message)
|
64
|
+
rescue ArgumentError => e
|
65
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'path', parampath, 'String')
|
66
|
+
expect(400).to eq(code)
|
67
|
+
expect(e.message).to include(message)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
it 'invalid storage_name' do
|
72
|
+
parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Download', 'String')
|
73
|
+
paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Download', 'String')
|
74
|
+
paramversion_id = AsposeSlidesCloud::SpecUtils.get_param_value('versionId', 'Download', 'String')
|
75
|
+
paramstorage_name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storageName', 'Download', paramstorage_name, 'String')
|
76
|
+
AsposeSlidesCloud::SpecUtils.initialize('Download', 'storageName', paramstorage_name)
|
77
|
+
begin
|
78
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.download_with_http_info(parampath, paramstorage_name, paramversion_id)
|
79
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('Download', 'storageName')
|
80
|
+
fail "An exception expected"
|
81
|
+
end
|
82
|
+
rescue AsposeSlidesCloud::ApiError => e
|
83
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'storageName', paramstorage_name, 'String')
|
84
|
+
expect(e.code).to eq(code)
|
85
|
+
expect(e.response_body).to include(message)
|
86
|
+
rescue ArgumentError => e
|
87
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'storageName', paramstorage_name, 'String')
|
88
|
+
expect(400).to eq(code)
|
89
|
+
expect(e.message).to include(message)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
it 'invalid version_id' do
|
94
|
+
parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Download', 'String')
|
95
|
+
paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Download', 'String')
|
96
|
+
paramversion_id = AsposeSlidesCloud::SpecUtils.get_param_value('versionId', 'Download', 'String')
|
97
|
+
paramversion_id = AsposeSlidesCloud::SpecUtils.invalidize_param_value('versionId', 'Download', paramversion_id, 'String')
|
98
|
+
AsposeSlidesCloud::SpecUtils.initialize('Download', 'versionId', paramversion_id)
|
99
|
+
begin
|
100
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.download_with_http_info(parampath, paramstorage_name, paramversion_id)
|
101
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('Download', 'versionId')
|
102
|
+
fail "An exception expected"
|
103
|
+
end
|
104
|
+
rescue AsposeSlidesCloud::ApiError => e
|
105
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'versionId', paramversion_id, 'String')
|
106
|
+
expect(e.code).to eq(code)
|
107
|
+
expect(e.response_body).to include(message)
|
108
|
+
rescue ArgumentError => e
|
109
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Download', 'versionId', paramversion_id, 'String')
|
110
|
+
expect(400).to eq(code)
|
111
|
+
expect(e.message).to include(message)
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
31
116
|
# unit tests for get_operation_result
|
32
117
|
# @param id
|
33
118
|
# @param [Hash] opts the optional parameters
|
@@ -2047,4 +2132,89 @@ describe 'SlidesAsyncApi' do
|
|
2047
2132
|
end
|
2048
2133
|
end
|
2049
2134
|
|
2135
|
+
# unit tests for upload
|
2136
|
+
# @param path
|
2137
|
+
# @param file File to upload
|
2138
|
+
# @param [Hash] opts the optional parameters
|
2139
|
+
# @option opts [String] :storage_name
|
2140
|
+
# @return [FilesUploadResult]
|
2141
|
+
describe 'upload test' do
|
2142
|
+
it 'should work' do
|
2143
|
+
parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Upload', 'String')
|
2144
|
+
paramfile = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'Upload', 'File')
|
2145
|
+
paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Upload', 'String')
|
2146
|
+
AsposeSlidesCloud::SpecUtils.initialize('Upload', nil, nil)
|
2147
|
+
o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.upload_with_http_info(parampath, paramfile, paramstorage_name)
|
2148
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', nil, nil, nil)
|
2149
|
+
expect(c).to eq(code)
|
2150
|
+
expect(o).not_to be_nil
|
2151
|
+
end
|
2152
|
+
|
2153
|
+
it 'invalid path' do
|
2154
|
+
parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Upload', 'String')
|
2155
|
+
paramfile = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'Upload', 'File')
|
2156
|
+
paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Upload', 'String')
|
2157
|
+
parampath = AsposeSlidesCloud::SpecUtils.invalidize_param_value('path', 'Upload', parampath, 'String')
|
2158
|
+
AsposeSlidesCloud::SpecUtils.initialize('Upload', 'path', parampath)
|
2159
|
+
begin
|
2160
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.upload_with_http_info(parampath, paramfile, paramstorage_name)
|
2161
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('Upload', 'path')
|
2162
|
+
fail "An exception expected"
|
2163
|
+
end
|
2164
|
+
rescue AsposeSlidesCloud::ApiError => e
|
2165
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'path', parampath, 'String')
|
2166
|
+
expect(e.code).to eq(code)
|
2167
|
+
expect(e.response_body).to include(message)
|
2168
|
+
rescue ArgumentError => e
|
2169
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'path', parampath, 'String')
|
2170
|
+
expect(400).to eq(code)
|
2171
|
+
expect(e.message).to include(message)
|
2172
|
+
end
|
2173
|
+
end
|
2174
|
+
|
2175
|
+
it 'invalid file' do
|
2176
|
+
parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Upload', 'String')
|
2177
|
+
paramfile = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'Upload', 'File')
|
2178
|
+
paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Upload', 'String')
|
2179
|
+
paramfile = AsposeSlidesCloud::SpecUtils.invalidize_param_value('file', 'Upload', paramfile, 'File')
|
2180
|
+
AsposeSlidesCloud::SpecUtils.initialize('Upload', 'file', paramfile)
|
2181
|
+
begin
|
2182
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.upload_with_http_info(parampath, paramfile, paramstorage_name)
|
2183
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('Upload', 'file')
|
2184
|
+
fail "An exception expected"
|
2185
|
+
end
|
2186
|
+
rescue AsposeSlidesCloud::ApiError => e
|
2187
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'file', paramfile, 'File')
|
2188
|
+
expect(e.code).to eq(code)
|
2189
|
+
expect(e.response_body).to include(message)
|
2190
|
+
rescue ArgumentError => e
|
2191
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'file', paramfile, 'File')
|
2192
|
+
expect(400).to eq(code)
|
2193
|
+
expect(e.message).to include(message)
|
2194
|
+
end
|
2195
|
+
end
|
2196
|
+
|
2197
|
+
it 'invalid storage_name' do
|
2198
|
+
parampath = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'Upload', 'String')
|
2199
|
+
paramfile = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'Upload', 'File')
|
2200
|
+
paramstorage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'Upload', 'String')
|
2201
|
+
paramstorage_name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storageName', 'Upload', paramstorage_name, 'String')
|
2202
|
+
AsposeSlidesCloud::SpecUtils.initialize('Upload', 'storageName', paramstorage_name)
|
2203
|
+
begin
|
2204
|
+
AsposeSlidesCloud::SpecUtils.testSlidesAsyncApi.upload_with_http_info(parampath, paramfile, paramstorage_name)
|
2205
|
+
unless AsposeSlidesCloud::SpecUtils.no_exception?('Upload', 'storageName')
|
2206
|
+
fail "An exception expected"
|
2207
|
+
end
|
2208
|
+
rescue AsposeSlidesCloud::ApiError => e
|
2209
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'storageName', paramstorage_name, 'String')
|
2210
|
+
expect(e.code).to eq(code)
|
2211
|
+
expect(e.response_body).to include(message)
|
2212
|
+
rescue ArgumentError => e
|
2213
|
+
code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('Upload', 'storageName', paramstorage_name, 'String')
|
2214
|
+
expect(400).to eq(code)
|
2215
|
+
expect(e.message).to include(message)
|
2216
|
+
end
|
2217
|
+
end
|
2218
|
+
end
|
2219
|
+
|
2050
2220
|
end
|
data/testRules.json
CHANGED
@@ -226,6 +226,7 @@
|
|
226
226
|
{ "Message": " required parameter", "Type": "model" },
|
227
227
|
{ "Message": "Failed to load the presentation", "Parameter": "Request", "Method": "/Merge.*Online/" },
|
228
228
|
{ "Message": "Invalid Request", "Parameter": "VersionId" },
|
229
|
+
{ "Message": "Invalid version", "Parameter": "VersionId", "Method": "Download" },
|
229
230
|
{ "Message": "AmazonS3 Storage exception", "Parameter": "VersionId", "Method": "ObjectExists" },
|
230
231
|
{ "Message": "Invalid version id specified", "Parameter": "VersionId", "Method": "DeleteFile" },
|
231
232
|
{ "Message": "Invalid version id specified", "Parameter": "VersionId", "Method": "DownloadFile" },
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_slides_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 24.
|
4
|
+
version: 24.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Putrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|