Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldDisplayHints
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldDisplayHints
- 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
-
#disabled ⇒ Boolean
(also: #disabled?)
Whether the field should be shown in the UI as disabled.
-
#hidden_in_search ⇒ Boolean
(also: #hidden_in_search?)
This field should be hidden in the search menu when searching for Drive items.
-
#required ⇒ Boolean
(also: #required?)
Whether the field should be shown as required in the UI.
-
#shown_in_apply ⇒ Boolean
(also: #shown_in_apply?)
This field should be shown in the apply menu when applying values to a Drive item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldDisplayHints
constructor
A new instance of GoogleAppsDriveLabelsV2betaFieldDisplayHints.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#disabled ⇒ Boolean Also known as: disabled?
Whether the field should be shown in the UI as disabled.
Corresponds to the JSON property disabled
1539 1540 1541 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1539 def disabled @disabled end |
#hidden_in_search ⇒ Boolean Also known as:
This field should be hidden in the search menu when searching for Drive items.
Corresponds to the JSON property hiddenInSearch
1545 1546 1547 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1545 def hidden_in_search @hidden_in_search end |
#required ⇒ Boolean Also known as: required?
Whether the field should be shown as required in the UI.
Corresponds to the JSON property required
1551 1552 1553 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1551 def required @required end |
#shown_in_apply ⇒ Boolean 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
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 |