groupdocs_conversion_cloud 25.10 → 25.12

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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_conversion_cloud/models/{tsv_convert_options.rb → cad_convert_options.rb} +74 -32
  3. data/lib/groupdocs_conversion_cloud/models/{pps_convert_options.rb → compression_convert_options.rb} +7 -22
  4. data/lib/groupdocs_conversion_cloud/models/{odp_convert_options.rb → diagram_convert_options.rb} +14 -24
  5. data/lib/groupdocs_conversion_cloud/models/{otp_convert_options.rb → email_convert_options.rb} +7 -32
  6. data/lib/groupdocs_conversion_cloud/models/{ppt_convert_options.rb → finance_convert_options.rb} +7 -32
  7. data/lib/groupdocs_conversion_cloud/models/{potm_convert_options.rb → font_convert_options.rb} +7 -32
  8. data/lib/groupdocs_conversion_cloud/models/{txt_convert_options.rb → gis_convert_options.rb} +3 -3
  9. data/lib/groupdocs_conversion_cloud/models/image_convert_options.rb +44 -4
  10. data/lib/groupdocs_conversion_cloud/models/jpg_convert_options.rb +1 -265
  11. data/lib/groupdocs_conversion_cloud/models/pdl_convert_options.rb +35 -5
  12. data/lib/groupdocs_conversion_cloud/models/project_management_convert_options.rb +256 -0
  13. data/lib/groupdocs_conversion_cloud/models/psd_convert_options.rb +1 -244
  14. data/lib/groupdocs_conversion_cloud/models/rtf_convert_options.rb +1 -237
  15. data/lib/groupdocs_conversion_cloud/models/spreadsheet_convert_options.rb +4 -19
  16. data/lib/groupdocs_conversion_cloud/models/three_d_convert_options.rb +256 -0
  17. data/lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb +1 -244
  18. data/lib/groupdocs_conversion_cloud/models/webp_convert_options.rb +1 -265
  19. data/lib/groupdocs_conversion_cloud/models/word_processing_convert_options.rb +14 -4
  20. data/lib/groupdocs_conversion_cloud/version.rb +1 -1
  21. data/lib/groupdocs_conversion_cloud.rb +14 -52
  22. metadata +11 -49
  23. data/lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb +0 -468
  24. data/lib/groupdocs_conversion_cloud/models/dcm_convert_options.rb +0 -468
  25. data/lib/groupdocs_conversion_cloud/models/djvu_convert_options.rb +0 -468
  26. data/lib/groupdocs_conversion_cloud/models/dng_convert_options.rb +0 -468
  27. data/lib/groupdocs_conversion_cloud/models/doc_convert_options.rb +0 -440
  28. data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +0 -440
  29. data/lib/groupdocs_conversion_cloud/models/docx_convert_options.rb +0 -440
  30. data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +0 -440
  31. data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +0 -440
  32. data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +0 -440
  33. data/lib/groupdocs_conversion_cloud/models/emf_convert_options.rb +0 -468
  34. data/lib/groupdocs_conversion_cloud/models/gif_convert_options.rb +0 -468
  35. data/lib/groupdocs_conversion_cloud/models/ico_convert_options.rb +0 -468
  36. data/lib/groupdocs_conversion_cloud/models/j2c_convert_options.rb +0 -483
  37. data/lib/groupdocs_conversion_cloud/models/j2k_convert_options.rb +0 -483
  38. data/lib/groupdocs_conversion_cloud/models/jp2_convert_options.rb +0 -483
  39. data/lib/groupdocs_conversion_cloud/models/jpeg_convert_options.rb +0 -483
  40. data/lib/groupdocs_conversion_cloud/models/jpf_convert_options.rb +0 -483
  41. data/lib/groupdocs_conversion_cloud/models/jpm_convert_options.rb +0 -483
  42. data/lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb +0 -483
  43. data/lib/groupdocs_conversion_cloud/models/odg_convert_options.rb +0 -468
  44. data/lib/groupdocs_conversion_cloud/models/ods_convert_options.rb +0 -296
  45. data/lib/groupdocs_conversion_cloud/models/odt_convert_options.rb +0 -440
  46. data/lib/groupdocs_conversion_cloud/models/ots_convert_options.rb +0 -296
  47. data/lib/groupdocs_conversion_cloud/models/ott_convert_options.rb +0 -440
  48. data/lib/groupdocs_conversion_cloud/models/png_convert_options.rb +0 -468
  49. data/lib/groupdocs_conversion_cloud/models/potx_convert_options.rb +0 -281
  50. data/lib/groupdocs_conversion_cloud/models/ppsm_convert_options.rb +0 -281
  51. data/lib/groupdocs_conversion_cloud/models/ppsx_convert_options.rb +0 -281
  52. data/lib/groupdocs_conversion_cloud/models/pptm_convert_options.rb +0 -281
  53. data/lib/groupdocs_conversion_cloud/models/pptx_convert_options.rb +0 -281
  54. data/lib/groupdocs_conversion_cloud/models/tif_convert_options.rb +0 -494
  55. data/lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb +0 -468
  56. data/lib/groupdocs_conversion_cloud/models/xls2003_convert_options.rb +0 -296
  57. data/lib/groupdocs_conversion_cloud/models/xls_convert_options.rb +0 -296
  58. data/lib/groupdocs_conversion_cloud/models/xlsb_convert_options.rb +0 -296
  59. data/lib/groupdocs_conversion_cloud/models/xlsm_convert_options.rb +0 -296
  60. data/lib/groupdocs_conversion_cloud/models/xlsx_convert_options.rb +0 -296
  61. data/lib/groupdocs_conversion_cloud/models/xltm_convert_options.rb +0 -296
  62. data/lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb +0 -296
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
- # <copyright company="Aspose Pty Ltd" file="potm_convert_options.rb">
3
+ # <copyright company="Aspose Pty Ltd" file="font_convert_options.rb">
4
4
  # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
