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
@@ -58,8 +58,29 @@ module GroupDocsConversionCloud
|
|
58
58
|
# Set password to unprotect protected document
|
59
59
|
attr_accessor :password
|
60
60
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
61
|
+
# Represents the way comments are printed with the sheet. Default is PrintNoComments.
|
62
|
+
attr_accessor :print_comments
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
63
84
|
|
64
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
86
|
def self.attribute_map
|
@@ -73,7 +94,7 @@ module GroupDocsConversionCloud
|
|
73
94
|
:'convert_range' => :'ConvertRange',
|
74
95
|
:'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
|
75
96
|
:'password' => :'Password',
|
76
|
-
:'
|
97
|
+
:'print_comments' => :'PrintComments'
|
77
98
|
}
|
78
99
|
end
|
79
100
|
|
@@ -89,7 +110,7 @@ module GroupDocsConversionCloud
|
|
89
110
|
:'convert_range' => :'String',
|
90
111
|
:'skip_empty_rows_and_columns' => :'BOOLEAN',
|
91
112
|
:'password' => :'String',
|
92
|
-
:'
|
113
|
+
:'print_comments' => :'String'
|
93
114
|
}
|
94
115
|
end
|
95
116
|
|
@@ -139,8 +160,8 @@ module GroupDocsConversionCloud
|
|
139
160
|
self.password = attributes[:'Password']
|
140
161
|
end
|
141
162
|
|
142
|
-
if attributes.key?(:'
|
143
|
-
self.
|
163
|
+
if attributes.key?(:'PrintComments')
|
164
|
+
self.print_comments = attributes[:'PrintComments']
|
144
165
|
end
|
145
166
|
|
146
167
|
end
|
@@ -165,8 +186,8 @@ module GroupDocsConversionCloud
|
|
165
186
|
invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
|
166
187
|
end
|
167
188
|
|
168
|
-
if @
|
169
|
-
invalid_properties.push("invalid value for '
|
189
|
+
if @print_comments.nil?
|
190
|
+
invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
|
170
191
|
end
|
171
192
|
|
172
193
|
return invalid_properties
|
@@ -179,10 +200,26 @@ module GroupDocsConversionCloud
|
|
179
200
|
return false if @show_hidden_sheets.nil?
|
180
201
|
return false if @one_page_per_sheet.nil?
|
181
202
|
return false if @skip_empty_rows_and_columns.nil?
|
182
|
-
return false if @
|
203
|
+
return false if @print_comments.nil?
|
204
|
+
print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
205
|
+
return false unless print_comments_validator.valid?(@print_comments)
|
183
206
|
return true
|
184
207
|
end
|
185
208
|
|
209
|
+
# Custom attribute writer method checking allowed values (enum).
|
210
|
+
# @param [Object] print_comments Object to be assigned
|
211
|
+
def print_comments=(print_comments)
|
212
|
+
validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
213
|
+
if print_comments.to_i == 0
|
214
|
+
unless validator.valid?(print_comments)
|
215
|
+
raise ArgumentError, "invalid value for 'print_comments', must be one of #{validator.allowable_values}."
|
216
|
+
end
|
217
|
+
@print_comments = print_comments
|
218
|
+
else
|
219
|
+
@print_comments = validator.allowable_values[print_comments.to_i]
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
186
223
|
# Checks equality by comparing each attribute.
|
187
224
|
# @param [Object] Object to be compared
|
188
225
|
def ==(other)
|
@@ -197,7 +234,7 @@ module GroupDocsConversionCloud
|
|
197
234
|
convert_range == other.convert_range &&
|
198
235
|
skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
|
199
236
|
password == other.password &&
|
200
|
-
|
237
|
+
print_comments == other.print_comments
|
201
238
|
end
|
202
239
|
|
203
240
|
# @see the `==` method
|
@@ -209,7 +246,7 @@ module GroupDocsConversionCloud
|
|
209
246
|
# Calculates hash code according to all attributes.
|
210
247
|
# @return [Fixnum] Hash code
|
211
248
|
def hash
|
212
|
-
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password,
|
249
|
+
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments].hash
|
213
250
|
end
|
214
251
|
|
215
252
|
# Downcases first letter.
|
@@ -58,8 +58,29 @@ module GroupDocsConversionCloud
|
|
58
58
|
# Set password to unprotect protected document
|
59
59
|
attr_accessor :password
|
60
60
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
61
|
+
# Represents the way comments are printed with the sheet. Default is PrintNoComments.
|
62
|
+
attr_accessor :print_comments
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
63
84
|
|
64
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
86
|
def self.attribute_map
|
@@ -73,7 +94,7 @@ module GroupDocsConversionCloud
|
|
73
94
|
:'convert_range' => :'ConvertRange',
|
74
95
|
:'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
|
75
96
|
:'password' => :'Password',
|
76
|
-
:'
|
97
|
+
:'print_comments' => :'PrintComments'
|
77
98
|
}
|
78
99
|
end
|
79
100
|
|
@@ -89,7 +110,7 @@ module GroupDocsConversionCloud
|
|
89
110
|
:'convert_range' => :'String',
|
90
111
|
:'skip_empty_rows_and_columns' => :'BOOLEAN',
|
91
112
|
:'password' => :'String',
|
92
|
-
:'
|
113
|
+
:'print_comments' => :'String'
|
93
114
|
}
|
94
115
|
end
|
95
116
|
|
@@ -139,8 +160,8 @@ module GroupDocsConversionCloud
|
|
139
160
|
self.password = attributes[:'Password']
|
140
161
|
end
|
141
162
|
|
142
|
-
if attributes.key?(:'
|
143
|
-
self.
|
163
|
+
if attributes.key?(:'PrintComments')
|
164
|
+
self.print_comments = attributes[:'PrintComments']
|
144
165
|
end
|
145
166
|
|
146
167
|
end
|
@@ -165,8 +186,8 @@ module GroupDocsConversionCloud
|
|
165
186
|
invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
|
166
187
|
end
|
167
188
|
|
168
|
-
if @
|
169
|
-
invalid_properties.push("invalid value for '
|
189
|
+
if @print_comments.nil?
|
190
|
+
invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
|
170
191
|
end
|
171
192
|
|
172
193
|
return invalid_properties
|
@@ -179,10 +200,26 @@ module GroupDocsConversionCloud
|
|
179
200
|
return false if @show_hidden_sheets.nil?
|
180
201
|
return false if @one_page_per_sheet.nil?
|
181
202
|
return false if @skip_empty_rows_and_columns.nil?
|
182
|
-
return false if @
|
203
|
+
return false if @print_comments.nil?
|
204
|
+
print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
205
|
+
return false unless print_comments_validator.valid?(@print_comments)
|
183
206
|
return true
|
184
207
|
end
|
185
208
|
|
209
|
+
# Custom attribute writer method checking allowed values (enum).
|
210
|
+
# @param [Object] print_comments Object to be assigned
|
211
|
+
def print_comments=(print_comments)
|
212
|
+
validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
213
|
+
if print_comments.to_i == 0
|
214
|
+
unless validator.valid?(print_comments)
|
215
|
+
raise ArgumentError, "invalid value for 'print_comments', must be one of #{validator.allowable_values}."
|
216
|
+
end
|
217
|
+
@print_comments = print_comments
|
218
|
+
else
|
219
|
+
@print_comments = validator.allowable_values[print_comments.to_i]
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
186
223
|
# Checks equality by comparing each attribute.
|
187
224
|
# @param [Object] Object to be compared
|
188
225
|
def ==(other)
|
@@ -197,7 +234,7 @@ module GroupDocsConversionCloud
|
|
197
234
|
convert_range == other.convert_range &&
|
198
235
|
skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
|
199
236
|
password == other.password &&
|
200
|
-
|
237
|
+
print_comments == other.print_comments
|
201
238
|
end
|
202
239
|
|
203
240
|
# @see the `==` method
|
@@ -209,7 +246,7 @@ module GroupDocsConversionCloud
|
|
209
246
|
# Calculates hash code according to all attributes.
|
210
247
|
# @return [Fixnum] Hash code
|
211
248
|
def hash
|
212
|
-
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password,
|
249
|
+
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments].hash
|
213
250
|
end
|
214
251
|
|
215
252
|
# Downcases first letter.
|
@@ -58,8 +58,29 @@ module GroupDocsConversionCloud
|
|
58
58
|
# Set password to unprotect protected document
|
59
59
|
attr_accessor :password
|
60
60
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
61
|
+
# Represents the way comments are printed with the sheet. Default is PrintNoComments.
|
62
|
+
attr_accessor :print_comments
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
63
84
|
|
64
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
86
|
def self.attribute_map
|
@@ -73,7 +94,7 @@ module GroupDocsConversionCloud
|
|
73
94
|
:'convert_range' => :'ConvertRange',
|
74
95
|
:'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
|
75
96
|
:'password' => :'Password',
|
76
|
-
:'
|
97
|
+
:'print_comments' => :'PrintComments'
|
77
98
|
}
|
78
99
|
end
|
79
100
|
|
@@ -89,7 +110,7 @@ module GroupDocsConversionCloud
|
|
89
110
|
:'convert_range' => :'String',
|
90
111
|
:'skip_empty_rows_and_columns' => :'BOOLEAN',
|
91
112
|
:'password' => :'String',
|
92
|
-
:'
|
113
|
+
:'print_comments' => :'String'
|
93
114
|
}
|
94
115
|
end
|
95
116
|
|
@@ -139,8 +160,8 @@ module GroupDocsConversionCloud
|
|
139
160
|
self.password = attributes[:'Password']
|
140
161
|
end
|
141
162
|
|
142
|
-
if attributes.key?(:'
|
143
|
-
self.
|
163
|
+
if attributes.key?(:'PrintComments')
|
164
|
+
self.print_comments = attributes[:'PrintComments']
|
144
165
|
end
|
145
166
|
|
146
167
|
end
|
@@ -165,8 +186,8 @@ module GroupDocsConversionCloud
|
|
165
186
|
invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
|
166
187
|
end
|
167
188
|
|
168
|
-
if @
|
169
|
-
invalid_properties.push("invalid value for '
|
189
|
+
if @print_comments.nil?
|
190
|
+
invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
|
170
191
|
end
|
171
192
|
|
172
193
|
return invalid_properties
|
@@ -179,10 +200,26 @@ module GroupDocsConversionCloud
|
|
179
200
|
return false if @show_hidden_sheets.nil?
|
180
201
|
return false if @one_page_per_sheet.nil?
|
181
202
|
return false if @skip_empty_rows_and_columns.nil?
|
182
|
-
return false if @
|
203
|
+
return false if @print_comments.nil?
|
204
|
+
print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
205
|
+
return false unless print_comments_validator.valid?(@print_comments)
|
183
206
|
return true
|
184
207
|
end
|
185
208
|
|
209
|
+
# Custom attribute writer method checking allowed values (enum).
|
210
|
+
# @param [Object] print_comments Object to be assigned
|
211
|
+
def print_comments=(print_comments)
|
212
|
+
validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
213
|
+
if print_comments.to_i == 0
|
214
|
+
unless validator.valid?(print_comments)
|
215
|
+
raise ArgumentError, "invalid value for 'print_comments', must be one of #{validator.allowable_values}."
|
216
|
+
end
|
217
|
+
@print_comments = print_comments
|
218
|
+
else
|
219
|
+
@print_comments = validator.allowable_values[print_comments.to_i]
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
186
223
|
# Checks equality by comparing each attribute.
|
187
224
|
# @param [Object] Object to be compared
|
188
225
|
def ==(other)
|
@@ -197,7 +234,7 @@ module GroupDocsConversionCloud
|
|
197
234
|
convert_range == other.convert_range &&
|
198
235
|
skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
|
199
236
|
password == other.password &&
|
200
|
-
|
237
|
+
print_comments == other.print_comments
|
201
238
|
end
|
202
239
|
|
203
240
|
# @see the `==` method
|
@@ -209,7 +246,7 @@ module GroupDocsConversionCloud
|
|
209
246
|
# Calculates hash code according to all attributes.
|
210
247
|
# @return [Fixnum] Hash code
|
211
248
|
def hash
|
212
|
-
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password,
|
249
|
+
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments].hash
|
213
250
|
end
|
214
251
|
|
215
252
|
# Downcases first letter.
|
@@ -58,8 +58,29 @@ module GroupDocsConversionCloud
|
|
58
58
|
# Set password to unprotect protected document
|
59
59
|
attr_accessor :password
|
60
60
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
61
|
+
# Represents the way comments are printed with the sheet. Default is PrintNoComments.
|
62
|
+
attr_accessor :print_comments
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
63
84
|
|
64
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
86
|
def self.attribute_map
|
@@ -73,7 +94,7 @@ module GroupDocsConversionCloud
|
|
73
94
|
:'convert_range' => :'ConvertRange',
|
74
95
|
:'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
|
75
96
|
:'password' => :'Password',
|
76
|
-
:'
|
97
|
+
:'print_comments' => :'PrintComments'
|
77
98
|
}
|
78
99
|
end
|
79
100
|
|
@@ -89,7 +110,7 @@ module GroupDocsConversionCloud
|
|
89
110
|
:'convert_range' => :'String',
|
90
111
|
:'skip_empty_rows_and_columns' => :'BOOLEAN',
|
91
112
|
:'password' => :'String',
|
92
|
-
:'
|
113
|
+
:'print_comments' => :'String'
|
93
114
|
}
|
94
115
|
end
|
95
116
|
|
@@ -139,8 +160,8 @@ module GroupDocsConversionCloud
|
|
139
160
|
self.password = attributes[:'Password']
|
140
161
|
end
|
141
162
|
|
142
|
-
if attributes.key?(:'
|
143
|
-
self.
|
163
|
+
if attributes.key?(:'PrintComments')
|
164
|
+
self.print_comments = attributes[:'PrintComments']
|
144
165
|
end
|
145
166
|
|
146
167
|
end
|
@@ -165,8 +186,8 @@ module GroupDocsConversionCloud
|
|
165
186
|
invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
|
166
187
|
end
|
167
188
|
|
168
|
-
if @
|
169
|
-
invalid_properties.push("invalid value for '
|
189
|
+
if @print_comments.nil?
|
190
|
+
invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
|
170
191
|
end
|
171
192
|
|
172
193
|
return invalid_properties
|
@@ -179,10 +200,26 @@ module GroupDocsConversionCloud
|
|
179
200
|
return false if @show_hidden_sheets.nil?
|
180
201
|
return false if @one_page_per_sheet.nil?
|
181
202
|
return false if @skip_empty_rows_and_columns.nil?
|
182
|
-
return false if @
|
203
|
+
return false if @print_comments.nil?
|
204
|
+
print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
205
|
+
return false unless print_comments_validator.valid?(@print_comments)
|
183
206
|
return true
|
184
207
|
end
|
185
208
|
|
209
|
+
# Custom attribute writer method checking allowed values (enum).
|
210
|
+
# @param [Object] print_comments Object to be assigned
|
211
|
+
def print_comments=(print_comments)
|
212
|
+
validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
213
|
+
if print_comments.to_i == 0
|
214
|
+
unless validator.valid?(print_comments)
|
215
|
+
raise ArgumentError, "invalid value for 'print_comments', must be one of #{validator.allowable_values}."
|
216
|
+
end
|
217
|
+
@print_comments = print_comments
|
218
|
+
else
|
219
|
+
@print_comments = validator.allowable_values[print_comments.to_i]
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
186
223
|
# Checks equality by comparing each attribute.
|
187
224
|
# @param [Object] Object to be compared
|
188
225
|
def ==(other)
|
@@ -197,7 +234,7 @@ module GroupDocsConversionCloud
|
|
197
234
|
convert_range == other.convert_range &&
|
198
235
|
skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
|
199
236
|
password == other.password &&
|
200
|
-
|
237
|
+
print_comments == other.print_comments
|
201
238
|
end
|
202
239
|
|
203
240
|
# @see the `==` method
|
@@ -209,7 +246,7 @@ module GroupDocsConversionCloud
|
|
209
246
|
# Calculates hash code according to all attributes.
|
210
247
|
# @return [Fixnum] Hash code
|
211
248
|
def hash
|
212
|
-
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password,
|
249
|
+
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments].hash
|
213
250
|
end
|
214
251
|
|
215
252
|
# Downcases first letter.
|
@@ -58,8 +58,29 @@ module GroupDocsConversionCloud
|
|
58
58
|
# Set password to unprotect protected document
|
59
59
|
attr_accessor :password
|
60
60
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
61
|
+
# Represents the way comments are printed with the sheet. Default is PrintNoComments.
|
62
|
+
attr_accessor :print_comments
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
63
84
|
|
64
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
86
|
def self.attribute_map
|
@@ -73,7 +94,7 @@ module GroupDocsConversionCloud
|
|
73
94
|
:'convert_range' => :'ConvertRange',
|
74
95
|
:'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
|
75
96
|
:'password' => :'Password',
|
76
|
-
:'
|
97
|
+
:'print_comments' => :'PrintComments'
|
77
98
|
}
|
78
99
|
end
|
79
100
|
|
@@ -89,7 +110,7 @@ module GroupDocsConversionCloud
|
|
89
110
|
:'convert_range' => :'String',
|
90
111
|
:'skip_empty_rows_and_columns' => :'BOOLEAN',
|
91
112
|
:'password' => :'String',
|
92
|
-
:'
|
113
|
+
:'print_comments' => :'String'
|
93
114
|
}
|
94
115
|
end
|
95
116
|
|
@@ -139,8 +160,8 @@ module GroupDocsConversionCloud
|
|
139
160
|
self.password = attributes[:'Password']
|
140
161
|
end
|
141
162
|
|
142
|
-
if attributes.key?(:'
|
143
|
-
self.
|
163
|
+
if attributes.key?(:'PrintComments')
|
164
|
+
self.print_comments = attributes[:'PrintComments']
|
144
165
|
end
|
145
166
|
|
146
167
|
end
|
@@ -165,8 +186,8 @@ module GroupDocsConversionCloud
|
|
165
186
|
invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
|
166
187
|
end
|
167
188
|
|
168
|
-
if @
|
169
|
-
invalid_properties.push("invalid value for '
|
189
|
+
if @print_comments.nil?
|
190
|
+
invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
|
170
191
|
end
|
171
192
|
|
172
193
|
return invalid_properties
|
@@ -179,10 +200,26 @@ module GroupDocsConversionCloud
|
|
179
200
|
return false if @show_hidden_sheets.nil?
|
180
201
|
return false if @one_page_per_sheet.nil?
|
181
202
|
return false if @skip_empty_rows_and_columns.nil?
|
182
|
-
return false if @
|
203
|
+
return false if @print_comments.nil?
|
204
|
+
print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
205
|
+
return false unless print_comments_validator.valid?(@print_comments)
|
183
206
|
return true
|
184
207
|
end
|
185
208
|
|
209
|
+
# Custom attribute writer method checking allowed values (enum).
|
210
|
+
# @param [Object] print_comments Object to be assigned
|
211
|
+
def print_comments=(print_comments)
|
212
|
+
validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
213
|
+
if print_comments.to_i == 0
|
214
|
+
unless validator.valid?(print_comments)
|
215
|
+
raise ArgumentError, "invalid value for 'print_comments', must be one of #{validator.allowable_values}."
|
216
|
+
end
|
217
|
+
@print_comments = print_comments
|
218
|
+
else
|
219
|
+
@print_comments = validator.allowable_values[print_comments.to_i]
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
186
223
|
# Checks equality by comparing each attribute.
|
187
224
|
# @param [Object] Object to be compared
|
188
225
|
def ==(other)
|
@@ -197,7 +234,7 @@ module GroupDocsConversionCloud
|
|
197
234
|
convert_range == other.convert_range &&
|
198
235
|
skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
|
199
236
|
password == other.password &&
|
200
|
-
|
237
|
+
print_comments == other.print_comments
|
201
238
|
end
|
202
239
|
|
203
240
|
# @see the `==` method
|
@@ -209,7 +246,7 @@ module GroupDocsConversionCloud
|
|
209
246
|
# Calculates hash code according to all attributes.
|
210
247
|
# @return [Fixnum] Hash code
|
211
248
|
def hash
|
212
|
-
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password,
|
249
|
+
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments].hash
|
213
250
|
end
|
214
251
|
|
215
252
|
# Downcases first letter.
|