aspose_cad_cloud 19.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/lib/aspose_cad_cloud.rb +83 -0
  3. data/lib/aspose_cad_cloud/api/cad_api.rb +2138 -0
  4. data/lib/aspose_cad_cloud/api_client.rb +403 -0
  5. data/lib/aspose_cad_cloud/api_error.rb +54 -0
  6. data/lib/aspose_cad_cloud/configuration.rb +189 -0
  7. data/lib/aspose_cad_cloud/models/bmp_options_dto.rb +327 -0
  8. data/lib/aspose_cad_cloud/models/cad_rasterization_options_dto.rb +473 -0
  9. data/lib/aspose_cad_cloud/models/cad_response.rb +317 -0
  10. data/lib/aspose_cad_cloud/models/cff2_properties.rb +197 -0
  11. data/lib/aspose_cad_cloud/models/color.rb +312 -0
  12. data/lib/aspose_cad_cloud/models/dgn_properties.rb +197 -0
  13. data/lib/aspose_cad_cloud/models/drawing_options_base_dto.rb +281 -0
  14. data/lib/aspose_cad_cloud/models/dwf_properties.rb +197 -0
  15. data/lib/aspose_cad_cloud/models/dwg_properties.rb +197 -0
  16. data/lib/aspose_cad_cloud/models/dxf_properties.rb +197 -0
  17. data/lib/aspose_cad_cloud/models/gif_options_dto.rb +386 -0
  18. data/lib/aspose_cad_cloud/models/graphics_options.rb +311 -0
  19. data/lib/aspose_cad_cloud/models/ifc_properties.rb +197 -0
  20. data/lib/aspose_cad_cloud/models/igs_properties.rb +197 -0
  21. data/lib/aspose_cad_cloud/models/jpeg2000_options_dto.rb +322 -0
  22. data/lib/aspose_cad_cloud/models/jpeg_options_dto.rb +378 -0
  23. data/lib/aspose_cad_cloud/models/pdf_document_info.rb +237 -0
  24. data/lib/aspose_cad_cloud/models/pdf_document_options.rb +249 -0
  25. data/lib/aspose_cad_cloud/models/pdf_options_dto.rb +301 -0
  26. data/lib/aspose_cad_cloud/models/pen_options.rb +280 -0
  27. data/lib/aspose_cad_cloud/models/png_options_dto.rb +388 -0
  28. data/lib/aspose_cad_cloud/models/psd_options_dto.rb +388 -0
  29. data/lib/aspose_cad_cloud/models/rd_optimizer_settings.rb +302 -0
  30. data/lib/aspose_cad_cloud/models/requests/GetDrawingPropertiesRequest.rb +53 -0
  31. data/lib/aspose_cad_cloud/models/requests/GetDrawingResizeRequest.rb +69 -0
  32. data/lib/aspose_cad_cloud/models/requests/GetDrawingRotateFlipRequest.rb +65 -0
  33. data/lib/aspose_cad_cloud/models/requests/GetDrawingSaveAsRequest.rb +61 -0
  34. data/lib/aspose_cad_cloud/models/requests/PostDrawingBmpRequest.rb +61 -0
  35. data/lib/aspose_cad_cloud/models/requests/PostDrawingGifRequest.rb +61 -0
  36. data/lib/aspose_cad_cloud/models/requests/PostDrawingJpeg2000Request.rb +61 -0
  37. data/lib/aspose_cad_cloud/models/requests/PostDrawingJpegRequest.rb +61 -0
  38. data/lib/aspose_cad_cloud/models/requests/PostDrawingPdfRequest.rb +61 -0
  39. data/lib/aspose_cad_cloud/models/requests/PostDrawingPngRequest.rb +61 -0
  40. data/lib/aspose_cad_cloud/models/requests/PostDrawingPropertiesRequest.rb +45 -0
  41. data/lib/aspose_cad_cloud/models/requests/PostDrawingPsdRequest.rb +61 -0
  42. data/lib/aspose_cad_cloud/models/requests/PostDrawingResizeRequest.rb +65 -0
  43. data/lib/aspose_cad_cloud/models/requests/PostDrawingRotateFlipRequest.rb +61 -0
  44. data/lib/aspose_cad_cloud/models/requests/PostDrawingSaveAsRequest.rb +57 -0
  45. data/lib/aspose_cad_cloud/models/requests/PostDrawingSvgRequest.rb +61 -0
  46. data/lib/aspose_cad_cloud/models/requests/PostDrawingTiffRequest.rb +61 -0
  47. data/lib/aspose_cad_cloud/models/requests/PostDrawingWmfRequest.rb +61 -0
  48. data/lib/aspose_cad_cloud/models/requests/PutDrawingBmpRequest.rb +57 -0
  49. data/lib/aspose_cad_cloud/models/requests/PutDrawingGifRequest.rb +57 -0
  50. data/lib/aspose_cad_cloud/models/requests/PutDrawingJpeg2000Request.rb +57 -0
  51. data/lib/aspose_cad_cloud/models/requests/PutDrawingJpegRequest.rb +57 -0
  52. data/lib/aspose_cad_cloud/models/requests/PutDrawingPdfRequest.rb +57 -0
  53. data/lib/aspose_cad_cloud/models/requests/PutDrawingPngRequest.rb +57 -0
  54. data/lib/aspose_cad_cloud/models/requests/PutDrawingPsdRequest.rb +57 -0
  55. data/lib/aspose_cad_cloud/models/requests/PutDrawingSvgRequest.rb +57 -0
  56. data/lib/aspose_cad_cloud/models/requests/PutDrawingTiffRequest.rb +57 -0
  57. data/lib/aspose_cad_cloud/models/requests/PutDrawingWmfRequest.rb +57 -0
  58. data/lib/aspose_cad_cloud/models/resolution_setting.rb +227 -0
  59. data/lib/aspose_cad_cloud/models/stl_properties.rb +197 -0
  60. data/lib/aspose_cad_cloud/models/svg_options_dto.rb +327 -0
  61. data/lib/aspose_cad_cloud/models/tiff_options_dto.rb +417 -0
  62. data/lib/aspose_cad_cloud/models/vector_rasterization_options_dto.rb +363 -0
  63. data/lib/aspose_cad_cloud/models/wmf_options_dto.rb +296 -0
  64. data/lib/aspose_cad_cloud/version.rb +29 -0
  65. metadata +178 -0
