Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldLimits

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

Field constants governing the structure of a field; such as, the maximum title length, minimum and maximum field values or length, etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2FieldLimits

Returns a new instance of GoogleAppsDriveLabelsV2FieldLimits.



1651
1652
1653
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1651

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

Instance Attribute Details

#date_limitsGoogle::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2DateLimits

Limits for date field type. Corresponds to the JSON property dateLimits



1609
1610
1611
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1609

def date_limits
  @date_limits
end

#integer_limitsGoogle::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2IntegerLimits

Limits for integer field type. Corresponds to the JSON property integerLimits



1614
1615
1616
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1614

def integer_limits
  @integer_limits
end

#long_text_limitsGoogle::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2LongTextLimits

Limits for long text field type. Corresponds to the JSON property longTextLimits



1619
1620
1621
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1619

def long_text_limits
  @long_text_limits
end

#max_description_lengthFixnum

Limits for field description, also called help text. Corresponds to the JSON property maxDescriptionLength

Returns:

  • (Fixnum)


1624
1625
1626
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1624

def max_description_length
  @max_description_length
end

#max_display_name_lengthFixnum

Limits for field title. Corresponds to the JSON property maxDisplayNameLength

Returns:

  • (Fixnum)


1629
1630
1631
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1629

def max_display_name_length
  @max_display_name_length
end

#max_id_lengthFixnum

Maximum length for the id. Corresponds to the JSON property maxIdLength

Returns:

  • (Fixnum)


1634
1635
1636
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1634

def max_id_length
  @max_id_length
end

#selection_limitsGoogle::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2SelectionLimits

Limits for selection field type. Corresponds to the JSON property selectionLimits



1639
1640
1641
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1639

def selection_limits
  @selection_limits
end

#text_limitsGoogle::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2TextLimits

Limits for text field type. Corresponds to the JSON property textLimits



1644
1645
1646
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1644

def text_limits
  @text_limits
end

#user_limitsGoogle::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2UserLimits

Limits for Field.Type.USER. Corresponds to the JSON property userLimits



1649
1650
1651
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1649

def user_limits
  @user_limits
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1656

def update!(**args)
  @date_limits = args[:date_limits] if args.key?(:date_limits)
  @integer_limits = args[:integer_limits] if args.key?(:integer_limits)
  @long_text_limits = args[:long_text_limits] if args.key?(:long_text_limits)
  @max_description_length = args[:max_description_length] if args.key?(:max_description_length)
  @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)
  @selection_limits = args[:selection_limits] if args.key?(:selection_limits)
  @text_limits = args[:text_limits] if args.key?(:text_limits)
  @user_limits = args[:user_limits] if args.key?(:user_limits)
end