Class: MicrosoftGraph::Models::BaseItemVersion
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/base_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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new baseItemVersion and sets the default values.
-
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value.
-
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#publication ⇒ Object
Gets the publication property value.
-
#publication=(value) ⇒ Object
Sets the publication property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new baseItemVersion and sets the default values.
23 24 25 |
# File 'lib/models/base_item_version.rb', line 23 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/models/base_item_version.rb', line 31 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 when "#microsoft.graph.driveItemVersion" return DriveItemVersion.new when "#microsoft.graph.listItemVersion" return ListItemVersion.new end end return BaseItemVersion.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
51 52 53 54 55 56 57 |
# File 'lib/models/base_item_version.rb', line 51 def get_field_deserializers() return super.merge({ "lastModifiedBy" => lambda {|n| @last_modified_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "publication" => lambda {|n| @publication = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PublicationFacet.create_from_discriminator_value(pn) }) }, }) end |
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value. Identity of the user which last modified the version. Read-only.
62 63 64 |
# File 'lib/models/base_item_version.rb', line 62 def last_modified_by return @last_modified_by end |
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value. Identity of the user which last modified the version. Read-only.
70 71 72 |
# File 'lib/models/base_item_version.rb', line 70 def last_modified_by=(value) @last_modified_by = value end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. Date and time the version was last modified. Read-only.
77 78 79 |
# File 'lib/models/base_item_version.rb', line 77 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. Date and time the version was last modified. Read-only.
85 86 87 |
# File 'lib/models/base_item_version.rb', line 85 def last_modified_date_time=(value) @last_modified_date_time = value end |
#publication ⇒ Object
Gets the publication property value. Indicates the publication status of this particular version. Read-only.
92 93 94 |
# File 'lib/models/base_item_version.rb', line 92 def publication return @publication end |
#publication=(value) ⇒ Object
Sets the publication property value. Indicates the publication status of this particular version. Read-only.
100 101 102 |
# File 'lib/models/base_item_version.rb', line 100 def publication=(value) @publication = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
108 109 110 111 112 113 114 |
# File 'lib/models/base_item_version.rb', line 108 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("lastModifiedBy", @last_modified_by) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_object_value("publication", @publication) end |