Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaTextLimits
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaTextLimits
- 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
Limits for text Field type.
Instance Attribute Summary collapse
-
#max_length ⇒ Fixnum
Maximum length allowed for a text Field type.
-
#min_length ⇒ Fixnum
Minimum length allowed for a text Field type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaTextLimits
constructor
A new instance of GoogleAppsDriveLabelsV2betaTextLimits.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaTextLimits
Returns a new instance of GoogleAppsDriveLabelsV2betaTextLimits.
3016 3017 3018 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3016 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_length ⇒ Fixnum
Maximum length allowed for a text Field type.
Corresponds to the JSON property maxLength
3009 3010 3011 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3009 def max_length @max_length end |
#min_length ⇒ Fixnum
Minimum length allowed for a text Field type.
Corresponds to the JSON property minLength
3014 3015 3016 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3014 def min_length @min_length end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3021 3022 3023 3024 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3021 def update!(**args) @max_length = args[:max_length] if args.key?(:max_length) @min_length = args[:min_length] if args.key?(:min_length) end |