groupdocs_conversion_cloud 24.3 → 24.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_conversion_cloud/api/async_api.rb +539 -0
  3. data/lib/groupdocs_conversion_cloud/models/cad_load_options.rb +64 -32
  4. data/lib/groupdocs_conversion_cloud/models/cf2_load_options.rb +288 -0
  5. data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +64 -32
  6. data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +64 -32
  7. data/lib/groupdocs_conversion_cloud/models/dwfx_load_options.rb +288 -0
  8. data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +64 -32
  9. data/lib/groupdocs_conversion_cloud/models/dwt_load_options.rb +288 -0
  10. data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +64 -32
  11. data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +1 -16
  12. data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +1 -16
  13. data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +1 -16
  14. data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +64 -32
  15. data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +64 -32
  16. data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +1 -16
  17. data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +1 -16
  18. data/lib/groupdocs_conversion_cloud/models/operation_result.rb +354 -0
  19. data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +1 -16
  20. data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +64 -32
  21. data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +1 -16
  22. data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +64 -32
  23. data/lib/groupdocs_conversion_cloud/version.rb +1 -1
  24. data/lib/groupdocs_conversion_cloud.rb +5 -0
  25. metadata +7 -2
@@ -34,22 +34,43 @@ module GroupDocsConversionCloud
34
34
  # The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
35
35
  attr_accessor :format
36
36
 
37
- # Set desired page width for converting CAD document
38
- attr_accessor :width
39
-
40
- # Set desired page height for converting CAD document
41
- attr_accessor :height
42
-
43
37
  # Render specific CAD layouts
44
38
  attr_accessor :layout_names
45
39
 
40
+ # Gets or sets a background color.
41
+ attr_accessor :background_color
42
+
43
+ # Gets or sets type of drawing.
44
+ attr_accessor :draw_type
45
+ class EnumAttributeValidator
46
+ attr_reader :datatype
47
+ attr_reader :allowable_values
48
+
49
+ def initialize(datatype, allowable_values)
50
+ @allowable_values = allowable_values.map do |value|
51
+ case datatype.to_s
52
+ when /Integer/i
53
+ value.to_i
54
+ when /Float/i
55
+ value.to_f
56
+ else
57
+ value
58
+ end
59
+ end
60
+ end
61
+
62
+ def valid?(value)
63
+ !value || allowable_values.include?(value)
64
+ end
65
+ end
66
+
46
67
  # Attribute mapping from ruby-style variable name to JSON key.
47
68
  def self.attribute_map
48
69
  {
49
70
  :'format' => :'Format',
50
- :'width' => :'Width',
51
- :'height' => :'Height',
52
- :'layout_names' => :'LayoutNames'
71
+ :'layout_names' => :'LayoutNames',
72
+ :'background_color' => :'BackgroundColor',
73
+ :'draw_type' => :'DrawType'
53
74
  }
54
75
  end
55
76
 
@@ -57,9 +78,9 @@ module GroupDocsConversionCloud
57
78
  def self.swagger_types
58
79
  {
59
80
  :'format' => :'String',
60
- :'width' => :'Integer',
61
- :'height' => :'Integer',
62
- :'layout_names' => :'Array<String>'
81
+ :'layout_names' => :'Array<String>',
82
+ :'background_color' => :'String',
83
+ :'draw_type' => :'String'
63
84
  }
64
85
  end
65
86
 
@@ -75,32 +96,28 @@ module GroupDocsConversionCloud
75
96
  self.format = attributes[:'Format']
76
97
  end
77
98
 
78
- if attributes.key?(:'Width')
79
- self.width = attributes[:'Width']
80
- end
81
-
82
- if attributes.key?(:'Height')
83
- self.height = attributes[:'Height']
84
- end
85
-
86
99
  if attributes.key?(:'LayoutNames')
87
100
  if (value = attributes[:'LayoutNames']).is_a?(Array)
88
101
  self.layout_names = value
89
102
  end
90
103
  end
91
104
 
