Class: MicrosoftGraph::Models::SecurityAnalyzedMessageEvidence

Inherits:
SecurityAlertEvidence show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_analyzed_message_evidence.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SecurityAlertEvidence

#additional_data, #additional_data=, #created_date_time, #created_date_time=, #detailed_roles, #detailed_roles=, #odata_type, #odata_type=, #remediation_status, #remediation_status=, #remediation_status_details, #remediation_status_details=, #roles, #roles=, #tags, #tags=, #verdict, #verdict=

Constructor Details

#initializeObject

Instantiates a new securityAnalyzedMessageEvidence and sets the default values.



98
99
100
101
# File 'lib/models/security_analyzed_message_evidence.rb', line 98

def initialize()
    super
    @odata_type = "#microsoft.graph.security.analyzedMessageEvidence"
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_analyzed_message_evidence

Raises:

  • (StandardError)


107
108
109
110
# File 'lib/models/security_analyzed_message_evidence.rb', line 107

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

Instance Method Details

#anti_spam_directionObject

Gets the antiSpamDirection property value. Direction of the email relative to your network. The possible values are: inbound, outbound or intraorg.

Returns:

  • a string



68
69
70
# File 'lib/models/security_analyzed_message_evidence.rb', line 68

def anti_spam_direction
    return @anti_spam_direction
end

#anti_spam_direction=(value) ⇒ Object

Sets the antiSpamDirection property value. Direction of the email relative to your network. The possible values are: inbound, outbound or intraorg.

Parameters:

  • value

    Value to set for the antiSpamDirection property.

Returns:

  • a void



76
77
78
# File 'lib/models/security_analyzed_message_evidence.rb', line 76

def anti_spam_direction=(value)
    @anti_spam_direction = value
end

#attachments_countObject

Gets the attachmentsCount property value. Number of attachments in the email.

Returns:

  • a int64



83
84
85
# File 'lib/models/security_analyzed_message_evidence.rb', line 83

def attachments_count
    return @attachments_count
end

#attachments_count=(value) ⇒ Object

Sets the attachmentsCount property value. Number of attachments in the email.

Parameters:

  • value

    Value to set for the attachmentsCount property.

Returns:

  • a void



91
92
93
# File 'lib/models/security_analyzed_message_evidence.rb', line 91

def attachments_count=(value)
    @attachments_count = value
end

#delivery_actionObject

Gets the deliveryAction property value. Delivery action of the email. The possible values are: delivered, deliveredAsSpam, junked, blocked, or replaced.

Returns:

  • a string



115
116
117
# File 'lib/models/security_analyzed_message_evidence.rb', line 115

def delivery_action
    return @delivery_action
end

#delivery_action=(value) ⇒ Object

Sets the deliveryAction property value. Delivery action of the email. The possible values are: delivered, deliveredAsSpam, junked, blocked, or replaced.

Parameters:

  • value

    Value to set for the deliveryAction property.

Returns:

  • a void



123
124
125
# File 'lib/models/security_analyzed_message_evidence.rb', line 123

def delivery_action=(value)
    @delivery_action = value
end

#delivery_locationObject

Gets the deliveryLocation property value. Location where the email was delivered. The possible values are: inbox, external, junkFolder, quarantine, failed, dropped, deletedFolder or forwarded.

Returns:

  • a string



130
131
132
# File 'lib/models/security_analyzed_message_evidence.rb', line 130

def delivery_location
    return @delivery_location
end

#delivery_location=(value) ⇒ Object

Sets the deliveryLocation property value. Location where the email was delivered. The possible values are: inbox, external, junkFolder, quarantine, failed, dropped, deletedFolder or forwarded.

Parameters:

  • value

    Value to set for the deliveryLocation property.

Returns:

  • a void



138
139
140
# File 'lib/models/security_analyzed_message_evidence.rb', line 138

def delivery_location=(value)
    @delivery_location = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/models/security_analyzed_message_evidence.rb', line 145

def get_field_deserializers()
    return super.merge({
        "antiSpamDirection" => lambda {|n| @anti_spam_direction = n.get_string_value() },
        "attachmentsCount" => lambda {|n| @attachments_count = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "deliveryAction" => lambda {|n| @delivery_action = n.get_string_value() },
        "deliveryLocation" => lambda {|n| @delivery_location = n.get_string_value() },
        "internetMessageId" => lambda {|n| @internet_message_id = n.get_string_value() },
        "language" => lambda {|n| @language = n.get_string_value() },
        "networkMessageId" => lambda {|n| @network_message_id = n.get_string_value() },
        "p1Sender" => lambda {|n| @p1_sender = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityEmailSender.create_from_discriminator_value(pn) }) },
        "p2Sender" => lambda {|n| @p2_sender = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityEmailSender.create_from_discriminator_value(pn) }) },
        "receivedDateTime" => lambda {|n| @received_date_time = n.get_date_time_value() },
        "recipientEmailAddress" => lambda {|n| @recipient_email_address = n.get_string_value() },
        "senderIp" => lambda {|n| @sender_ip = n.get_string_value() },
        "subject" => lambda {|n| @subject = n.get_string_value() },
        "threatDetectionMethods" => lambda {|n| @threat_detection_methods = n.get_collection_of_primitive_values(String) },
        "threats" => lambda {|n| @threats = n.get_collection_of_primitive_values(String) },
        "urlCount" => lambda {|n| @url_count = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "urls" => lambda {|n| @urls = n.get_collection_of_primitive_values(String) },
        "urn" => lambda {|n| @urn = n.get_string_value() },
    })
