Class: MicrosoftGraph::Models::SecurityFileEvidence
- Inherits:
-
SecurityAlertEvidence
- Object
- SecurityAlertEvidence
- MicrosoftGraph::Models::SecurityFileEvidence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_file_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
-
#detection_status ⇒ Object
Gets the detectionStatus property value.
-
#detection_status=(value) ⇒ Object
Sets the detectionStatus property value.
-
#file_details ⇒ Object
Gets the fileDetails property value.
-
#file_details=(value) ⇒ Object
Sets the fileDetails property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityFileEvidence and sets the default values.
-
#mde_device_id ⇒ Object
Gets the mdeDeviceId property value.
-
#mde_device_id=(value) ⇒ Object
Sets the mdeDeviceId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
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 securityFileEvidence and sets the default values.
22 23 24 25 |
# File 'lib/models/security_file_evidence.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.security.fileEvidence" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
31 32 33 34 |
# File 'lib/models/security_file_evidence.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityFileEvidence.new end |
Instance Method Details
#detection_status ⇒ Object
Gets the detectionStatus property value. The status of the detection.The possible values are: detected, blocked, prevented, unknownFutureValue.
39 40 41 |
# File 'lib/models/security_file_evidence.rb', line 39 def detection_status return @detection_status end |
#detection_status=(value) ⇒ Object
Sets the detectionStatus property value. The status of the detection.The possible values are: detected, blocked, prevented, unknownFutureValue.
47 48 49 |
# File 'lib/models/security_file_evidence.rb', line 47 def detection_status=(value) @detection_status = value end |
#file_details ⇒ Object
Gets the fileDetails property value. The file details.
54 55 56 |
# File 'lib/models/security_file_evidence.rb', line 54 def file_details return @file_details end |
#file_details=(value) ⇒ Object
Sets the fileDetails property value. The file details.
62 63 64 |
# File 'lib/models/security_file_evidence.rb', line 62 def file_details=(value) @file_details = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
69 70 71 72 73 74 75 |
# File 'lib/models/security_file_evidence.rb', line 69 def get_field_deserializers() return super.merge({ "detectionStatus" => lambda {|n| @detection_status = n.get_enum_value(MicrosoftGraph::Models::SecurityDetectionStatus) }, "fileDetails" => lambda {|n| @file_details = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityFileDetails.create_from_discriminator_value(pn) }) }, "mdeDeviceId" => lambda {|n| @mde_device_id = n.get_string_value() }, }) end |
#mde_device_id ⇒ Object
Gets the mdeDeviceId property value. A unique identifier assigned to a device by Microsoft Defender for Endpoint.
80 81 82 |
# File 'lib/models/security_file_evidence.rb', line 80 def mde_device_id return @mde_device_id end |
#mde_device_id=(value) ⇒ Object
Sets the mdeDeviceId property value. A unique identifier assigned to a device by Microsoft Defender for Endpoint.
88 89 90 |
# File 'lib/models/security_file_evidence.rb', line 88 def mde_device_id=(value) @mde_device_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 102 |
# File 'lib/models/security_file_evidence.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("detectionStatus", @detection_status) writer.write_object_value("fileDetails", @file_details) writer.write_string_value("mdeDeviceId", @mde_device_id) end |