105
+ if attributes.key?(:'BackgroundColor')
106
+ self.background_color = attributes[:'BackgroundColor']
107
+ end
108
+
109
+ if attributes.key?(:'DrawType')
110
+ self.draw_type = attributes[:'DrawType']
111
+ end
112
+
92
113
  end
93
114
 
94
115
  # Show invalid properties with the reasons. Usually used together with valid?
95
116
  # @return Array for valid properies with the reasons
96
117
  def list_invalid_properties
97
118
  invalid_properties = []
98
- if @width.nil?
99
- invalid_properties.push("invalid value for 'width', width cannot be nil.")
100
- end
101
-
102
- if @height.nil?
103
- invalid_properties.push("invalid value for 'height', height cannot be nil.")
119
+ if @draw_type.nil?
120
+ invalid_properties.push("invalid value for 'draw_type', draw_type cannot be nil.")
104
121
  end
105
122
 
106
123
  return invalid_properties
@@ -109,20 +126,35 @@ module GroupDocsConversionCloud
109
126
  # Check to see if the all the properties in the model are valid
110
127
  # @return true if the model is valid
111
128
  def valid?
112
- return false if @width.nil?
113
- return false if @height.nil?
129
+ return false if @draw_type.nil?
130
+ draw_type_validator = EnumAttributeValidator.new('String', ["UseDrawColor", "UseObjectColor"])
131
+ return false unless draw_type_validator.valid?(@draw_type)
114
132
  return true
115
133
  end
116
134
 
135
+ # Custom attribute writer method checking allowed values (enum).
136
+ # @param [Object] draw_type Object to be assigned
137
+ def draw_type=(draw_type)
138
+ validator = EnumAttributeValidator.new('String', ["UseDrawColor", "UseObjectColor"])
139
+ if draw_type.to_i == 0
140
+ unless validator.valid?(draw_type)
141
+ raise ArgumentError, "invalid value for 'draw_type', must be one of #{validator.allowable_values}."
142
+ end
143
+ @draw_type = draw_type
144
+ else
145
+ @draw_type = validator.allowable_values[draw_type.to_i]
146
+ end
147
+ end
148
+
117
149
  # Checks equality by comparing each attribute.
118
150
  # @param [Object] Object to be compared
119
151
  def ==(other)
120
152
  return true if self.equal?(other)
121
153
  self.class == other.class &&
122
154
  format == other.format &&
123
- width == other.width &&
124
- height == other.height &&
125
- layout_names == other.layout_names
155
+ layout_names == other.layout_names &&
156
+ background_color == other.background_color &&
157
+ draw_type == other.draw_type
126
158
  end
127
159
 
128
160
  # @see the `==` method
@@ -134,7 +166,7 @@ module GroupDocsConversionCloud
134
166
  # Calculates hash code according to all attributes.
135
167
  # @return [Fixnum] Hash code
136
168
  def hash
137
- [format, width, height, layout_names].hash
169
+ [format, layout_names, background_color, draw_type].hash
138
170
  end
139
171
 
140
172
  # Downcases first letter.
@@ -34,22 +34,43 @@ module GroupDocsConversionCloud
34
34
  # The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
35
35
  attr_accessor :format
36
36
 
37
- # Set desired page width for converting CAD document
38
- attr_accessor :width
39
-
40
- # Set desired page height for converting CAD document
41
- attr_accessor :height
42
-
43
37
  # Render specific CAD layouts
44
38
  attr_accessor :layout_names
45
39
 
40
+ # Gets or sets a background color.
41
+ attr_accessor :background_color
42
+
43
+ # Gets or sets type of drawing.
44
+ attr_accessor :draw_type
45
+ class EnumAttributeValidator
46
+ attr_reader :datatype
47
+ attr_reader :allowable_values
48
+
49
+ def initialize(datatype, allowable_values)
50
+ @allowable_values = allowable_values.map do |value|
51
+ case datatype.to_s
52
+ when /Integer/i
53
+ value.to_i
54
+ when /Float/i
55
+ value.to_f
56
+ else
57
+ value
58
+ end
59
+ end
60
+ end
61
+
62
+ def valid?(value)
63
+ !value || allowable_values.include?(value)
64
+ end
65
+ end
66
+
46
67
  # Attribute mapping from ruby-style variable name to JSON key.
