Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints

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 an option.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoiceDisplayHints.



2014
2015
2016
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2014

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

Instance Attribute Details

#badge_colorsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaBadgeColors

The color derived from BadgeConfig and changed to the closest recommended supported color. Corresponds to the JSON property badgeColors



1978
1979
1980
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1978

def badge_colors
  @badge_colors
end

#badge_priorityFixnum

The priority of this badge. Used to compare and sort between multiple badges. A lower number means the badge should be shown first. When a badging configuration is not present, this will be 0. Otherwise, this will be set to BadgeConfig.priority_override or the default heuristic which prefers creation date of the label, and field and option priority. Corresponds to the JSON property badgePriority

Returns:

  • (Fixnum)


1987
1988
1989
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1987

def badge_priority
  @badge_priority
end

#dark_badge_colorsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaBadgeColors

The color derived from BadgeConfig and changed to the closest recommended supported color. Corresponds to the JSON property darkBadgeColors



1993
1994
1995
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1993

def dark_badge_colors
  @dark_badge_colors
end

#disabledBoolean Also known as: disabled?

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

Returns:

  • (Boolean)


1998
1999
2000
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1998

def disabled
  @disabled
end

#hidden_in_searchBoolean Also known as: hidden_in_search?

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

Returns:

  • (Boolean)


2004
2005
2006
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2004

def hidden_in_search
  @hidden_in_search
end

#shown_in_applyBoolean Also known as: shown_in_apply?

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

Returns:

  • (Boolean)


2011
2012
2013
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2011

def shown_in_apply
  @shown_in_apply
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2019
2020
2021
2022
2023
2024
2025
2026
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2019

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