Class: MicrosoftGraph::Models::ServiceAnnouncementBase
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/service_announcement_base.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
-
#details ⇒ Object
Gets the details property value.
-
#details=(value) ⇒ Object
Sets the details property value.
-
#end_date_time ⇒ Object
Gets the endDateTime property value.
-
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new serviceAnnouncementBase and sets the default values.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#start_date_time ⇒ Object
Gets the startDateTime property value.
-
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value.
-
#title ⇒ Object
Gets the title property value.
-
#title=(value) ⇒ Object
Sets the title property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new serviceAnnouncementBase and sets the default values.
29 30 31 |
# File 'lib/models/service_announcement_base.rb', line 29 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
37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/models/service_announcement_base.rb', line 37 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.serviceHealthIssue" return ServiceHealthIssue.new when "#microsoft.graph.serviceUpdateMessage" return ServiceUpdateMessage.new end end return ServiceAnnouncementBase.new end |
Instance Method Details
#details ⇒ Object
Gets the details property value. Additional details about service event. This property doesn’t support filters.
55 56 57 |
# File 'lib/models/service_announcement_base.rb', line 55 def details return @details end |
#details=(value) ⇒ Object
Sets the details property value. Additional details about service event. This property doesn’t support filters.
63 64 65 |
# File 'lib/models/service_announcement_base.rb', line 63 def details=(value) @details = value end |
#end_date_time ⇒ Object
Gets the endDateTime property value. The end time of the service event.
70 71 72 |
# File 'lib/models/service_announcement_base.rb', line 70 def end_date_time return @end_date_time end |
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value. The end time of the service event.
78 79 80 |
# File 'lib/models/service_announcement_base.rb', line 78 def end_date_time=(value) @end_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
85 86 87 88 89 90 91 92 93 |
# File 'lib/models/service_announcement_base.rb', line 85 def get_field_deserializers() return super.merge({ "details" => lambda {|n| @details = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::KeyValuePair.create_from_discriminator_value(pn) }) }, "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "startDateTime" => lambda {|n| @start_date_time = n.get_date_time_value() }, "title" => lambda {|n| @title = n.get_string_value() }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The last modified time of the service event.
98 99 100 |
# File 'lib/models/service_announcement_base.rb', line 98 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. The last modified time of the service event.
106 107 108 |
# File 'lib/models/service_announcement_base.rb', line 106 def last_modified_date_time=(value) @last_modified_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
114 115 116 117 118 119 120 121 122 |
# File 'lib/models/service_announcement_base.rb', line 114 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("details", @details) writer.write_date_time_value("endDateTime", @end_date_time) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_date_time_value("startDateTime", @start_date_time) writer.write_string_value("title", @title) end |
#start_date_time ⇒ Object
Gets the startDateTime property value. The start time of the service event.
127 128 129 |
# File 'lib/models/service_announcement_base.rb', line 127 def start_date_time return @start_date_time end |
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value. The start time of the service event.
135 136 137 |
# File 'lib/models/service_announcement_base.rb', line 135 def start_date_time=(value) @start_date_time = value end |
#title ⇒ Object
Gets the title property value. The title of the service event.
142 143 144 |
# File 'lib/models/service_announcement_base.rb', line 142 def title return @title end |
#title=(value) ⇒ Object
Sets the title property value. The title of the service event.
150 151 152 |
# File 'lib/models/service_announcement_base.rb', line 150 def title=(value) @title = value end |