Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldTextOptions
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldTextOptions
- 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 for the Text field type.
Instance Attribute Summary collapse
-
#max_length ⇒ Fixnum
Output only.
-
#min_length ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldTextOptions
constructor
A new instance of GoogleAppsDriveLabelsV2betaFieldTextOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldTextOptions
Returns a new instance of GoogleAppsDriveLabelsV2betaFieldTextOptions.
2122 2123 2124 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2122 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_length ⇒ Fixnum
Output only. The maximum valid length of values for the text field.
Corresponds to the JSON property maxLength
2115 2116 2117 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2115 def max_length @max_length end |
#min_length ⇒ Fixnum
Output only. The minimum valid length of values for the text field.
Corresponds to the JSON property minLength
2120 2121 2122 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2120 def min_length @min_length end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2127 2128 2129 2130 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2127 def update!(**args) @max_length = args[:max_length] if args.key?(:max_length) @min_length = args[:min_length] if args.key?(:min_length) end |