Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldLimits

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

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) ⇒ GoogleAppsDriveLabelsV2betaFieldLimits

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldLimits.



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

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

Instance Attribute Details

#date_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaDateLimits

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



1607
1608
1609
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1607

def date_limits
  @date_limits
end

#integer_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaIntegerLimits

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



1612
1613
1614
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1612

def integer_limits
  @integer_limits
end

#long_text_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLongTextLimits

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



1617
1618
1619
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1617

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)


1622
1623
1624
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1622

def max_description_length
  @max_description_length
end

#max_display_name_lengthFixnum

Limits for Field title. Corresponds to the JSON property maxDisplayNameLength

Returns:

  • (Fixnum)


1627
1628
1629
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1627

def max_display_name_length
  @max_display_name_length
end

#max_id_lengthFixnum

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

Returns:

  • (Fixnum)


1632
1633
1634
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1632

def max_id_length
  @max_id_length
end

#selection_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaSelectionLimits

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



1637
1638
1639
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1637

def selection_limits
  @selection_limits
end

#text_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaTextLimits

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



1642
1643
1644
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1642

def text_limits
  @text_limits
end

#user_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserLimits

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



1647
1648
1649
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1647

def user_limits
  @user_limits
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1654

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