aspose_cad_cloud 24.1 → 24.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,242 @@
1
+
2
+ require 'date'
3
+
4
+ module AsposeCadCloud
5
+ #
6
+ # --------------------------------------------------------------------------------------------------------------------
7
+ # <copyright company="Aspose" file="ColorDTO.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
+ # RGB color values
33
+ class ColorDTO
34
+ # Red light(0-255).
35
+ attr_accessor :r
36
+
37
+ # Green light(0-255).
38
+ attr_accessor :g
39
+
40
+ # Blue light(0-255).
41
+ attr_accessor :b
42
+
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'r' => :'R',
48
+ :'g' => :'G',
49
+ :'b' => :'B'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.swagger_types
55
+ {
56
+ :'r' => :'Integer',
57
+ :'g' => :'Integer',
58
+ :'b' => :'Integer'
59
+ }
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ return unless attributes.is_a?(Hash)
66
+
67
+ # convert string to symbol for hash key
68
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
69
+
70
+ if attributes.key?(:'R')
71
+ self.r = attributes[:'R']
72
+ end
73
+
74
+ if attributes.key?(:'G')
75
+ self.g = attributes[:'G']
76
+ end
77
+
78
+ if attributes.key?(:'B')
79
+ self.b = attributes[:'B']
80
+ end
81
+
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properies with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = []
88
+ if @r.nil?
89
+ invalid_properties.push("invalid value for 'r', r cannot be nil.")
90
+ end
91
+
92
+ if @g.nil?
93
+ invalid_properties.push("invalid value for 'g', g cannot be nil.")
94
+ end
95
+
96
+ if @b.nil?
97
+ invalid_properties.push("invalid value for 'b', b cannot be nil.")
98
+ end
99
+
100
+ return invalid_properties
101
+ end
102
+
103
+ # Check to see if the all the properties in the model are valid
104
+ # @return true if the model is valid
105
+ def valid?
106
+ return false if @r.nil?
107
+ return false if @g.nil?
108
+ return false if @b.nil?
109
+ return true
110
+ end
111
+
112
+ # Checks equality by comparing each attribute.
113
+ # @param [Object] Object to be compared
114
+ def ==(other)
115
+ return true if self.equal?(other)
116
+ self.class == other.class &&
117
+ r == other.r &&
118
+ g == other.g &&
119
+ b == other.b
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(other)
125
+ self == other
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Fixnum] Hash code
130
+ def hash
131
+ [r, g, b].hash
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def build_from_hash(attributes)
138
+ return nil unless attributes.is_a?(Hash)
139
+ self.class.swagger_types.each_pair do |key, type|
140
+ if type =~ /\AArray<(.*)>/i
141
+ # check to ensure the input is an array given that the the attribute
142
+ # is documented as an array but the input is not
143
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
144
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
145
+ end
146
+ elsif !attributes[self.class.attribute_map[key]].nil?
147
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
148
+ end
149
+ # or else data not found in attributes(hash), not an issue as the data can be optional
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ # Deserializes the data based on type
156
+ # @param string type Data type
157
+ # @param string value Value to be deserialized
158
+ # @return [Object] Deserialized data
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :DateTime
162
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
163
+ when :Date
164
+ Time.at(/\d/.match(value)[0].to_f).to_date
165
+ when :String
166
+ value.to_s
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :BOOLEAN
172
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else
192
+ # model
193
+ temp_model = AsposeCadCloud.const_get(type).new
194
+ temp_model.build_from_hash(value)
195
+ end
196
+ end
197
+
198
+ # Returns the string representation of the object
199
+ # @return [String] String presentation of the object
200
+ def to_s
201
+ to_hash.to_s
202
+ end
203
+
204
+ # to_body is an alias to to_hash (backward compatibility)
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_body
207
+ to_hash
208
+ end
209
+
210
+ # Returns the object in the form of hash
211
+ # @return [Hash] Returns the object in the form of hash
212
+ def to_hash
213
+ hash = {}
214
+ self.class.attribute_map.each_pair do |attr, param|
215
+ value = self.send(attr)
216
+ next if value.nil?
217
+ hash[param] = _to_hash(value)
218
+ end
219
+ hash
220
+ end
221
+
222
+ # Outputs non-array value in the form of hash
223
+ # For object, use to_hash. Otherwise, just return the value
224
+ # @param [Object] value Any valid value
225
+ # @return [Hash] Returns the value in the form of hash
226
+ def _to_hash(value)
227
+ if value.is_a?(Array)
228
+ value.compact.map { |v| _to_hash(v) }
229
+ elsif value.is_a?(Hash)
230
+ {}.tap do |hash|
231
+ value.each { |k, v| hash[k] = _to_hash(v) }
232
+ end
233
+ elsif value.respond_to? :to_hash
234
+ value.to_hash
235
+ else
236
+ value
237
+ end
238
+ end
239
+
240
+ end
241
+
242
+ end
@@ -0,0 +1,281 @@
1
+
2
+ require 'date'
3
+
4
+ module AsposeCadCloud
5
+ #
6
+ # --------------------------------------------------------------------------------------------------------------------
7
+ # <copyright company="Aspose" file="DracoOptionsDTO.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
+ # Export options for Draco format
33
+ class DracoOptionsDTO
34
+ # Resulting rotation operation
35
+ attr_accessor :rotation
36
+
37
+ # Layers to export
38
+ attr_accessor :layers
39
+
40
+ # DPI resolution settings
41
+ attr_accessor :resolution_settings
42
+
43
+ # Raster options
44
+ attr_accessor :vector_rasterization_options
45
+
46
+ class EnumAttributeValidator
47
+ attr_reader :datatype
48
+ attr_reader :allowable_values
49
+
50
+ def initialize(datatype, allowable_values)
51
+ @allowable_values = allowable_values.map do |value|
52
+ case datatype.to_s
53
+ when /Integer/i
54
+ value.to_i
55
+ when /Float/i
56
+ value.to_f
57
+ else
58
+ value
59
+ end
60
+ end
61
+ end
62
+
63
+ def valid?(value)
64
+ !value || allowable_values.include?(value)
65
+ end
66
+ end
67
+
68
+ # Attribute mapping from ruby-style variable name to JSON key.
69
+ def self.attribute_map
70
+ {
71
+ :'rotation' => :'Rotation',
72
+ :'layers' => :'Layers',
73
+ :'resolution_settings' => :'ResolutionSettings',
74
+ :'vector_rasterization_options' => :'VectorRasterizationOptions'
75
+ }
76
+ end
77
+
78
+ # Attribute type mapping.
79
+ def self.swagger_types
80
+ {
81
+ :'rotation' => :'String',
82
+ :'layers' => :'Array<String>',
83
+ :'resolution_settings' => :'ResolutionSetting',
84
+ :'vector_rasterization_options' => :'CadRasterizationOptionsDTO'
85
+ }
86
+ end
87
+
88
+ # Initializes the object
89
+ # @param [Hash] attributes Model attributes in the form of hash
90
+ def initialize(attributes = {})
91
+ return unless attributes.is_a?(Hash)
92
+
93
+ # convert string to symbol for hash key
94
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
95
+
96
+ if attributes.key?(:'Rotation')
97
+ self.rotation = attributes[:'Rotation']
98
+ end
99
+
100
+ if attributes.key?(:'Layers')
101
+ if (value = attributes[:'Layers']).is_a?(Array)
102
+ self.layers = value
103
+ end
104
+ end
105
+
106
+ if attributes.key?(:'ResolutionSettings')
107
+ self.resolution_settings = attributes[:'ResolutionSettings']
108
+ end
109
+
110
+ if attributes.key?(:'VectorRasterizationOptions')
111
+ self.vector_rasterization_options = attributes[:'VectorRasterizationOptions']
112
+ end
113
+
114
+ end
115
+
116
+ # Show invalid properties with the reasons. Usually used together with valid?
117
+ # @return Array for valid properies with the reasons
118
+ def list_invalid_properties
119
+ invalid_properties = []
120
+ if @rotation.nil?
121
+ invalid_properties.push("invalid value for 'rotation', rotation cannot be nil.")
122
+ end
123
+
124
+ return invalid_properties
125
+ end
126
+
127
+ # Check to see if the all the properties in the model are valid
128
+ # @return true if the model is valid
129
+ def valid?
130
+ return false if @rotation.nil?
131
+ rotation_validator = EnumAttributeValidator.new('String', ["RotateNoneFlipNone", "Rotate90FlipNone", "Rotate180FlipNone", "Rotate270FlipNone", "RotateNoneFlipX", "Rotate90FlipX", "Rotate180FlipX", "Rotate270FlipX", "RotateNoneFlipY", "Rotate90FlipY", "Rotate180FlipY", "Rotate270FlipY", "RotateNoneFlipXY", "Rotate90FlipXY", "Rotate180FlipXY", "Rotate270FlipXY"])
132
+ return false unless rotation_validator.valid?(@rotation)
133
+ return true
134
+ end
135
+
136
+ # Custom attribute writer method checking allowed values (enum).
137
+ # @param [Object] rotation Object to be assigned
138
+ def rotation=(rotation)
139
+ validator = EnumAttributeValidator.new('String', ["RotateNoneFlipNone", "Rotate90FlipNone", "Rotate180FlipNone", "Rotate270FlipNone", "RotateNoneFlipX", "Rotate90FlipX", "Rotate180FlipX", "Rotate270FlipX", "RotateNoneFlipY", "Rotate90FlipY", "Rotate180FlipY", "Rotate270FlipY", "RotateNoneFlipXY", "Rotate90FlipXY", "Rotate180FlipXY", "Rotate270FlipXY"])
140
+ if rotation.to_i == 0
141
+ unless validator.valid?(rotation)
142
+ raise ArgumentError, "invalid value for 'rotation', must be one of #{validator.allowable_values}."
143
+ end
144
+ @rotation = rotation
145
+ else
146
+ @rotation = validator.allowable_values[rotation.to_i]
147
+ end
148
+ end
149
+
150
+ # Checks equality by comparing each attribute.
151
+ # @param [Object] Object to be compared
152
+ def ==(other)
153
+ return true if self.equal?(other)
154
+ self.class == other.class &&
155
+ rotation == other.rotation &&
156
+ layers == other.layers &&
157
+ resolution_settings == other.resolution_settings &&
158
+ vector_rasterization_options == other.vector_rasterization_options
159
+ end
160
+
161
+ # @see the `==` method
162
+ # @param [Object] Object to be compared
163
+ def eql?(other)
164
+ self == other
165
+ end
166
+
167
+ # Calculates hash code according to all attributes.
168
+ # @return [Fixnum] Hash code
169
+ def hash
170
+ [rotation, layers, resolution_settings, vector_rasterization_options].hash
171
+ end
172
+
173
+ # Builds the object from hash
174
+ # @param [Hash] attributes Model attributes in the form of hash
175
+ # @return [Object] Returns the model itself
176
+ def build_from_hash(attributes)
177
+ return nil unless attributes.is_a?(Hash)
178
+ self.class.swagger_types.each_pair do |key, type|
179
+ if type =~ /\AArray<(.*)>/i
180
+ # check to ensure the input is an array given that the the attribute
181
+ # is documented as an array but the input is not
182
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
183
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
184
+ end
185
+ elsif !attributes[self.class.attribute_map[key]].nil?
186
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
187
+ end
188
+ # or else data not found in attributes(hash), not an issue as the data can be optional
189
+ end
190
+
191
+ self
192
+ end
193
+
194
+ # Deserializes the data based on type
195
+ # @param string type Data type
196
+ # @param string value Value to be deserialized
197
+ # @return [Object] Deserialized data
198
+ def _deserialize(type, value)
199
+ case type.to_sym
200
+ when :DateTime
201
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
202
+ when :Date
203
+ Time.at(/\d/.match(value)[0].to_f).to_date
204
+ when :String
205
+ value.to_s
206
+ when :Integer
207
+ value.to_i
208
+ when :Float
209
+ value.to_f
210
+ when :BOOLEAN
211
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
212
+ true
213
+ else
214
+ false
215
+ end
216
+ when :Object
217
+ # generic object (usually a Hash), return directly
218
+ value
219
+ when /\AArray<(?<inner_type>.+)>\z/
220
+ inner_type = Regexp.last_match[:inner_type]
221
+ value.map { |v| _deserialize(inner_type, v) }
222
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
223
+ k_type = Regexp.last_match[:k_type]
224
+ v_type = Regexp.last_match[:v_type]
225
+ {}.tap do |hash|
226
+ value.each do |k, v|
227
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
228
+ end
229
+ end
230
+ else
231
+ # model
232
+ temp_model = AsposeCadCloud.const_get(type).new
233
+ temp_model.build_from_hash(value)
234
+ end
235
+ end
236
+
237
+ # Returns the string representation of the object
238
+ # @return [String] String presentation of the object
239
+ def to_s
240
+ to_hash.to_s
241
+ end
242
+
243
+ # to_body is an alias to to_hash (backward compatibility)
244
+ # @return [Hash] Returns the object in the form of hash
245
+ def to_body
246
+ to_hash
247
+ end
248
+
249
+ # Returns the object in the form of hash
250
+ # @return [Hash] Returns the object in the form of hash
251
+ def to_hash
252
+ hash = {}
253
+ self.class.attribute_map.each_pair do |attr, param|
254
+ value = self.send(attr)
255
+ next if value.nil?
256
+ hash[param] = _to_hash(value)
257
+ end
258
+ hash
259
+ end
260
+
261
+ # Outputs non-array value in the form of hash
262
+ # For object, use to_hash. Otherwise, just return the value
263
+ # @param [Object] value Any valid value
264
+ # @return [Hash] Returns the value in the form of hash
265
+ def _to_hash(value)
266
+ if value.is_a?(Array)
267
+ value.compact.map { |v| _to_hash(v) }
268
+ elsif value.is_a?(Hash)
269
+ {}.tap do |hash|
270
+ value.each { |k, v| hash[k] = _to_hash(v) }
271
+ end
272
+ elsif value.respond_to? :to_hash
273
+ value.to_hash
274
+ else
275
+ value
276
+ end
277
+ end
278
+
279
+ end
280
+
281
+ end
@@ -4,7 +4,7 @@ require 'date'
4
4
  module AsposeCadCloud
