Class: MicrosoftGraph::Models::OnenoteEntitySchemaObjectModel
- Inherits:
-
OnenoteEntityBaseModel
- Object
- Entity
- OnenoteEntityBaseModel
- MicrosoftGraph::Models::OnenoteEntitySchemaObjectModel
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/onenote_entity_schema_object_model.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
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new onenoteEntitySchemaObjectModel and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from OnenoteEntityBaseModel
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new onenoteEntitySchemaObjectModel and sets the default values.
17 18 19 20 |
# File 'lib/models/onenote_entity_schema_object_model.rb', line 17 def initialize() super @odata_type = "#microsoft.graph.onenoteEntitySchemaObjectModel" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/models/onenote_entity_schema_object_model.rb', line 41 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.notebook" return Notebook.new when "#microsoft.graph.onenoteEntityHierarchyModel" return OnenoteEntityHierarchyModel.new when "#microsoft.graph.onenotePage" return OnenotePage.new when "#microsoft.graph.onenoteSection" return OnenoteSection.new when "#microsoft.graph.sectionGroup" return SectionGroup.new end end return OnenoteEntitySchemaObjectModel.new end |
Instance Method Details
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date and time when the page was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
25 26 27 |
# File 'lib/models/onenote_entity_schema_object_model.rb', line 25 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The date and time when the page was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
33 34 35 |
# File 'lib/models/onenote_entity_schema_object_model.rb', line 33 def created_date_time=(value) @created_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
65 66 67 68 69 |
# File 'lib/models/onenote_entity_schema_object_model.rb', line 65 def get_field_deserializers() return super.merge({ "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
75 76 77 78 79 |
# File 'lib/models/onenote_entity_schema_object_model.rb', line 75 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("createdDateTime", @created_date_time) end |