end

#internet_message_idObject

Gets the internetMessageId property value. Public-facing identifier for the email that is set by the sending email system.

Returns:

  • a string



171
172
173
# File 'lib/models/security_analyzed_message_evidence.rb', line 171

def internet_message_id
    return @internet_message_id
end

#internet_message_id=(value) ⇒ Object

Sets the internetMessageId property value. Public-facing identifier for the email that is set by the sending email system.

Parameters:

  • value

    Value to set for the internetMessageId property.

Returns:

  • a void



179
180
181
# File 'lib/models/security_analyzed_message_evidence.rb', line 179

def internet_message_id=(value)
    @internet_message_id = value
end

#languageObject

Gets the language property value. Detected language of the email content.

Returns:

  • a string



186
187
188
# File 'lib/models/security_analyzed_message_evidence.rb', line 186

def language
    return @language
end

#language=(value) ⇒ Object

Sets the language property value. Detected language of the email content.

Parameters:

  • value

    Value to set for the language property.

Returns:

  • a void



194
195
196
# File 'lib/models/security_analyzed_message_evidence.rb', line 194

def language=(value)
    @language = value
end

#network_message_idObject

Gets the networkMessageId property value. Unique identifier for the email, generated by Microsoft 365.

Returns:

  • a string



201
202
203
# File 'lib/models/security_analyzed_message_evidence.rb', line 201

def network_message_id
    return @network_message_id
end

#network_message_id=(value) ⇒ Object

Sets the networkMessageId property value. Unique identifier for the email, generated by Microsoft 365.

Parameters:

  • value

    Value to set for the networkMessageId property.

Returns:

  • a void



209
210
211
# File 'lib/models/security_analyzed_message_evidence.rb', line 209

def network_message_id=(value)
    @network_message_id = value
end

#p1_senderObject

Gets the p1Sender property value. The P1 sender.

Returns:

  • a security_email_sender



216
217
218
# File 'lib/models/security_analyzed_message_evidence.rb', line 216

def p1_sender
    return @p1_sender
end

#p1_sender=(value) ⇒ Object

Sets the p1Sender property value. The P1 sender.

Parameters:

  • value

    Value to set for the p1Sender property.

Returns:

  • a void



224
225
226
# File 'lib/models/security_analyzed_message_evidence.rb', line 224

def p1_sender=(value)
    @p1_sender = value
end

#p2_senderObject

Gets the p2Sender property value. The P2 sender.

Returns:

  • a security_email_sender



231
232
233
# File 'lib/models/security_analyzed_message_evidence.rb', line 231

def p2_sender
    return @p2_sender
end

#p2_sender=(value) ⇒ Object

Sets the p2Sender property value. The P2 sender.

Parameters:

  • value

    Value to set for the p2Sender property.

Returns:

  • a void



239
240
241
# File 'lib/models/security_analyzed_message_evidence.rb', line 239

def p2_sender=(value)
    @p2_sender = value
end

#received_date_timeObject

Gets the receivedDateTime property value. Date and time when the email was received.

Returns:

  • a date_time



246
247
248
# File 'lib/models/security_analyzed_message_evidence.rb', line 246

def received_date_time
    return @received_date_time
end

#received_date_time=(value) ⇒ Object

Sets the receivedDateTime property value. Date and time when the email was received.

Parameters:

  • value

    Value to set for the receivedDateTime property.

Returns:

  • a void



254
255
256
# File 'lib/models/security_analyzed_message_evidence.rb', line 254

def received_date_time=(value)
    @received_date_time = value
end

#recipient_email_addressObject

Gets the recipientEmailAddress property value. Email address of the recipient, or email address of the recipient after distribution list expansion.

Returns:

  • a string



261
262
263
# File 'lib/models/security_analyzed_message_evidence.rb', line 261

def recipient_email_address
    return @recipient_email_address
end

#recipient_email_address=(value) ⇒ Object

Sets the recipientEmailAddress property value. Email address of the recipient, or email address of the recipient after distribution list expansion.

Parameters:

  • value

    Value to set for the recipientEmailAddress property.

Returns:

  • a void



269
270
271
# File 'lib/models/security_analyzed_message_evidence.rb', line 269

def recipient_email_address=(value)
    @recipient_email_address = value
end

#sender_ipObject

Gets the senderIp property value. IP address of the last detected mail server that relayed the message.

Returns:

  • a string



276
277
278
# File 'lib/models/security_analyzed_message_evidence.rb', line 276

