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.



1655
1656
1657
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1655

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



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

def date_limits
  @date_limits
end

#integer_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaIntegerLimits

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



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

def integer_limits
  @integer_limits
end

#long_text_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLongTextLimits

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



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

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)


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

def max_description_length
  @max_description_length
end

#max_display_name_lengthFixnum

Limits for Field title. Corresponds to the JSON property maxDisplayNameLength

Returns:

  • (Fixnum)


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

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)


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

def max_id_length
  @max_id_length
end

#selection_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaSelectionLimits

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



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

def selection_limits
  @selection_limits
end

#text_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaTextLimits

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



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

def text_limits
  @text_limits
end

#user_limitsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaUserLimits

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



1653
1654
1655
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1653

def user_limits
  @user_limits
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1660

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