5
5
  #
6
6
  # --------------------------------------------------------------------------------------------------------------------
7
- # <copyright company="Aspose" file="ErrorModel.rb">
7
+ # <copyright company="Aspose" file="Error.rb">
8
8
  # Copyright (c) 2017 Aspose.CAD Cloud
9
9
  # </copyright>
10
10
  # <summary>
@@ -30,7 +30,7 @@ module AsposeCadCloud
30
30
  #
31
31
 
32
32
  # Error
33
- class ErrorModel
33
+ class Error
34
34
  # Code
35
35
  attr_accessor :code
36
36
 
@@ -50,7 +50,7 @@ module AsposeCadCloud
50
50
  def self.swagger_types
51
51
  {
52
52
  :'uploaded' => :'Array<String>',
53
- :'errors' => :'Array<ErrorModel>'
53
+ :'errors' => :'Array<Error>'
54
54
  }
55
55
  end
56
56
 
@@ -32,21 +32,21 @@ module AsposeCadCloud
32
32
  #
33
33
  class ConvertRequest
34
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.
35
+ # Input drawing
36
+ attr_accessor :drawing_data
37
+ # Output DXF, DWG, DGN, DWF, DWFX, DRC, 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
38
  attr_accessor :output_format
37
- # Form-data file
38
- attr_accessor :drawing
39
39
  # For output pdf format: PDF_15, PDFa_1a OR PDFa_1b. Null for another format
