Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldTextOptions

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 for the Text field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldTextOptions

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldTextOptions.



2091
2092
2093
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2091

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)


2084
2085
2086
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2084

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)


2089
2090
2091
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2089

def min_length
  @min_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2096
2097
2098
2099
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2096

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