Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties

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

Basic properties of the choice.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties

Returns a new instance of GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties.



917
918
919
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 917

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

Instance Attribute Details

#badge_configGoogle::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2BadgeConfig

Badge status of the label. Corresponds to the JSON property badgeConfig



899
900
901
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 899

def badge_config
  @badge_config
end

#descriptionString

The description of this label. Corresponds to the JSON property description

Returns:

  • (String)


904
905
906
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 904

def description
  @description
end

#display_nameString

Required. The display text to show in the UI identifying this field. Corresponds to the JSON property displayName

Returns:

  • (String)


909
910
911
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 909

def display_name
  @display_name
end

#insert_before_choiceString

Input only. Insert or move this choice before the indicated choice. If empty, the choice is placed at the end of the list. Corresponds to the JSON property insertBeforeChoice

Returns:

  • (String)


915
916
917
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 915

def insert_before_choice
  @insert_before_choice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



922
923
924
925
926
927
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 922

def update!(**args)
  @badge_config = args[:badge_config] if args.key?(:badge_config)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @insert_before_choice = args[:insert_before_choice] if args.key?(:insert_before_choice)
end