@@ -28,8 +28,8 @@
28
28
  require 'date'
29
29
 
30
30
  module GroupDocsConversionCloud
31
- # Potm convert options
32
- class PotmConvertOptions
31
+ # Options for to Font conversion
32
+ class FontConvertOptions
33
33
 
34
34
  # Start conversion from FromPage page
35
35
  attr_accessor :from_page
@@ -43,21 +43,13 @@ module GroupDocsConversionCloud
43
43
  # Watermark specific options
44
44
  attr_accessor :watermark_options
45
45
 
46
- # Set this property if you want to protect the converted document with a password
47
- attr_accessor :password
48
-
49
- # Specifies the zoom level in percentage. Default is 100. Default zoom is supported till Microsoft Powerpoint 2010. Starting from Microsoft Powerpoint 2013 default zoom is no longer set to document, instead it appears to use the zoom factor of the last document that was opened.
50
- attr_accessor :zoom
51
-
52
46
  # Attribute mapping from ruby-style variable name to JSON key.
53
47
  def self.attribute_map
54
48
  {
55
49
  :'from_page' => :'FromPage',
56
50
  :'pages_count' => :'PagesCount',
57
51
  :'pages' => :'Pages',
58
- :'watermark_options' => :'WatermarkOptions',
59
- :'password' => :'Password',
60
- :'zoom' => :'Zoom'
52
+ :'watermark_options' => :'WatermarkOptions'
61
53
  }
62
54
  end
63
55
 
@@ -67,9 +59,7 @@ module GroupDocsConversionCloud
67
59
  :'from_page' => :'Integer',
68
60
  :'pages_count' => :'Integer',
69
61
  :'pages' => :'Array<Integer>',
70
- :'watermark_options' => :'WatermarkOptions',
71
- :'password' => :'String',
72
- :'zoom' => :'Integer'
62
+ :'watermark_options' => :'WatermarkOptions'
73
63
  }
74
64
  end
75
65
 
@@ -99,14 +89,6 @@ module GroupDocsConversionCloud
99
89
  self.watermark_options = attributes[:'WatermarkOptions']
100
90
  end
101
91
 
102
- if attributes.key?(:'Password')
103
- self.password = attributes[:'Password']
104
- end
105
-
106
- if attributes.key?(:'Zoom')
107
- self.zoom = attributes[:'Zoom']
108
- end
109
-
110
92
  end
111
93
 
112
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -121,10 +103,6 @@ module GroupDocsConversionCloud
121
103
  invalid_properties.push("invalid value for 'pages_count', pages_count cannot be nil.")
122
104
  end
123
105
 