def sender_ip
    return @sender_ip
end

#sender_ip=(value) ⇒ Object

Sets the senderIp property value. IP address of the last detected mail server that relayed the message.

Parameters:

  • value

    Value to set for the senderIp property.

Returns:

  • a void



284
285
286
# File 'lib/models/security_analyzed_message_evidence.rb', line 284

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


292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
# File 'lib/models/security_analyzed_message_evidence.rb', line 292

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("antiSpamDirection", @anti_spam_direction)
    writer.write_object_value("attachmentsCount", @attachments_count)
    writer.write_string_value("deliveryAction", @delivery_action)
    writer.write_string_value("deliveryLocation", @delivery_location)
    writer.write_string_value("internetMessageId", @internet_message_id)
    writer.write_string_value("language", @language)
    writer.write_string_value("networkMessageId", @network_message_id)
    writer.write_object_value("p1Sender", @p1_sender)
    writer.write_object_value("p2Sender", @p2_sender)
    writer.write_date_time_value("receivedDateTime", @received_date_time)
    writer.write_string_value("recipientEmailAddress", @recipient_email_address)
    writer.write_string_value("senderIp", @sender_ip)
    writer.write_string_value("subject", @subject)
    writer.write_collection_of_primitive_values("threatDetectionMethods", @threat_detection_methods)
    writer.write_collection_of_primitive_values("threats", @threats)
    writer.write_object_value("urlCount", @url_count)
    writer.write_collection_of_primitive_values("urls", @urls)
    writer.write_string_value("urn", @urn)
end

#subjectObject

Gets the subject property value. Subject of the email.

Returns:

  • a string



318
319
320
# File 'lib/models/security_analyzed_message_evidence.rb', line 318

def subject
    return @subject
end

#subject=(value) ⇒ Object

Sets the subject property value. Subject of the email.

Parameters:

  • value

    Value to set for the subject property.

Returns:

  • a void



326
327
328
# File 'lib/models/security_analyzed_message_evidence.rb', line 326

def subject=(value)
    @subject = value
end

#threat_detection_methodsObject

Gets the threatDetectionMethods property value. Collection of methods used to detect malware, phishing, or other threats found in the email.

Returns:

  • a string



333
334
335
# File 'lib/models/security_analyzed_message_evidence.rb', line 333

def threat_detection_methods
    return @threat_detection_methods
end

#threat_detection_methods=(value) ⇒ Object

Sets the threatDetectionMethods property value. Collection of methods used to detect malware, phishing, or other threats found in the email.

Parameters:

  • value

    Value to set for the threatDetectionMethods property.

Returns:

  • a void



341
342
343
# File 'lib/models/security_analyzed_message_evidence.rb', line 341

def threat_detection_methods=(value)
    @threat_detection_methods = value
end

#threatsObject

Gets the threats property value. Collection of detection names for malware or other threats found.

Returns:

  • a string



348
349
350
# File 'lib/models/security_analyzed_message_evidence.rb', line 348

def threats
    return @threats
end

#threats=(value) ⇒ Object

Sets the threats property value. Collection of detection names for malware or other threats found.

Parameters:

  • value

    Value to set for the threats property.

Returns:

  • a void



356
357
358
# File 'lib/models/security_analyzed_message_evidence.rb', line 356

def threats=(value)
    @threats = value
end

#url_countObject

Gets the urlCount property value. Number of embedded URLs in the email.

Returns:

  • a int64



363
364
365
# File 'lib/models/security_analyzed_message_evidence.rb', line 363

def url_count
    return @url_count
end

#url_count=(value) ⇒ Object

Sets the urlCount property value. Number of embedded URLs in the email.

Parameters:

  • value

    Value to set for the urlCount property.

Returns:

  • a void



371
372
373
# File 'lib/models/security_analyzed_message_evidence.rb', line 371

def url_count=(value)
    @url_count = value
end

#urlsObject

Gets the urls property value. Collection of the URLs contained in this email.

Returns:

  • a string



378
379
380
# File 'lib/models/security_analyzed_message_evidence.rb', line 378

def urls
    return @urls
end

#urls=(value) ⇒ Object

Sets the urls property value. Collection of the URLs contained in this email.

Parameters:

  • value

    Value to set for the urls property.

Returns:

  • a void



386
387
388
# File 'lib/models/security_analyzed_message_evidence.rb', line 386

def urls=(value)
    @urls = value
end

#urnObject

Gets the urn property value. Uniform resource name (URN) of the automated investigation where the cluster was identified.

Returns:

  • a string



393
394
395
# File 'lib/models/security_analyzed_message_evidence.rb', line 393

def urn
    return @urn
end

#urn=(value) ⇒ Object

Sets the urn property value. Uniform resource name (URN) of the automated investigation where the cluster was identified.

Parameters:

  • value

    Value to set for the urn property.

Returns:

  • a void



401
402
403
# File 'lib/models/security_analyzed_message_evidence.rb', line 401

def urn=(value)
    @urn = value
end