Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelDisplayHints
- Inherits:
-
Object
- Object
- Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelDisplayHints
- 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 the label.
Instance Attribute Summary collapse
-
#disabled ⇒ Boolean
(also: #disabled?)
Whether the label should be shown in the UI as disabled.
-
#hidden_in_search ⇒ Boolean
(also: #hidden_in_search?)
This label should be hidden in the search menu when searching for Drive items.
-
#priority ⇒ Fixnum
Order to display label in a list.
-
#shown_in_apply ⇒ Boolean
(also: #shown_in_apply?)
This label should be shown in the apply menu when applying values to a Drive item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelDisplayHints
constructor
A new instance of GoogleAppsDriveLabelsV2betaLabelDisplayHints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelDisplayHints
Returns a new instance of GoogleAppsDriveLabelsV2betaLabelDisplayHints.
2428 2429 2430 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2428 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disabled ⇒ Boolean Also known as: disabled?
Whether the label should be shown in the UI as disabled.
Corresponds to the JSON property disabled
2407 2408 2409 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2407 def disabled @disabled end |
#hidden_in_search ⇒ Boolean Also known as:
This label should be hidden in the search menu when searching for Drive items.
Corresponds to the JSON property hiddenInSearch
2413 2414 2415 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2413 def hidden_in_search @hidden_in_search end |
#priority ⇒ Fixnum
Order to display label in a list.
Corresponds to the JSON property priority
2419 2420 2421 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2419 def priority @priority end |
#shown_in_apply ⇒ Boolean Also known as: shown_in_apply?
This label should be shown in the apply menu when applying values to a Drive
item.
Corresponds to the JSON property shownInApply
2425 2426 2427 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2425 def shown_in_apply @shown_in_apply end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2433 2434 2435 2436 2437 2438 |
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2433 def update!(**args) @disabled = args[:disabled] if args.key?(:disabled) @hidden_in_search = args[:hidden_in_search] if args.key?(:hidden_in_search) @priority = args[:priority] if args.key?(:priority) @shown_in_apply = args[:shown_in_apply] if args.key?(:shown_in_apply) end |