47
68
  def self.attribute_map
48
69
  {
49
70
  :'format' => :'Format',
50
- :'width' => :'Width',
51
- :'height' => :'Height',
52
- :'layout_names' => :'LayoutNames'
71
+ :'layout_names' => :'LayoutNames',
72
+ :'background_color' => :'BackgroundColor',
73
+ :'draw_type' => :'DrawType'
53
74
  }
54
75
  end
55
76
 
@@ -57,9 +78,9 @@ module GroupDocsConversionCloud
57
78
  def self.swagger_types
58
79
  {
59
80
  :'format' => :'String',
60
- :'width' => :'Integer',
61
- :'height' => :'Integer',
62
- :'layout_names' => :'Array<String>'
81
+ :'layout_names' => :'Array<String>',
82
+ :'background_color' => :'String',
83
+ :'draw_type' => :'String'
63
84
  }
64
85
  end
65
86
 
@@ -75,32 +96,28 @@ module GroupDocsConversionCloud
75
96
  self.format = attributes[:'Format']
76
97
  end
77
98
 
78
- if attributes.key?(:'Width')
79
- self.width = attributes[:'Width']
80
- end
81
-
82
- if attributes.key?(:'Height')
83
- self.height = attributes[:'Height']
84
- end
85
-
86
99
  if attributes.key?(:'LayoutNames')
87
100
  if (value = attributes[:'LayoutNames']).is_a?(Array)
88
101
  self.layout_names = value
89
102
  end
90
103
  end
91
104
 
105
+ if attributes.key?(:'BackgroundColor')
106
+ self.background_color = attributes[:'BackgroundColor']
107
+ end
108
+
109
+ if attributes.key?(:'DrawType')
110
+ self.draw_type = attributes[:'DrawType']
111
+ end
112
+
92
113
  end
93
114
 
94
115
  # Show invalid properties with the reasons. Usually used together with valid?
95
116
  # @return Array for valid properies with the reasons
96
117
  def list_invalid_properties
97
118
  invalid_properties = []
98
- if @width.nil?
99
- invalid_properties.push("invalid value for 'width', width cannot be nil.")
100
- end
101
-
102
- if @height.nil?
103
- invalid_properties.push("invalid value for 'height', height cannot be nil.")
119
+ if @draw_type.nil?
120
+ invalid_properties.push("invalid value for 'draw_type', draw_type cannot be nil.")
104
121
  end
105
122
 
106
123
  return invalid_properties
@@ -109,20 +126,35 @@ module GroupDocsConversionCloud
109
126
  # Check to see if the all the properties in the model are valid
110
127
  # @return true if the model is valid
111
128
  def valid?
112
- return false if @width.nil?
113
- return false if @height.nil?
129
+ return false if @draw_type.nil?
130
+ draw_type_validator = EnumAttributeValidator.new('String', ["UseDrawColor", "UseObjectColor"])
131
+ return false unless draw_type_validator.valid?(@draw_type)
114
132
  return true
115
133
  end
116
134
 
135
+ # Custom attribute writer method checking allowed values (enum).
136
+ # @param [Object] draw_type Object to be assigned
137
+ def draw_type=(draw_type)
138
+ validator = EnumAttributeValidator.new('String', ["UseDrawColor", "UseObjectColor"])
139
+ if draw_type.to_i == 0
140
+ unless validator.valid?(draw_type)
141
+ raise ArgumentError, "invalid value for 'draw_type', must be one of #{validator.allowable_values}."
142
+ end
143
+ @draw_type = draw_type
144
+ else
145
+ @draw_type = validator.allowable_values[draw_type.to_i]
146
+ end
147
+ end
148
+
117
149
  # Checks equality by comparing each attribute.
118
150
  # @param [Object] Object to be compared
119
151
  def ==(other)
120
152
  return true if self.equal?(other)
121
153
  self.class == other.class &&
122
154
  format == other.format &&
