groupdocs_conversion_cloud 24.3 → 24.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_conversion_cloud/api/async_api.rb +539 -0
- data/lib/groupdocs_conversion_cloud/models/cad_load_options.rb +64 -32
- data/lib/groupdocs_conversion_cloud/models/cf2_load_options.rb +288 -0
- data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +64 -32
- data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +64 -32
- data/lib/groupdocs_conversion_cloud/models/dwfx_load_options.rb +288 -0
- data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +64 -32
- data/lib/groupdocs_conversion_cloud/models/dwt_load_options.rb +288 -0
- data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +64 -32
- data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +1 -16
- data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +1 -16
- data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +1 -16
- data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +64 -32
- data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +64 -32
- data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +1 -16
- data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +1 -16
- data/lib/groupdocs_conversion_cloud/models/operation_result.rb +354 -0
- data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +1 -16
- data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +64 -32
- data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +1 -16
- data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +64 -32
- data/lib/groupdocs_conversion_cloud/version.rb +1 -1
- data/lib/groupdocs_conversion_cloud.rb +5 -0
- 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
|
-
:'
|
51
|
-
:'
|
52
|
-
:'
|
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
|
-
:'
|
61
|
-
:'
|
62
|
-
:'
|
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 @
|
99
|
-
invalid_properties.push("invalid value for '
|
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 @
|
113
|
-
|
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
|
-
|
124
|
-
|
125
|
-
|
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,
|
169
|
+
[format, layout_names, background_color, draw_type].hash
|
138
170
|
end
|
139
171
|
|
140
172
|
# Downcases first letter.
|
@@ -46,6 +46,7 @@ require_relative 'groupdocs_conversion_cloud/models/files_upload_result'
|
|
46
46
|
require_relative 'groupdocs_conversion_cloud/models/license_info'
|
47
47
|
require_relative 'groupdocs_conversion_cloud/models/load_options'
|
48
48
|
require_relative 'groupdocs_conversion_cloud/models/object_exist'
|
49
|
+
require_relative 'groupdocs_conversion_cloud/models/operation_result'
|
49
50
|
require_relative 'groupdocs_conversion_cloud/models/storage_exist'
|
50
51
|
require_relative 'groupdocs_conversion_cloud/models/storage_file'
|
51
52
|
require_relative 'groupdocs_conversion_cloud/models/stored_converted_result'
|
@@ -76,6 +77,7 @@ require_relative 'groupdocs_conversion_cloud/models/word_processing_load_options
|
|
76
77
|
require_relative 'groupdocs_conversion_cloud/models/xml_load_options'
|
77
78
|
require_relative 'groupdocs_conversion_cloud/models/bmp_convert_options'
|
78
79
|
require_relative 'groupdocs_conversion_cloud/models/bmp_load_options'
|
80
|
+
require_relative 'groupdocs_conversion_cloud/models/cf2_load_options'
|
79
81
|
require_relative 'groupdocs_conversion_cloud/models/csv_load_options'
|
80
82
|
require_relative 'groupdocs_conversion_cloud/models/dcm_convert_options'
|
81
83
|
require_relative 'groupdocs_conversion_cloud/models/dcm_load_options'
|
@@ -96,7 +98,9 @@ require_relative 'groupdocs_conversion_cloud/models/dotm_load_options'
|
|
96
98
|
require_relative 'groupdocs_conversion_cloud/models/dotx_convert_options'
|
97
99
|
require_relative 'groupdocs_conversion_cloud/models/dotx_load_options'
|
98
100
|
require_relative 'groupdocs_conversion_cloud/models/dwf_load_options'
|
101
|
+
require_relative 'groupdocs_conversion_cloud/models/dwfx_load_options'
|
99
102
|
require_relative 'groupdocs_conversion_cloud/models/dwg_load_options'
|
103
|
+
require_relative 'groupdocs_conversion_cloud/models/dwt_load_options'
|
100
104
|
require_relative 'groupdocs_conversion_cloud/models/dxf_load_options'
|
101
105
|
require_relative 'groupdocs_conversion_cloud/models/emf_convert_options'
|
102
106
|
require_relative 'groupdocs_conversion_cloud/models/emf_load_options'
|
@@ -205,6 +209,7 @@ require_relative 'groupdocs_conversion_cloud/models/jpx_convert_options'
|
|
205
209
|
require_relative 'groupdocs_conversion_cloud/models/tif_convert_options'
|
206
210
|
|
207
211
|
# APIs
|
212
|
+
require_relative 'groupdocs_conversion_cloud/api/async_api'
|
208
213
|
require_relative 'groupdocs_conversion_cloud/api/convert_api'
|
209
214
|
require_relative 'groupdocs_conversion_cloud/api/file_api'
|
210
215
|
require_relative 'groupdocs_conversion_cloud/api/folder_api'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groupdocs_conversion_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '24.
|
4
|
+
version: '24.8'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GroupDocs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -71,6 +71,7 @@ extensions: []
|
|
71
71
|
extra_rdoc_files: []
|
72
72
|
files:
|
73
73
|
- lib/groupdocs_conversion_cloud.rb
|
74
|
+
- lib/groupdocs_conversion_cloud/api/async_api.rb
|
74
75
|
- lib/groupdocs_conversion_cloud/api/convert_api.rb
|
75
76
|
- lib/groupdocs_conversion_cloud/api/file_api.rb
|
76
77
|
- lib/groupdocs_conversion_cloud/api/folder_api.rb
|
@@ -85,6 +86,7 @@ files:
|
|
85
86
|
- lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb
|
86
87
|
- lib/groupdocs_conversion_cloud/models/bmp_load_options.rb
|
87
88
|
- lib/groupdocs_conversion_cloud/models/cad_load_options.rb
|
89
|
+
- lib/groupdocs_conversion_cloud/models/cf2_load_options.rb
|
88
90
|
- lib/groupdocs_conversion_cloud/models/consumption_result.rb
|
89
91
|
- lib/groupdocs_conversion_cloud/models/convert_options.rb
|
90
92
|
- lib/groupdocs_conversion_cloud/models/convert_settings.rb
|
@@ -111,7 +113,9 @@ files:
|
|
111
113
|
- lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb
|
112
114
|
- lib/groupdocs_conversion_cloud/models/dotx_load_options.rb
|
113
115
|
- lib/groupdocs_conversion_cloud/models/dwf_load_options.rb
|
116
|
+
- lib/groupdocs_conversion_cloud/models/dwfx_load_options.rb
|
114
117
|
- lib/groupdocs_conversion_cloud/models/dwg_load_options.rb
|
118
|
+
- lib/groupdocs_conversion_cloud/models/dwt_load_options.rb
|
115
119
|
- lib/groupdocs_conversion_cloud/models/dxf_load_options.rb
|
116
120
|
- lib/groupdocs_conversion_cloud/models/e_book_convert_options.rb
|
117
121
|
- lib/groupdocs_conversion_cloud/models/email_load_options.rb
|
@@ -165,6 +169,7 @@ files:
|
|
165
169
|
- lib/groupdocs_conversion_cloud/models/odt_convert_options.rb
|
166
170
|
- lib/groupdocs_conversion_cloud/models/odt_load_options.rb
|
167
171
|
- lib/groupdocs_conversion_cloud/models/one_load_options.rb
|
172
|
+
- lib/groupdocs_conversion_cloud/models/operation_result.rb
|
168
173
|
- lib/groupdocs_conversion_cloud/models/ost_load_options.rb
|
169
174
|
- lib/groupdocs_conversion_cloud/models/otp_convert_options.rb
|
170
175
|
- lib/groupdocs_conversion_cloud/models/otp_load_options.rb
|