Class: MicrosoftGraph::Models::ServiceHealthIssue
- Inherits:
-
ServiceAnnouncementBase
- Object
- Entity
- ServiceAnnouncementBase
- MicrosoftGraph::Models::ServiceHealthIssue
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/service_health_issue.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
-
#classification ⇒ Object
Gets the classification property value.
-
#classification=(value) ⇒ Object
Sets the classification property value.
-
#feature ⇒ Object
Gets the feature property value.
-
#feature=(value) ⇒ Object
Sets the feature property value.
-
#feature_group ⇒ Object
Gets the featureGroup property value.
-
#feature_group=(value) ⇒ Object
Sets the featureGroup property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#impact_description ⇒ Object
Gets the impactDescription property value.
-
#impact_description=(value) ⇒ Object
Sets the impactDescription property value.
-
#initialize ⇒ Object
constructor
Instantiates a new serviceHealthIssue and sets the default values.
-
#is_resolved ⇒ Object
Gets the isResolved property value.
-
#is_resolved=(value) ⇒ Object
Sets the isResolved property value.
-
#origin ⇒ Object
Gets the origin property value.
-
#origin=(value) ⇒ Object
Sets the origin property value.
-
#posts ⇒ Object
Gets the posts property value.
-
#posts=(value) ⇒ Object
Sets the posts property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#service ⇒ Object
Gets the service property value.
-
#service=(value) ⇒ Object
Sets the service property value.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
Methods inherited from ServiceAnnouncementBase
#details, #details=, #end_date_time, #end_date_time=, #last_modified_date_time, #last_modified_date_time=, #start_date_time, #start_date_time=, #title, #title=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new serviceHealthIssue and sets the default values.
55 56 57 58 |
# File 'lib/models/service_health_issue.rb', line 55 def initialize() super @odata_type = "#microsoft.graph.serviceHealthIssue" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
64 65 66 67 |
# File 'lib/models/service_health_issue.rb', line 64 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ServiceHealthIssue.new end |
Instance Method Details
#classification ⇒ Object
Gets the classification property value. The classification property
40 41 42 |
# File 'lib/models/service_health_issue.rb', line 40 def classification return @classification end |
#classification=(value) ⇒ Object
Sets the classification property value. The classification property
48 49 50 |
# File 'lib/models/service_health_issue.rb', line 48 def classification=(value) @classification = value end |
#feature ⇒ Object
Gets the feature property value. The feature name of the service issue.
72 73 74 |
# File 'lib/models/service_health_issue.rb', line 72 def feature return @feature end |
#feature=(value) ⇒ Object
Sets the feature property value. The feature name of the service issue.
80 81 82 |
# File 'lib/models/service_health_issue.rb', line 80 def feature=(value) @feature = value end |
#feature_group ⇒ Object
Gets the featureGroup property value. The feature group name of the service issue.
87 88 89 |
# File 'lib/models/service_health_issue.rb', line 87 def feature_group return @feature_group end |
#feature_group=(value) ⇒ Object
Sets the featureGroup property value. The feature group name of the service issue.
95 96 97 |
# File 'lib/models/service_health_issue.rb', line 95 def feature_group=(value) @feature_group = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/models/service_health_issue.rb', line 102 def get_field_deserializers() return super.merge({ "classification" => lambda {|n| @classification = n.get_enum_value(MicrosoftGraph::Models::ServiceHealthClassificationType) }, "feature" => lambda {|n| @feature = n.get_string_value() }, "featureGroup" => lambda {|n| @feature_group = n.get_string_value() }, "impactDescription" => lambda {|n| @impact_description = n.get_string_value() }, "isResolved" => lambda {|n| @is_resolved = n.get_boolean_value() }, "origin" => lambda {|n| @origin = n.get_enum_value(MicrosoftGraph::Models::ServiceHealthOrigin) }, "posts" => lambda {|n| @posts = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ServiceHealthIssuePost.create_from_discriminator_value(pn) }) }, "service" => lambda {|n| @service = n.get_string_value() }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::ServiceHealthStatus) }, }) end |
#impact_description ⇒ Object
Gets the impactDescription property value. The description of the service issue impact.
119 120 121 |
# File 'lib/models/service_health_issue.rb', line 119 def impact_description return @impact_description end |
#impact_description=(value) ⇒ Object
Sets the impactDescription property value. The description of the service issue impact.
127 128 129 |
# File 'lib/models/service_health_issue.rb', line 127 def impact_description=(value) @impact_description = value end |
#is_resolved ⇒ Object
Gets the isResolved property value. Indicates whether the issue is resolved.
134 135 136 |
# File 'lib/models/service_health_issue.rb', line 134 def is_resolved return @is_resolved end |
#is_resolved=(value) ⇒ Object
Sets the isResolved property value. Indicates whether the issue is resolved.
142 143 144 |
# File 'lib/models/service_health_issue.rb', line 142 def is_resolved=(value) @is_resolved = value end |
#origin ⇒ Object
Gets the origin property value. The origin property
149 150 151 |
# File 'lib/models/service_health_issue.rb', line 149 def origin return @origin end |
#origin=(value) ⇒ Object
Sets the origin property value. The origin property
157 158 159 |
# File 'lib/models/service_health_issue.rb', line 157 def origin=(value) @origin = value end |
#posts ⇒ Object
Gets the posts property value. Collection of historical posts for the service issue.
164 165 166 |
# File 'lib/models/service_health_issue.rb', line 164 def posts return @posts end |
#posts=(value) ⇒ Object
Sets the posts property value. Collection of historical posts for the service issue.
172 173 174 |
# File 'lib/models/service_health_issue.rb', line 172 def posts=(value) @posts = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/models/service_health_issue.rb', line 180 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("classification", @classification) writer.write_string_value("feature", @feature) writer.write_string_value("featureGroup", @feature_group) writer.write_string_value("impactDescription", @impact_description) writer.write_boolean_value("isResolved", @is_resolved) writer.write_enum_value("origin", @origin) writer.write_collection_of_object_values("posts", @posts) writer.write_string_value("service", @service) writer.write_enum_value("status", @status) end |
#service ⇒ Object
Gets the service property value. Indicates the service affected by the issue.
197 198 199 |
# File 'lib/models/service_health_issue.rb', line 197 def service return @service end |
#service=(value) ⇒ Object
Sets the service property value. Indicates the service affected by the issue.
205 206 207 |
# File 'lib/models/service_health_issue.rb', line 205 def service=(value) @service = value end |
#status ⇒ Object
Gets the status property value. The status property
212 213 214 |
# File 'lib/models/service_health_issue.rb', line 212 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The status property
220 221 222 |
# File 'lib/models/service_health_issue.rb', line 220 def status=(value) @status = value end |