40
40
  attr_accessor :output_type_ext
41
41
 
42
42
  #
43
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
44
+ # @param drawing_data Input drawing
45
+ # @param output_format Output DXF, DWG, DGN, DWF, DWFX, DRC, 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.
46
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)
47
+ def initialize(drawing_data, output_format, output_type_ext = nil)
48
+ self.drawing_data = drawing_data
48
49
  self.output_format = output_format
49
- self.drawing = drawing
50
50
  self.output_type_ext = output_type_ext
51
51
  end
52
52
  end
@@ -32,14 +32,14 @@ module AsposeCadCloud
32
32
  #
33
33
  class EditMetadataRequest
34
34
 
35
- # Gets or sets drawing
36
- attr_accessor :drawing
35
+ # Input drawing
36
+ attr_accessor :drawing_data
37
37
 
38
38
  #
39
39
  # Initializes a new instance.
40
- # @param drawing
41
- def initialize(drawing = nil)
42
- self.drawing = drawing
40
+ # @param drawing_data Input drawing
41
+ def initialize(drawing_data)
42
+ self.drawing_data = drawing_data
43
43
  end
44
44
  end
45
45
  end
@@ -32,18 +32,18 @@ module AsposeCadCloud
32
32
  #
33
33
  class ExtractMetadataRequest
