Class: MicrosoftGraph::Models::SecurityAlertEvidence
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::SecurityAlertEvidence
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_alert_evidence.rb
Direct Known Subclasses
SecurityAmazonResourceEvidence, SecurityAnalyzedMessageEvidence, SecurityAzureResourceEvidence, SecurityBlobContainerEvidence, SecurityBlobEvidence, SecurityCloudApplicationEvidence, SecurityContainerEvidence, SecurityContainerImageEvidence, SecurityContainerRegistryEvidence, SecurityDeviceEvidence, SecurityFileEvidence, SecurityGoogleCloudResourceEvidence, SecurityIpEvidence, SecurityKubernetesClusterEvidence, SecurityKubernetesControllerEvidence, SecurityKubernetesNamespaceEvidence, SecurityKubernetesPodEvidence, SecurityKubernetesSecretEvidence, SecurityKubernetesServiceAccountEvidence, SecurityKubernetesServiceEvidence, SecurityMailClusterEvidence, SecurityMailboxEvidence, SecurityOauthApplicationEvidence, SecurityProcessEvidence, SecurityRegistryKeyEvidence, SecurityRegistryValueEvidence, SecuritySecurityGroupEvidence, SecurityUrlEvidence, SecurityUserEvidence
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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#detailed_roles ⇒ Object
Gets the detailedRoles property value.
-
#detailed_roles=(value) ⇒ Object
Sets the detailedRoles property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityAlertEvidence and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#remediation_status ⇒ Object
Gets the remediationStatus property value.
-
#remediation_status=(value) ⇒ Object
Sets the remediationStatus property value.
-
#remediation_status_details ⇒ Object
Gets the remediationStatusDetails property value.
-
#remediation_status_details=(value) ⇒ Object
Sets the remediationStatusDetails property value.
-
#roles ⇒ Object
Gets the roles property value.
-
#roles=(value) ⇒ Object
Sets the roles property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#tags ⇒ Object
Gets the tags property value.
-
#tags=(value) ⇒ Object
Sets the tags property value.
-
#verdict ⇒ Object
Gets the verdict property value.
-
#verdict=(value) ⇒ Object
Sets the verdict property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new securityAlertEvidence and sets the default values.
56 57 58 |
# File 'lib/models/security_alert_evidence.rb', line 56 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/models/security_alert_evidence.rb', line 79 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.security.amazonResourceEvidence" return SecurityAmazonResourceEvidence.new when "#microsoft.graph.security.analyzedMessageEvidence" return SecurityAnalyzedMessageEvidence.new when "#microsoft.graph.security.azureResourceEvidence" return SecurityAzureResourceEvidence.new when "#microsoft.graph.security.blobContainerEvidence" return SecurityBlobContainerEvidence.new when "#microsoft.graph.security.blobEvidence" return SecurityBlobEvidence.new when "#microsoft.graph.security.cloudApplicationEvidence" return SecurityCloudApplicationEvidence.new when "#microsoft.graph.security.containerEvidence" return SecurityContainerEvidence.new when "#microsoft.graph.security.containerImageEvidence" return SecurityContainerImageEvidence.new when "#microsoft.graph.security.containerRegistryEvidence" return SecurityContainerRegistryEvidence.new when "#microsoft.graph.security.deviceEvidence" return SecurityDeviceEvidence.new when "#microsoft.graph.security.fileEvidence" return SecurityFileEvidence.new when "#microsoft.graph.security.googleCloudResourceEvidence" return SecurityGoogleCloudResourceEvidence.new when "#microsoft.graph.security.ipEvidence" return SecurityIpEvidence.new when "#microsoft.graph.security.kubernetesClusterEvidence" return SecurityKubernetesClusterEvidence.new when "#microsoft.graph.security.kubernetesControllerEvidence" return SecurityKubernetesControllerEvidence.new when "#microsoft.graph.security.kubernetesNamespaceEvidence" return SecurityKubernetesNamespaceEvidence.new when "#microsoft.graph.security.kubernetesPodEvidence" return SecurityKubernetesPodEvidence.new when "#microsoft.graph.security.kubernetesSecretEvidence" return SecurityKubernetesSecretEvidence.new when "#microsoft.graph.security.kubernetesServiceAccountEvidence" return SecurityKubernetesServiceAccountEvidence.new when "#microsoft.graph.security.kubernetesServiceEvidence" return SecurityKubernetesServiceEvidence.new when "#microsoft.graph.security.mailboxEvidence" return SecurityMailboxEvidence.new when "#microsoft.graph.security.mailClusterEvidence" return SecurityMailClusterEvidence.new when "#microsoft.graph.security.oauthApplicationEvidence" return SecurityOauthApplicationEvidence.new when "#microsoft.graph.security.processEvidence" return SecurityProcessEvidence.new when "#microsoft.graph.security.registryKeyEvidence" return SecurityRegistryKeyEvidence.new when "#microsoft.graph.security.registryValueEvidence" return SecurityRegistryValueEvidence.new when "#microsoft.graph.security.securityGroupEvidence" return SecuritySecurityGroupEvidence.new when "#microsoft.graph.security.urlEvidence" return SecurityUrlEvidence.new when "#microsoft.graph.security.userEvidence" return SecurityUserEvidence.new end end return SecurityAlertEvidence.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
41 42 43 |
# File 'lib/models/security_alert_evidence.rb', line 41 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
49 50 51 |
# File 'lib/models/security_alert_evidence.rb', line 49 def additional_data=(value) @additional_data = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date and time when the evidence was created and added to the alert. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
63 64 65 |
# File 'lib/models/security_alert_evidence.rb', line 63 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The date and time when the evidence was created and added to the alert. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
71 72 73 |
# File 'lib/models/security_alert_evidence.rb', line 71 def created_date_time=(value) @created_date_time = value end |
#detailed_roles ⇒ Object
Gets the detailedRoles property value. Detailed description of the entity role/s in an alert. Values are free-form.
151 152 153 |
# File 'lib/models/security_alert_evidence.rb', line 151 def detailed_roles return @detailed_roles end |
#detailed_roles=(value) ⇒ Object
Sets the detailedRoles property value. Detailed description of the entity role/s in an alert. Values are free-form.
159 160 161 |
# File 'lib/models/security_alert_evidence.rb', line 159 def detailed_roles=(value) @detailed_roles = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
166 167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/models/security_alert_evidence.rb', line 166 def get_field_deserializers() return { "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "detailedRoles" => lambda {|n| @detailed_roles = n.get_collection_of_primitive_values(String) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "remediationStatus" => lambda {|n| @remediation_status = n.get_enum_value(MicrosoftGraph::Models::SecurityEvidenceRemediationStatus) }, "remediationStatusDetails" => lambda {|n| @remediation_status_details = n.get_string_value() }, "roles" => lambda {|n| @roles = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityEvidenceRole.create_from_discriminator_value(pn) }) }, "tags" => lambda {|n| = n.get_collection_of_primitive_values(String) }, "verdict" => lambda {|n| @verdict = n.get_enum_value(MicrosoftGraph::Models::SecurityEvidenceVerdict) }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
182 183 184 |
# File 'lib/models/security_alert_evidence.rb', line 182 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
190 191 192 |
# File 'lib/models/security_alert_evidence.rb', line 190 def odata_type=(value) @odata_type = value end |
#remediation_status ⇒ Object
Gets the remediationStatus property value. The remediationStatus property
197 198 199 |
# File 'lib/models/security_alert_evidence.rb', line 197 def remediation_status return @remediation_status end |
#remediation_status=(value) ⇒ Object
Sets the remediationStatus property value. The remediationStatus property
205 206 207 |
# File 'lib/models/security_alert_evidence.rb', line 205 def remediation_status=(value) @remediation_status = value end |
#remediation_status_details ⇒ Object
Gets the remediationStatusDetails property value. Details about the remediation status.
212 213 214 |
# File 'lib/models/security_alert_evidence.rb', line 212 def remediation_status_details return @remediation_status_details end |
#remediation_status_details=(value) ⇒ Object
Sets the remediationStatusDetails property value. Details about the remediation status.
220 221 222 |
# File 'lib/models/security_alert_evidence.rb', line 220 def remediation_status_details=(value) @remediation_status_details = value end |
#roles ⇒ Object
Gets the roles property value. The role/s that an evidence entity represents in an alert, e.g., an IP address that is associated with an attacker will have the evidence role Attacker.
227 228 229 |
# File 'lib/models/security_alert_evidence.rb', line 227 def roles return @roles end |
#roles=(value) ⇒ Object
Sets the roles property value. The role/s that an evidence entity represents in an alert, e.g., an IP address that is associated with an attacker will have the evidence role Attacker.
235 236 237 |
# File 'lib/models/security_alert_evidence.rb', line 235 def roles=(value) @roles = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
243 244 245 246 247 248 249 250 251 252 253 254 |
# File 'lib/models/security_alert_evidence.rb', line 243 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_collection_of_primitive_values("detailedRoles", @detailed_roles) writer.write_string_value("@odata.type", @odata_type) writer.write_enum_value("remediationStatus", @remediation_status) writer.write_string_value("remediationStatusDetails", @remediation_status_details) writer.write_collection_of_object_values("roles", @roles) writer.write_collection_of_primitive_values("tags", ) writer.write_enum_value("verdict", @verdict) writer.write_additional_data(@additional_data) end |
#tags ⇒ Object
Gets the tags property value. Array of custom tags associated with an evidence instance, for example, to denote a group of devices, high-value assets, etc.
259 260 261 |
# File 'lib/models/security_alert_evidence.rb', line 259 def return end |
#tags=(value) ⇒ Object
Sets the tags property value. Array of custom tags associated with an evidence instance, for example, to denote a group of devices, high-value assets, etc.
267 268 269 |
# File 'lib/models/security_alert_evidence.rb', line 267 def (value) = value end |
#verdict ⇒ Object
Gets the verdict property value. The verdict property
274 275 276 |
# File 'lib/models/security_alert_evidence.rb', line 274 def verdict return @verdict end |
#verdict=(value) ⇒ Object
Sets the verdict property value. The verdict property
282 283 284 |
# File 'lib/models/security_alert_evidence.rb', line 282 def verdict=(value) @verdict = value end |