Class: MicrosoftGraph::Models::LookupColumn

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/lookup_column.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a lookup_column

Raises:

  • (StandardError)


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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



42
43
44
# File 'lib/models/lookup_column.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#allow_multiple_valuesObject

Gets the allowMultipleValues property value. Indicates whether multiple values can be selected from the source.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the allowMultipleValues property.

Returns:

  • a void



57
58
59
# File 'lib/models/lookup_column.rb', line 57

def allow_multiple_values=(value)
    @allow_multiple_values = value
end

#allow_unlimited_lengthObject

Gets the allowUnlimitedLength property value. Indicates whether values in the column should be able to exceed the standard limit of 255 characters.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the allowUnlimitedLength property.

Returns:

  • a void



72
73
74
# File 'lib/models/lookup_column.rb', line 72

def allow_unlimited_length=(value)
    @allow_unlimited_length = value
end

#column_nameObject

Gets the columnName property value. The name of the lookup source column.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the columnName property.

Returns:

  • a void



87
88
89
# File 'lib/models/lookup_column.rb', line 87

def column_name=(value)
    @column_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_idObject

Gets the listId property value. The unique identifier of the lookup source list.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the listId property.

Returns:

  • a void



132
133
134
# File 'lib/models/lookup_column.rb', line 132

def list_id=(value)
    @list_id = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



147
148
149
# File 'lib/models/lookup_column.rb', line 147

def odata_type=(value)
    @odata_type = value
end

#primary_lookup_column_idObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the primaryLookupColumnId property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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