@@ -0,0 +1,53 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="GetDrawingPropertiesRequest.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_drawing_properties operation.
32
+ #
33
+ class GetDrawingPropertiesRequest
34
+
35
+ # Filename of an input drawing on a storage.
36
+ attr_accessor :name
37
+ # Folder with a drawing to get properties for.
38
+ attr_accessor :folder
39
+ # Your Aspose Cloud Storage name.
40
+ attr_accessor :storage
41
+
42
+ #
43
+ # Initializes a new instance.
44
+ # @param name Filename of an input drawing on a storage.
45
+ # @param folder Folder with a drawing to get properties for.
46
+ # @param storage Your Aspose Cloud Storage name.
47
+ def initialize(name, folder = nil, storage = nil)
48
+ self.name = name
49
+ self.folder = folder
50
+ self.storage = storage
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,69 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="GetDrawingResizeRequest.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_drawing_resize operation.
32
+ #
33
+ class GetDrawingResizeRequest
34
+
35
+ # Filename of a drawing.
36
+ attr_accessor :name
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
+ # Folder with a drawing to process.
44
+ attr_accessor :folder
45
+ # Path to updated file (if this is empty, response contains streamed file).
46
+ attr_accessor :out_path
47
+ # Your Aspose Cloud Storage name.
48
+ attr_accessor :storage
49
+
50
+ #
51
+ # Initializes a new instance.
52
+ # @param name Filename of a drawing.
53
+ # @param output_format Resulting file format.
54
+ # @param new_width New width.
55
+ # @param new_height New height.
56
+ # @param folder Folder with a drawing to process.
57
+ # @param out_path Path to updated file (if this is empty, response contains streamed file).
58
+ # @param storage Your Aspose Cloud Storage name.
59
+ def initialize(name, output_format, new_width, new_height, folder = nil, out_path = nil, storage = nil)
60
+ self.name = name
61
+ self.output_format = output_format
62
+ self.new_width = new_width
63
+ self.new_height = new_height
64
+ self.folder = folder
65
+ self.out_path = out_path
66
+ self.storage = storage
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,65 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="GetDrawingRotateFlipRequest.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_drawing_rotate_flip operation.
32
+ #
33
+ class GetDrawingRotateFlipRequest
34
+
35
+ # Filename of a drawing.
36
+ attr_accessor :name
37
+ # Resulting file format.
38
+ attr_accessor :output_format
39
+ # Rotate/flip operation to apply.
40
+ attr_accessor :rotate_flip_type
41
+ # Folder with a drawing to process.
42
+ attr_accessor :folder
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 name Filename of a drawing.
51
+ # @param output_format Resulting file format.
52
+ # @param rotate_flip_type Rotate/flip operation to apply.
53
+ # @param folder Folder with a drawing to process.
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(name, output_format, rotate_flip_type, folder = nil, out_path = nil, storage = nil)
57
+ self.name = name
58
+ self.output_format = output_format
59
+ self.rotate_flip_type = rotate_flip_type
60
+ self.folder = folder
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="GetDrawingSaveAsRequest.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_drawing_save_as operation.
32
+ #
33
+ class GetDrawingSaveAsRequest
34
+
35
+ # Filename of an input drawing on a storage.
36
+ attr_accessor :name
37
+ # Resulting file format.
38
+ attr_accessor :output_format
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 output_format Resulting file format.
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, output_format, folder = nil, out_path = nil, storage = nil)
54
+ self.name = name
55
+ self.output_format = output_format
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="PostDrawingBmpRequest.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_bmp operation.
32
+ #
33
+ class PostDrawingBmpRequest
34
+
35
+ # Filename of an input drawing on a storage.
36
+ attr_accessor :name
37
+ # Export BMP 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 BMP 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="PostDrawingGifRequest.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_gif operation.
32
+ #
33
+ class PostDrawingGifRequest
34
+
35
+ # Filename of an input drawing on a storage.
36
+ attr_accessor :name
37
+ # Export GIF 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 GIF 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="PostDrawingJpeg2000Request.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_jpeg2000 operation.
32
+ #
33
+ class PostDrawingJpeg2000Request
34
+
35
+ # Filename of an input drawing on a storage.
36
+ attr_accessor :name
37
+ # Export JPEG2000 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 JPEG2000 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="PostDrawingJpegRequest.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_jpeg operation.
32
+ #
33
+ class PostDrawingJpegRequest
34
+
35
+ # Filename of an input drawing on a storage.
36
+ attr_accessor :name
37
+ # Export JPEG 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 JPEG 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