Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldProperties

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

The basic properties of the field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldProperties

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldProperties.



1707
1708
1709
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1707

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

Instance Attribute Details

#display_nameString

Required. The display text to show in the UI identifying this field. Corresponds to the JSON property displayName

Returns:

  • (String)


1693
1694
1695
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1693

def display_name
  @display_name
end

#insert_before_fieldString

Input only. Insert or move this field before the indicated field. If empty, the field is placed at the end of the list. Corresponds to the JSON property insertBeforeField

Returns:

  • (String)


1699
1700
1701
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1699

def insert_before_field
  @insert_before_field
end

#requiredBoolean Also known as: required?

Whether the field should be marked as required. Corresponds to the JSON property required

Returns:

  • (Boolean)


1704
1705
1706
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1704

def required
  @required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1712
1713
1714
1715
1716
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1712

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @insert_before_field = args[:insert_before_field] if args.key?(:insert_before_field)
  @required = args[:required] if args.key?(:required)
end