aspose_cad_cloud 20.11 → 24.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_cad_cloud/api/cad_api.rb +2630 -390
  3. data/lib/aspose_cad_cloud/configuration.rb +8 -1
  4. data/lib/aspose_cad_cloud/models/bitmap_compression.rb +27 -0
  5. data/lib/aspose_cad_cloud/models/bmp_options_dto.rb +2 -2
  6. data/lib/aspose_cad_cloud/models/cad_draw_type_mode.rb +21 -0
  7. data/lib/aspose_cad_cloud/models/cad_response.rb +48 -8
  8. data/lib/aspose_cad_cloud/models/{cff2_properties.rb → cf2_properties.rb} +3 -3
  9. data/lib/aspose_cad_cloud/models/cgm_options_dto.rb +281 -0
  10. data/lib/aspose_cad_cloud/models/color_modes.rb +27 -0
  11. data/lib/aspose_cad_cloud/models/compression_method.rb +23 -0
  12. data/lib/aspose_cad_cloud/models/dicom_options_dto.rb +281 -0
  13. data/lib/aspose_cad_cloud/models/dwf_options_dto.rb +281 -0
  14. data/lib/aspose_cad_cloud/models/dxf_options_dto.rb +281 -0
  15. data/lib/aspose_cad_cloud/models/{error.rb → error_model.rb} +2 -2
  16. data/lib/aspose_cad_cloud/models/fbx_options_dto.rb +281 -0
  17. data/lib/aspose_cad_cloud/models/fbx_properties.rb +197 -0
  18. data/lib/aspose_cad_cloud/models/files_upload_result.rb +1 -1
  19. data/lib/aspose_cad_cloud/models/glb_options_dto.rb +281 -0
  20. data/lib/aspose_cad_cloud/models/gltf_options_dto.rb +281 -0
  21. data/lib/aspose_cad_cloud/models/interpolation_mode.rb +28 -0
  22. data/lib/aspose_cad_cloud/models/jpeg2000_codec.rb +22 -0
  23. data/lib/aspose_cad_cloud/models/jpeg_compression_color_mode.rb +24 -0
  24. data/lib/aspose_cad_cloud/models/jpeg_compression_mode.rb +23 -0
  25. data/lib/aspose_cad_cloud/models/line_cap.rb +30 -0
  26. data/lib/aspose_cad_cloud/models/obj_options_dto.rb +281 -0
  27. data/lib/aspose_cad_cloud/models/obj_properties.rb +197 -0
  28. data/lib/aspose_cad_cloud/models/pdf_compliance.rb +22 -0
  29. data/lib/aspose_cad_cloud/models/pdf_digital_signature_details_core_dto.rb +294 -0
  30. data/lib/aspose_cad_cloud/models/pdf_digital_signature_hash_algorithm_core.rb +24 -0
  31. data/lib/aspose_cad_cloud/models/{pdf_document_options.rb → pdf_document_options_dto.rb} +17 -7
  32. data/lib/aspose_cad_cloud/models/pdf_options_dto.rb +1 -1
  33. data/lib/aspose_cad_cloud/models/plt_properties.rb +197 -0
  34. data/lib/aspose_cad_cloud/models/png_color_type.rb +24 -0
  35. data/lib/aspose_cad_cloud/models/png_filter_type.rb +25 -0
  36. data/lib/aspose_cad_cloud/models/requests/ConvertRequest.rb +53 -0
  37. data/lib/aspose_cad_cloud/models/requests/EditMetadataRequest.rb +45 -0
  38. data/lib/aspose_cad_cloud/models/requests/ExtractMetadataRequest.rb +49 -0
  39. data/lib/aspose_cad_cloud/models/requests/ExtractTextRequest.rb +45 -0
  40. data/lib/aspose_cad_cloud/models/requests/PaperToCadRequest.rb +49 -0
  41. data/lib/aspose_cad_cloud/models/requests/PostDrawingCgmRequest.rb +61 -0
  42. data/lib/aspose_cad_cloud/models/requests/PostDrawingDicomRequest.rb +61 -0
  43. data/lib/aspose_cad_cloud/models/requests/PostDrawingDwfRequest.rb +61 -0
  44. data/lib/aspose_cad_cloud/models/requests/PostDrawingDxfRequest.rb +61 -0
  45. data/lib/aspose_cad_cloud/models/requests/PostDrawingFbxRequest.rb +61 -0
  46. data/lib/aspose_cad_cloud/models/requests/PostDrawingGlbRequest.rb +61 -0
  47. data/lib/aspose_cad_cloud/models/requests/PostDrawingGltfRequest.rb +61 -0
  48. data/lib/aspose_cad_cloud/models/requests/PostDrawingObjRequest.rb +61 -0
  49. data/lib/aspose_cad_cloud/models/requests/PostDrawingStpRequest.rb +61 -0
  50. data/lib/aspose_cad_cloud/models/requests/PostDrawingThreeDsRequest.rb +61 -0
  51. data/lib/aspose_cad_cloud/models/requests/PostDrawingU3dRequest.rb +61 -0
  52. data/lib/aspose_cad_cloud/models/requests/PostDrawingWebpRequest.rb +61 -0
  53. data/lib/aspose_cad_cloud/models/requests/PutDrawingCgmRequest.rb +57 -0
  54. data/lib/aspose_cad_cloud/models/requests/PutDrawingDicomRequest.rb +57 -0
  55. data/lib/aspose_cad_cloud/models/requests/PutDrawingDwfRequest.rb +57 -0
  56. data/lib/aspose_cad_cloud/models/requests/PutDrawingDxfRequest.rb +57 -0
  57. data/lib/aspose_cad_cloud/models/requests/PutDrawingFbxRequest.rb +57 -0
  58. data/lib/aspose_cad_cloud/models/requests/PutDrawingGlbRequest.rb +57 -0
  59. data/lib/aspose_cad_cloud/models/requests/PutDrawingGltfRequest.rb +57 -0
  60. data/lib/aspose_cad_cloud/models/requests/PutDrawingObjRequest.rb +57 -0
  61. data/lib/aspose_cad_cloud/models/requests/PutDrawingStpRequest.rb +57 -0
  62. data/lib/aspose_cad_cloud/models/requests/PutDrawingThreeDsRequest.rb +57 -0
  63. data/lib/aspose_cad_cloud/models/requests/PutDrawingU3dRequest.rb +57 -0
  64. data/lib/aspose_cad_cloud/models/requests/PutDrawingWebpRequest.rb +57 -0
  65. data/lib/aspose_cad_cloud/models/requests/PutEditMetadataRequest.rb +49 -0
  66. data/lib/aspose_cad_cloud/models/requests/ViewerRequest.rb +49 -0
  67. data/lib/aspose_cad_cloud/models/requests/WatermarkRequest.rb +57 -0
  68. data/lib/aspose_cad_cloud/models/rotate_flip_type.rb +35 -0
  69. data/lib/aspose_cad_cloud/models/smoothing_mode.rb +25 -0
  70. data/lib/aspose_cad_cloud/models/stp_options_dto.rb +281 -0
  71. data/lib/aspose_cad_cloud/models/stp_properties.rb +197 -0
  72. data/lib/aspose_cad_cloud/models/svg_color_mode.rb +24 -0
  73. data/lib/aspose_cad_cloud/models/text_rendering_hint.rb +25 -0
  74. data/lib/aspose_cad_cloud/models/three_ds_options_dto.rb +281 -0
  75. data/lib/aspose_cad_cloud/models/tiff_byte_order.rb +21 -0
  76. data/lib/aspose_cad_cloud/models/tiff_compressions.rb +43 -0
  77. data/lib/aspose_cad_cloud/models/tiff_expected_format.rb +35 -0
  78. data/lib/aspose_cad_cloud/models/tiff_photometrics.rb +31 -0
  79. data/lib/aspose_cad_cloud/models/u3d_options_dto.rb +281 -0
  80. data/lib/aspose_cad_cloud/models/unit_type.rb +41 -0
  81. data/lib/aspose_cad_cloud/models/webp_options_dto.rb +281 -0
  82. data/lib/aspose_cad_cloud/version.rb +1 -1
  83. data/lib/aspose_cad_cloud.rb +42 -3
  84. metadata +97 -12