124
- if @zoom.nil?
125
- invalid_properties.push("invalid value for 'zoom', zoom cannot be nil.")
126
- end
127
-
128
106
  return invalid_properties
129
107
  end
130
108
 
@@ -133,7 +111,6 @@ module GroupDocsConversionCloud
133
111
  def valid?
134
112
  return false if @from_page.nil?
135
113
  return false if @pages_count.nil?
136
- return false if @zoom.nil?
137
114
  return true
138
115
  end
139
116
 
@@ -145,9 +122,7 @@ module GroupDocsConversionCloud
145
122
  from_page == other.from_page &&
146
123
  pages_count == other.pages_count &&
147
124
  pages == other.pages &&
148
- watermark_options == other.watermark_options &&
149
- password == other.password &&
150
- zoom == other.zoom
125
+ watermark_options == other.watermark_options
151
126
  end
152
127
 
153
128
  # @see the `==` method
@@ -159,7 +134,7 @@ module GroupDocsConversionCloud
159
134
  # Calculates hash code according to all attributes.
160
135
  # @return [Fixnum] Hash code
161
136
  def hash
162
- [from_page, pages_count, pages, watermark_options, password, zoom].hash
137
+ [from_page, pages_count, pages, watermark_options].hash
163
138
  end
164
139
 
165
140
  # Downcases first letter.
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
- # <copyright company="Aspose Pty Ltd" file="txt_convert_options.rb">
3
+ # <copyright company="Aspose Pty Ltd" file="gis_convert_options.rb">
4
4
  # Copyright (c) Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
@@ -28,8 +28,8 @@
28
28
  require 'date'
29
29
 
30
30
  module GroupDocsConversionCloud
31
- # Txt convert options
32
- class TxtConvertOptions
31
+ # Options for to Gis conversion
32
+ class GisConvertOptions
33
33
 
34
34
  # Start conversion from FromPage page
35
35
  attr_accessor :from_page
@@ -78,6 +78,18 @@ module GroupDocsConversionCloud
78
78
 
79
79
  # Gets or sets a background color.
80
80
  attr_accessor :background_color
81
+
82
+ # Options for converting to Jpeg-compatible image
83
+ attr_accessor :jpeg_options
84
+
85
+ # Options for converting to PSD-compatible image
86
+ attr_accessor :psd_options
87
+
88
+ # Options for converting to Tiff-compatible image
89
+ attr_accessor :tiff_options
90
+
91
+ # Options for converting to WebP-compatible image
92
+ attr_accessor :webp_options
81
93
  class EnumAttributeValidator
82
94
  attr_reader :datatype
83
95
  attr_reader :allowable_values
@@ -118,7 +130,11 @@ module GroupDocsConversionCloud
118
130
  :'contrast' => :'Contrast',
119
131
  :'gamma' => :'Gamma',
120
132
  :'flip_mode' => :'FlipMode',
121
- :'background_color' => :'BackgroundColor'
133
+ :'background_color' => :'BackgroundColor',
134
+ :'jpeg_options' => :'JpegOptions',
135
+ :'psd_options' => :'PsdOptions',
136
+ :'tiff_options' => :'TiffOptions',
137
+ :'webp_options' => :'WebpOptions'
122
138
  }
123
139
  end
124
140
 
@@ -140,7 +156,11 @@ module GroupDocsConversionCloud
140
156
  :'contrast' => :'Integer',
141
157
  :'gamma' => :'Float',
142
158
  :'flip_mode' => :'String',
143
- :'background_color' => :'String'
159
+ :'background_color' => :'String',
160
+ :'jpeg_options' => :'JpgConvertOptions',
161
+ :'psd_options' => :'PsdConvertOptions',
162
+ :'tiff_options' => :'TiffConvertOptions',
163
+ :'webp_options' => :'WebpConvertOptions'
144
164
  }
145
165
  end
146
166
 
@@ -218,6 +238,22 @@ module GroupDocsConversionCloud
218
238
  self.background_color = attributes[:'BackgroundColor']
219
239
  end
220
240
 
