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,61 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="PostDrawingDracoRequest.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_draco operation.
32
+ #
33
+ class PostDrawingDracoRequest
34
+
35
+ # Filename of an input drawing on a storage.
36
+ attr_accessor :name
37
+ # Export Draco 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 Draco 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,57 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="PutDrawingDracoRequest.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 put_drawing_draco operation.
32
+ #
33
+ class PutDrawingDracoRequest
34
+
35
+ # Input drawing
36
+ attr_accessor :drawing_data
37
+ # Path to updated file (if this is empty, response contains streamed file).
38
+ attr_accessor :out_path
39
+ # JSON-serialized export options passed as zero-indexed multipart/form-data. Follow #/definitions/DracoOptionsDTO model definition.
40
+ attr_accessor :export_options
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 out_path Path to updated file (if this is empty, response contains streamed file).
48
+ # @param export_options JSON-serialized export options passed as zero-indexed multipart/form-data. Follow #/definitions/DracoOptionsDTO model definition.
49
+ # @param storage Your Aspose Cloud Storage name.
50
+ def initialize(drawing_data, out_path = nil, export_options = nil, storage = nil)
51
+ self.drawing_data = drawing_data
52
+ self.out_path = out_path
53
+ self.export_options = export_options
54
+ self.storage = storage
55
+ end
56
+ end
57
+ end
@@ -32,17 +32,17 @@ module AsposeCadCloud
32
32
  #
33
33
  class PutEditMetadataRequest
34
34
 
35
- # Gets or sets drawing
36
- attr_accessor :drawing
37
- # Gets or sets metadata_component
35
+ # Input drawing
36
+ attr_accessor :drawing_data
37
+ # Metadata string json from POST/EditMetadata
38
38
  attr_accessor :metadata_component
39
39
 
40
40
  #
41
41
  # Initializes a new instance.
42
- # @param drawing
43
- # @param metadata_component
44
- def initialize(drawing = nil, metadata_component = nil)
45
- self.drawing = drawing
42
+ # @param drawing_data Input drawing
43
+ # @param metadata_component Metadata string json from POST/EditMetadata
44
+ def initialize(drawing_data, metadata_component)
45
+ self.drawing_data = drawing_data
46
46
  self.metadata_component = metadata_component
47
47
  end
48
48
  end
@@ -32,25 +32,25 @@ module AsposeCadCloud
32
32
  #
33
33
  class WatermarkRequest
34
34
 
35
+ # Input drawing
36
+ attr_accessor :drawing_data
35
37
  # Gets or sets output_format
36
38
  attr_accessor :output_format
37
- # Gets or sets drawing
38
- attr_accessor :drawing
39
- # Gets or sets watermark_rgb
40
- attr_accessor :watermark_rgb
39
+ # JSON-serialized export options passed as zero-indexed multipart/form-data. Follow #/definitions/WatermarkRGB model definition.
40
+ attr_accessor :watermark
41
41
  # Gets or sets output_type_ext
42
42
  attr_accessor :output_type_ext
43
43
 
44
44
  #
45
45
  # Initializes a new instance.
46
+ # @param drawing_data Input drawing
46
47
  # @param output_format
47
- # @param drawing
48
- # @param watermark_rgb
48
+ # @param watermark JSON-serialized export options passed as zero-indexed multipart/form-data. Follow #/definitions/WatermarkRGB model definition.
49
49
  # @param output_type_ext
50
- def initialize(output_format, drawing = nil, watermark_rgb = nil, output_type_ext = nil)
50
+ def initialize(drawing_data, output_format, watermark, output_type_ext = nil)
51
+ self.drawing_data = drawing_data
51
52
  self.output_format = output_format
52
- self.drawing = drawing
53
- self.watermark_rgb = watermark_rgb
53
+ self.watermark = watermark
54
54
  self.output_type_ext = output_type_ext
55
55
  end
56
56
  end
@@ -101,8 +101,8 @@ module AsposeCadCloud
101
101
  :'border_y' => :'Float',
102
102
  :'page_height' => :'Float',
103
103
  :'page_width' => :'Float',
104
- :'background_color' => :'Color',
105
- :'draw_color' => :'Color',
104
+ :'background_color' => :'ColorDTO',
105
+ :'draw_color' => :'ColorDTO',
106
106
  :'unit_type' => :'String',
107
107
  :'content_as_bitmap' => :'BOOLEAN',
108
108
  :'graphics_options' => :'GraphicsOptions'
@@ -175,14 +175,6 @@ module AsposeCadCloud
175
175
  invalid_properties.push("invalid value for 'page_width', page_width cannot be nil.")
176
176
  end
177
177
 
