Class: MicrosoftGraph::Models::ListItemVersion
- Inherits:
-
BaseItemVersion
- Object
- Entity
- BaseItemVersion
- MicrosoftGraph::Models::ListItemVersion
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/list_item_version.rb
Direct Known Subclasses
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
-
#fields ⇒ Object
Gets the fields property value.
-
#fields=(value) ⇒ Object
Sets the fields property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new listItemVersion and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from BaseItemVersion
#last_modified_by, #last_modified_by=, #last_modified_date_time, #last_modified_date_time=, #publication, #publication=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new listItemVersion and sets the default values.
16 17 18 19 |
# File 'lib/models/list_item_version.rb', line 16 def initialize() super @odata_type = "#microsoft.graph.listItemVersion" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/models/list_item_version.rb', line 25 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.documentSetVersion" return DocumentSetVersion.new end end return ListItemVersion.new end |
Instance Method Details
#fields ⇒ Object
Gets the fields property value. A collection of the fields and values for this version of the list item.
41 42 43 |
# File 'lib/models/list_item_version.rb', line 41 def fields return @fields end |
#fields=(value) ⇒ Object
Sets the fields property value. A collection of the fields and values for this version of the list item.
49 50 51 |
# File 'lib/models/list_item_version.rb', line 49 def fields=(value) @fields = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
56 57 58 59 60 |
# File 'lib/models/list_item_version.rb', line 56 def get_field_deserializers() return super.merge({ "fields" => lambda {|n| @fields = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FieldValueSet.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
66 67 68 69 70 |
# File 'lib/models/list_item_version.rb', line 66 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("fields", @fields) end |