241
+ if attributes.key?(:'JpegOptions')
242
+ self.jpeg_options = attributes[:'JpegOptions']
243
+ end
244
+
245
+ if attributes.key?(:'PsdOptions')
246
+ self.psd_options = attributes[:'PsdOptions']
247
+ end
248
+
249
+ if attributes.key?(:'TiffOptions')
250
+ self.tiff_options = attributes[:'TiffOptions']
251
+ end
252
+
253
+ if attributes.key?(:'WebpOptions')
254
+ self.webp_options = attributes[:'WebpOptions']
255
+ end
256
+
221
257
  end
222
258
 
223
259
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -334,7 +370,11 @@ module GroupDocsConversionCloud
334
370
  contrast == other.contrast &&
335
371
  gamma == other.gamma &&
336
372
  flip_mode == other.flip_mode &&
337
- background_color == other.background_color
373
+ background_color == other.background_color &&
374
+ jpeg_options == other.jpeg_options &&
375
+ psd_options == other.psd_options &&
376
+ tiff_options == other.tiff_options &&
377
+ webp_options == other.webp_options
338
378
  end
339
379
 
340
380
  # @see the `==` method
@@ -346,7 +386,7 @@ module GroupDocsConversionCloud
346
386
  # Calculates hash code according to all attributes.
347
387
  # @return [Fixnum] Hash code
348
388
  def hash
349
- [from_page, pages_count, pages, watermark_options, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, brightness, contrast, gamma, flip_mode, background_color].hash
389
+ [from_page, pages_count, pages, watermark_options, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, brightness, contrast, gamma, flip_mode, background_color, jpeg_options, psd_options, tiff_options, webp_options].hash
350
390
  end
351
391
 
352
392
  # Downcases first letter.
@@ -31,97 +31,12 @@ module GroupDocsConversionCloud
31
31
  # Jpg convert options
32
32
  class JpgConvertOptions
33
33
 
34
- # Start conversion from FromPage page
35
- attr_accessor :from_page
36
-
37
- # Number of pages to convert
38
- attr_accessor :pages_count
39
-
40
- # Convert specific pages. The list contains the page indexes of the pages to be converted
41
- attr_accessor :pages
42
-
43
- # Watermark specific options
44
- attr_accessor :watermark_options
45
-
46
- # Desired image width after conversion
47
- attr_accessor :width
48
-
49
- # Desired image height after conversion
50
- attr_accessor :height
51
-
52
- # Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96dpi
53
- attr_accessor :horizontal_resolution
54
-
55
- # Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96dpi
56
- attr_accessor :vertical_resolution
57
-
58
- # Convert to grayscale image
59
- attr_accessor :grayscale
60
-
61
- # Image rotation angle
62
- attr_accessor :rotate_angle
63
-
64
- # If true, the input firstly is converted to PDF and after that to desired format
65
- attr_accessor :use_pdf
66
-
67
- # Adjust image brightness
68
- attr_accessor :brightness
69
-
70
- # Adjust image contrast
71
- attr_accessor :contrast
72
-
73
- # Adjust image gamma
74
- attr_accessor :gamma
75
-
76
- # Image flip mode
77
- attr_accessor :flip_mode
78
-
79
- # Gets or sets a background color.
80
- attr_accessor :background_color
81
-
82
34
  # Desired image quality when converting to Jpeg. The value must be between 0 and 100. The default value is 100.
83
35
  attr_accessor :quality
84
- class EnumAttributeValidator
85
- attr_reader :datatype
86
- attr_reader :allowable_values
87
-
88
- def initialize(datatype, allowable_values)
89
- @allowable_values = allowable_values.map do |value|
90
- case datatype.to_s
91
- when /Integer/i
92
- value.to_i
93
- when /Float/i
94
- value.to_f
95
- else
96
- value
97
- end
98
- end
99
- end
100
-
101
- def valid?(value)
102
- !value || allowable_values.include?(value)
103
- end
104
- end
105
36
 
106
37
  # Attribute mapping from ruby-style variable name to JSON key.
107
38
  def self.attribute_map
108
39
  {
109
- :'from_page' => :'FromPage',
110
- :'pages_count' => :'PagesCount',
111
- :'pages' => :'Pages',
112
- :'watermark_options' => :'WatermarkOptions',
113
- :'width' => :'Width',
114
- :'height' => :'Height',
115
- :'horizontal_resolution' => :'HorizontalResolution',
116
- :'vertical_resolution' => :'VerticalResolution',
117
- :'grayscale' => :'Grayscale',
118
- :'rotate_angle' => :'RotateAngle',
119
- :'use_pdf' => :'UsePdf',
120
- :'brightness' => :'Brightness',
121
- :'contrast' => :'Contrast',
122
- :'gamma' => :'Gamma',
123
- :'flip_mode' => :'FlipMode',
124
- :'background_color' => :'BackgroundColor',
125
40
  :'quality' => :'Quality'
126
41
  }