178
- if @background_color.nil?
179
- invalid_properties.push("invalid value for 'background_color', background_color cannot be nil.")
180
- end
181
-
182
- if @draw_color.nil?
183
- invalid_properties.push("invalid value for 'draw_color', draw_color cannot be nil.")
184
- end
185
-
186
178
  if @unit_type.nil?
187
179
  invalid_properties.push("invalid value for 'unit_type', unit_type cannot be nil.")
188
180
  end
@@ -201,8 +193,6 @@ module AsposeCadCloud
201
193
  return false if @border_y.nil?
202
194
  return false if @page_height.nil?
203
195
  return false if @page_width.nil?
204
- return false if @background_color.nil?
205
- return false if @draw_color.nil?
206
196
  return false if @unit_type.nil?
207
197
  unit_type_validator = EnumAttributeValidator.new('String', ["Kilometer", "Meter", "Centimenter", "Millimeter", "Micrometer", "Nanometer", "Angstrom", "Decimeter", "Decameter", "Hectometer", "Gigameter", "AstronomicalUnit", "LightYear", "Parsec", "Mile", "Yard", "Foot", "Inch", "Mil", "MicroInch", "Custom", "Unitless"])
208
198
  return false unless unit_type_validator.valid?(@unit_type)
@@ -4,7 +4,7 @@ require 'date'
4
4
  module AsposeCadCloud
5
5
  #
6
6
  # --------------------------------------------------------------------------------------------------------------------
7
- # <copyright company="Aspose" file="Color.rb">
7
+ # <copyright company="Aspose" file="WatermarkRGB.rb">
8
8
  # Copyright (c) 2017 Aspose.CAD Cloud
9
9
  # </copyright>
10
10
  # <summary>
@@ -29,50 +29,38 @@ module AsposeCadCloud
29
29
  # --------------------------------------------------------------------------------------------------------------------
30
30
  #
31
31
 
32
+ # Watermark text with RGB values
33
+ class WatermarkRGB
34
+ # Watermark text.
35
+ attr_accessor :text
32
36
 
33
- class Color
37
+ # Red light(0-255).
34
38
  attr_accessor :r
35
39
 
40
+ # Green light(0-255).
36
41
  attr_accessor :g
37
42
 
43
+ # Blue light(0-255).
38
44
  attr_accessor :b
39
45
 
40
- attr_accessor :a
41
-
42
- attr_accessor :is_known_color
43
-
44
- attr_accessor :is_empty
45
-
46
- attr_accessor :is_named_color
47
-
48
- attr_accessor :name
49
-
50
46
 
51
47
  # Attribute mapping from ruby-style variable name to JSON key.
52
48
  def self.attribute_map
53
49
  {
50
+ :'text' => :'Text',
54
51
  :'r' => :'R',
55
52
  :'g' => :'G',
56
- :'b' => :'B',
57
- :'a' => :'A',
58
- :'is_known_color' => :'IsKnownColor',
59
- :'is_empty' => :'IsEmpty',
60
- :'is_named_color' => :'IsNamedColor',
61
- :'name' => :'Name'
53
+ :'b' => :'B'
62
54
  }
63
55
  end
64
56
 
65
57
  # Attribute type mapping.
66
58
  def self.swagger_types
67
59
  {
60
+ :'text' => :'String',
68
61
  :'r' => :'Integer',
69
62
  :'g' => :'Integer',
70
- :'b' => :'Integer',
71
- :'a' => :'Integer',
72
- :'is_known_color' => :'BOOLEAN',
73
- :'is_empty' => :'BOOLEAN',
74
- :'is_named_color' => :'BOOLEAN',
75
- :'name' => :'String'
63
+ :'b' => :'Integer'
76
64
  }
77
65
  end
78
66
 
@@ -84,6 +72,10 @@ module AsposeCadCloud
84
72
  # convert string to symbol for hash key
85
73
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
86
74
 
75
+ if attributes.key?(:'Text')
76
+ self.text = attributes[:'Text']
77
+ end
78
+
87
79
  if attributes.key?(:'R')
88
80
  self.r = attributes[:'R']
89
81
  end
@@ -96,26 +88,6 @@ module AsposeCadCloud
96
88
  self.b = attributes[:'B']
97
89
  end
98
90
 
99
- if attributes.key?(:'A')
100
- self.a = attributes[:'A']
101
- end
102
-
103
- if attributes.key?(:'IsKnownColor')
104
- self.is_known_color = attributes[:'IsKnownColor']
105
- end
106
-
107
- if attributes.key?(:'IsEmpty')
108
- self.is_empty = attributes[:'IsEmpty']
109
- end
110
-
111
- if attributes.key?(:'IsNamedColor')
112
- self.is_named_color = attributes[:'IsNamedColor']
113
- end
114
-
115
- if attributes.key?(:'Name')
116
- self.name = attributes[:'Name']
117
- end
118
-
119
91
  end
