Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldDisplayHints

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

UI display hints for rendering a field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldDisplayHints

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldDisplayHints.



1561
1562
1563
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1561

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

Instance Attribute Details

#disabledBoolean Also known as: disabled?

Whether the field should be shown in the UI as disabled. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


1539
1540
1541
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1539

def disabled
  @disabled
end

#hidden_in_searchBoolean Also known as: hidden_in_search?

This field should be hidden in the search menu when searching for Drive items. Corresponds to the JSON property hiddenInSearch

Returns:

  • (Boolean)


1545
1546
1547
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1545

def hidden_in_search
  @hidden_in_search
end

#requiredBoolean Also known as: required?

Whether the field should be shown as required in the UI. Corresponds to the JSON property required

Returns:

  • (Boolean)


1551
1552
1553
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1551

def required
  @required
end

#shown_in_applyBoolean Also known as: shown_in_apply?

This field should be shown in the apply menu when applying values to a Drive item. Corresponds to the JSON property shownInApply

Returns:

  • (Boolean)


1558
1559
1560
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1558

def shown_in_apply
  @shown_in_apply
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1566
1567
1568
1569
1570
1571
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1566

def update!(**args)
  @disabled = args[:disabled] if args.key?(:disabled)
  @hidden_in_search = args[:hidden_in_search] if args.key?(:hidden_in_search)
  @required = args[:required] if args.key?(:required)
  @shown_in_apply = args[:shown_in_apply] if args.key?(:shown_in_apply)
end