34
34
 
35
+ # Input drawing
36
+ attr_accessor :drawing_data
35
37
  # Output TXT, XML or JSON file format.
36
38
  attr_accessor :output_format
37
- # Form-data file
38
- attr_accessor :drawing
39
39
 
40
40
  #
41
41
  # Initializes a new instance.
42
+ # @param drawing_data Input drawing
42
43
  # @param output_format Output TXT, XML or JSON file format.
43
- # @param drawing Form-data file
44
- def initialize(output_format, drawing = nil)
44
+ def initialize(drawing_data, output_format)
45
+ self.drawing_data = drawing_data
45
46
  self.output_format = output_format
46
- self.drawing = drawing
47
47
  end
48
48
  end
49
49
  end
@@ -32,14 +32,14 @@ module AsposeCadCloud
32
32
  #
33
33
  class ExtractTextRequest
34
34
 
35
- # Gets or sets drawing
36
- attr_accessor :drawing
35
+ # Input drawing
36
+ attr_accessor :drawing_data
37
37
 
38
38
  #
39
39
  # Initializes a new instance.
40
- # @param drawing
41
- def initialize(drawing = nil)
42
- self.drawing = drawing
40
+ # @param drawing_data Input drawing
41
+ def initialize(drawing_data)
42
+ self.drawing_data = drawing_data
43
43
  end
44
44
  end
45
45
  end
@@ -32,18 +32,18 @@ module AsposeCadCloud
32
32
  #
33
33
  class PaperToCadRequest
34
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.
35
+ # Input drawing
36
+ attr_accessor :drawing_data
37
+ # Output DXF, DWG, DGN, DWF, DWFX, DRC, IFC, STL, STP, STEP, CGM, GLB, GLTF, DWT, IGES, PLT, CF2, OBJ, HPGL, IGS, PCL, FBX, SVG file format.
36
38
  attr_accessor :output_format
37
- # Form-data file
38
- attr_accessor :drawing
39
39
 
40
40
  #
41
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)
42
+ # @param drawing_data Input drawing
43
+ # @param output_format Output DXF, DWG, DGN, DWF, DWFX, DRC, IFC, STL, STP, STEP, CGM, GLB, GLTF, DWT, IGES, PLT, CF2, OBJ, HPGL, IGS, PCL, FBX, SVG file format.
44
+ def initialize(drawing_data, output_format)
45
+ self.drawing_data = drawing_data
45
46
  self.output_format = output_format
46
- self.drawing = drawing
47
47
  end
48
48
  end
49
49
  end