Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldTextOptions

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

Overview

Options for the Text field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2FieldTextOptions

Returns a new instance of GoogleAppsDriveLabelsV2FieldTextOptions.



985
986
987
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 985

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)


978
979
980
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 978

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)


983
984
985
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 983

def min_length
  @min_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



990
991
992
993
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 990

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