Class: MicrosoftGraph::Models::TextColumn
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::TextColumn
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/text_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_lines ⇒ Object
Gets the allowMultipleLines property value.
-
#allow_multiple_lines=(value) ⇒ Object
Sets the allowMultipleLines property value.
-
#append_changes_to_existing_text ⇒ Object
Gets the appendChangesToExistingText property value.
-
#append_changes_to_existing_text=(value) ⇒ Object
Sets the appendChangesToExistingText property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new textColumn and sets the default values.
-
#lines_for_editing ⇒ Object
Gets the linesForEditing property value.
-
#lines_for_editing=(value) ⇒ Object
Sets the linesForEditing property value.
-
#max_length ⇒ Object
Gets the maxLength property value.
-
#max_length=(value) ⇒ Object
Sets the maxLength property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#text_type ⇒ Object
Gets the textType property value.
-
#text_type=(value) ⇒ Object
Sets the textType property value.
Constructor Details
#initialize ⇒ Object
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
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_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/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.
42 43 44 |
# File 'lib/models/text_column.rb', line 42 def additional_data=(value) @additional_data = value end |
#allow_multiple_lines ⇒ Object
Gets the allowMultipleLines property value. Whether to allow multiple lines of text.
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.
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_text ⇒ Object
Gets the appendChangesToExistingText property value. Whether updates to this column should replace existing text, or append to it.
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.
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_deserializers ⇒ Object
The deserialization information for the current model
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_editing ⇒ Object
Gets the linesForEditing property value. The size of the text box.
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.
117 118 119 |
# File 'lib/models/text_column.rb', line 117 def lines_for_editing=(value) @lines_for_editing = value end |
#max_length ⇒ Object
Gets the maxLength property value. The maximum number of characters for the value.
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.
132 133 134 |
# File 'lib/models/text_column.rb', line 132 def max_length=(value) @max_length = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
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
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_type ⇒ Object
Gets the textType property value. The type of text being stored. Must be one of plain or richText
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
177 178 179 |
# File 'lib/models/text_column.rb', line 177 def text_type=(value) @text_type = value end |