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.



1983
1984
1985
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1983

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



1947
1948
1949
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1947

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)


1956
1957
1958
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1956

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



1962
1963
1964
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1962

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)


1967
1968
1969
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1967

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)


1973
1974
1975
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1973

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)


1980
1981
1982
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1980

def shown_in_apply
  @shown_in_apply
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1988
1989
1990
1991
1992
1993
1994
1995
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1988

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