123
- width == other.width &&
124
- height == other.height &&
125
- layout_names == other.layout_names
155
+ layout_names == other.layout_names &&
156
+ background_color == other.background_color &&
157
+ draw_type == other.draw_type
126
158
  end
127
159
 
128
160
  # @see the `==` method
@@ -134,7 +166,7 @@ module GroupDocsConversionCloud
134
166
  # Calculates hash code according to all attributes.
135
167
  # @return [Fixnum] Hash code
136
168
  def hash
137
- [format, width, height, layout_names].hash
169
+ [format, layout_names, background_color, draw_type].hash
138
170
  end
139
171
 
140
172
  # Downcases first letter.
@@ -40,9 +40,6 @@ module GroupDocsConversionCloud
40
40
  # Option to display or hide \"from\" email address. Default: true
41
41
  attr_accessor :display_from_email_address
42
42
 
43
- # Option to display or hide email address. Default: true
44
- attr_accessor :display_email_address
45
-
46
43
  # Option to display or hide \"to\" email address. Default: true
47
44
  attr_accessor :display_to_email_address
48
45
 
@@ -70,7 +67,6 @@ module GroupDocsConversionCloud
70
67
  :'format' => :'Format',
71
68
  :'display_header' => :'DisplayHeader',
72
69
  :'display_from_email_address' => :'DisplayFromEmailAddress',
73
- :'display_email_address' => :'DisplayEmailAddress',
74
70
  :'display_to_email_address' => :'DisplayToEmailAddress',
75
71
  :'display_cc_email_address' => :'DisplayCcEmailAddress',
76
72
  :'display_bcc_email_address' => :'DisplayBccEmailAddress',
@@ -87,7 +83,6 @@ module GroupDocsConversionCloud
87
83
  :'format' => :'String',
88
84
  :'display_header' => :'BOOLEAN',
89
85
  :'display_from_email_address' => :'BOOLEAN',
90
- :'display_email_address' => :'BOOLEAN',
91
86
  :'display_to_email_address' => :'BOOLEAN',
92
87
  :'display_cc_email_address' => :'BOOLEAN',
93
88
  :'display_bcc_email_address' => :'BOOLEAN',
@@ -118,10 +113,6 @@ module GroupDocsConversionCloud
118
113
  self.display_from_email_address = attributes[:'DisplayFromEmailAddress']
119
114
  end
120
115
 
121
- if attributes.key?(:'DisplayEmailAddress')
122
- self.display_email_address = attributes[:'DisplayEmailAddress']
123
- end
124
-
125
116
  if attributes.key?(:'DisplayToEmailAddress')
126
117
  self.display_to_email_address = attributes[:'DisplayToEmailAddress']
127
118
  end
@@ -166,10 +157,6 @@ module GroupDocsConversionCloud
166
157
  invalid_properties.push("invalid value for 'display_from_email_address', display_from_email_address cannot be nil.")
167
158
  end
168
159
 
169
- if @display_email_address.nil?
170
- invalid_properties.push("invalid value for 'display_email_address', display_email_address cannot be nil.")
171
- end
172
-
173
160
  if @display_to_email_address.nil?
174
161
  invalid_properties.push("invalid value for 'display_to_email_address', display_to_email_address cannot be nil.")
175
162
  end
@@ -198,7 +185,6 @@ module GroupDocsConversionCloud
198
185
  def valid?
199
186
  return false if @display_header.nil?
200
187
  return false if @display_from_email_address.nil?
201
- return false if @display_email_address.nil?
202
188
  return false if @display_to_email_address.nil?
203
189
  return false if @display_cc_email_address.nil?
204
190
  return false if @display_bcc_email_address.nil?
@@ -215,7 +201,6 @@ module GroupDocsConversionCloud
215
201
  format == other.format &&
216
202
  display_header == other.display_header &&
217
203
  display_from_email_address == other.display_from_email_address &&
218
- display_email_address == other.display_email_address &&
219
204
  display_to_email_address == other.display_to_email_address &&
220
205
  display_cc_email_address == other.display_cc_email_address &&
221
206
  display_bcc_email_address == other.display_bcc_email_address &&
