Class: MicrosoftGraph::Models::SecurityIncident

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_incident.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new securityIncident and sets the default values.



119
120
121
# File 'lib/models/security_incident.rb', line 119

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

Parameters:

  • parse_node

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

Returns:

  • a security_incident

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SecurityIncident.new
end

Instance Method Details

#alertsObject

Gets the alerts property value. The list of related alerts. Supports $expand.

Returns:

  • a security_alert



59
60
61
# File 'lib/models/security_incident.rb', line 59

def alerts
    return @alerts
end

#alerts=(value) ⇒ Object

Sets the alerts property value. The list of related alerts. Supports $expand.

Parameters:

  • value

    Value to set for the alerts property.

Returns:

  • a void



67
68
69
# File 'lib/models/security_incident.rb', line 67

def alerts=(value)
    @alerts = value
end

#assigned_toObject

Gets the assignedTo property value. Owner of the incident, or null if no owner is assigned. Free editable text.

Returns:

  • a string



74
75
76
# File 'lib/models/security_incident.rb', line 74

def assigned_to
    return @assigned_to
end

#assigned_to=(value) ⇒ Object

Sets the assignedTo property value. Owner of the incident, or null if no owner is assigned. Free editable text.

Parameters:

  • value

    Value to set for the assignedTo property.

Returns:

  • a void



82
83
84
# File 'lib/models/security_incident.rb', line 82

def assigned_to=(value)
    @assigned_to = value
end

#classificationObject

Gets the classification property value. The specification for the incident. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue.

Returns:

  • a security_alert_classification



89
90
91
# File 'lib/models/security_incident.rb', line 89

def classification
    return @classification
end

#classification=(value) ⇒ Object

Sets the classification property value. The specification for the incident. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue.

Parameters:

  • value

    Value to set for the classification property.

Returns:

  • a void



97
98
99
# File 'lib/models/security_incident.rb', line 97

def classification=(value)
    @classification = value
end

#commentsObject

Gets the comments property value. Array of comments created by the Security Operations (SecOps) team when the incident is managed.

Returns:

  • a security_alert_comment



104
105
106
# File 'lib/models/security_incident.rb', line 104

def comments
    return @comments
end

#comments=(value) ⇒ Object

Sets the comments property value. Array of comments created by the Security Operations (SecOps) team when the incident is managed.

Parameters:

  • value

    Value to set for the comments property.

Returns:

  • a void



112
113
114
# File 'lib/models/security_incident.rb', line 112

def comments=(value)
    @comments = value
end

#created_date_timeObject

Gets the createdDateTime property value. Time when the incident was first created.

Returns:

  • a date_time



126
127
128
# File 'lib/models/security_incident.rb', line 126

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. Time when the incident was first created.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



134
135
136
# File 'lib/models/security_incident.rb', line 134

def created_date_time=(value)
    @created_date_time = value
end

#custom_tagsObject

Gets the customTags property value. Array of custom tags associated with an incident.

Returns:

  • a string



150
151
152
# File 'lib/models/security_incident.rb', line 150

def custom_tags
    return @custom_tags
end

#custom_tags=(value) ⇒ Object

Sets the customTags property value. Array of custom tags associated with an incident.

Parameters:

  • value

    Value to set for the customTags property.

Returns:

  • a void



158
159
160
# File 'lib/models/security_incident.rb', line 158

def custom_tags=(value)
    @custom_tags = value
end

#determinationObject

Gets the determination property value. Specifies the determination of the incident. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue.

Returns:

  • a security_alert_determination



165
166
167
# File 'lib/models/security_incident.rb', line 165

def determination
    return @determination
end

#determination=(value) ⇒ Object

Sets the determination property value. Specifies the determination of the incident. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue.

Parameters:

  • value

    Value to set for the determination property.

Returns:

  • a void



173
174
175
# File 'lib/models/security_incident.rb', line 173

def determination=(value)
    @determination = value
end

#display_nameObject

Gets the displayName property value. The incident name.

Returns:

  • a string



180
181
182
# File 'lib/models/security_incident.rb', line 180

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The incident name.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



188
189
190
# File 'lib/models/security_incident.rb', line 188

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/models/security_incident.rb', line 195

def get_field_deserializers()
    return super.merge({
        "alerts" => lambda {|n| @alerts = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityAlert.create_from_discriminator_value(pn) }) },
        "assignedTo" => lambda {|n| @assigned_to = n.get_string_value() },
        "classification" => lambda {|n| @classification = n.get_enum_value(MicrosoftGraph::Models::SecurityAlertClassification) },
        "comments" => lambda {|n| @comments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityAlertComment.create_from_discriminator_value(pn) }) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "customTags" => lambda {|n| @custom_tags = n.get_collection_of_primitive_values(String) },
        "determination" => lambda {|n| @determination = n.get_enum_value(MicrosoftGraph::Models::SecurityAlertDetermination) },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "incidentWebUrl" => lambda {|n| @incident_web_url = n.get_string_value() },
        "lastModifiedBy" => lambda {|n| @last_modified_by = n.get_string_value() },
        "lastUpdateDateTime" => lambda {|n| @last_update_date_time = n.get_date_time_value() },
        "redirectIncidentId" => lambda {|n| @redirect_incident_id = n.get_string_value() },
        "severity" => lambda {|n| @severity = n.get_enum_value(MicrosoftGraph::Models::SecurityAlertSeverity) },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::SecurityIncidentStatus) },
        "tenantId" => lambda {|n| @tenant_id = n.get_string_value() },
    })
