groupdocs_storage_cloud 18.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/GroupDocs/Storage/api/storage_api.rb +982 -0
- data/lib/GroupDocs/Storage/api_client.rb +408 -0
- data/lib/GroupDocs/Storage/api_error.rb +54 -0
- data/lib/GroupDocs/Storage/configuration.rb +203 -0
- data/lib/GroupDocs/Storage/models/copy_file_response.rb +214 -0
- data/lib/GroupDocs/Storage/models/create_folder_response.rb +214 -0
- data/lib/GroupDocs/Storage/models/disc_usage.rb +219 -0
- data/lib/GroupDocs/Storage/models/disc_usage_response.rb +223 -0
- data/lib/GroupDocs/Storage/models/file_exist.rb +219 -0
- data/lib/GroupDocs/Storage/models/file_exist_response.rb +223 -0
- data/lib/GroupDocs/Storage/models/file_response.rb +265 -0
- data/lib/GroupDocs/Storage/models/file_version.rb +283 -0
- data/lib/GroupDocs/Storage/models/file_versions_response.rb +225 -0
- data/lib/GroupDocs/Storage/models/files_response.rb +225 -0
- data/lib/GroupDocs/Storage/models/group_docs_response.rb +214 -0
- data/lib/GroupDocs/Storage/models/move_file_response.rb +214 -0
- data/lib/GroupDocs/Storage/models/move_folder_response.rb +214 -0
- data/lib/GroupDocs/Storage/models/remove_file_response.rb +214 -0
- data/lib/GroupDocs/Storage/models/remove_folder_response.rb +214 -0
- data/lib/GroupDocs/Storage/models/requests/delete_file_request.rb +57 -0
- data/lib/GroupDocs/Storage/models/requests/delete_folder_request.rb +57 -0
- data/lib/GroupDocs/Storage/models/requests/get_disc_usage_request.rb +47 -0
- data/lib/GroupDocs/Storage/models/requests/get_download_request.rb +57 -0
- data/lib/GroupDocs/Storage/models/requests/get_is_exist_request.rb +57 -0
- data/lib/GroupDocs/Storage/models/requests/get_is_storage_exist_request.rb +47 -0
- data/lib/GroupDocs/Storage/models/requests/get_list_file_versions_request.rb +52 -0
- data/lib/GroupDocs/Storage/models/requests/get_list_files_request.rb +52 -0
- data/lib/GroupDocs/Storage/models/requests/post_move_file_request.rb +67 -0
- data/lib/GroupDocs/Storage/models/requests/post_move_folder_request.rb +62 -0
- data/lib/GroupDocs/Storage/models/requests/put_copy_folder_request.rb +62 -0
- data/lib/GroupDocs/Storage/models/requests/put_copy_request.rb +67 -0
- data/lib/GroupDocs/Storage/models/requests/put_create_folder_request.rb +57 -0
- data/lib/GroupDocs/Storage/models/requests/put_create_request.rb +62 -0
- data/lib/GroupDocs/Storage/models/storage_exist_response.rb +223 -0
- data/lib/GroupDocs/Storage/models/upload_response.rb +214 -0
- data/lib/GroupDocs/Storage/version.rb +29 -0
- data/lib/groupdocs_storage_cloud.rb +71 -0
- metadata +129 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
|
4
|
+
# Copyright (c) 2018 GroupDocs.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 GroupDocsStorageCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for DeleteFile operation.
|
32
|
+
#
|
33
|
+
class DeleteFileRequest
|
34
|
+
|
35
|
+
# Path of the file including file name and extension e.g. /Folder1/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 file name and extension e.g. /Folder1/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="delete_folder_request.rb">
|
4
|
+
# Copyright (c) 2018 GroupDocs.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 GroupDocsStorageCloud
|
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 GroupDocs.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 GroupDocsStorageCloud
|
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 GroupDocs.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 GroupDocsStorageCloud
|
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 GroupDocs.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 GroupDocsStorageCloud
|
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 GroupDocs.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 GroupDocsStorageCloud
|
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 GroupDocs.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 GroupDocsStorageCloud
|
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 GroupDocs.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 GroupDocsStorageCloud
|
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 GroupDocs.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 GroupDocsStorageCloud
|
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
|
+
#
|