Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaSelectionLimits

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 selection field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaSelectionLimits

Returns a new instance of GoogleAppsDriveLabelsV2betaSelectionLimits.



3009
3010
3011
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3009

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

Instance Attribute Details

#list_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaListLimits

Limits for list-variant of a field type. Corresponds to the JSON property listLimits



2987
2988
2989
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2987

def list_limits
  @list_limits
end

#max_choicesFixnum

Maximum number of choices. Corresponds to the JSON property maxChoices

Returns:

  • (Fixnum)


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

def max_choices
  @max_choices
end

#max_deleted_choicesFixnum

Maximum number of deleted choices. Corresponds to the JSON property maxDeletedChoices

Returns:

  • (Fixnum)


2997
2998
2999
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2997

def max_deleted_choices
  @max_deleted_choices
end

#max_display_name_lengthFixnum

Maximum length for display name. Corresponds to the JSON property maxDisplayNameLength

Returns:

  • (Fixnum)


3002
3003
3004
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3002

def max_display_name_length
  @max_display_name_length
end

#max_id_lengthFixnum

Maximum ID length for a selection option. Corresponds to the JSON property maxIdLength

Returns:

  • (Fixnum)


3007
3008
3009
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3007

def max_id_length
  @max_id_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3014
3015
3016
3017
3018
3019
3020
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 3014

def update!(**args)
  @list_limits = args[:list_limits] if args.key?(:list_limits)
  @max_choices = args[:max_choices] if args.key?(:max_choices)
  @max_deleted_choices = args[:max_deleted_choices] if args.key?(:max_deleted_choices)
  @max_display_name_length = args[:max_display_name_length] if args.key?(:max_display_name_length)
  @max_id_length = args[:max_id_length] if args.key?(:max_id_length)
end