@@ -234,7 +219,7 @@ module GroupDocsConversionCloud
234
219
  # Calculates hash code according to all attributes.
235
220
  # @return [Fixnum] Hash code
236
221
  def hash
237
- [format, display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
222
+ [format, display_header, display_from_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
238
223
  end
239
224
 
240
225
  # Downcases first letter.
@@ -40,9 +40,6 @@ module GroupDocsConversionCloud
40
40
  # Option to display or hide \"from\" email address. Default: true
41
41
  attr_accessor :display_from_email_address
42
42
 
43
- # Option to display or hide email address. Default: true
44
- attr_accessor :display_email_address
45
-
46
43
  # Option to display or hide \"to\" email address. Default: true
47
44
  attr_accessor :display_to_email_address
48
45
 
@@ -70,7 +67,6 @@ module GroupDocsConversionCloud
70
67
  :'format' => :'Format',
71
68
  :'display_header' => :'DisplayHeader',
72
69
  :'display_from_email_address' => :'DisplayFromEmailAddress',
73
- :'display_email_address' => :'DisplayEmailAddress',
74
70
  :'display_to_email_address' => :'DisplayToEmailAddress',
75
71
  :'display_cc_email_address' => :'DisplayCcEmailAddress',
76
72
  :'display_bcc_email_address' => :'DisplayBccEmailAddress',
@@ -87,7 +83,6 @@ module GroupDocsConversionCloud
87
83
  :'format' => :'String',
88
84
  :'display_header' => :'BOOLEAN',
89
85
  :'display_from_email_address' => :'BOOLEAN',
90
- :'display_email_address' => :'BOOLEAN',
91
86
  :'display_to_email_address' => :'BOOLEAN',
92
87
  :'display_cc_email_address' => :'BOOLEAN',
93
88
  :'display_bcc_email_address' => :'BOOLEAN',
@@ -118,10 +113,6 @@ module GroupDocsConversionCloud
118
113
  self.display_from_email_address = attributes[:'DisplayFromEmailAddress']
119
114
  end
120
115
 
121
- if attributes.key?(:'DisplayEmailAddress')
122
- self.display_email_address = attributes[:'DisplayEmailAddress']
123
- end
124
-
125
116
  if attributes.key?(:'DisplayToEmailAddress')
126
117
  self.display_to_email_address = attributes[:'DisplayToEmailAddress']
127
118
  end
@@ -166,10 +157,6 @@ module GroupDocsConversionCloud
166
157
  invalid_properties.push("invalid value for 'display_from_email_address', display_from_email_address cannot be nil.")
167
158
  end
168
159
 
169
- if @display_email_address.nil?
170
- invalid_properties.push("invalid value for 'display_email_address', display_email_address cannot be nil.")
171
- end
172
-
173
160
  if @display_to_email_address.nil?
174
161
  invalid_properties.push("invalid value for 'display_to_email_address', display_to_email_address cannot be nil.")
175
162
  end
@@ -198,7 +185,6 @@ module GroupDocsConversionCloud
198
185
  def valid?
199
186
  return false if @display_header.nil?
200
187
  return false if @display_from_email_address.nil?
201
- return false if @display_email_address.nil?
202
188
  return false if @display_to_email_address.nil?
203
189
  return false if @display_cc_email_address.nil?
204
190
  return false if @display_bcc_email_address.nil?
@@ -215,7 +201,6 @@ module GroupDocsConversionCloud
215
201
  format == other.format &&
216
202
  display_header == other.display_header &&
217
203
  display_from_email_address == other.display_from_email_address &&
218
- display_email_address == other.display_email_address &&
219
204
  display_to_email_address == other.display_to_email_address &&
220
205
  display_cc_email_address == other.display_cc_email_address &&
221
206
  display_bcc_email_address == other.display_bcc_email_address &&
@@ -234,7 +219,7 @@ module GroupDocsConversionCloud
234
219
  # Calculates hash code according to all attributes.
235
220
  # @return [Fixnum] Hash code
236
221
  def hash
237
- [format, display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
222
+ [format, display_header, display_from_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
238
223
  end
239
224
 
240
225
  # Downcases first letter.