groupdocs_conversion_cloud 25.4 → 25.5
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.
- checksums.yaml +4 -4
- data/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/presentation_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/version.rb +1 -1
- metadata +2 -2
@@ -34,6 +34,27 @@ 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
|
+
# Determines whether the document structure should be preserved when converting to PDF (default is false).
|
38
|
+
attr_accessor :preserve_document_structure
|
39
|
+
|
40
|
+
# Value indicating whether custom document properties should be cleared.
|
41
|
+
attr_accessor :clear_custom_document_properties
|
42
|
+
|
43
|
+
# Value indicating whether built in document properties should be cleared.
|
44
|
+
attr_accessor :clear_built_in_document_properties
|
45
|
+
|
46
|
+
# Implements GroupDocs.Conversion.Contracts.IDocumentsContainerLoadOptions.Depth Default: 1
|
47
|
+
attr_accessor :depth
|
48
|
+
|
49
|
+
# Implements GroupDocs.Conversion.Contracts.IDocumentsContainerLoadOptions.ConvertOwned Default is false
|
50
|
+
attr_accessor :convert_owned
|
51
|
+
|
52
|
+
# Implements GroupDocs.Conversion.Contracts.IDocumentsContainerLoadOptions.ConvertOwner Default is true
|
53
|
+
attr_accessor :convert_owner
|
54
|
+
|
55
|
+
# Show hidden slides.
|
56
|
+
attr_accessor :show_hidden_slides
|
57
|
+
|
37
58
|
# Default font for rendering the presentation. The following font will be used if a presentation font is missing.
|
38
59
|
attr_accessor :default_font
|
39
60
|
|
@@ -43,21 +64,49 @@ module GroupDocsConversionCloud
|
|
43
64
|
# Set password to unprotect protected document
|
44
65
|
attr_accessor :password
|
45
66
|
|
46
|
-
#
|
47
|
-
attr_accessor :
|
67
|
+
# Represents the way comments are printed with the slide. Default is None.
|
68
|
+
attr_accessor :comments_position
|
69
|
+
|
70
|
+
# Represents the way notes are printed with the slide. Default is None.
|
71
|
+
attr_accessor :notes_position
|
72
|
+
class EnumAttributeValidator
|
73
|
+
attr_reader :datatype
|
74
|
+
attr_reader :allowable_values
|
75
|
+
|
76
|
+
def initialize(datatype, allowable_values)
|
77
|
+
@allowable_values = allowable_values.map do |value|
|
78
|
+
case datatype.to_s
|
79
|
+
when /Integer/i
|
80
|
+
value.to_i
|
81
|
+
when /Float/i
|
82
|
+
value.to_f
|
83
|
+
else
|
84
|
+
value
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
48
88
|
|
49
|
-
|
50
|
-
|
89
|
+
def valid?(value)
|
90
|
+
!value || allowable_values.include?(value)
|
91
|
+
end
|
92
|
+
end
|
51
93
|
|
52
94
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
95
|
def self.attribute_map
|
54
96
|
{
|
55
97
|
:'format' => :'Format',
|
98
|
+
:'preserve_document_structure' => :'PreserveDocumentStructure',
|
99
|
+
:'clear_custom_document_properties' => :'ClearCustomDocumentProperties',
|
100
|
+
:'clear_built_in_document_properties' => :'ClearBuiltInDocumentProperties',
|
101
|
+
:'depth' => :'Depth',
|
102
|
+
:'convert_owned' => :'ConvertOwned',
|
103
|
+
:'convert_owner' => :'ConvertOwner',
|
104
|
+
:'show_hidden_slides' => :'ShowHiddenSlides',
|
56
105
|
:'default_font' => :'DefaultFont',
|
57
106
|
:'font_substitutes' => :'FontSubstitutes',
|
58
107
|
:'password' => :'Password',
|
59
|
-
:'
|
60
|
-
:'
|
108
|
+
:'comments_position' => :'CommentsPosition',
|
109
|
+
:'notes_position' => :'NotesPosition'
|
61
110
|
}
|
62
111
|
end
|
63
112
|
|
@@ -65,11 +114,18 @@ module GroupDocsConversionCloud
|
|
65
114
|
def self.swagger_types
|
66
115
|
{
|
67
116
|
:'format' => :'String',
|
117
|
+
:'preserve_document_structure' => :'BOOLEAN',
|
118
|
+
:'clear_custom_document_properties' => :'BOOLEAN',
|
119
|
+
:'clear_built_in_document_properties' => :'BOOLEAN',
|
120
|
+
:'depth' => :'Integer',
|
121
|
+
:'convert_owned' => :'BOOLEAN',
|
122
|
+
:'convert_owner' => :'BOOLEAN',
|
123
|
+
:'show_hidden_slides' => :'BOOLEAN',
|
68
124
|
:'default_font' => :'String',
|
69
125
|
:'font_substitutes' => :'Hash<String, String>',
|
70
126
|
:'password' => :'String',
|
71
|
-
:'
|
72
|
-
:'
|
127
|
+
:'comments_position' => :'String',
|
128
|
+
:'notes_position' => :'String'
|
73
129
|
}
|
74
130
|
end
|
75
131
|
|
@@ -85,6 +141,34 @@ module GroupDocsConversionCloud
|
|
85
141
|
self.format = attributes[:'Format']
|
86
142
|
end
|
87
143
|
|
144
|
+
if attributes.key?(:'PreserveDocumentStructure')
|
145
|
+
self.preserve_document_structure = attributes[:'PreserveDocumentStructure']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'ClearCustomDocumentProperties')
|
149
|
+
self.clear_custom_document_properties = attributes[:'ClearCustomDocumentProperties']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'ClearBuiltInDocumentProperties')
|
153
|
+
self.clear_built_in_document_properties = attributes[:'ClearBuiltInDocumentProperties']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'Depth')
|
157
|
+
self.depth = attributes[:'Depth']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'ConvertOwned')
|
161
|
+
self.convert_owned = attributes[:'ConvertOwned']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'ConvertOwner')
|
165
|
+
self.convert_owner = attributes[:'ConvertOwner']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'ShowHiddenSlides')
|
169
|
+
self.show_hidden_slides = attributes[:'ShowHiddenSlides']
|
170
|
+
end
|
171
|
+
|
88
172
|
if attributes.key?(:'DefaultFont')
|
89
173
|
self.default_font = attributes[:'DefaultFont']
|
90
174
|
end
|
@@ -99,12 +183,12 @@ module GroupDocsConversionCloud
|
|
99
183
|
self.password = attributes[:'Password']
|
100
184
|
end
|
101
185
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
186
|
+
if attributes.key?(:'CommentsPosition')
|
187
|
+
self.comments_position = attributes[:'CommentsPosition']
|
104
188
|
end
|
105
189
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
190
|
+
if attributes.key?(:'NotesPosition')
|
191
|
+
self.notes_position = attributes[:'NotesPosition']
|
108
192
|
end
|
109
193
|
|
110
194
|
end
|
@@ -113,36 +197,110 @@ module GroupDocsConversionCloud
|
|
113
197
|
# @return Array for valid properies with the reasons
|
114
198
|
def list_invalid_properties
|
115
199
|
invalid_properties = []
|
116
|
-
if @
|
117
|
-
invalid_properties.push("invalid value for '
|
200
|
+
if @preserve_document_structure.nil?
|
201
|
+
invalid_properties.push("invalid value for 'preserve_document_structure', preserve_document_structure cannot be nil.")
|
202
|
+
end
|
203
|
+
|
204
|
+
if @clear_custom_document_properties.nil?
|
205
|
+
invalid_properties.push("invalid value for 'clear_custom_document_properties', clear_custom_document_properties cannot be nil.")
|
206
|
+
end
|
207
|
+
|
208
|
+
if @clear_built_in_document_properties.nil?
|
209
|
+
invalid_properties.push("invalid value for 'clear_built_in_document_properties', clear_built_in_document_properties cannot be nil.")
|
210
|
+
end
|
211
|
+
|
212
|
+
if @depth.nil?
|
213
|
+
invalid_properties.push("invalid value for 'depth', depth cannot be nil.")
|
214
|
+
end
|
215
|
+
|
216
|
+
if @convert_owned.nil?
|
217
|
+
invalid_properties.push("invalid value for 'convert_owned', convert_owned cannot be nil.")
|
218
|
+
end
|
219
|
+
|
220
|
+
if @convert_owner.nil?
|
221
|
+
invalid_properties.push("invalid value for 'convert_owner', convert_owner cannot be nil.")
|
118
222
|
end
|
119
223
|
|
120
224
|
if @show_hidden_slides.nil?
|
121
225
|
invalid_properties.push("invalid value for 'show_hidden_slides', show_hidden_slides cannot be nil.")
|
122
226
|
end
|
123
227
|
|
228
|
+
if @comments_position.nil?
|
229
|
+
invalid_properties.push("invalid value for 'comments_position', comments_position cannot be nil.")
|
230
|
+
end
|
231
|
+
|
232
|
+
if @notes_position.nil?
|
233
|
+
invalid_properties.push("invalid value for 'notes_position', notes_position cannot be nil.")
|
234
|
+
end
|
235
|
+
|
124
236
|
return invalid_properties
|
125
237
|
end
|
126
238
|
|
127
239
|
# Check to see if the all the properties in the model are valid
|
128
240
|
# @return true if the model is valid
|
129
241
|
def valid?
|
130
|
-
return false if @
|
242
|
+
return false if @preserve_document_structure.nil?
|
243
|
+
return false if @clear_custom_document_properties.nil?
|
244
|
+
return false if @clear_built_in_document_properties.nil?
|
245
|
+
return false if @depth.nil?
|
246
|
+
return false if @convert_owned.nil?
|
247
|
+
return false if @convert_owner.nil?
|
131
248
|
return false if @show_hidden_slides.nil?
|
249
|
+
return false if @comments_position.nil?
|
250
|
+
comments_position_validator = EnumAttributeValidator.new('String', ["None", "Bottom", "Right"])
|
251
|
+
return false unless comments_position_validator.valid?(@comments_position)
|
252
|
+
return false if @notes_position.nil?
|
253
|
+
notes_position_validator = EnumAttributeValidator.new('String', ["None", "BottomTruncated", "BottomFull"])
|
254
|
+
return false unless notes_position_validator.valid?(@notes_position)
|
132
255
|
return true
|
133
256
|
end
|
134
257
|
|
258
|
+
# Custom attribute writer method checking allowed values (enum).
|
259
|
+
# @param [Object] comments_position Object to be assigned
|
260
|
+
def comments_position=(comments_position)
|
261
|
+
validator = EnumAttributeValidator.new('String', ["None", "Bottom", "Right"])
|
262
|
+
if comments_position.to_i == 0
|
263
|
+
unless validator.valid?(comments_position)
|
264
|
+
raise ArgumentError, "invalid value for 'comments_position', must be one of #{validator.allowable_values}."
|
265
|
+
end
|
266
|
+
@comments_position = comments_position
|
267
|
+
else
|
268
|
+
@comments_position = validator.allowable_values[comments_position.to_i]
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# Custom attribute writer method checking allowed values (enum).
|
273
|
+
# @param [Object] notes_position Object to be assigned
|
274
|
+
def notes_position=(notes_position)
|
275
|
+
validator = EnumAttributeValidator.new('String', ["None", "BottomTruncated", "BottomFull"])
|
276
|
+
if notes_position.to_i == 0
|
277
|
+
unless validator.valid?(notes_position)
|
278
|
+
raise ArgumentError, "invalid value for 'notes_position', must be one of #{validator.allowable_values}."
|
279
|
+
end
|
280
|
+
@notes_position = notes_position
|
281
|
+
else
|
282
|
+
@notes_position = validator.allowable_values[notes_position.to_i]
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
135
286
|
# Checks equality by comparing each attribute.
|
136
287
|
# @param [Object] Object to be compared
|
137
288
|
def ==(other)
|
138
289
|
return true if self.equal?(other)
|
139
290
|
self.class == other.class &&
|
140
291
|
format == other.format &&
|
292
|
+
preserve_document_structure == other.preserve_document_structure &&
|
293
|
+
clear_custom_document_properties == other.clear_custom_document_properties &&
|
294
|
+
clear_built_in_document_properties == other.clear_built_in_document_properties &&
|
295
|
+
depth == other.depth &&
|
296
|
+
convert_owned == other.convert_owned &&
|
297
|
+
convert_owner == other.convert_owner &&
|
298
|
+
show_hidden_slides == other.show_hidden_slides &&
|
141
299
|
default_font == other.default_font &&
|
142
300
|
font_substitutes == other.font_substitutes &&
|
143
301
|
password == other.password &&
|
144
|
-
|
145
|
-
|
302
|
+
comments_position == other.comments_position &&
|
303
|
+
notes_position == other.notes_position
|
146
304
|
end
|
147
305
|
|
148
306
|
# @see the `==` method
|
@@ -154,7 +312,7 @@ module GroupDocsConversionCloud
|
|
154
312
|
# Calculates hash code according to all attributes.
|
155
313
|
# @return [Fixnum] Hash code
|
156
314
|
def hash
|
157
|
-
[format, default_font, font_substitutes, password,
|
315
|
+
[format, preserve_document_structure, clear_custom_document_properties, clear_built_in_document_properties, depth, convert_owned, convert_owner, show_hidden_slides, default_font, font_substitutes, password, comments_position, notes_position].hash
|
158
316
|
end
|
159
317
|
|
160
318
|
# Downcases first letter.
|
@@ -34,6 +34,27 @@ 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
|
+
# Determines whether the document structure should be preserved when converting to PDF (default is false).
|
38
|
+
attr_accessor :preserve_document_structure
|
39
|
+
|
40
|
+
# Value indicating whether custom document properties should be cleared.
|
41
|
+
attr_accessor :clear_custom_document_properties
|
42
|
+
|
43
|
+
# Value indicating whether built in document properties should be cleared.
|
44
|
+
attr_accessor :clear_built_in_document_properties
|
45
|
+
|
46
|
+
# Implements GroupDocs.Conversion.Contracts.IDocumentsContainerLoadOptions.Depth Default: 1
|
47
|
+
attr_accessor :depth
|
48
|
+
|
49
|
+
# Implements GroupDocs.Conversion.Contracts.IDocumentsContainerLoadOptions.ConvertOwned Default is false
|
50
|
+
attr_accessor :convert_owned
|
51
|
+
|
52
|
+
# Implements GroupDocs.Conversion.Contracts.IDocumentsContainerLoadOptions.ConvertOwner Default is true
|
53
|
+
attr_accessor :convert_owner
|
54
|
+
|
55
|
+
# Show hidden slides.
|
56
|
+
attr_accessor :show_hidden_slides
|
57
|
+
|
37
58
|
# Default font for rendering the presentation. The following font will be used if a presentation font is missing.
|
38
59
|
attr_accessor :default_font
|
39
60
|
|
@@ -43,21 +64,49 @@ module GroupDocsConversionCloud
|
|
43
64
|
# Set password to unprotect protected document
|
44
65
|
attr_accessor :password
|
45
66
|
|
46
|
-
#
|
47
|
-
attr_accessor :
|
67
|
+
# Represents the way comments are printed with the slide. Default is None.
|
68
|
+
attr_accessor :comments_position
|
69
|
+
|
70
|
+
# Represents the way notes are printed with the slide. Default is None.
|
71
|
+
attr_accessor :notes_position
|
72
|
+
class EnumAttributeValidator
|
73
|
+
attr_reader :datatype
|
74
|
+
attr_reader :allowable_values
|
75
|
+
|
76
|
+
def initialize(datatype, allowable_values)
|
77
|
+
@allowable_values = allowable_values.map do |value|
|
78
|
+
case datatype.to_s
|
79
|
+
when /Integer/i
|
80
|
+
value.to_i
|
81
|
+
when /Float/i
|
82
|
+
value.to_f
|
83
|
+
else
|
84
|
+
value
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
48
88
|
|
49
|
-
|
50
|
-
|
89
|
+
def valid?(value)
|
90
|
+
!value || allowable_values.include?(value)
|
91
|
+
end
|
92
|
+
end
|
51
93
|
|
52
94
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
95
|
def self.attribute_map
|
54
96
|
{
|
55
97
|
:'format' => :'Format',
|
98
|
+
:'preserve_document_structure' => :'PreserveDocumentStructure',
|
99
|
+
:'clear_custom_document_properties' => :'ClearCustomDocumentProperties',
|
100
|
+
:'clear_built_in_document_properties' => :'ClearBuiltInDocumentProperties',
|
101
|
+
:'depth' => :'Depth',
|
102
|
+
:'convert_owned' => :'ConvertOwned',
|
103
|
+
:'convert_owner' => :'ConvertOwner',
|
104
|
+
:'show_hidden_slides' => :'ShowHiddenSlides',
|
56
105
|
:'default_font' => :'DefaultFont',
|
57
106
|
:'font_substitutes' => :'FontSubstitutes',
|
58
107
|
:'password' => :'Password',
|
59
|
-
:'
|
60
|
-
:'
|
108
|
+
:'comments_position' => :'CommentsPosition',
|
109
|
+
:'notes_position' => :'NotesPosition'
|
61
110
|
}
|
62
111
|
end
|
63
112
|
|
@@ -65,11 +114,18 @@ module GroupDocsConversionCloud
|
|
65
114
|
def self.swagger_types
|
66
115
|
{
|
67
116
|
:'format' => :'String',
|
117
|
+
:'preserve_document_structure' => :'BOOLEAN',
|
118
|
+
:'clear_custom_document_properties' => :'BOOLEAN',
|
119
|
+
:'clear_built_in_document_properties' => :'BOOLEAN',
|
120
|
+
:'depth' => :'Integer',
|
121
|
+
:'convert_owned' => :'BOOLEAN',
|
122
|
+
:'convert_owner' => :'BOOLEAN',
|
123
|
+
:'show_hidden_slides' => :'BOOLEAN',
|
68
124
|
:'default_font' => :'String',
|
69
125
|
:'font_substitutes' => :'Hash<String, String>',
|
70
126
|
:'password' => :'String',
|
71
|
-
:'
|
72
|
-
:'
|
127
|
+
:'comments_position' => :'String',
|
128
|
+
:'notes_position' => :'String'
|
73
129
|
}
|
74
130
|
end
|
75
131
|
|
@@ -85,6 +141,34 @@ module GroupDocsConversionCloud
|
|
85
141
|
self.format = attributes[:'Format']
|
86
142
|
end
|
87
143
|
|
144
|
+
if attributes.key?(:'PreserveDocumentStructure')
|
145
|
+
self.preserve_document_structure = attributes[:'PreserveDocumentStructure']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'ClearCustomDocumentProperties')
|
149
|
+
self.clear_custom_document_properties = attributes[:'ClearCustomDocumentProperties']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'ClearBuiltInDocumentProperties')
|
153
|
+
self.clear_built_in_document_properties = attributes[:'ClearBuiltInDocumentProperties']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'Depth')
|
157
|
+
self.depth = attributes[:'Depth']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'ConvertOwned')
|
161
|
+
self.convert_owned = attributes[:'ConvertOwned']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'ConvertOwner')
|
165
|
+
self.convert_owner = attributes[:'ConvertOwner']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'ShowHiddenSlides')
|
169
|
+
self.show_hidden_slides = attributes[:'ShowHiddenSlides']
|
170
|
+
end
|
171
|
+
|
88
172
|
if attributes.key?(:'DefaultFont')
|
89
173
|
self.default_font = attributes[:'DefaultFont']
|
90
174
|
end
|
@@ -99,12 +183,12 @@ module GroupDocsConversionCloud
|
|
99
183
|
self.password = attributes[:'Password']
|
100
184
|
end
|
101
185
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
186
|
+
if attributes.key?(:'CommentsPosition')
|
187
|
+
self.comments_position = attributes[:'CommentsPosition']
|
104
188
|
end
|
105
189
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
190
|
+
if attributes.key?(:'NotesPosition')
|
191
|
+
self.notes_position = attributes[:'NotesPosition']
|
108
192
|
end
|
109
193
|
|
110
194
|
end
|
@@ -113,36 +197,110 @@ module GroupDocsConversionCloud
|
|
113
197
|
# @return Array for valid properies with the reasons
|
114
198
|
def list_invalid_properties
|
115
199
|
invalid_properties = []
|
116
|
-
if @
|
117
|
-
invalid_properties.push("invalid value for '
|
200
|
+
if @preserve_document_structure.nil?
|
201
|
+
invalid_properties.push("invalid value for 'preserve_document_structure', preserve_document_structure cannot be nil.")
|
202
|
+
end
|
203
|
+
|
204
|
+
if @clear_custom_document_properties.nil?
|
205
|
+
invalid_properties.push("invalid value for 'clear_custom_document_properties', clear_custom_document_properties cannot be nil.")
|
206
|
+
end
|
207
|
+
|
208
|
+
if @clear_built_in_document_properties.nil?
|
209
|
+
invalid_properties.push("invalid value for 'clear_built_in_document_properties', clear_built_in_document_properties cannot be nil.")
|
210
|
+
end
|
211
|
+
|
212
|
+
if @depth.nil?
|
213
|
+
invalid_properties.push("invalid value for 'depth', depth cannot be nil.")
|
214
|
+
end
|
215
|
+
|
216
|
+
if @convert_owned.nil?
|
217
|
+
invalid_properties.push("invalid value for 'convert_owned', convert_owned cannot be nil.")
|
218
|
+
end
|
219
|
+
|
220
|
+
if @convert_owner.nil?
|
221
|
+
invalid_properties.push("invalid value for 'convert_owner', convert_owner cannot be nil.")
|
118
222
|
end
|
119
223
|
|
120
224
|
if @show_hidden_slides.nil?
|
121
225
|
invalid_properties.push("invalid value for 'show_hidden_slides', show_hidden_slides cannot be nil.")
|
122
226
|
end
|
123
227
|
|
228
|
+
if @comments_position.nil?
|
229
|
+
invalid_properties.push("invalid value for 'comments_position', comments_position cannot be nil.")
|
230
|
+
end
|
231
|
+
|
232
|
+
if @notes_position.nil?
|
233
|
+
invalid_properties.push("invalid value for 'notes_position', notes_position cannot be nil.")
|
234
|
+
end
|
235
|
+
|
124
236
|
return invalid_properties
|
125
237
|
end
|
126
238
|
|
127
239
|
# Check to see if the all the properties in the model are valid
|
128
240
|
# @return true if the model is valid
|
129
241
|
def valid?
|
130
|
-
return false if @
|
242
|
+
return false if @preserve_document_structure.nil?
|
243
|
+
return false if @clear_custom_document_properties.nil?
|
244
|
+
return false if @clear_built_in_document_properties.nil?
|
245
|
+
return false if @depth.nil?
|
246
|
+
return false if @convert_owned.nil?
|
247
|
+
return false if @convert_owner.nil?
|
131
248
|
return false if @show_hidden_slides.nil?
|
249
|
+
return false if @comments_position.nil?
|
250
|
+
comments_position_validator = EnumAttributeValidator.new('String', ["None", "Bottom", "Right"])
|
251
|
+
return false unless comments_position_validator.valid?(@comments_position)
|
252
|
+
return false if @notes_position.nil?
|
253
|
+
notes_position_validator = EnumAttributeValidator.new('String', ["None", "BottomTruncated", "BottomFull"])
|
254
|
+
return false unless notes_position_validator.valid?(@notes_position)
|
132
255
|
return true
|
133
256
|
end
|
134
257
|
|
258
|
+
# Custom attribute writer method checking allowed values (enum).
|
259
|
+
# @param [Object] comments_position Object to be assigned
|
260
|
+
def comments_position=(comments_position)
|
261
|
+
validator = EnumAttributeValidator.new('String', ["None", "Bottom", "Right"])
|
262
|
+
if comments_position.to_i == 0
|
263
|
+
unless validator.valid?(comments_position)
|
264
|
+
raise ArgumentError, "invalid value for 'comments_position', must be one of #{validator.allowable_values}."
|
265
|
+
end
|
266
|
+
@comments_position = comments_position
|
267
|
+
else
|
268
|
+
@comments_position = validator.allowable_values[comments_position.to_i]
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# Custom attribute writer method checking allowed values (enum).
|
273
|
+
# @param [Object] notes_position Object to be assigned
|
274
|
+
def notes_position=(notes_position)
|
275
|
+
validator = EnumAttributeValidator.new('String', ["None", "BottomTruncated", "BottomFull"])
|
276
|
+
if notes_position.to_i == 0
|
277
|
+
unless validator.valid?(notes_position)
|
278
|
+
raise ArgumentError, "invalid value for 'notes_position', must be one of #{validator.allowable_values}."
|
279
|
+
end
|
280
|
+
@notes_position = notes_position
|
281
|
+
else
|
282
|
+
@notes_position = validator.allowable_values[notes_position.to_i]
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
135
286
|
# Checks equality by comparing each attribute.
|
136
287
|
# @param [Object] Object to be compared
|
137
288
|
def ==(other)
|
138
289
|
return true if self.equal?(other)
|
139
290
|
self.class == other.class &&
|
140
291
|
format == other.format &&
|
292
|
+
preserve_document_structure == other.preserve_document_structure &&
|
293
|
+
clear_custom_document_properties == other.clear_custom_document_properties &&
|
294
|
+
clear_built_in_document_properties == other.clear_built_in_document_properties &&
|
295
|
+
depth == other.depth &&
|
296
|
+
convert_owned == other.convert_owned &&
|
297
|
+
convert_owner == other.convert_owner &&
|
298
|
+
show_hidden_slides == other.show_hidden_slides &&
|
141
299
|
default_font == other.default_font &&
|
142
300
|
font_substitutes == other.font_substitutes &&
|
143
301
|
password == other.password &&
|
144
|
-
|
145
|
-
|
302
|
+
comments_position == other.comments_position &&
|
303
|
+
notes_position == other.notes_position
|
146
304
|
end
|
147
305
|
|
148
306
|
# @see the `==` method
|
@@ -154,7 +312,7 @@ module GroupDocsConversionCloud
|
|
154
312
|
# Calculates hash code according to all attributes.
|
155
313
|
# @return [Fixnum] Hash code
|
156
314
|
def hash
|
157
|
-
[format, default_font, font_substitutes, password,
|
315
|
+
[format, preserve_document_structure, clear_custom_document_properties, clear_built_in_document_properties, depth, convert_owned, convert_owner, show_hidden_slides, default_font, font_substitutes, password, comments_position, notes_position].hash
|
158
316
|
end
|
159
317
|
|
160
318
|
# Downcases first letter.
|