groupdocs_assembly_cloud 20.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/groupdocs_assembly_cloud.rb +68 -0
- data/lib/groupdocs_assembly_cloud/api/assembly_api.rb +1074 -0
- data/lib/groupdocs_assembly_cloud/api_client.rb +405 -0
- data/lib/groupdocs_assembly_cloud/api_error.rb +54 -0
- data/lib/groupdocs_assembly_cloud/configuration.rb +182 -0
- data/lib/groupdocs_assembly_cloud/models/assemble_options.rb +237 -0
- data/lib/groupdocs_assembly_cloud/models/assembly_api_error_response.rb +217 -0
- data/lib/groupdocs_assembly_cloud/models/assembly_response.rb +207 -0
- data/lib/groupdocs_assembly_cloud/models/error.rb +237 -0
- data/lib/groupdocs_assembly_cloud/models/error_details.rb +222 -0
- data/lib/groupdocs_assembly_cloud/models/file_formats_response.rb +237 -0
- data/lib/groupdocs_assembly_cloud/models/file_response.rb +197 -0
- data/lib/groupdocs_assembly_cloud/models/files_list.rb +209 -0
- data/lib/groupdocs_assembly_cloud/models/files_upload_result.rb +221 -0
- data/lib/groupdocs_assembly_cloud/models/format.rb +217 -0
- data/lib/groupdocs_assembly_cloud/models/format_collection.rb +209 -0
- data/lib/groupdocs_assembly_cloud/models/requests/AssembleDocumentRequest.rb +45 -0
- data/lib/groupdocs_assembly_cloud/models/requests/CopyFileRequest.rb +61 -0
- data/lib/groupdocs_assembly_cloud/models/requests/CopyFolderRequest.rb +57 -0
- data/lib/groupdocs_assembly_cloud/models/requests/CreateFolderRequest.rb +49 -0
- data/lib/groupdocs_assembly_cloud/models/requests/DeleteFileRequest.rb +53 -0
- data/lib/groupdocs_assembly_cloud/models/requests/DeleteFolderRequest.rb +53 -0
- data/lib/groupdocs_assembly_cloud/models/requests/DownloadFileRequest.rb +53 -0
- data/lib/groupdocs_assembly_cloud/models/requests/GetFilesListRequest.rb +49 -0
- data/lib/groupdocs_assembly_cloud/models/requests/GetSupportedFileFormatsRequest.rb +36 -0
- data/lib/groupdocs_assembly_cloud/models/requests/MoveFileRequest.rb +61 -0
- data/lib/groupdocs_assembly_cloud/models/requests/MoveFolderRequest.rb +57 -0
- data/lib/groupdocs_assembly_cloud/models/requests/UploadFileRequest.rb +53 -0
- data/lib/groupdocs_assembly_cloud/models/response_error.rb +247 -0
- data/lib/groupdocs_assembly_cloud/models/storage_file.rb +257 -0
- data/lib/groupdocs_assembly_cloud/models/template_file_info.rb +237 -0
- data/lib/groupdocs_assembly_cloud/version.rb +29 -0
- metadata +124 -0
@@ -0,0 +1,45 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="AssembleDocumentRequest.rb">
|
4
|
+
# Copyright (c) 2020 GroupDocs.Assembly 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 GroupDocsAssemblyCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for assemble_document operation.
|
32
|
+
#
|
33
|
+
class AssembleDocumentRequest
|
34
|
+
|
35
|
+
# Assemble Options. It should be JSON with TemplateName, SaveFormat, ReportData and etc.
|
36
|
+
attr_accessor :assemble_options
|
37
|
+
|
38
|
+
#
|
39
|
+
# Initializes a new instance.
|
40
|
+
# @param assemble_options Assemble Options. It should be JSON with TemplateName, SaveFormat, ReportData and etc.
|
41
|
+
def initialize(assemble_options)
|
42
|
+
self.assemble_options = assemble_options
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="CopyFileRequest.rb">
|
4
|
+
# Copyright (c) 2020 GroupDocs.Assembly 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 GroupDocsAssemblyCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for copy_file operation.
|
32
|
+
#
|
33
|
+
class CopyFileRequest
|
34
|
+
|
35
|
+
# Destination file path
|
36
|
+
attr_accessor :dest_path
|
37
|
+
# Source file's path e.g. '/Folder 1/file.ext' or '/Bucket/Folder 1/file.ext'
|
38
|
+
attr_accessor :src_path
|
39
|
+
# Source storage name
|
40
|
+
attr_accessor :src_storage_name
|
41
|
+
# Destination storage name
|
42
|
+
attr_accessor :dest_storage_name
|
43
|
+
# File version ID to copy
|
44
|
+
attr_accessor :version_id
|
45
|
+
|
46
|
+
#
|
47
|
+
# Initializes a new instance.
|
48
|
+
# @param dest_path Destination file path
|
49
|
+
# @param src_path Source file's path e.g. '/Folder 1/file.ext' or '/Bucket/Folder 1/file.ext'
|
50
|
+
# @param src_storage_name Source storage name
|
51
|
+
# @param dest_storage_name Destination storage name
|
52
|
+
# @param version_id File version ID to copy
|
53
|
+
def initialize(dest_path, src_path, src_storage_name = nil, dest_storage_name = nil, version_id = nil)
|
54
|
+
self.dest_path = dest_path
|
55
|
+
self.src_path = src_path
|
56
|
+
self.src_storage_name = src_storage_name
|
57
|
+
self.dest_storage_name = dest_storage_name
|
58
|
+
self.version_id = version_id
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="CopyFolderRequest.rb">
|
4
|
+
# Copyright (c) 2020 GroupDocs.Assembly 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 GroupDocsAssemblyCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for copy_folder operation.
|
32
|
+
#
|
33
|
+
class CopyFolderRequest
|
34
|
+
|
35
|
+
# Destination folder path e.g. '/dst'
|
36
|
+
attr_accessor :dest_path
|
37
|
+
# Source folder path e.g. /Folder1
|
38
|
+
attr_accessor :src_path
|
39
|
+
# Source storage name
|
40
|
+
attr_accessor :src_storage_name
|
41
|
+
# Destination storage name
|
42
|
+
attr_accessor :dest_storage_name
|
43
|
+
|
44
|
+
#
|
45
|
+
# Initializes a new instance.
|
46
|
+
# @param dest_path Destination folder path e.g. '/dst'
|
47
|
+
# @param src_path Source folder path e.g. /Folder1
|
48
|
+
# @param src_storage_name Source storage name
|
49
|
+
# @param dest_storage_name Destination storage name
|
50
|
+
def initialize(dest_path, src_path, src_storage_name = nil, dest_storage_name = nil)
|
51
|
+
self.dest_path = dest_path
|
52
|
+
self.src_path = src_path
|
53
|
+
self.src_storage_name = src_storage_name
|
54
|
+
self.dest_storage_name = dest_storage_name
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="CreateFolderRequest.rb">
|
4
|
+
# Copyright (c) 2020 GroupDocs.Assembly 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 GroupDocsAssemblyCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for create_folder operation.
|
32
|
+
#
|
33
|
+
class CreateFolderRequest
|
34
|
+
|
35
|
+
# Target folder's path e.g. Folder1/Folder2/. The folders will be created recursively
|
36
|
+
attr_accessor :path
|
37
|
+
# Storage name
|
38
|
+
attr_accessor :storage_name
|
39
|
+
|
40
|
+
#
|
41
|
+
# Initializes a new instance.
|
42
|
+
# @param path Target folder's path e.g. Folder1/Folder2/. The folders will be created recursively
|
43
|
+
# @param storage_name Storage name
|
44
|
+
def initialize(path, storage_name = nil)
|
45
|
+
self.path = path
|
46
|
+
self.storage_name = storage_name
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="DeleteFileRequest.rb">
|
4
|
+
# Copyright (c) 2020 GroupDocs.Assembly 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 GroupDocsAssemblyCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for delete_file 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
|
+
# Storage name
|
38
|
+
attr_accessor :storage_name
|
39
|
+
# File version ID to delete
|
40
|
+
attr_accessor :version_id
|
41
|
+
|
42
|
+
#
|
43
|
+
# Initializes a new instance.
|
44
|
+
# @param path Path of the file including file name and extension e.g. /Folder1/file.ext
|
45
|
+
# @param storage_name Storage name
|
46
|
+
# @param version_id File version ID to delete
|
47
|
+
def initialize(path, storage_name = nil, version_id = nil)
|
48
|
+
self.path = path
|
49
|
+
self.storage_name = storage_name
|
50
|
+
self.version_id = version_id
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="DeleteFolderRequest.rb">
|
4
|
+
# Copyright (c) 2020 GroupDocs.Assembly 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 GroupDocsAssemblyCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for delete_folder operation.
|
32
|
+
#
|
33
|
+
class DeleteFolderRequest
|
34
|
+
|
35
|
+
# Folder path e.g. /Folder1s
|
36
|
+
attr_accessor :path
|
37
|
+
# Storage name
|
38
|
+
attr_accessor :storage_name
|
39
|
+
# Enable to delete folders, subfolders and files
|
40
|
+
attr_accessor :recursive
|
41
|
+
|
42
|
+
#
|
43
|
+
# Initializes a new instance.
|
44
|
+
# @param path Folder path e.g. /Folder1s
|
45
|
+
# @param storage_name Storage name
|
46
|
+
# @param recursive Enable to delete folders, subfolders and files
|
47
|
+
def initialize(path, storage_name = nil, recursive = nil)
|
48
|
+
self.path = path
|
49
|
+
self.storage_name = storage_name
|
50
|
+
self.recursive = recursive
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="DownloadFileRequest.rb">
|
4
|
+
# Copyright (c) 2020 GroupDocs.Assembly 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 GroupDocsAssemblyCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for download_file operation.
|
32
|
+
#
|
33
|
+
class DownloadFileRequest
|
34
|
+
|
35
|
+
# Path of the file including the file name and extension e.g. /folder1/file.ext
|
36
|
+
attr_accessor :path
|
37
|
+
# Storage name
|
38
|
+
attr_accessor :storage_name
|
39
|
+
# File version ID to download
|
40
|
+
attr_accessor :version_id
|
41
|
+
|
42
|
+
#
|
43
|
+
# Initializes a new instance.
|
44
|
+
# @param path Path of the file including the file name and extension e.g. /folder1/file.ext
|
45
|
+
# @param storage_name Storage name
|
46
|
+
# @param version_id File version ID to download
|
47
|
+
def initialize(path, storage_name = nil, version_id = nil)
|
48
|
+
self.path = path
|
49
|
+
self.storage_name = storage_name
|
50
|
+
self.version_id = version_id
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="GetFilesListRequest.rb">
|
4
|
+
# Copyright (c) 2020 GroupDocs.Assembly 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 GroupDocsAssemblyCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_files_list operation.
|
32
|
+
#
|
33
|
+
class GetFilesListRequest
|
34
|
+
|
35
|
+
# Folder path e.g. /Folder1
|
36
|
+
attr_accessor :path
|
37
|
+
# Storage name
|
38
|
+
attr_accessor :storage_name
|
39
|
+
|
40
|
+
#
|
41
|
+
# Initializes a new instance.
|
42
|
+
# @param path Folder path e.g. /Folder1
|
43
|
+
# @param storage_name Storage name
|
44
|
+
def initialize(path, storage_name = nil)
|
45
|
+
self.path = path
|
46
|
+
self.storage_name = storage_name
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="GetSupportedFileFormatsRequest.rb">
|
4
|
+
# Copyright (c) 2020 GroupDocs.Assembly 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 GroupDocsAssemblyCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_supported_file_formats operation.
|
32
|
+
#
|
33
|
+
class GetSupportedFileFormatsRequest
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|