Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSelectionOptions

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

Options for the selection field type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaFieldSelectionOptions

Returns a new instance of GoogleAppsDriveLabelsV2betaFieldSelectionOptions.



1778
1779
1780
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1778

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

Instance Attribute Details

#choicesArray<Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldSelectionOptionsChoice>

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



1771
1772
1773
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1771

def choices
  @choices
end

#list_optionsGoogle::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaFieldListOptions

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



1776
1777
1778
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1776

def list_options
  @list_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1783
1784
1785
1786
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 1783

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