Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaTextLimits

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

Limits for text Field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaTextLimits

Returns a new instance of GoogleAppsDriveLabelsV2betaTextLimits.



2985
2986
2987
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2985

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

Instance Attribute Details

#max_lengthFixnum

Maximum length allowed for a text Field type. Corresponds to the JSON property maxLength

Returns:

  • (Fixnum)


2978
2979
2980
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2978

def max_length
  @max_length
end

#min_lengthFixnum

Minimum length allowed for a text Field type. Corresponds to the JSON property minLength

Returns:

  • (Fixnum)


2983
2984
2985
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2983

def min_length
  @min_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2990
2991
2992
2993
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2990

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