Class: Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldSelectionOptions

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

Options for the selection field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2FieldSelectionOptions

Returns a new instance of GoogleAppsDriveLabelsV2FieldSelectionOptions.



672
673
674
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 672

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

Instance Attribute Details

#choicesArray<Google::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice>

The options available for this selection field. The list order is consistent, and modified with insert_before_choice. Corresponds to the JSON property choices



665
666
667
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 665

def choices
  @choices
end

#list_optionsGoogle::Apis::DrivelabelsV2::GoogleAppsDriveLabelsV2FieldListOptions

Options for a multi-valued variant of an associated field type. Corresponds to the JSON property listOptions



670
671
672
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 670

def list_options
  @list_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



677
678
679
680
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 677

def update!(**args)
  @choices = args[:choices] if args.key?(:choices)
  @list_options = args[:list_options] if args.key?(:list_options)
end