aspose_cad_cloud 19.11
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/aspose_cad_cloud.rb +83 -0
- data/lib/aspose_cad_cloud/api/cad_api.rb +2138 -0
- data/lib/aspose_cad_cloud/api_client.rb +403 -0
- data/lib/aspose_cad_cloud/api_error.rb +54 -0
- data/lib/aspose_cad_cloud/configuration.rb +189 -0
- data/lib/aspose_cad_cloud/models/bmp_options_dto.rb +327 -0
- data/lib/aspose_cad_cloud/models/cad_rasterization_options_dto.rb +473 -0
- data/lib/aspose_cad_cloud/models/cad_response.rb +317 -0
- data/lib/aspose_cad_cloud/models/cff2_properties.rb +197 -0
- data/lib/aspose_cad_cloud/models/color.rb +312 -0
- data/lib/aspose_cad_cloud/models/dgn_properties.rb +197 -0
- data/lib/aspose_cad_cloud/models/drawing_options_base_dto.rb +281 -0
- data/lib/aspose_cad_cloud/models/dwf_properties.rb +197 -0
- data/lib/aspose_cad_cloud/models/dwg_properties.rb +197 -0
- data/lib/aspose_cad_cloud/models/dxf_properties.rb +197 -0
- data/lib/aspose_cad_cloud/models/gif_options_dto.rb +386 -0
- data/lib/aspose_cad_cloud/models/graphics_options.rb +311 -0
- data/lib/aspose_cad_cloud/models/ifc_properties.rb +197 -0
- data/lib/aspose_cad_cloud/models/igs_properties.rb +197 -0
- data/lib/aspose_cad_cloud/models/jpeg2000_options_dto.rb +322 -0
- data/lib/aspose_cad_cloud/models/jpeg_options_dto.rb +378 -0
- data/lib/aspose_cad_cloud/models/pdf_document_info.rb +237 -0
- data/lib/aspose_cad_cloud/models/pdf_document_options.rb +249 -0
- data/lib/aspose_cad_cloud/models/pdf_options_dto.rb +301 -0
- data/lib/aspose_cad_cloud/models/pen_options.rb +280 -0
- data/lib/aspose_cad_cloud/models/png_options_dto.rb +388 -0
- data/lib/aspose_cad_cloud/models/psd_options_dto.rb +388 -0
- data/lib/aspose_cad_cloud/models/rd_optimizer_settings.rb +302 -0
- data/lib/aspose_cad_cloud/models/requests/GetDrawingPropertiesRequest.rb +53 -0
- data/lib/aspose_cad_cloud/models/requests/GetDrawingResizeRequest.rb +69 -0
- data/lib/aspose_cad_cloud/models/requests/GetDrawingRotateFlipRequest.rb +65 -0
- data/lib/aspose_cad_cloud/models/requests/GetDrawingSaveAsRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingBmpRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingGifRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingJpeg2000Request.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingJpegRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingPdfRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingPngRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingPropertiesRequest.rb +45 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingPsdRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingResizeRequest.rb +65 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingRotateFlipRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingSaveAsRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingSvgRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingTiffRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PostDrawingWmfRequest.rb +61 -0
- data/lib/aspose_cad_cloud/models/requests/PutDrawingBmpRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/PutDrawingGifRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/PutDrawingJpeg2000Request.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/PutDrawingJpegRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/PutDrawingPdfRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/PutDrawingPngRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/PutDrawingPsdRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/PutDrawingSvgRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/PutDrawingTiffRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/requests/PutDrawingWmfRequest.rb +57 -0
- data/lib/aspose_cad_cloud/models/resolution_setting.rb +227 -0
- data/lib/aspose_cad_cloud/models/stl_properties.rb +197 -0
- data/lib/aspose_cad_cloud/models/svg_options_dto.rb +327 -0
- data/lib/aspose_cad_cloud/models/tiff_options_dto.rb +417 -0
- data/lib/aspose_cad_cloud/models/vector_rasterization_options_dto.rb +363 -0
- data/lib/aspose_cad_cloud/models/wmf_options_dto.rb +296 -0
- data/lib/aspose_cad_cloud/version.rb +29 -0
- metadata +178 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose" file="PostDrawingPdfRequest.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 post_drawing_pdf operation.
|
|
32
|
+
#
|
|
33
|
+
class PostDrawingPdfRequest
|
|
34
|
+
|
|
35
|
+
# Filename of an input drawing on a storage.
|
|
36
|
+
attr_accessor :name
|
|
37
|
+
# Export PDF options passed as a JSON on a request body.
|
|
38
|
+
attr_accessor :options
|
|
39
|
+
# Folder with a drawing to process.
|
|
40
|
+
attr_accessor :folder
|
|
41
|
+
# Path to updated file (if this is empty, response contains streamed file).
|
|
42
|
+
attr_accessor :out_path
|
|
43
|
+
# Your Aspose Cloud Storage name.
|
|
44
|
+
attr_accessor :storage
|
|
45
|
+
|
|
46
|
+
#
|
|
47
|
+
# Initializes a new instance.
|
|
48
|
+
# @param name Filename of an input drawing on a storage.
|
|
49
|
+
# @param options Export PDF options passed as a JSON on a request body.
|
|
50
|
+
# @param folder Folder with a drawing to process.
|
|
51
|
+
# @param out_path Path to updated file (if this is empty, response contains streamed file).
|
|
52
|
+
# @param storage Your Aspose Cloud Storage name.
|
|
53
|
+
def initialize(name, options, folder = nil, out_path = nil, storage = nil)
|
|
54
|
+
self.name = name
|
|
55
|
+
self.options = options
|
|
56
|
+
self.folder = folder
|
|
57
|
+
self.out_path = out_path
|
|
58
|
+
self.storage = storage
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose" file="PostDrawingPngRequest.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 post_drawing_png operation.
|
|
32
|
+
#
|
|
33
|
+
class PostDrawingPngRequest
|
|
34
|
+
|
|
35
|
+
# Filename of an input drawing on a storage.
|
|
36
|
+
attr_accessor :name
|
|
37
|
+
# Export PNG options passed as a JSON on a request body.
|
|
38
|
+
attr_accessor :options
|
|
39
|
+
# Folder with a drawing to process.
|
|
40
|
+
attr_accessor :folder
|
|
41
|
+
# Path to updated file (if this is empty, response contains streamed file).
|
|
42
|
+
attr_accessor :out_path
|
|
43
|
+
# Your Aspose Cloud Storage name.
|
|
44
|
+
attr_accessor :storage
|
|
45
|
+
|
|
46
|
+
#
|
|
47
|
+
# Initializes a new instance.
|
|
48
|
+
# @param name Filename of an input drawing on a storage.
|
|
49
|
+
# @param options Export PNG options passed as a JSON on a request body.
|
|
50
|
+
# @param folder Folder with a drawing to process.
|
|
51
|
+
# @param out_path Path to updated file (if this is empty, response contains streamed file).
|
|
52
|
+
# @param storage Your Aspose Cloud Storage name.
|
|
53
|
+
def initialize(name, options, folder = nil, out_path = nil, storage = nil)
|
|
54
|
+
self.name = name
|
|
55
|
+
self.options = options
|
|
56
|
+
self.folder = folder
|
|
57
|
+
self.out_path = out_path
|
|
58
|
+
self.storage = storage
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose" file="PostDrawingPropertiesRequest.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 post_drawing_properties operation.
|
|
32
|
+
#
|
|
33
|
+
class PostDrawingPropertiesRequest
|
|
34
|
+
|
|
35
|
+
# Input drawing
|
|
36
|
+
attr_accessor :drawing_data
|
|
37
|
+
|
|
38
|
+
#
|
|
39
|
+
# Initializes a new instance.
|
|
40
|
+
# @param drawing_data Input drawing
|
|
41
|
+
def initialize(drawing_data)
|
|
42
|
+
self.drawing_data = drawing_data
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose" file="PostDrawingPsdRequest.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 post_drawing_psd operation.
|
|
32
|
+
#
|
|
33
|
+
class PostDrawingPsdRequest
|
|
34
|
+
|
|
35
|
+
# Filename of an input drawing on a storage.
|
|
36
|
+
attr_accessor :name
|
|
37
|
+
# Export PSD options passed as a JSON on a request body.
|
|
38
|
+
attr_accessor :options
|
|
39
|
+
# Folder with a drawing to process.
|
|
40
|
+
attr_accessor :folder
|
|
41
|
+
# Path to updated file (if this is empty, response contains streamed file).
|
|
42
|
+
attr_accessor :out_path
|
|
43
|
+
# Your Aspose Cloud Storage name.
|
|
44
|
+
attr_accessor :storage
|
|
45
|
+
|
|
46
|
+
#
|
|
47
|
+
# Initializes a new instance.
|
|
48
|
+
# @param name Filename of an input drawing on a storage.
|
|
49
|
+
# @param options Export PSD options passed as a JSON on a request body.
|
|
50
|
+
# @param folder Folder with a drawing to process.
|
|
51
|
+
# @param out_path Path to updated file (if this is empty, response contains streamed file).
|
|
52
|
+
# @param storage Your Aspose Cloud Storage name.
|
|
53
|
+
def initialize(name, options, folder = nil, out_path = nil, storage = nil)
|
|
54
|
+
self.name = name
|
|
55
|
+
self.options = options
|
|
56
|
+
self.folder = folder
|
|
57
|
+
self.out_path = out_path
|
|
58
|
+
self.storage = storage
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose" file="PostDrawingResizeRequest.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 post_drawing_resize operation.
|
|
32
|
+
#
|
|
33
|
+
class PostDrawingResizeRequest
|
|
34
|
+
|
|
35
|
+
# Input drawing
|
|
36
|
+
attr_accessor :drawing_data
|
|
37
|
+
# Resulting file format.
|
|
38
|
+
attr_accessor :output_format
|
|
39
|
+
# New width.
|
|
40
|
+
attr_accessor :new_width
|
|
41
|
+
# New height.
|
|
42
|
+
attr_accessor :new_height
|
|
43
|
+
# Path to updated file (if this is empty, response contains streamed file).
|
|
44
|
+
attr_accessor :out_path
|
|
45
|
+
# Your Aspose Cloud Storage name.
|
|
46
|
+
attr_accessor :storage
|
|
47
|
+
|
|
48
|
+
#
|
|
49
|
+
# Initializes a new instance.
|
|
50
|
+
# @param drawing_data Input drawing
|
|
51
|
+
# @param output_format Resulting file format.
|
|
52
|
+
# @param new_width New width.
|
|
53
|
+
# @param new_height New height.
|
|
54
|
+
# @param out_path Path to updated file (if this is empty, response contains streamed file).
|
|
55
|
+
# @param storage Your Aspose Cloud Storage name.
|
|
56
|
+
def initialize(drawing_data, output_format, new_width, new_height, out_path = nil, storage = nil)
|
|
57
|
+
self.drawing_data = drawing_data
|
|
58
|
+
self.output_format = output_format
|
|
59
|
+
self.new_width = new_width
|
|
60
|
+
self.new_height = new_height
|
|
61
|
+
self.out_path = out_path
|
|
62
|
+
self.storage = storage
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose" file="PostDrawingRotateFlipRequest.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 post_drawing_rotate_flip operation.
|
|
32
|
+
#
|
|
33
|
+
class PostDrawingRotateFlipRequest
|
|
34
|
+
|
|
35
|
+
# Input drawing
|
|
36
|
+
attr_accessor :drawing_data
|
|
37
|
+
# Resulting file format.
|
|
38
|
+
attr_accessor :output_format
|
|
39
|
+
# Rotate/flip operation to apply.
|
|
40
|
+
attr_accessor :rotate_flip_type
|
|
41
|
+
# Path to updated file (if this is empty, response contains streamed file).
|
|
42
|
+
attr_accessor :out_path
|
|
43
|
+
# Your Aspose Cloud Storage name.
|
|
44
|
+
attr_accessor :storage
|
|
45
|
+
|
|
46
|
+
#
|
|
47
|
+
# Initializes a new instance.
|
|
48
|
+
# @param drawing_data Input drawing
|
|
49
|
+
# @param output_format Resulting file format.
|
|
50
|
+
# @param rotate_flip_type Rotate/flip operation to apply.
|
|
51
|
+
# @param out_path Path to updated file (if this is empty, response contains streamed file).
|
|
52
|
+
# @param storage Your Aspose Cloud Storage name.
|
|
53
|
+
def initialize(drawing_data, output_format, rotate_flip_type, out_path = nil, storage = nil)
|
|
54
|
+
self.drawing_data = drawing_data
|
|
55
|
+
self.output_format = output_format
|
|
56
|
+
self.rotate_flip_type = rotate_flip_type
|
|
57
|
+
self.out_path = out_path
|
|
58
|
+
self.storage = storage
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose" file="PostDrawingSaveAsRequest.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 post_drawing_save_as operation.
|
|
32
|
+
#
|
|
33
|
+
class PostDrawingSaveAsRequest
|
|
34
|
+
|
|
35
|
+
# Input drawing
|
|
36
|
+
attr_accessor :drawing_data
|
|
37
|
+
# Resulting file format.
|
|
38
|
+
attr_accessor :output_format
|
|
39
|
+
# Path to updated file (if this is empty, response contains streamed file).
|
|
40
|
+
attr_accessor :out_path
|
|
41
|
+
# Your Aspose Cloud Storage name.
|
|
42
|
+
attr_accessor :storage
|
|
43
|
+
|
|
44
|
+
#
|
|
45
|
+
# Initializes a new instance.
|
|
46
|
+
# @param drawing_data Input drawing
|
|
47
|
+
# @param output_format Resulting file format.
|
|
48
|
+
# @param out_path Path to updated file (if this is empty, response contains streamed file).
|
|
49
|
+
# @param storage Your Aspose Cloud Storage name.
|
|
50
|
+
def initialize(drawing_data, output_format, out_path = nil, storage = nil)
|
|
51
|
+
self.drawing_data = drawing_data
|
|
52
|
+
self.output_format = output_format
|
|
53
|
+
self.out_path = out_path
|
|
54
|
+
self.storage = storage
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose" file="PostDrawingSvgRequest.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 post_drawing_svg operation.
|
|
32
|
+
#
|
|
33
|
+
class PostDrawingSvgRequest
|
|
34
|
+
|
|
35
|
+
# Filename of an input drawing on a storage.
|
|
36
|
+
attr_accessor :name
|
|
37
|
+
# Export SVG options passed as a JSON on a request body.
|
|
38
|
+
attr_accessor :options
|
|
39
|
+
# Folder with a drawing to process.
|
|
40
|
+
attr_accessor :folder
|
|
41
|
+
# Path to updated file (if this is empty, response contains streamed file).
|
|
42
|
+
attr_accessor :out_path
|
|
43
|
+
# Your Aspose Cloud Storage name.
|
|
44
|
+
attr_accessor :storage
|
|
45
|
+
|
|
46
|
+
#
|
|
47
|
+
# Initializes a new instance.
|
|
48
|
+
# @param name Filename of an input drawing on a storage.
|
|
49
|
+
# @param options Export SVG options passed as a JSON on a request body.
|
|
50
|
+
# @param folder Folder with a drawing to process.
|
|
51
|
+
# @param out_path Path to updated file (if this is empty, response contains streamed file).
|
|
52
|
+
# @param storage Your Aspose Cloud Storage name.
|
|
53
|
+
def initialize(name, options, folder = nil, out_path = nil, storage = nil)
|
|
54
|
+
self.name = name
|
|
55
|
+
self.options = options
|
|
56
|
+
self.folder = folder
|
|
57
|
+
self.out_path = out_path
|
|
58
|
+
self.storage = storage
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|