Class: MicrosoftGraph::Models::TermColumn
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::TermColumn
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/term_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.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new termColumn and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#parent_term ⇒ Object
Gets the parentTerm property value.
-
#parent_term=(value) ⇒ Object
Sets the parentTerm property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#show_fully_qualified_name ⇒ Object
Gets the showFullyQualifiedName property value.
-
#show_fully_qualified_name=(value) ⇒ Object
Sets the showFullyQualifiedName property value.
-
#term_set ⇒ Object
Gets the termSet property value.
-
#term_set=(value) ⇒ Object
Sets the termSet property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new termColumn and sets the default values.
61 62 63 |
# File 'lib/models/term_column.rb', line 61 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
69 70 71 72 |
# File 'lib/models/term_column.rb', line 69 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return TermColumn.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.
31 32 33 |
# File 'lib/models/term_column.rb', line 31 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.
39 40 41 |
# File 'lib/models/term_column.rb', line 39 def additional_data=(value) @additional_data = value end |
#allow_multiple_values ⇒ Object
Gets the allowMultipleValues property value. Specifies whether the column will allow more than one value.
46 47 48 |
# File 'lib/models/term_column.rb', line 46 def allow_multiple_values return @allow_multiple_values end |
#allow_multiple_values=(value) ⇒ Object
Sets the allowMultipleValues property value. Specifies whether the column will allow more than one value.
54 55 56 |
# File 'lib/models/term_column.rb', line 54 def allow_multiple_values=(value) @allow_multiple_values = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
77 78 79 80 81 82 83 84 85 |
# File 'lib/models/term_column.rb', line 77 def get_field_deserializers() return { "allowMultipleValues" => lambda {|n| @allow_multiple_values = n.get_boolean_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "parentTerm" => lambda {|n| @parent_term = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TermStoreTerm.create_from_discriminator_value(pn) }) }, "showFullyQualifiedName" => lambda {|n| @show_fully_qualified_name = n.get_boolean_value() }, "termSet" => lambda {|n| @term_set = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TermStoreSet.create_from_discriminator_value(pn) }) }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
90 91 92 |
# File 'lib/models/term_column.rb', line 90 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
98 99 100 |
# File 'lib/models/term_column.rb', line 98 def odata_type=(value) @odata_type = value end |
#parent_term ⇒ Object
Gets the parentTerm property value. The parentTerm property
105 106 107 |
# File 'lib/models/term_column.rb', line 105 def parent_term return @parent_term end |
#parent_term=(value) ⇒ Object
Sets the parentTerm property value. The parentTerm property
113 114 115 |
# File 'lib/models/term_column.rb', line 113 def parent_term=(value) @parent_term = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
121 122 123 124 125 126 127 128 129 |
# File 'lib/models/term_column.rb', line 121 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_boolean_value("allowMultipleValues", @allow_multiple_values) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("parentTerm", @parent_term) writer.write_boolean_value("showFullyQualifiedName", @show_fully_qualified_name) writer.write_object_value("termSet", @term_set) writer.write_additional_data(@additional_data) end |
#show_fully_qualified_name ⇒ Object
Gets the showFullyQualifiedName property value. Specifies whether to display the entire term path or only the term label.
134 135 136 |
# File 'lib/models/term_column.rb', line 134 def show_fully_qualified_name return @show_fully_qualified_name end |
#show_fully_qualified_name=(value) ⇒ Object
Sets the showFullyQualifiedName property value. Specifies whether to display the entire term path or only the term label.
142 143 144 |
# File 'lib/models/term_column.rb', line 142 def show_fully_qualified_name=(value) @show_fully_qualified_name = value end |
#term_set ⇒ Object
Gets the termSet property value. The termSet property
149 150 151 |
# File 'lib/models/term_column.rb', line 149 def term_set return @term_set end |
#term_set=(value) ⇒ Object
Sets the termSet property value. The termSet property
157 158 159 |
# File 'lib/models/term_column.rb', line 157 def term_set=(value) @term_set = value end |