Class: MicrosoftGraph::Models::TextColumn

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new textColumn and sets the default values.



79
80
81
# File 'lib/models/text_column.rb', line 79

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 text_column

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return TextColumn.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/text_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/text_column.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#allow_multiple_linesObject

Gets the allowMultipleLines property value. Whether to allow multiple lines of text.

Returns:

  • a boolean



49
50
51
# File 'lib/models/text_column.rb', line 49

def allow_multiple_lines
    return @allow_multiple_lines
end

#allow_multiple_lines=(value) ⇒ Object

Sets the allowMultipleLines property value. Whether to allow multiple lines of text.

Parameters:

  • value

    Value to set for the allow_multiple_lines property.

Returns:

  • a void



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

def allow_multiple_lines=(value)
    @allow_multiple_lines = value
end

#append_changes_to_existing_textObject

Gets the appendChangesToExistingText property value. Whether updates to this column should replace existing text, or append to it.

Returns:

  • a boolean



64
65
66
# File 'lib/models/text_column.rb', line 64

def append_changes_to_existing_text
    return @append_changes_to_existing_text
end

#append_changes_to_existing_text=(value) ⇒ Object

Sets the appendChangesToExistingText property value. Whether updates to this column should replace existing text, or append to it.

Parameters:

  • value

    Value to set for the append_changes_to_existing_text property.

Returns:

  • a void



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

def append_changes_to_existing_text=(value)
    @append_changes_to_existing_text = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



95
96
97
98
99
100
101
102
103
104
# File 'lib/models/text_column.rb', line 95

def get_field_deserializers()
    return {
        "allowMultipleLines" => lambda {|n| @allow_multiple_lines = n.get_boolean_value() },
        "appendChangesToExistingText" => lambda {|n| @append_changes_to_existing_text = n.get_boolean_value() },
        "linesForEditing" => lambda {|n| @lines_for_editing = n.get_number_value() },
        "maxLength" => lambda {|n| @max_length = n.get_number_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "textType" => lambda {|n| @text_type = n.get_string_value() },
    }
end

#lines_for_editingObject

Gets the linesForEditing property value. The size of the text box.

Returns:

  • a integer



109
110
111
# File 'lib/models/text_column.rb', line 109

def lines_for_editing
    return @lines_for_editing
end

#lines_for_editing=(value) ⇒ Object

Sets the linesForEditing property value. The size of the text box.

Parameters:

  • value

    Value to set for the lines_for_editing property.

Returns:

  • a void



117
118
119
# File 'lib/models/text_column.rb', line 117

def lines_for_editing=(value)
    @lines_for_editing = value
end

#max_lengthObject

Gets the maxLength property value. The maximum number of characters for the value.

Returns:

  • a integer



124
125
126
# File 'lib/models/text_column.rb', line 124

def max_length
    return @max_length
end

#max_length=(value) ⇒ Object

Sets the maxLength property value. The maximum number of characters for the value.

Parameters:

  • value

    Value to set for the max_length property.

Returns:

  • a void



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

def max_length=(value)
    @max_length = value
end

#odata_typeObject

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

Returns:

  • a string



139
140
141
# File 'lib/models/text_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/text_column.rb', line 147

def odata_type=(value)
    @odata_type = 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)


155
156
157
158
159
160
161
162
163
164
# File 'lib/models/text_column.rb', line 155

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_boolean_value("allowMultipleLines", @allow_multiple_lines)
    writer.write_boolean_value("appendChangesToExistingText", @append_changes_to_existing_text)
    writer.write_number_value("linesForEditing", @lines_for_editing)
    writer.write_number_value("maxLength", @max_length)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("textType", @text_type)
    writer.write_additional_data(@additional_data)
end

#text_typeObject

Gets the textType property value. The type of text being stored. Must be one of plain or richText

Returns:

  • a string



169
170
171
# File 'lib/models/text_column.rb', line 169

def text_type
    return @text_type
end

#text_type=(value) ⇒ Object

Sets the textType property value. The type of text being stored. Must be one of plain or richText

Parameters:

  • value

    Value to set for the text_type property.

Returns:

  • a void



177
178
179
# File 'lib/models/text_column.rb', line 177

def text_type=(value)
    @text_type = value
end