end

#incident_web_urlObject

Gets the incidentWebUrl property value. The URL for the incident page in the Microsoft 365 Defender portal.

Returns:

  • a string



218
219
220
# File 'lib/models/security_incident.rb', line 218

def incident_web_url
    return @incident_web_url
end

#incident_web_url=(value) ⇒ Object

Sets the incidentWebUrl property value. The URL for the incident page in the Microsoft 365 Defender portal.

Parameters:

  • value

    Value to set for the incidentWebUrl property.

Returns:

  • a void



226
227
228
# File 'lib/models/security_incident.rb', line 226

def incident_web_url=(value)
    @incident_web_url = value
end

#last_modified_byObject

Gets the lastModifiedBy property value. The lastModifiedBy property

Returns:

  • a string



233
234
235
# File 'lib/models/security_incident.rb', line 233

def last_modified_by
    return @last_modified_by
end

#last_modified_by=(value) ⇒ Object

Sets the lastModifiedBy property value. The lastModifiedBy property

Parameters:

  • value

    Value to set for the lastModifiedBy property.

Returns:

  • a void



241
242
243
# File 'lib/models/security_incident.rb', line 241

def last_modified_by=(value)
    @last_modified_by = value
end

#last_update_date_timeObject

Gets the lastUpdateDateTime property value. Time when the incident was last updated.

Returns:

  • a date_time



248
249
250
# File 'lib/models/security_incident.rb', line 248

def last_update_date_time
    return @last_update_date_time
end

#last_update_date_time=(value) ⇒ Object

Sets the lastUpdateDateTime property value. Time when the incident was last updated.

Parameters:

  • value

    Value to set for the lastUpdateDateTime property.

Returns:

  • a void



256
257
258
# File 'lib/models/security_incident.rb', line 256

def last_update_date_time=(value)
    @last_update_date_time = value
end

#redirect_incident_idObject

Gets the redirectIncidentId property value. Only populated in case an incident is grouped together with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected.

Returns:

  • a string



263
264
265
# File 'lib/models/security_incident.rb', line 263

def redirect_incident_id
    return @redirect_incident_id
end

#redirect_incident_id=(value) ⇒ Object

Sets the redirectIncidentId property value. Only populated in case an incident is grouped together with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected.

Parameters:

  • value

    Value to set for the redirectIncidentId property.

Returns:

  • a void



271
272
273
# File 'lib/models/security_incident.rb', line 271

def redirect_incident_id=(value)
    @redirect_incident_id = 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)


279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
# File 'lib/models/security_incident.rb', line 279

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("alerts", @alerts)
    writer.write_string_value("assignedTo", @assigned_to)
    writer.write_enum_value("classification", @classification)
    writer.write_collection_of_object_values("comments", @comments)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_collection_of_primitive_values("customTags", @custom_tags)
    writer.write_enum_value("determination", @determination)
    writer.write_string_value("displayName", @display_name)
    writer.write_string_value("incidentWebUrl", @incident_web_url)
    writer.write_string_value("lastModifiedBy", @last_modified_by)
    writer.write_date_time_value("lastUpdateDateTime", @last_update_date_time)
    writer.write_string_value("redirectIncidentId", @redirect_incident_id)
    writer.write_enum_value("severity", @severity)
    writer.write_enum_value("status", @status)
    writer.write_string_value("tenantId", @tenant_id)
end

#severityObject

Gets the severity property value. The severity property

Returns:

  • a security_alert_severity



302
303
304
# File 'lib/models/security_incident.rb', line 302

def severity
    return @severity
end

#severity=(value) ⇒ Object

Sets the severity property value. The severity property

Parameters:

  • value

    Value to set for the severity property.

Returns:

  • a void



310
311
312
# File 'lib/models/security_incident.rb', line 310

def severity=(value)
    @severity = value
end

#statusObject

Gets the status property value. The status property

Returns:

  • a security_incident_status



317
318
319
# File 'lib/models/security_incident.rb', line 317

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



325
326
327
# File 'lib/models/security_incident.rb', line 325

def status=(value)
    @status = value
end

#tenant_idObject

Gets the tenantId property value. The Azure Active Directory tenant in which the alert was created.

Returns:

  • a string



332
333
334
# File 'lib/models/security_incident.rb', line 332

def tenant_id
    return @tenant_id
end

#tenant_id=(value) ⇒ Object

Sets the tenantId property value. The Azure Active Directory tenant in which the alert was created.

Parameters:

  • value

    Value to set for the tenantId property.

Returns:

  • a void



340
341
342
# File 'lib/models/security_incident.rb', line 340

def tenant_id=(value)
    @tenant_id = value
end