aspose_storage_cloud 1.0.1 → 18.6
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/lib/Aspose/Storage/api/storage_api.rb +982 -0
- data/lib/Aspose/Storage/api_client.rb +409 -0
- data/lib/Aspose/Storage/api_error.rb +54 -0
- data/lib/Aspose/Storage/configuration.rb +203 -0
- data/lib/Aspose/Storage/models/aspose_response.rb +215 -0
- data/lib/Aspose/Storage/models/copy_file_response.rb +215 -0
- data/lib/Aspose/Storage/models/create_folder_response.rb +215 -0
- data/lib/Aspose/Storage/models/disc_usage.rb +220 -0
- data/lib/Aspose/Storage/models/disc_usage_response.rb +224 -0
- data/lib/Aspose/Storage/models/file_exist.rb +220 -0
- data/lib/Aspose/Storage/models/file_exist_response.rb +224 -0
- data/lib/Aspose/Storage/models/file_response.rb +266 -0
- data/lib/Aspose/Storage/models/file_version.rb +284 -0
- data/lib/Aspose/Storage/models/file_versions_response.rb +226 -0
- data/lib/Aspose/Storage/models/files_response.rb +226 -0
- data/lib/Aspose/Storage/models/move_file_response.rb +215 -0
- data/lib/Aspose/Storage/models/move_folder_response.rb +215 -0
- data/lib/Aspose/Storage/models/remove_file_response.rb +215 -0
- data/lib/Aspose/Storage/models/remove_folder_response.rb +215 -0
- data/lib/Aspose/Storage/models/requests/delete_file_request.rb +57 -0
- data/lib/Aspose/Storage/models/requests/delete_folder_request.rb +57 -0
- data/lib/Aspose/Storage/models/requests/get_disc_usage_request.rb +47 -0
- data/lib/Aspose/Storage/models/requests/get_download_request.rb +57 -0
- data/lib/Aspose/Storage/models/requests/get_is_exist_request.rb +57 -0
- data/lib/Aspose/Storage/models/requests/get_is_storage_exist_request.rb +47 -0
- data/lib/Aspose/Storage/models/requests/get_list_file_versions_request.rb +52 -0
- data/lib/Aspose/Storage/models/requests/get_list_files_request.rb +52 -0
- data/lib/Aspose/Storage/models/requests/post_move_file_request.rb +67 -0
- data/lib/Aspose/Storage/models/requests/post_move_folder_request.rb +62 -0
- data/lib/Aspose/Storage/models/requests/put_copy_folder_request.rb +62 -0
- data/lib/Aspose/Storage/models/requests/put_copy_request.rb +67 -0
- data/lib/Aspose/Storage/models/requests/put_create_folder_request.rb +57 -0
- data/lib/Aspose/Storage/models/requests/put_create_request.rb +62 -0
- data/lib/Aspose/Storage/models/storage_exist_response.rb +224 -0
- data/lib/Aspose/Storage/models/upload_response.rb +215 -0
- data/lib/Aspose/Storage/version.rb +29 -0
- data/lib/aspose_storage_cloud.rb +71 -41
- metadata +62 -55
- data/.gitignore +0 -36
- data/LICENSE +0 -22
- data/README.md +0 -40
- data/aspose_storage_cloud.gemspec +0 -25
- data/lib/aspose_storage_cloud/api/storage_api.rb +0 -800
- data/lib/aspose_storage_cloud/api_client.rb +0 -333
- data/lib/aspose_storage_cloud/api_error.rb +0 -24
- data/lib/aspose_storage_cloud/aspose_app.rb +0 -20
- data/lib/aspose_storage_cloud/configuration.rb +0 -166
- data/lib/aspose_storage_cloud/models/base_object.rb +0 -88
- data/lib/aspose_storage_cloud/models/base_response.rb +0 -53
- data/lib/aspose_storage_cloud/models/disc_usage.rb +0 -45
- data/lib/aspose_storage_cloud/models/disc_usage_response.rb +0 -61
- data/lib/aspose_storage_cloud/models/file_exist.rb +0 -44
- data/lib/aspose_storage_cloud/models/file_exist_response.rb +0 -62
- data/lib/aspose_storage_cloud/models/file_response.rb +0 -69
- data/lib/aspose_storage_cloud/models/file_version.rb +0 -85
- data/lib/aspose_storage_cloud/models/file_versions_response.rb +0 -63
- data/lib/aspose_storage_cloud/models/folder_response.rb +0 -63
- data/lib/aspose_storage_cloud/models/storage_exist_response.rb +0 -61
- data/lib/aspose_storage_cloud/version.rb +0 -3
- data/test/data/SampleExecuteTemplate.doc +0 -0
- data/test/data/SampleExecuteTemplateData.txt +0 -49
- data/test/data/SampleWordDocument.docx +0 -0
- data/test/data/buzz.png +0 -0
- data/test/data/testfile.txt +0 -1
- data/test/storage_tests.rb +0 -134
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="delete_folder_request.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.Storage for 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
|
+
#
|
27
|
+
|
28
|
+
module AsposeStorageCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for DeleteFolder operation.
|
32
|
+
#
|
33
|
+
class DeleteFolderRequest
|
34
|
+
|
35
|
+
# Folder path e.g. /Folder1
|
36
|
+
attr_accessor :path
|
37
|
+
|
38
|
+
# User's storage name
|
39
|
+
attr_accessor :storage
|
40
|
+
|
41
|
+
# Remove recursivelly inner folder/files. If false and folder contains data than exception is raised.
|
42
|
+
attr_accessor :recursive
|
43
|
+
|
44
|
+
#
|
45
|
+
# Initializes a new instance.
|
46
|
+
# @param path Folder path e.g. /Folder1
|
47
|
+
# @param storage User's storage name
|
48
|
+
# @param recursive Remove recursivelly inner folder/files. If false and folder contains data than exception is raised.
|
49
|
+
def initialize(path, storage=nil, recursive=nil)
|
50
|
+
self.path=path
|
51
|
+
self.storage=storage
|
52
|
+
self.recursive=recursive
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
57
|
+
#
|
@@ -0,0 +1,47 @@
|
|
1
|
+
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_disc_usage_request.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.Storage for 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
|
+
#
|
27
|
+
|
28
|
+
module AsposeStorageCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for GetDiscUsage operation.
|
32
|
+
#
|
33
|
+
class GetDiscUsageRequest
|
34
|
+
|
35
|
+
# User's storage name
|
36
|
+
attr_accessor :storage
|
37
|
+
|
38
|
+
#
|
39
|
+
# Initializes a new instance.
|
40
|
+
# @param storage User's storage name
|
41
|
+
def initialize(storage=nil)
|
42
|
+
self.storage=storage
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
end
|
47
|
+
#
|
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_download_request.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.Storage for 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
|
+
#
|
27
|
+
|
28
|
+
module AsposeStorageCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for GetDownload operation.
|
32
|
+
#
|
33
|
+
class GetDownloadRequest
|
34
|
+
|
35
|
+
# Path of the file including the file name and extension e.g. /file.ext
|
36
|
+
attr_accessor :path
|
37
|
+
|
38
|
+
# File's version
|
39
|
+
attr_accessor :version_id
|
40
|
+
|
41
|
+
# User's storage name
|
42
|
+
attr_accessor :storage
|
43
|
+
|
44
|
+
#
|
45
|
+
# Initializes a new instance.
|
46
|
+
# @param path Path of the file including the file name and extension e.g. /file.ext
|
47
|
+
# @param version_id File's version
|
48
|
+
# @param storage User's storage name
|
49
|
+
def initialize(path, version_id=nil, storage=nil)
|
50
|
+
self.path=path
|
51
|
+
self.version_id=version_id
|
52
|
+
self.storage=storage
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
57
|
+
#
|
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_is_exist_request.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.Storage for 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
|
+
#
|
27
|
+
|
28
|
+
module AsposeStorageCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for GetIsExist operation.
|
32
|
+
#
|
33
|
+
class GetIsExistRequest
|
34
|
+
|
35
|
+
# File or folder path e.g. /file.ext or /Folder1
|
36
|
+
attr_accessor :path
|
37
|
+
|
38
|
+
# File's version
|
39
|
+
attr_accessor :version_id
|
40
|
+
|
41
|
+
# User's storage name
|
42
|
+
attr_accessor :storage
|
43
|
+
|
44
|
+
#
|
45
|
+
# Initializes a new instance.
|
46
|
+
# @param path File or folder path e.g. /file.ext or /Folder1
|
47
|
+
# @param version_id File's version
|
48
|
+
# @param storage User's storage name
|
49
|
+
def initialize(path, version_id=nil, storage=nil)
|
50
|
+
self.path=path
|
51
|
+
self.version_id=version_id
|
52
|
+
self.storage=storage
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
57
|
+
#
|
@@ -0,0 +1,47 @@
|
|
1
|
+
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_is_storage_exist_request.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.Storage for 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
|
+
#
|
27
|
+
|
28
|
+
module AsposeStorageCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for GetIsStorageExist operation.
|
32
|
+
#
|
33
|
+
class GetIsStorageExistRequest
|
34
|
+
|
35
|
+
# Storage name
|
36
|
+
attr_accessor :name
|
37
|
+
|
38
|
+
#
|
39
|
+
# Initializes a new instance.
|
40
|
+
# @param name Storage name
|
41
|
+
def initialize(name)
|
42
|
+
self.name=name
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
end
|
47
|
+
#
|
@@ -0,0 +1,52 @@
|
|
1
|
+
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_list_file_versions_request.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.Storage for 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
|
+
#
|
27
|
+
|
28
|
+
module AsposeStorageCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for GetListFileVersions operation.
|
32
|
+
#
|
33
|
+
class GetListFileVersionsRequest
|
34
|
+
|
35
|
+
# File path e.g. /file.ext or /Folder1/file.ext
|
36
|
+
attr_accessor :path
|
37
|
+
|
38
|
+
# User's storage name
|
39
|
+
attr_accessor :storage
|
40
|
+
|
41
|
+
#
|
42
|
+
# Initializes a new instance.
|
43
|
+
# @param path File path e.g. /file.ext or /Folder1/file.ext
|
44
|
+
# @param storage User's storage name
|
45
|
+
def initialize(path, storage=nil)
|
46
|
+
self.path=path
|
47
|
+
self.storage=storage
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|
52
|
+
#
|
@@ -0,0 +1,52 @@
|
|
1
|
+
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="get_list_files_request.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.Storage for 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
|
+
#
|
27
|
+
|
28
|
+
module AsposeStorageCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for GetListFiles operation.
|
32
|
+
#
|
33
|
+
class GetListFilesRequest
|
34
|
+
|
35
|
+
# Start with name of storage e.g. root folder '/'or some folder '/folder1/..'
|
36
|
+
attr_accessor :path
|
37
|
+
|
38
|
+
# User's storage name
|
39
|
+
attr_accessor :storage
|
40
|
+
|
41
|
+
#
|
42
|
+
# Initializes a new instance.
|
43
|
+
# @param path Start with name of storage e.g. root folder '/'or some folder '/folder1/..'
|
44
|
+
# @param storage User's storage name
|
45
|
+
def initialize(path=nil, storage=nil)
|
46
|
+
self.path=path
|
47
|
+
self.storage=storage
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|
52
|
+
#
|
@@ -0,0 +1,67 @@
|
|
1
|
+
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="post_move_file_request.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.Storage for 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
|
+
#
|
27
|
+
|
28
|
+
module AsposeStorageCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for PostMoveFile operation.
|
32
|
+
#
|
33
|
+
class PostMoveFileRequest
|
34
|
+
|
35
|
+
# Source file path e.g. /fileSource.ext
|
36
|
+
attr_accessor :src
|
37
|
+
|
38
|
+
# Destination file path e.g. /fileDestination.ext
|
39
|
+
attr_accessor :dest
|
40
|
+
|
41
|
+
# Source file's version,
|
42
|
+
attr_accessor :version_id
|
43
|
+
|
44
|
+
# User's source storage name
|
45
|
+
attr_accessor :storage
|
46
|
+
|
47
|
+
# User's destination storage name
|
48
|
+
attr_accessor :dest_storage
|
49
|
+
|
50
|
+
#
|
51
|
+
# Initializes a new instance.
|
52
|
+
# @param src Source file path e.g. /fileSource.ext
|
53
|
+
# @param dest Destination file path e.g. /fileDestination.ext
|
54
|
+
# @param version_id Source file's version,
|
55
|
+
# @param storage User's source storage name
|
56
|
+
# @param dest_storage User's destination storage name
|
57
|
+
def initialize(src, dest, version_id=nil, storage=nil, dest_storage=nil)
|
58
|
+
self.src=src
|
59
|
+
self.dest=dest
|
60
|
+
self.version_id=version_id
|
61
|
+
self.storage=storage
|
62
|
+
self.dest_storage=dest_storage
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
end
|
67
|
+
#
|
@@ -0,0 +1,62 @@
|
|
1
|
+
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="post_move_folder_request.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.Storage for 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
|
+
#
|
27
|
+
|
28
|
+
module AsposeStorageCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for PostMoveFolder operation.
|
32
|
+
#
|
33
|
+
class PostMoveFolderRequest
|
34
|
+
|
35
|
+
# Source folder path e.g. /Folder1
|
36
|
+
attr_accessor :src
|
37
|
+
|
38
|
+
# Destination folder path e.g. /Folder2
|
39
|
+
attr_accessor :dest
|
40
|
+
|
41
|
+
# User's source storage name
|
42
|
+
attr_accessor :storage
|
43
|
+
|
44
|
+
# User's destination storage name
|
45
|
+
attr_accessor :dest_storage
|
46
|
+
|
47
|
+
#
|
48
|
+
# Initializes a new instance.
|
49
|
+
# @param src Source folder path e.g. /Folder1
|
50
|
+
# @param dest Destination folder path e.g. /Folder2
|
51
|
+
# @param storage User's source storage name
|
52
|
+
# @param dest_storage User's destination storage name
|
53
|
+
def initialize(src, dest, storage=nil, dest_storage=nil)
|
54
|
+
self.src=src
|
55
|
+
self.dest=dest
|
56
|
+
self.storage=storage
|
57
|
+
self.dest_storage=dest_storage
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
62
|
+
#
|