@@ -40,6 +40,9 @@ class BmpConvertOptions
4040 # Convert specific pages. The list contains the page indexes of the pages to be converted
4141 attr_accessor :pages
4242
43+ # Watermark specific options
44+ attr_accessor :watermark_options
45+
4346 # Desired image width after conversion
4447 attr_accessor :width
4548
@@ -61,9 +64,6 @@ class BmpConvertOptions
6164 # If true, the input firstly is converted to PDF and after that to desired format
6265 attr_accessor :use_pdf
6366
64- # Watermark specific options
65- attr_accessor :watermark_options
66-
6767 # Adjust image brightness
6868 attr_accessor :brightness
6969
@@ -103,14 +103,14 @@ def self.attribute_map
103103 :'from_page' => :'FromPage' ,
104104 :'pages_count' => :'PagesCount' ,
105105 :'pages' => :'Pages' ,
106+ :'watermark_options' => :'WatermarkOptions' ,
106107 :'width' => :'Width' ,
107108 :'height' => :'Height' ,
108109 :'horizontal_resolution' => :'HorizontalResolution' ,
109110 :'vertical_resolution' => :'VerticalResolution' ,
110111 :'grayscale' => :'Grayscale' ,
111112 :'rotate_angle' => :'RotateAngle' ,
112113 :'use_pdf' => :'UsePdf' ,
113- :'watermark_options' => :'WatermarkOptions' ,
114114 :'brightness' => :'Brightness' ,
115115 :'contrast' => :'Contrast' ,
116116 :'gamma' => :'Gamma' ,
@@ -124,14 +124,14 @@ def self.swagger_types
124124 :'from_page' => :'Integer' ,
125125 :'pages_count' => :'Integer' ,
126126 :'pages' => :'Array<Integer>' ,
127+ :'watermark_options' => :'WatermarkOptions' ,
127128 :'width' => :'Integer' ,
128129 :'height' => :'Integer' ,
129130 :'horizontal_resolution' => :'Integer' ,
130131 :'vertical_resolution' => :'Integer' ,
131132 :'grayscale' => :'BOOLEAN' ,
132133 :'rotate_angle' => :'Integer' ,
133134 :'use_pdf' => :'BOOLEAN' ,
134- :'watermark_options' => :'WatermarkOptions' ,
135135 :'brightness' => :'Integer' ,
136136 :'contrast' => :'Integer' ,
137137 :'gamma' => :'Float' ,
@@ -161,6 +161,10 @@ def initialize(attributes = {})
161161 end
162162 end
163163
164+ if attributes . key? ( :'WatermarkOptions' )
165+ self . watermark_options = attributes [ :'WatermarkOptions' ]
166+ end
167+
164168 if attributes . key? ( :'Width' )
165169 self . width = attributes [ :'Width' ]
166170 end
@@ -189,10 +193,6 @@ def initialize(attributes = {})
189193 self . use_pdf = attributes [ :'UsePdf' ]
190194 end
191195
192- if attributes . key? ( :'WatermarkOptions' )
193- self . watermark_options = attributes [ :'WatermarkOptions' ]
194- end
195-
196196 if attributes . key? ( :'Brightness' )
197197 self . brightness = attributes [ :'Brightness' ]
198198 end
@@ -313,14 +313,14 @@ def ==(other)
313313 from_page == other . from_page &&
314314 pages_count == other . pages_count &&
315315 pages == other . pages &&
316+ watermark_options == other . watermark_options &&
316317 width == other . width &&
317318 height == other . height &&
318319 horizontal_resolution == other . horizontal_resolution &&
319320 vertical_resolution == other . vertical_resolution &&
320321 grayscale == other . grayscale &&
321322 rotate_angle == other . rotate_angle &&
322323 use_pdf == other . use_pdf &&
323- watermark_options == other . watermark_options &&
324324 brightness == other . brightness &&
325325 contrast == other . contrast &&
326326 gamma == other . gamma &&
@@ -336,7 +336,7 @@ def eql?(other)
336336 # Calculates hash code according to all attributes.
337337 # @return [Fixnum] Hash code
338338 def hash
339- [ from_page , pages_count , pages , width , height , horizontal_resolution , vertical_resolution , grayscale , rotate_angle , use_pdf , watermark_options , brightness , contrast , gamma , flip_mode ] . hash
339+ [ from_page , pages_count , pages , watermark_options , width , height , horizontal_resolution , vertical_resolution , grayscale , rotate_angle , use_pdf , brightness , contrast , gamma , flip_mode ] . hash
340340 end
341341
342342 # Downcases first letter.
0 commit comments