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.



1809
1810
1811
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1809

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



1802
1803
1804
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1802

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



1807
1808
1809
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1807

def list_options
  @list_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1814
1815
1816
1817
# File 'lib/google/apis/drivelabels_v2/classes.rb', line 1814

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