120
92
 
121
93
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -134,22 +106,6 @@ module AsposeCadCloud
134
106
  invalid_properties.push("invalid value for 'b', b cannot be nil.")
135
107
  end
136
108
 
137
- if @a.nil?
138
- invalid_properties.push("invalid value for 'a', a cannot be nil.")
139
- end
140
-
141
- if @is_known_color.nil?
142
- invalid_properties.push("invalid value for 'is_known_color', is_known_color cannot be nil.")
143
- end
144
-
145
- if @is_empty.nil?
146
- invalid_properties.push("invalid value for 'is_empty', is_empty cannot be nil.")
147
- end
148
-
149
- if @is_named_color.nil?
150
- invalid_properties.push("invalid value for 'is_named_color', is_named_color cannot be nil.")
151
- end
152
-
153
109
  return invalid_properties
154
110
  end
155
111
 
@@ -159,10 +115,6 @@ module AsposeCadCloud
159
115
  return false if @r.nil?
160
116
  return false if @g.nil?
161
117
  return false if @b.nil?
162
- return false if @a.nil?
163
- return false if @is_known_color.nil?
164
- return false if @is_empty.nil?
165
- return false if @is_named_color.nil?
166
118
  return true
167
119
  end
168
120
 
@@ -171,14 +123,10 @@ module AsposeCadCloud
171
123
  def ==(other)
172
124
  return true if self.equal?(other)
173
125
  self.class == other.class &&
126
+ text == other.text &&
174
127
  r == other.r &&
175
128
  g == other.g &&
176
- b == other.b &&
177
- a == other.a &&
178
- is_known_color == other.is_known_color &&
179
- is_empty == other.is_empty &&
180
- is_named_color == other.is_named_color &&
181
- name == other.name
129
+ b == other.b
182
130
  end
183
131
 
184
132
  # @see the `==` method
@@ -190,7 +138,7 @@ module AsposeCadCloud
190
138
  # Calculates hash code according to all attributes.
191
139
  # @return [Fixnum] Hash code
192
140
  def hash
193
- [r, g, b, a, is_known_color, is_empty, is_named_color, name].hash
141
+ [text, r, g, b].hash
194
142
  end
195
143
 
196
144
  # Builds the object from hash
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module AsposeCadCloud
28
- VERSION = "24.1".freeze
28
+ VERSION = "24.5.1".freeze
29
29
  end
@@ -34,7 +34,7 @@ require_relative 'aspose_cad_cloud/models/bitmap_compression'
34
34
  require_relative 'aspose_cad_cloud/models/cad_draw_type_mode'
35
35
  require_relative 'aspose_cad_cloud/models/cad_response'
36
36
  require_relative 'aspose_cad_cloud/models/cf2_properties'
37
- require_relative 'aspose_cad_cloud/models/color'
37
+ require_relative 'aspose_cad_cloud/models/color_dto'
38
38
  require_relative 'aspose_cad_cloud/models/color_modes'
39
39
  require_relative 'aspose_cad_cloud/models/compression_method'
40
40
  require_relative 'aspose_cad_cloud/models/dgn_properties'
@@ -43,8 +43,8 @@ require_relative 'aspose_cad_cloud/models/drawing_options_base_dto'
43
43
  require_relative 'aspose_cad_cloud/models/dwf_properties'
44
44
  require_relative 'aspose_cad_cloud/models/dwg_properties'
45
45
  require_relative 'aspose_cad_cloud/models/dxf_properties'
46
+ require_relative 'aspose_cad_cloud/models/error'
46
47
  require_relative 'aspose_cad_cloud/models/error_details'
47
- require_relative 'aspose_cad_cloud/models/error_model'
48
48
  require_relative 'aspose_cad_cloud/models/fbx_properties'
49
49
  require_relative 'aspose_cad_cloud/models/file_versions'
50
50
  require_relative 'aspose_cad_cloud/models/files_list'
@@ -84,10 +84,12 @@ require_relative 'aspose_cad_cloud/models/tiff_expected_format'
84
84
  require_relative 'aspose_cad_cloud/models/tiff_photometrics'
85
85
  require_relative 'aspose_cad_cloud/models/unit_type'
86
86
  require_relative 'aspose_cad_cloud/models/vector_rasterization_options_dto'
87
+ require_relative 'aspose_cad_cloud/models/watermark_rgb'
87
88
  require_relative 'aspose_cad_cloud/models/bmp_options_dto'
