aspose_cad_cloud 19.11 → 20.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose_cad_cloud.rb +10 -0
- data/lib/aspose_cad_cloud/api/cad_api.rb +1118 -168
- data/lib/aspose_cad_cloud/api_client.rb +2 -1
- data/lib/aspose_cad_cloud/configuration.rb +1 -4
- data/lib/aspose_cad_cloud/models/color.rb +1 -9
- data/lib/aspose_cad_cloud/models/disc_usage.rb +227 -0
- data/lib/aspose_cad_cloud/models/error.rb +237 -0
- data/lib/aspose_cad_cloud/models/error_details.rb +222 -0
- data/lib/aspose_cad_cloud/models/file_version.rb +282 -0
- data/lib/aspose_cad_cloud/models/file_versions.rb +209 -0
- data/lib/aspose_cad_cloud/models/files_list.rb +209 -0
- data/lib/aspose_cad_cloud/models/files_upload_result.rb +221 -0
- data/lib/aspose_cad_cloud/models/graphics_options.rb +1 -4
- data/lib/aspose_cad_cloud/models/object_exist.rb +227 -0
- data/lib/aspose_cad_cloud/models/pdf_document_info.rb +1 -5
- data/lib/aspose_cad_cloud/models/pdf_document_options.rb +1 -2
- data/lib/aspose_cad_cloud/models/pen_options.rb +1 -3
- data/lib/aspose_cad_cloud/models/rd_optimizer_settings.rb +1 -8
- data/lib/aspose_cad_cloud/models/requests/CopyFileRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/CopyFolderRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/CreateFolderRequest.rb +49 -0
- data/lib/aspose_cad_cloud/models/requests/DeleteFileRequest.rb +53 -0
- data/lib/aspose_cad_cloud/models/requests/DeleteFolderRequest.rb +53 -0
- data/lib/aspose_cad_cloud/models/requests/DownloadFileRequest.rb +53 -0
- data/lib/aspose_cad_cloud/models/requests/GetDiscUsageRequest.rb +45 -0
- data/lib/aspose_cad_cloud/models/requests/GetDrawingRotateFlipRequest.rb +2 -2
- data/lib/aspose_cad_cloud/models/requests/GetFileVersionsRequest.rb +49 -0
- data/lib/aspose_cad_cloud/models/requests/GetFilesListRequest.rb +49 -0
- data/lib/aspose_cad_cloud/models/requests/MoveFileRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/MoveFolderRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/ObjectExistsRequest.rb +53 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingRotateFlipRequest.rb +2 -2
- data/lib/aspose_cad_cloud/models/requests/StorageExistsRequest.rb +45 -0
- data/lib/aspose_cad_cloud/models/requests/UploadFileRequest.rb +53 -0
- data/lib/aspose_cad_cloud/models/resolution_setting.rb +1 -3
- data/lib/aspose_cad_cloud/models/storage_exist.rb +212 -0
- data/lib/aspose_cad_cloud/models/storage_file.rb +257 -0
- data/lib/aspose_cad_cloud/version.rb +1 -1
- metadata +36 -31
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="DeleteFileRequest.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.CAD 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 AsposeCadCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for delete_file operation.
|
32
|
+
#
|
33
|
+
class DeleteFileRequest
|
34
|
+
|
35
|
+
# File path e.g. '/folder/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 File path e.g. '/folder/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) 2018 Aspose.CAD 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 AsposeCadCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for delete_folder operation.
|
32
|
+
#
|
33
|
+
class DeleteFolderRequest
|
34
|
+
|
35
|
+
# Folder path e.g. '/folder'
|
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. '/folder'
|
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) 2018 Aspose.CAD 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 AsposeCadCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for download_file operation.
|
32
|
+
#
|
33
|
+
class DownloadFileRequest
|
34
|
+
|
35
|
+
# File path e.g. '/folder/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 File path e.g. '/folder/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,45 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="GetDiscUsageRequest.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.CAD 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 AsposeCadCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_disc_usage operation.
|
32
|
+
#
|
33
|
+
class GetDiscUsageRequest
|
34
|
+
|
35
|
+
# Storage name
|
36
|
+
attr_accessor :storage_name
|
37
|
+
|
38
|
+
#
|
39
|
+
# Initializes a new instance.
|
40
|
+
# @param storage_name Storage name
|
41
|
+
def initialize(storage_name = nil)
|
42
|
+
self.storage_name = storage_name
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -36,7 +36,7 @@ module AsposeCadCloud
|
|
36
36
|
attr_accessor :name
|
37
37
|
# Resulting file format.
|
38
38
|
attr_accessor :output_format
|
39
|
-
# Rotate/flip operation to apply.
|
39
|
+
# Rotate/flip operation to apply. Possible values: RotateNoneFlipNone, Rotate90FlipNone, Rotate180FlipNone, Rotate270FlipNone, RotateNoneFlipX, Rotate90FlipX, Rotate180FlipX, Rotate270FlipX, RotateNoneFlipY, Rotate90FlipY, Rotate180FlipY, Rotate270FlipY, RotateNoneFlipXY, Rotate90FlipXY, Rotate180FlipXY, Rotate270FlipXY
|
40
40
|
attr_accessor :rotate_flip_type
|
41
41
|
# Folder with a drawing to process.
|
42
42
|
attr_accessor :folder
|
@@ -49,7 +49,7 @@ module AsposeCadCloud
|
|
49
49
|
# Initializes a new instance.
|
50
50
|
# @param name Filename of a drawing.
|
51
51
|
# @param output_format Resulting file format.
|
52
|
-
# @param rotate_flip_type Rotate/flip operation to apply.
|
52
|
+
# @param rotate_flip_type Rotate/flip operation to apply. Possible values: RotateNoneFlipNone, Rotate90FlipNone, Rotate180FlipNone, Rotate270FlipNone, RotateNoneFlipX, Rotate90FlipX, Rotate180FlipX, Rotate270FlipX, RotateNoneFlipY, Rotate90FlipY, Rotate180FlipY, Rotate270FlipY, RotateNoneFlipXY, Rotate90FlipXY, Rotate180FlipXY, Rotate270FlipXY
|
53
53
|
# @param folder Folder with a drawing to process.
|
54
54
|
# @param out_path Path to updated file (if this is empty, response contains streamed file).
|
55
55
|
# @param storage Your Aspose Cloud Storage name.
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="GetFileVersionsRequest.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.CAD 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 AsposeCadCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_file_versions operation.
|
32
|
+
#
|
33
|
+
class GetFileVersionsRequest
|
34
|
+
|
35
|
+
# File path e.g. '/file.ext'
|
36
|
+
attr_accessor :path
|
37
|
+
# Storage name
|
38
|
+
attr_accessor :storage_name
|
39
|
+
|
40
|
+
#
|
41
|
+
# Initializes a new instance.
|
42
|
+
# @param path File path e.g. '/file.ext'
|
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,49 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="GetFilesListRequest.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.CAD 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 AsposeCadCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for get_files_list operation.
|
32
|
+
#
|
33
|
+
class GetFilesListRequest
|
34
|
+
|
35
|
+
# Folder path e.g. '/folder'
|
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. '/folder'
|
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,61 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="MoveFileRequest.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.CAD 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 AsposeCadCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for move_file operation.
|
32
|
+
#
|
33
|
+
class MoveFileRequest
|
34
|
+
|
35
|
+
# Source file path e.g. '/src.ext'
|
36
|
+
attr_accessor :src_path
|
37
|
+
# Destination file path e.g. '/dest.ext'
|
38
|
+
attr_accessor :dest_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 move
|
44
|
+
attr_accessor :version_id
|
45
|
+
|
46
|
+
#
|
47
|
+
# Initializes a new instance.
|
48
|
+
# @param src_path Source file path e.g. '/src.ext'
|
49
|
+
# @param dest_path Destination file path e.g. '/dest.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 move
|
53
|
+
def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name = nil, version_id = nil)
|
54
|
+
self.src_path = src_path
|
55
|
+
self.dest_path = dest_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="MoveFolderRequest.rb">
|
4
|
+
# Copyright (c) 2018 Aspose.CAD 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 AsposeCadCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for move_folder operation.
|
32
|
+
#
|
33
|
+
class MoveFolderRequest
|
34
|
+
|
35
|
+
# Folder path to move e.g. '/folder'
|
36
|
+
attr_accessor :src_path
|
37
|
+
# Destination folder path to move to e.g '/dst'
|
38
|
+
attr_accessor :dest_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 src_path Folder path to move e.g. '/folder'
|
47
|
+
# @param dest_path Destination folder path to move to e.g '/dst'
|
48
|
+
# @param src_storage_name Source storage name
|
49
|
+
# @param dest_storage_name Destination storage name
|
50
|
+
def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name = nil)
|
51
|
+
self.src_path = src_path
|
52
|
+
self.dest_path = dest_path
|
53
|
+
self.src_storage_name = src_storage_name
|
54
|
+
self.dest_storage_name = dest_storage_name
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|