Class: MicrosoftGraph::Models::ServiceAnnouncement
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/service_announcement.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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#health_overviews ⇒ Object
Gets the healthOverviews property value.
-
#health_overviews=(value) ⇒ Object
Sets the healthOverviews property value.
-
#initialize ⇒ Object
constructor
Instantiates a new serviceAnnouncement and sets the default values.
-
#issues ⇒ Object
Gets the issues property value.
-
#issues=(value) ⇒ Object
Sets the issues property value.
-
#messages ⇒ Object
Gets the messages property value.
-
#messages=(value) ⇒ Object
Sets the messages 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 serviceAnnouncement and sets the default values.
22 23 24 |
# File 'lib/models/service_announcement.rb', line 22 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
30 31 32 33 |
# File 'lib/models/service_announcement.rb', line 30 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ServiceAnnouncement.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
38 39 40 41 42 43 44 |
# File 'lib/models/service_announcement.rb', line 38 def get_field_deserializers() return super.merge({ "healthOverviews" => lambda {|n| @health_overviews = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ServiceHealth.create_from_discriminator_value(pn) }) }, "issues" => lambda {|n| @issues = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ServiceHealthIssue.create_from_discriminator_value(pn) }) }, "messages" => lambda {|n| = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ServiceUpdateMessage.create_from_discriminator_value(pn) }) }, }) end |
#health_overviews ⇒ Object
Gets the healthOverviews property value. A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.
49 50 51 |
# File 'lib/models/service_announcement.rb', line 49 def health_overviews return @health_overviews end |
#health_overviews=(value) ⇒ Object
Sets the healthOverviews property value. A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly.
57 58 59 |
# File 'lib/models/service_announcement.rb', line 57 def health_overviews=(value) @health_overviews = value end |
#issues ⇒ Object
Gets the issues property value. A collection of service issues for tenant. This property is a contained navigation property, it is nullable and readonly.
64 65 66 |
# File 'lib/models/service_announcement.rb', line 64 def issues return @issues end |
#issues=(value) ⇒ Object
Sets the issues property value. A collection of service issues for tenant. This property is a contained navigation property, it is nullable and readonly.
72 73 74 |
# File 'lib/models/service_announcement.rb', line 72 def issues=(value) @issues = value end |
#messages ⇒ Object
Gets the messages property value. A collection of service messages for tenant. This property is a contained navigation property, it is nullable and readonly.
79 80 81 |
# File 'lib/models/service_announcement.rb', line 79 def return end |
#messages=(value) ⇒ Object
Sets the messages property value. A collection of service messages for tenant. This property is a contained navigation property, it is nullable and readonly.
87 88 89 |
# File 'lib/models/service_announcement.rb', line 87 def (value) = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
95 96 97 98 99 100 101 |
# File 'lib/models/service_announcement.rb', line 95 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("healthOverviews", @health_overviews) writer.write_collection_of_object_values("issues", @issues) writer.write_collection_of_object_values("messages", ) end |