Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldLongTextOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drivelabels_v2beta/classes.rb,
lib/google/apis/drivelabels_v2beta/representations.rb,
lib/google/apis/drivelabels_v2beta/representations.rb

Overview

Options the Long Text field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldLongTextOptions

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldLongTextOptions.



1706
1707
1708
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1706

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#max_lengthFixnum

Output only. The maximum valid length of values for the text field. Corresponds to the JSON property maxLength

Returns:

  • (Fixnum)


1699
1700
1701
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1699

def max_length
  @max_length
end

#min_lengthFixnum

Output only. The minimum valid length of values for the text field. Corresponds to the JSON property minLength

Returns:

  • (Fixnum)


1704
1705
1706
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1704

def min_length
  @min_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1711
1712
1713
1714
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1711

def update!(**args)
  @max_length = args[:max_length] if args.key?(:max_length)
  @min_length = args[:min_length] if args.key?(:min_length)
end