88
89
  require_relative 'aspose_cad_cloud/models/cad_rasterization_options_dto'
89
90
  require_relative 'aspose_cad_cloud/models/cgm_options_dto'
90
91
  require_relative 'aspose_cad_cloud/models/dicom_options_dto'
92
+ require_relative 'aspose_cad_cloud/models/draco_options_dto'
91
93
  require_relative 'aspose_cad_cloud/models/dwf_options_dto'
92
94
  require_relative 'aspose_cad_cloud/models/dxf_options_dto'
93
95
  require_relative 'aspose_cad_cloud/models/fbx_options_dto'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_cad_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '24.1'
4
+ version: 24.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -95,20 +95,21 @@ files:
95
95
  - lib/aspose_cad_cloud/models/cad_response.rb
96
96
  - lib/aspose_cad_cloud/models/cf2_properties.rb
97
97
  - lib/aspose_cad_cloud/models/cgm_options_dto.rb
98
- - lib/aspose_cad_cloud/models/color.rb
98
+ - lib/aspose_cad_cloud/models/color_dto.rb
99
99
  - lib/aspose_cad_cloud/models/color_modes.rb
100
100
  - lib/aspose_cad_cloud/models/compression_method.rb
101
101
  - lib/aspose_cad_cloud/models/dgn_properties.rb
102
102
  - lib/aspose_cad_cloud/models/dicom_options_dto.rb
103
103
  - lib/aspose_cad_cloud/models/disc_usage.rb
104
+ - lib/aspose_cad_cloud/models/draco_options_dto.rb
104
105
  - lib/aspose_cad_cloud/models/drawing_options_base_dto.rb
105
106
  - lib/aspose_cad_cloud/models/dwf_options_dto.rb
106
107
  - lib/aspose_cad_cloud/models/dwf_properties.rb
107
108
  - lib/aspose_cad_cloud/models/dwg_properties.rb
108
109
  - lib/aspose_cad_cloud/models/dxf_options_dto.rb
109
110
  - lib/aspose_cad_cloud/models/dxf_properties.rb
111
+ - lib/aspose_cad_cloud/models/error.rb
110
112
  - lib/aspose_cad_cloud/models/error_details.rb
111
- - lib/aspose_cad_cloud/models/error_model.rb
112
113
  - lib/aspose_cad_cloud/models/fbx_options_dto.rb
113
114
  - lib/aspose_cad_cloud/models/fbx_properties.rb
114
115
  - lib/aspose_cad_cloud/models/file_version.rb
@@ -168,6 +169,7 @@ files:
168
169
  - lib/aspose_cad_cloud/models/requests/PostDrawingBmpRequest.rb
169
170
  - lib/aspose_cad_cloud/models/requests/PostDrawingCgmRequest.rb
170
171
  - lib/aspose_cad_cloud/models/requests/PostDrawingDicomRequest.rb
172
+ - lib/aspose_cad_cloud/models/requests/PostDrawingDracoRequest.rb
171
173
  - lib/aspose_cad_cloud/models/requests/PostDrawingDwfRequest.rb
172
174
  - lib/aspose_cad_cloud/models/requests/PostDrawingDxfRequest.rb
173
175
  - lib/aspose_cad_cloud/models/requests/PostDrawingFbxRequest.rb
@@ -194,6 +196,7 @@ files:
194
196
  - lib/aspose_cad_cloud/models/requests/PutDrawingBmpRequest.rb
195
197
  - lib/aspose_cad_cloud/models/requests/PutDrawingCgmRequest.rb
196
198
  - lib/aspose_cad_cloud/models/requests/PutDrawingDicomRequest.rb
199
+ - lib/aspose_cad_cloud/models/requests/PutDrawingDracoRequest.rb
197
200
  - lib/aspose_cad_cloud/models/requests/PutDrawingDwfRequest.rb
198
201
  - lib/aspose_cad_cloud/models/requests/PutDrawingDxfRequest.rb
199
202
  - lib/aspose_cad_cloud/models/requests/PutDrawingFbxRequest.rb
@@ -238,6 +241,7 @@ files:
238
241
  - lib/aspose_cad_cloud/models/u3d_options_dto.rb
239
242
  - lib/aspose_cad_cloud/models/unit_type.rb
240
243
  - lib/aspose_cad_cloud/models/vector_rasterization_options_dto.rb
244
+ - lib/aspose_cad_cloud/models/watermark_rgb.rb
241
245
  - lib/aspose_cad_cloud/models/webp_options_dto.rb
242
246
  - lib/aspose_cad_cloud/models/wmf_options_dto.rb
243
247
  - lib/aspose_cad_cloud/version.rb