127
42
  end
@@ -129,22 +44,6 @@ module GroupDocsConversionCloud
129
44
  # Attribute type mapping.
130
45
  def self.swagger_types
131
46
  {
132
- :'from_page' => :'Integer',
133
- :'pages_count' => :'Integer',
134
- :'pages' => :'Array<Integer>',
135
- :'watermark_options' => :'WatermarkOptions',
136
- :'width' => :'Integer',
137
- :'height' => :'Integer',
138
- :'horizontal_resolution' => :'Integer',
139
- :'vertical_resolution' => :'Integer',
140
- :'grayscale' => :'BOOLEAN',
141
- :'rotate_angle' => :'Integer',
142
- :'use_pdf' => :'BOOLEAN',
143
- :'brightness' => :'Integer',
144
- :'contrast' => :'Integer',
145
- :'gamma' => :'Float',
146
- :'flip_mode' => :'String',
147
- :'background_color' => :'String',
148
47
  :'quality' => :'Integer'
149
48
  }
150
49
  end
@@ -157,72 +56,6 @@ module GroupDocsConversionCloud
157
56
  # convert string to symbol for hash key
158
57
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
159
58
 
160
- if attributes.key?(:'FromPage')
161
- self.from_page = attributes[:'FromPage']
162
- end
163
-
164
- if attributes.key?(:'PagesCount')
165
- self.pages_count = attributes[:'PagesCount']
166
- end
167
-
168
- if attributes.key?(:'Pages')
169
- if (value = attributes[:'Pages']).is_a?(Array)
170
- self.pages = value
171
- end
172
- end
173
-
174
- if attributes.key?(:'WatermarkOptions')
175
- self.watermark_options = attributes[:'WatermarkOptions']
176
- end
177
-
178
- if attributes.key?(:'Width')
179
- self.width = attributes[:'Width']
180
- end
181
-
182
- if attributes.key?(:'Height')
183
- self.height = attributes[:'Height']
184
- end
185
-
186
- if attributes.key?(:'HorizontalResolution')
187
- self.horizontal_resolution = attributes[:'HorizontalResolution']
188
- end
189
-
190
- if attributes.key?(:'VerticalResolution')
191
- self.vertical_resolution = attributes[:'VerticalResolution']
192
- end
193
-
194
- if attributes.key?(:'Grayscale')
195
- self.grayscale = attributes[:'Grayscale']
196
- end
197
-
198
- if attributes.key?(:'RotateAngle')
199
- self.rotate_angle = attributes[:'RotateAngle']
200
- end
201
-
202
- if attributes.key?(:'UsePdf')
203
- self.use_pdf = attributes[:'UsePdf']
204
- end
205
-
206
- if attributes.key?(:'Brightness')
207
- self.brightness = attributes[:'Brightness']
208
- end
209
-
210
- if attributes.key?(:'Contrast')
211
- self.contrast = attributes[:'Contrast']
212
- end
213
-
214
- if attributes.key?(:'Gamma')
215
- self.gamma = attributes[:'Gamma']
216
- end
217
-
218
- if attributes.key?(:'FlipMode')
219
- self.flip_mode = attributes[:'FlipMode']
220
- end
221
-
222
- if attributes.key?(:'BackgroundColor')
223
- self.background_color = attributes[:'BackgroundColor']
224
- end
225
-
226
59
  if attributes.key?(:'Quality')
227
60
  self.quality = attributes[:'Quality']
228
61
  end
@@ -233,58 +66,6 @@ module GroupDocsConversionCloud
233
66
  # @return Array for valid properies with the reasons
234
67
  def list_invalid_properties
235
68
  invalid_properties = []