@@ -0,0 +1,197 @@
1
+
2
+ require 'date'
3
+
4
+ module AsposeCadCloud
5
+ #
6
+ # --------------------------------------------------------------------------------------------------------------------
7
+ # <copyright company="Aspose" file="PltProperties.rb">
8
+ # Copyright (c) 2017 Aspose.CAD Cloud
9
+ # </copyright>
10
+ # <summary>
11
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ # of this software and associated documentation files (the "Software"), to deal
13
+ # in the Software without restriction, including without limitation the rights
14
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ # copies of the Software, and to permit persons to whom the Software is
16
+ # furnished to do so, subject to the following conditions:
17
+ #
18
+ # The above copyright notice and this permission notice shall be included in all
19
+ # copies or substantial portions of the Software.
20
+ #
21
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ # SOFTWARE.
28
+ # </summary>
29
+ # --------------------------------------------------------------------------------------------------------------------
30
+ #
31
+
32
+ # Represents information about PLT drawing.
33
+ class PltProperties
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ return unless attributes.is_a?(Hash)
51
+
52
+ # convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
54
+
55
+ end
56
+
57
+ # Show invalid properties with the reasons. Usually used together with valid?
58
+ # @return Array for valid properies with the reasons
59
+ def list_invalid_properties
60
+ invalid_properties = []
61
+ return invalid_properties
62
+ end
63
+
64
+ # Check to see if the all the properties in the model are valid
65
+ # @return true if the model is valid
66
+ def valid?
67
+ return true
68
+ end
69
+
70
+ # Checks equality by comparing each attribute.
71
+ # @param [Object] Object to be compared
72
+ def ==(other)
73
+ return true if self.equal?(other)
74
+ self.class == other.class
75
+ end
76
+
77
+ # @see the `==` method
78
+ # @param [Object] Object to be compared
79
+ def eql?(other)
80
+ self == other
81
+ end
82
+
83
+ # Calculates hash code according to all attributes.
84
+ # @return [Fixnum] Hash code
85
+ def hash
86
+ [].hash
87
+ end
88
+
89
+ # Builds the object from hash
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ # @return [Object] Returns the model itself
92
+ def build_from_hash(attributes)
93
+ return nil unless attributes.is_a?(Hash)
94
+ self.class.swagger_types.each_pair do |key, type|
95
+ if type =~ /\AArray<(.*)>/i
96
+ # check to ensure the input is an array given that the the attribute
97
+ # is documented as an array but the input is not
98
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
99
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
100
+ end
101
+ elsif !attributes[self.class.attribute_map[key]].nil?
102
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
103
+ end
104
+ # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
118
+ when :Date
119
+ Time.at(/\d/.match(value)[0].to_f).to_date
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else
147
+ # model
148
+ temp_model = AsposeCadCloud.const_get(type).new
149
+ temp_model.build_from_hash(value)
150
+ end
151
+ end
152
+
153
+ # Returns the string representation of the object
154
+ # @return [String] String presentation of the object
155
+ def to_s
156
+ to_hash.to_s
157
+ end
158
+
159
+ # to_body is an alias to to_hash (backward compatibility)
160
+ # @return [Hash] Returns the object in the form of hash
161
+ def to_body
162
+ to_hash
163
+ end
164
+
165
+ # Returns the object in the form of hash
166
+ # @return [Hash] Returns the object in the form of hash
167
+ def to_hash
168
+ hash = {}
169
+ self.class.attribute_map.each_pair do |attr, param|
170
+ value = self.send(attr)
171
+ next if value.nil?
172
+ hash[param] = _to_hash(value)
173
+ end
174
+ hash
175
+ end
176
+
177
+ # Outputs non-array value in the form of hash
178
+ # For object, use to_hash. Otherwise, just return the value
179
+ # @param [Object] value Any valid value
180
+ # @return [Hash] Returns the value in the form of hash
181
+ def _to_hash(value)
182
+ if value.is_a?(Array)
183
+ value.compact.map { |v| _to_hash(v) }
184
+ elsif value.is_a?(Hash)
185
+ {}.tap do |hash|
186
+ value.each { |k, v| hash[k] = _to_hash(v) }
187
+ end
188
+ elsif value.respond_to? :to_hash
189
+ value.to_hash
190
+ else
191
+ value
192
+ end
193
+ end
194
+
195
+ end
196
+
197
+ end
@@ -0,0 +1,24 @@
1
+
2
+ require 'date'
3
+
4
+ module AsposeCadCloud
5
+
6
+ class PngColorType
7
+
8
+ GRAYSCALE = "Grayscale".freeze
9
+ TRUECOLOR = "Truecolor".freeze
10
+ INDEXED_COLOR = "IndexedColor".freeze
11
+ GRAYSCALE_WITH_ALPHA = "GrayscaleWithAlpha".freeze
12
+ TRUECOLOR_WITH_ALPHA = "TruecolorWithAlpha".freeze
13
+
14
+ # Builds the enum from string
15
+ # @param [String] The enum value in the form of the string
16
+ # @return [String] The enum value
17
+ def build_from_hash(value)
18
+ constantValues = PngColorType.constants.select{|c| PngColorType::const_get(c) == value}
19
+ raise "Invalid ENUM value #{value} for class #PngColorType" if constantValues.empty?
20
+ value
21
+ end
22
+ end
23
+
24
+ end
@@ -0,0 +1,25 @@
1
+
2
+ require 'date'
3
+
4
+ module AsposeCadCloud
5
+
6
+ class PngFilterType
7
+
8
+ NONE = "None".freeze
9
+ SUB = "Sub".freeze
10
+ UP = "Up".freeze
11
+ AVG = "Avg".freeze
12
+ PAETH = "Paeth".freeze
13
+ ADAPTIVE = "Adaptive".freeze
14
+
15
+ # Builds the enum from string
16
+ # @param [String] The enum value in the form of the string
17
+ # @return [String] The enum value
18
+ def build_from_hash(value)
19
+ constantValues = PngFilterType.constants.select{|c| PngFilterType::const_get(c) == value}
20
+ raise "Invalid ENUM value #{value} for class #PngFilterType" if constantValues.empty?
21
+ value
22
+ end
23
+ end
24
+
25
+ end
@@ -0,0 +1,53 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="ConvertRequest.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 convert operation.
32
+ #
33
+ class ConvertRequest
34
+
35
+ # Output DXF, DWG, DGN, DWF, DWFX, IFC, STL, STP, STEP, CGM, GLB, GLTF, DWT, IGES, PLT, CF2, OBJ, HPGL, IGS, PCL, FBX, PDF, SVG, PNG, BMP, DIB, TIFF, TIF, JPEG, GIF, PSD, JPG, JPE, JIF, JFIF, PSD, WEBP, DCM, DICOM, JP2, J2K, JPF, JPM, JPG2, J2C, JPC, JPX, MJ2 , DJVU file format.
36
+ attr_accessor :output_format
37
+ # Form-data file
38
+ attr_accessor :drawing
39
+ # For output pdf format: PDF_15, PDFa_1a OR PDFa_1b. Null for another format
40
+ attr_accessor :output_type_ext
41
+
42
+ #
43
+ # Initializes a new instance.
44
+ # @param output_format Output DXF, DWG, DGN, DWF, DWFX, IFC, STL, STP, STEP, CGM, GLB, GLTF, DWT, IGES, PLT, CF2, OBJ, HPGL, IGS, PCL, FBX, PDF, SVG, PNG, BMP, DIB, TIFF, TIF, JPEG, GIF, PSD, JPG, JPE, JIF, JFIF, PSD, WEBP, DCM, DICOM, JP2, J2K, JPF, JPM, JPG2, J2C, JPC, JPX, MJ2 , DJVU file format.
45
+ # @param drawing Form-data file
46
+ # @param output_type_ext For output pdf format: PDF_15, PDFa_1a OR PDFa_1b. Null for another format
47
+ def initialize(output_format, drawing = nil, output_type_ext = nil)
48
+ self.output_format = output_format
49
+ self.drawing = drawing
50
+ self.output_type_ext = output_type_ext
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,45 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="EditMetadataRequest.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 edit_metadata operation.
32
+ #
33
+ class EditMetadataRequest
34
+
35
+ # Gets or sets drawing
36
+ attr_accessor :drawing
37
+
38
+ #
39
+ # Initializes a new instance.
40
+ # @param drawing
41
+ def initialize(drawing = nil)
42
+ self.drawing = drawing
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,49 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="ExtractMetadataRequest.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 extract_metadata operation.
32
+ #
33
+ class ExtractMetadataRequest
34
+
35
+ # Output TXT, XML or JSON file format.
36
+ attr_accessor :output_format
37
+ # Form-data file
38
+ attr_accessor :drawing
39
+
40
+ #
41
+ # Initializes a new instance.
42
+ # @param output_format Output TXT, XML or JSON file format.
43
+ # @param drawing Form-data file
44
+ def initialize(output_format, drawing = nil)
45
+ self.output_format = output_format
46
+ self.drawing = drawing
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,45 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="ExtractTextRequest.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 extract_text operation.
32
+ #
33
+ class ExtractTextRequest
34
+
35
+ # Gets or sets drawing
36
+ attr_accessor :drawing
37
+
38
+ #
39
+ # Initializes a new instance.
40
+ # @param drawing
41
+ def initialize(drawing = nil)
42
+ self.drawing = drawing
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,49 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="PaperToCadRequest.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 paper_to_cad operation.
32
+ #
33
+ class PaperToCadRequest
34
+
35
+ # Output DXF, DWG, DGN, DWF, DWFX, IFC, STL, STP, STEP, CGM, GLB, GLTF, DWT, IGES, PLT, CF2, OBJ, HPGL, IGS, PCL, FBX, SVG file format.
36
+ attr_accessor :output_format
37
+ # Form-data file
38
+ attr_accessor :drawing
39
+
40
+ #
41
+ # Initializes a new instance.
42
+ # @param output_format Output DXF, DWG, DGN, DWF, DWFX, IFC, STL, STP, STEP, CGM, GLB, GLTF, DWT, IGES, PLT, CF2, OBJ, HPGL, IGS, PCL, FBX, SVG file format.
43
+ # @param drawing Form-data file
44
+ def initialize(output_format, drawing = nil)
45
+ self.output_format = output_format
46
+ self.drawing = drawing
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,61 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="PostDrawingCgmRequest.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_cgm operation.
32
+ #
33
+ class PostDrawingCgmRequest
34
+
35
+ # Filename of an input drawing on a storage.
36
+ attr_accessor :name
37
+ # Export CGM 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 CGM 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="PostDrawingDicomRequest.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_dicom operation.
32
+ #
33
+ class PostDrawingDicomRequest
34
+
35
+ # Filename of an input drawing on a storage.
36
+ attr_accessor :name
37
+ # Export Dicom 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 Dicom 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="PostDrawingDwfRequest.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_dwf operation.
32
+ #
33
+ class PostDrawingDwfRequest
34
+
35
+ # Filename of an input drawing on a storage.
36
+ attr_accessor :name
37
+ # Export Dwf 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 Dwf 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