@@ -94,6 +94,9 @@ class AnnotationInfo
9494 # Gets or sets the annotation's background color
9595 attr_accessor :background_color
9696
97+ # Gets or sets annotation color
98+ attr_accessor :squiggly_color
99+
97100 # Gets or sets the annotation's font family
98101 attr_accessor :font_family
99102
@@ -114,6 +117,9 @@ class AnnotationInfo
114117
115118 # Gets or sets image file path in cloud storage, for Image annotations
116119 attr_accessor :image_path
120+
121+ # Sets auto scale for watermark annotation
122+ attr_accessor :auto_scale
117123 class EnumAttributeValidator
118124 attr_reader :datatype
119125 attr_reader :allowable_values
@@ -160,13 +166,15 @@ def self.attribute_map
160166 :'pen_width' => :'PenWidth' ,
161167 :'pen_style' => :'PenStyle' ,
162168 :'background_color' => :'BackgroundColor' ,
169+ :'squiggly_color' => :'SquigglyColor' ,
163170 :'font_family' => :'FontFamily' ,
164171 :'font_size' => :'FontSize' ,
165172 :'opacity' => :'Opacity' ,
166173 :'angle' => :'Angle' ,
167174 :'z_index' => :'ZIndex' ,
168175 :'url' => :'Url' ,
169- :'image_path' => :'ImagePath'
176+ :'image_path' => :'ImagePath' ,
177+ :'auto_scale' => :'AutoScale'
170178 }
171179 end
172180
@@ -194,13 +202,15 @@ def self.swagger_types
194202 :'pen_width' => :'Integer' ,
195203 :'pen_style' => :'String' ,
196204 :'background_color' => :'Integer' ,
205+ :'squiggly_color' => :'Integer' ,
197206 :'font_family' => :'String' ,
198207 :'font_size' => :'Float' ,
199208 :'opacity' => :'Float' ,
200209 :'angle' => :'Float' ,
201210 :'z_index' => :'Integer' ,
202211 :'url' => :'String' ,
203- :'image_path' => :'String'
212+ :'image_path' => :'String' ,
213+ :'auto_scale' => :'BOOLEAN'
204214 }
205215 end
206216
@@ -300,6 +310,10 @@ def initialize(attributes = {})
300310 self . background_color = attributes [ :'BackgroundColor' ]
301311 end
302312
313+ if attributes . key? ( :'SquigglyColor' )
314+ self . squiggly_color = attributes [ :'SquigglyColor' ]
315+ end
316+
303317 if attributes . key? ( :'FontFamily' )
304318 self . font_family = attributes [ :'FontFamily' ]
305319 end
@@ -328,6 +342,10 @@ def initialize(attributes = {})
328342 self . image_path = attributes [ :'ImagePath' ]
329343 end
330344
345+ if attributes . key? ( :'AutoScale' )
346+ self . auto_scale = attributes [ :'AutoScale' ]
347+ end
348+
331349 end
332350
333351 # Show invalid properties with the reasons. Usually used together with valid?
@@ -366,6 +384,10 @@ def list_invalid_properties
366384 invalid_properties . push ( "invalid value for 'z_index', z_index cannot be nil." )
367385 end
368386
387+ if @auto_scale . nil?
388+ invalid_properties . push ( "invalid value for 'auto_scale', auto_scale cannot be nil." )
389+ end
390+
369391 return invalid_properties
370392 end
371393
@@ -382,12 +404,13 @@ def valid?
382404 return false if @creator_id . nil?
383405 return false if @box . nil?
384406 return false if @type . nil?
385- type_validator = EnumAttributeValidator . new ( 'String' , [ "None" , "Area" , "Arrow" , "Distance" , "Ellipse" , "Link" , "Point" , "Polyline" , "ResourcesRedaction" , "TextField" , "TextHighlight" , "TextRedaction" , "TextReplacement" , "TextStrikeout" , "TextUnderline" , "Watermark" , "Image" ] )
407+ type_validator = EnumAttributeValidator . new ( 'String' , [ "None" , "Area" , "Arrow" , "Distance" , "Ellipse" , "Link" , "Point" , "Polyline" , "ResourcesRedaction" , "TextField" , "TextHighlight" , "TextRedaction" , "TextReplacement" , "TextStrikeout" , "TextUnderline" , "Watermark" , "Image" , "TextSquiggly" ] )
386408 return false unless type_validator . valid? ( @type )
387409 return false if @created_on . nil?
388410 pen_style_validator = EnumAttributeValidator . new ( 'String' , [ "Solid" , "Dash" , "DashDot" , "Dot" , "LongDash" , "DashDotDot" ] )
389411 return false unless pen_style_validator . valid? ( @pen_style )
390412 return false if @z_index . nil?
413+ return false if @auto_scale . nil?
391414 return true
392415 end
393416
@@ -424,7 +447,7 @@ def vertical_alignment=(vertical_alignment)
424447 # Custom attribute writer method checking allowed values (enum).
425448 # @param [Object] type Object to be assigned
426449 def type = ( type )
427- validator = EnumAttributeValidator . new ( 'String' , [ "None" , "Area" , "Arrow" , "Distance" , "Ellipse" , "Link" , "Point" , "Polyline" , "ResourcesRedaction" , "TextField" , "TextHighlight" , "TextRedaction" , "TextReplacement" , "TextStrikeout" , "TextUnderline" , "Watermark" , "Image" ] )
450+ validator = EnumAttributeValidator . new ( 'String' , [ "None" , "Area" , "Arrow" , "Distance" , "Ellipse" , "Link" , "Point" , "Polyline" , "ResourcesRedaction" , "TextField" , "TextHighlight" , "TextRedaction" , "TextReplacement" , "TextStrikeout" , "TextUnderline" , "Watermark" , "Image" , "TextSquiggly" ] )
428451 if type . to_i == 0
429452 unless validator . valid? ( type )
430453 # raise ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
@@ -477,13 +500,15 @@ def ==(other)
477500 pen_width == other . pen_width &&
478501 pen_style == other . pen_style &&
479502 background_color == other . background_color &&
503+ squiggly_color == other . squiggly_color &&
480504 font_family == other . font_family &&
481505 font_size == other . font_size &&
482506 opacity == other . opacity &&
483507 angle == other . angle &&
484508 z_index == other . z_index &&
485509 url == other . url &&
486- image_path == other . image_path
510+ image_path == other . image_path &&
511+ auto_scale == other . auto_scale
487512 end
488513
489514 # @see the `==` method
@@ -495,7 +520,7 @@ def eql?(other)
495520 # Calculates hash code according to all attributes.
496521 # @return [Fixnum] Hash code
497522 def hash
498- [ id , text , text_to_replace , horizontal_alignment , vertical_alignment , creator_id , creator_name , creator_email , box , points , page_number , annotation_position , svg_path , type , replies , created_on , font_color , pen_color , pen_width , pen_style , background_color , font_family , font_size , opacity , angle , z_index , url , image_path ] . hash
523+ [ id , text , text_to_replace , horizontal_alignment , vertical_alignment , creator_id , creator_name , creator_email , box , points , page_number , annotation_position , svg_path , type , replies , created_on , font_color , pen_color , pen_width , pen_style , background_color , squiggly_color , font_family , font_size , opacity , angle , z_index , url , image_path , auto_scale ] . hash
499524 end
500525
501526 # Downcases first letter.
0 commit comments