236
- if @from_page.nil?
237
- invalid_properties.push("invalid value for 'from_page', from_page cannot be nil.")
238
- end
239
-
240
- if @pages_count.nil?
241
- invalid_properties.push("invalid value for 'pages_count', pages_count cannot be nil.")
242
- end
243
-
244
- if @width.nil?
245
- invalid_properties.push("invalid value for 'width', width cannot be nil.")
246
- end
247
-
248
- if @height.nil?
249
- invalid_properties.push("invalid value for 'height', height cannot be nil.")
250
- end
251
-
252
- if @horizontal_resolution.nil?
253
- invalid_properties.push("invalid value for 'horizontal_resolution', horizontal_resolution cannot be nil.")
254
- end
255
-
256
- if @vertical_resolution.nil?
257
- invalid_properties.push("invalid value for 'vertical_resolution', vertical_resolution cannot be nil.")
258
- end
259
-
260
- if @grayscale.nil?
261
- invalid_properties.push("invalid value for 'grayscale', grayscale cannot be nil.")
262
- end
263
-
264
- if @rotate_angle.nil?
265
- invalid_properties.push("invalid value for 'rotate_angle', rotate_angle cannot be nil.")
266
- end
267
-
268
- if @use_pdf.nil?
269
- invalid_properties.push("invalid value for 'use_pdf', use_pdf cannot be nil.")
270
- end
271
-
272
- if @brightness.nil?
273
- invalid_properties.push("invalid value for 'brightness', brightness cannot be nil.")
274
- end
275
-
276
- if @contrast.nil?
277
- invalid_properties.push("invalid value for 'contrast', contrast cannot be nil.")
278
- end
279
-
280
- if @gamma.nil?
281
- invalid_properties.push("invalid value for 'gamma', gamma cannot be nil.")
282
- end
283
-
284
- if @flip_mode.nil?
285
- invalid_properties.push("invalid value for 'flip_mode', flip_mode cannot be nil.")
286
- end
287
-
288
69
  if @quality.nil?
289
70
  invalid_properties.push("invalid value for 'quality', quality cannot be nil.")
290
71
  end
@@ -295,60 +76,15 @@ module GroupDocsConversionCloud
295
76
  # Check to see if the all the properties in the model are valid
296
77
  # @return true if the model is valid
297
78
  def valid?
298
- return false if @from_page.nil?
299
- return false if @pages_count.nil?
300
- return false if @width.nil?
301
- return false if @height.nil?
302
- return false if @horizontal_resolution.nil?
303
- return false if @vertical_resolution.nil?
304
- return false if @grayscale.nil?
305
- return false if @rotate_angle.nil?
306
- return false if @use_pdf.nil?
307
- return false if @brightness.nil?
308
- return false if @contrast.nil?
309
- return false if @gamma.nil?
310
- return false if @flip_mode.nil?
311
- flip_mode_validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
312
- return false unless flip_mode_validator.valid?(@flip_mode)
313
79
  return false if @quality.nil?
314
80
  return true
315
81
  end
316
82
 
317
- # Custom attribute writer method checking allowed values (enum).
318
- # @param [Object] flip_mode Object to be assigned
319
- def flip_mode=(flip_mode)
320
- validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
321
- if flip_mode.to_i == 0
322
- unless validator.valid?(flip_mode)
323
- raise ArgumentError, "invalid value for 'flip_mode', must be one of #{validator.allowable_values}."
324
- end
325
- @flip_mode = flip_mode
326
- else
327
- @flip_mode = validator.allowable_values[flip_mode.to_i]
328
- end
329
- end
330
-
331
83
  # Checks equality by comparing each attribute.
332
84
  # @param [Object] Object to be compared
333
85
  def ==(other)
334
86
  return true if self.equal?(other)
335
87
  self.class == other.class &&
336
- from_page == other.from_page &&
337
- pages_count == other.pages_count &&
338
- pages == other.pages &&
339
- watermark_options == other.watermark_options &&
340
- width == other.width &&
341
- height == other.height &&
342
- horizontal_resolution == other.horizontal_resolution &&
343
- vertical_resolution == other.vertical_resolution &&
344
- grayscale == other.grayscale &&
345
- rotate_angle == other.rotate_angle &&
346
- use_pdf == other.use_pdf &&
347
- brightness == other.brightness &&
348
- contrast == other.contrast &&
349
- gamma == other.gamma &&
350
- flip_mode == other.flip_mode &&
351
- background_color == other.background_color &&
352
88
  quality == other.quality
