Class: MicrosoftGraph::Models::LookupColumn
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::LookupColumn
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/lookup_column.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#allow_multiple_values ⇒ Object
Gets the allowMultipleValues property value.
-
#allow_multiple_values=(value) ⇒ Object
Sets the allowMultipleValues property value.
-
#allow_unlimited_length ⇒ Object
Gets the allowUnlimitedLength property value.
-
#allow_unlimited_length=(value) ⇒ Object
Sets the allowUnlimitedLength property value.
-
#column_name ⇒ Object
Gets the columnName property value.
-
#column_name=(value) ⇒ Object
Sets the columnName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new lookupColumn and sets the default values.
-
#list_id ⇒ Object
Gets the listId property value.
-
#list_id=(value) ⇒ Object
Sets the listId property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#primary_lookup_column_id ⇒ Object
Gets the primaryLookupColumnId property value.
-
#primary_lookup_column_id=(value) ⇒ Object
Sets the primaryLookupColumnId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new lookupColumn and sets the default values.
94 95 96 |
# File 'lib/models/lookup_column.rb', line 94 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
102 103 104 105 |
# File 'lib/models/lookup_column.rb', line 102 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return LookupColumn.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
34 35 36 |
# File 'lib/models/lookup_column.rb', line 34 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
42 43 44 |
# File 'lib/models/lookup_column.rb', line 42 def additional_data=(value) @additional_data = value end |
#allow_multiple_values ⇒ Object
Gets the allowMultipleValues property value. Indicates whether multiple values can be selected from the source.
49 50 51 |
# File 'lib/models/lookup_column.rb', line 49 def allow_multiple_values return @allow_multiple_values end |
#allow_multiple_values=(value) ⇒ Object
Sets the allowMultipleValues property value. Indicates whether multiple values can be selected from the source.
57 58 59 |
# File 'lib/models/lookup_column.rb', line 57 def allow_multiple_values=(value) @allow_multiple_values = value end |
#allow_unlimited_length ⇒ Object
Gets the allowUnlimitedLength property value. Indicates whether values in the column should be able to exceed the standard limit of 255 characters.
64 65 66 |
# File 'lib/models/lookup_column.rb', line 64 def allow_unlimited_length return @allow_unlimited_length end |
#allow_unlimited_length=(value) ⇒ Object
Sets the allowUnlimitedLength property value. Indicates whether values in the column should be able to exceed the standard limit of 255 characters.
72 73 74 |
# File 'lib/models/lookup_column.rb', line 72 def allow_unlimited_length=(value) @allow_unlimited_length = value end |
#column_name ⇒ Object
Gets the columnName property value. The name of the lookup source column.
79 80 81 |
# File 'lib/models/lookup_column.rb', line 79 def column_name return @column_name end |
#column_name=(value) ⇒ Object
Sets the columnName property value. The name of the lookup source column.
87 88 89 |
# File 'lib/models/lookup_column.rb', line 87 def column_name=(value) @column_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/models/lookup_column.rb', line 110 def get_field_deserializers() return { "allowMultipleValues" => lambda {|n| @allow_multiple_values = n.get_boolean_value() }, "allowUnlimitedLength" => lambda {|n| @allow_unlimited_length = n.get_boolean_value() }, "columnName" => lambda {|n| @column_name = n.get_string_value() }, "listId" => lambda {|n| @list_id = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "primaryLookupColumnId" => lambda {|n| @primary_lookup_column_id = n.get_string_value() }, } end |
#list_id ⇒ Object
Gets the listId property value. The unique identifier of the lookup source list.
124 125 126 |
# File 'lib/models/lookup_column.rb', line 124 def list_id return @list_id end |
#list_id=(value) ⇒ Object
Sets the listId property value. The unique identifier of the lookup source list.
132 133 134 |
# File 'lib/models/lookup_column.rb', line 132 def list_id=(value) @list_id = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
139 140 141 |
# File 'lib/models/lookup_column.rb', line 139 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
147 148 149 |
# File 'lib/models/lookup_column.rb', line 147 def odata_type=(value) @odata_type = value end |
#primary_lookup_column_id ⇒ Object
Gets the primaryLookupColumnId property value. If specified, this column is a secondary lookup, pulling an additional field from the list item looked up by the primary lookup. Use the list item looked up by the primary as the source for the column named here.
154 155 156 |
# File 'lib/models/lookup_column.rb', line 154 def primary_lookup_column_id return @primary_lookup_column_id end |
#primary_lookup_column_id=(value) ⇒ Object
Sets the primaryLookupColumnId property value. If specified, this column is a secondary lookup, pulling an additional field from the list item looked up by the primary lookup. Use the list item looked up by the primary as the source for the column named here.
162 163 164 |
# File 'lib/models/lookup_column.rb', line 162 def primary_lookup_column_id=(value) @primary_lookup_column_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
170 171 172 173 174 175 176 177 178 179 |
# File 'lib/models/lookup_column.rb', line 170 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_boolean_value("allowMultipleValues", @allow_multiple_values) writer.write_boolean_value("allowUnlimitedLength", @allow_unlimited_length) writer.write_string_value("columnName", @column_name) writer.write_string_value("listId", @list_id) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("primaryLookupColumnId", @primary_lookup_column_id) writer.write_additional_data(@additional_data) end |