Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drivelabels_v2/classes.rb,
lib/google/apis/drivelabels_v2/representations.rb,
lib/google/apis/drivelabels_v2/representations.rb

Overview

UI display hints for rendering an option.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints

Returns a new instance of GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints.



877
878
879
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 877

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

Instance Attribute Details

#badge_colorsGoogle::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2BadgeColors

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



841
842
843
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 841

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)


850
851
852
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 850

def badge_priority
  @badge_priority
end

#dark_badge_colorsGoogle::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2BadgeColors

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



856
857
858
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 856

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)


861
862
863
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 861

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)


867
868
869
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 867

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)


874
875
876
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 874

def shown_in_apply
  @shown_in_apply
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



882
883
884
885
886
887
888
889
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 882

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