353
89
  end
354
90
 
@@ -361,7 +97,7 @@ module GroupDocsConversionCloud
361
97
  # Calculates hash code according to all attributes.
362
98
  # @return [Fixnum] Hash code
363
99
  def hash
364
- [from_page, pages_count, pages, watermark_options, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, brightness, contrast, gamma, flip_mode, background_color, quality].hash
100
+ [quality].hash
365
101
  end
366
102
 
367
103
  # Downcases first letter.
@@ -28,7 +28,7 @@
28
28
  require 'date'
29
29
 
30
30
  module GroupDocsConversionCloud
31
- # Page description langusge convert options
31
+ # Page description language convert options
32
32
  class PDLConvertOptions
33
33
 
34
34
  # Start conversion from FromPage page
@@ -43,13 +43,21 @@ module GroupDocsConversionCloud
43
43
  # Watermark specific options
44
44
  attr_accessor :watermark_options
45
45
 
46
+ # Desired page width after conversion.
47
+ attr_accessor :width
48
+
49
+ # Desired page height after conversion.
50
+ attr_accessor :height
51
+
46
52
  # Attribute mapping from ruby-style variable name to JSON key.
47
53
  def self.attribute_map
48
54
  {
49
55
  :'from_page' => :'FromPage',
50
56
  :'pages_count' => :'PagesCount',
51
57
  :'pages' => :'Pages',
52
- :'watermark_options' => :'WatermarkOptions'
58
+ :'watermark_options' => :'WatermarkOptions',
59
+ :'width' => :'Width',
60
+ :'height' => :'Height'
53
61
  }
54
62
  end
55
63
 
@@ -59,7 +67,9 @@ module GroupDocsConversionCloud
59
67
  :'from_page' => :'Integer',
60
68
  :'pages_count' => :'Integer',
61
69
  :'pages' => :'Array<Integer>',
62
- :'watermark_options' => :'WatermarkOptions'
70
+ :'watermark_options' => :'WatermarkOptions',
71
+ :'width' => :'Integer',
72
+ :'height' => :'Integer'
63
73
  }
64
74
  end
65
75
 
@@ -89,6 +99,14 @@ module GroupDocsConversionCloud
89
99
  self.watermark_options = attributes[:'WatermarkOptions']
90
100
  end
91
101
 
102
+ if attributes.key?(:'Width')
103
+ self.width = attributes[:'Width']
104
+ end
105
+
106
+ if attributes.key?(:'Height')
107
+ self.height = attributes[:'Height']
108
+ end
109
+
92
110
  end
93
111
 
94
112
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -103,6 +121,14 @@ module GroupDocsConversionCloud
103
121
  invalid_properties.push("invalid value for 'pages_count', pages_count cannot be nil.")
104
122
  end
105
123
 
124
+ if @width.nil?
125
+ invalid_properties.push("invalid value for 'width', width cannot be nil.")
126
+ end
127
+
128
+ if @height.nil?
129
+ invalid_properties.push("invalid value for 'height', height cannot be nil.")
130
+ end
131
+
106
132
  return invalid_properties
107
133
  end
108
134
 
@@ -111,6 +137,8 @@ module GroupDocsConversionCloud
111
137
  def valid?
112
138
  return false if @from_page.nil?
113
139
  return false if @pages_count.nil?
140
+ return false if @width.nil?
141
+ return false if @height.nil?
114
142
  return true
115
143
  end
116
144
 
@@ -122,7 +150,9 @@ module GroupDocsConversionCloud
122
150
  from_page == other.from_page &&
123
151
  pages_count == other.pages_count &&
124
152
  pages == other.pages &&
125
- watermark_options == other.watermark_options
153
+ watermark_options == other.watermark_options &&
154
+ width == other.width &&
155
+ height == other.height
126
156
  end
127
157
 
128
158
  # @see the `==` method
@@ -134,7 +164,7 @@ module GroupDocsConversionCloud
134
164
  # Calculates hash code according to all attributes.
135
165
  # @return [Fixnum] Hash code
136
166
  def hash
137
- [from_page, pages_count, pages, watermark_options].hash
167
+ [from_page, pages_count, pages, watermark_options, width, height].hash
138
168
  end
139
169
 
140
170
  # Downcases first letter.