Class: MicrosoftGraph::Models::SecurityAnalyzedMessageEvidence
- Inherits:
-
SecurityAlertEvidence
- Object
- SecurityAlertEvidence
- MicrosoftGraph::Models::SecurityAnalyzedMessageEvidence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_analyzed_message_evidence.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
-
#anti_spam_direction ⇒ Object
Gets the antiSpamDirection property value.
-
#anti_spam_direction=(value) ⇒ Object
Sets the antiSpamDirection property value.
-
#attachments_count ⇒ Object
Gets the attachmentsCount property value.
-
#attachments_count=(value) ⇒ Object
Sets the attachmentsCount property value.
-
#delivery_action ⇒ Object
Gets the deliveryAction property value.
-
#delivery_action=(value) ⇒ Object
Sets the deliveryAction property value.
-
#delivery_location ⇒ Object
Gets the deliveryLocation property value.
-
#delivery_location=(value) ⇒ Object
Sets the deliveryLocation property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityAnalyzedMessageEvidence and sets the default values.
-
#internet_message_id ⇒ Object
Gets the internetMessageId property value.
-
#internet_message_id=(value) ⇒ Object
Sets the internetMessageId property value.
-
#language ⇒ Object
Gets the language property value.
-
#language=(value) ⇒ Object
Sets the language property value.
-
#network_message_id ⇒ Object
Gets the networkMessageId property value.
-
#network_message_id=(value) ⇒ Object
Sets the networkMessageId property value.
-
#p1_sender ⇒ Object
Gets the p1Sender property value.
-
#p1_sender=(value) ⇒ Object
Sets the p1Sender property value.
-
#p2_sender ⇒ Object
Gets the p2Sender property value.
-
#p2_sender=(value) ⇒ Object
Sets the p2Sender property value.
-
#received_date_time ⇒ Object
Gets the receivedDateTime property value.
-
#received_date_time=(value) ⇒ Object
Sets the receivedDateTime property value.
-
#recipient_email_address ⇒ Object
Gets the recipientEmailAddress property value.
-
#recipient_email_address=(value) ⇒ Object
Sets the recipientEmailAddress property value.
-
#sender_ip ⇒ Object
Gets the senderIp property value.
-
#sender_ip=(value) ⇒ Object
Sets the senderIp property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#subject ⇒ Object
Gets the subject property value.
-
#subject=(value) ⇒ Object
Sets the subject property value.
-
#threat_detection_methods ⇒ Object
Gets the threatDetectionMethods property value.
-
#threat_detection_methods=(value) ⇒ Object
Sets the threatDetectionMethods property value.
-
#threats ⇒ Object
Gets the threats property value.
-
#threats=(value) ⇒ Object
Sets the threats property value.
-
#url_count ⇒ Object
Gets the urlCount property value.
-
#url_count=(value) ⇒ Object
Sets the urlCount property value.
-
#urls ⇒ Object
Gets the urls property value.
-
#urls=(value) ⇒ Object
Sets the urls property value.
-
#urn ⇒ Object
Gets the urn property value.
-
#urn=(value) ⇒ Object
Sets the urn property value.
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
#initialize ⇒ Object
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
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_direction ⇒ Object
Gets the antiSpamDirection property value. Direction of the email relative to your network. The possible values are: inbound, outbound or intraorg.
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.
76 77 78 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 76 def anti_spam_direction=(value) @anti_spam_direction = value end |
#attachments_count ⇒ Object
Gets the attachmentsCount property value. Number of attachments in the email.
83 84 85 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 83 def return end |
#attachments_count=(value) ⇒ Object
Sets the attachmentsCount property value. Number of attachments in the email.
91 92 93 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 91 def (value) = value end |
#delivery_action ⇒ Object
Gets the deliveryAction property value. Delivery action of the email. The possible values are: delivered, deliveredAsSpam, junked, blocked, or replaced.
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.
123 124 125 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 123 def delivery_action=(value) @delivery_action = value end |
#delivery_location ⇒ Object
Gets the deliveryLocation property value. Location where the email was delivered. The possible values are: inbox, external, junkFolder, quarantine, failed, dropped, deletedFolder or forwarded.
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.
138 139 140 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 138 def delivery_location=(value) @delivery_location = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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| = 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| = n.get_string_value() }, "language" => lambda {|n| @language = n.get_string_value() }, "networkMessageId" => lambda {|n| = 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_id ⇒ Object
Gets the internetMessageId property value. Public-facing identifier for the email that is set by the sending email system.
171 172 173 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 171 def return 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.
179 180 181 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 179 def (value) = value end |
#language ⇒ Object
Gets the language property value. Detected language of the email content.
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.
194 195 196 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 194 def language=(value) @language = value end |
#network_message_id ⇒ Object
Gets the networkMessageId property value. Unique identifier for the email, generated by Microsoft 365.
201 202 203 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 201 def return end |
#network_message_id=(value) ⇒ Object
Sets the networkMessageId property value. Unique identifier for the email, generated by Microsoft 365.
209 210 211 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 209 def (value) = value end |
#p1_sender ⇒ Object
Gets the p1Sender property value. The P1 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.
224 225 226 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 224 def p1_sender=(value) @p1_sender = value end |
#p2_sender ⇒ Object
Gets the p2Sender property value. The P2 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.
239 240 241 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 239 def p2_sender=(value) @p2_sender = value end |
#received_date_time ⇒ Object
Gets the receivedDateTime property value. Date and time when the email was received.
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.
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_address ⇒ Object
Gets the recipientEmailAddress property value. Email address of the recipient, or email address of the recipient after distribution list expansion.
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.
269 270 271 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 269 def recipient_email_address=(value) @recipient_email_address = value end |
#sender_ip ⇒ Object
Gets the senderIp property value. IP address of the last detected mail server that relayed the message.
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.
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
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", ) writer.write_string_value("deliveryAction", @delivery_action) writer.write_string_value("deliveryLocation", @delivery_location) writer.write_string_value("internetMessageId", ) writer.write_string_value("language", @language) writer.write_string_value("networkMessageId", ) 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 |
#subject ⇒ Object
Gets the subject property value. Subject of the email.
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.
326 327 328 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 326 def subject=(value) @subject = value end |
#threat_detection_methods ⇒ Object
Gets the threatDetectionMethods property value. Collection of methods used to detect malware, phishing, or other threats found in the email.
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.
341 342 343 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 341 def threat_detection_methods=(value) @threat_detection_methods = value end |
#threats ⇒ Object
Gets the threats property value. Collection of detection names for malware or other threats found.
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.
356 357 358 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 356 def threats=(value) @threats = value end |
#url_count ⇒ Object
Gets the urlCount property value. Number of embedded URLs in the email.
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.
371 372 373 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 371 def url_count=(value) @url_count = value end |
#urls ⇒ Object
Gets the urls property value. Collection of the URLs contained in this email.
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.
386 387 388 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 386 def urls=(value) @urls = value end |
#urn ⇒ Object
Gets the urn property value. Uniform resource name (URN) of the automated investigation where the cluster was identified.
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.
401 402 403 |
# File 'lib/models/security_analyzed_message_evidence.rb', line 401 def urn=(value) @urn = value end |