Class: MicrosoftGraph::Models::ServiceHealthIssue

Inherits:
ServiceAnnouncementBase show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/service_health_issue.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a service_health_issue

Raises:

  • (StandardError)


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

#classificationObject

Gets the classification property value. The classification property

Returns:

  • a service_health_classification_type



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

Parameters:

  • value

    Value to set for the classification property.

Returns:

  • a void



48
49
50
# File 'lib/models/service_health_issue.rb', line 48

def classification=(value)
    @classification = value
end

#featureObject

Gets the feature property value. The feature name of the service issue.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the feature property.

Returns:

  • a void



80
81
82
# File 'lib/models/service_health_issue.rb', line 80

def feature=(value)
    @feature = value
end

#feature_groupObject

Gets the featureGroup property value. The feature group name of the service issue.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the featureGroup property.

Returns:

  • a void



95
96
97
# File 'lib/models/service_health_issue.rb', line 95

def feature_group=(value)
    @feature_group = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_descriptionObject

Gets the impactDescription property value. The description of the service issue impact.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the impactDescription property.

Returns:

  • a void



127
128
129
# File 'lib/models/service_health_issue.rb', line 127

def impact_description=(value)
    @impact_description = value
end

#is_resolvedObject

Gets the isResolved property value. Indicates whether the issue is resolved.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isResolved property.

Returns:

  • a void



142
143
144
# File 'lib/models/service_health_issue.rb', line 142

def is_resolved=(value)
    @is_resolved = value
end

#originObject

Gets the origin property value. The origin property

Returns:

  • a service_health_origin



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

Parameters:

  • value

    Value to set for the origin property.

Returns:

  • a void



157
158
159
# File 'lib/models/service_health_issue.rb', line 157

def origin=(value)
    @origin = value
end

#postsObject

Gets the posts property value. Collection of historical posts for the service issue.

Returns:

  • a service_health_issue_post



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.

Parameters:

  • value

    Value to set for the posts property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#serviceObject

Gets the service property value. Indicates the service affected by the issue.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the service property.

Returns:

  • a void



205
206
207
# File 'lib/models/service_health_issue.rb', line 205

def service=(value)
    @service = value
end

#statusObject

Gets the status property value. The status property

Returns:

  • a service_health_status



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

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



220
221
222
# File 'lib/models/service_health_issue.rb', line 220

def status=(value)
    @status = value
end