Class: MicrosoftGraph::Models::SecurityAzureResourceEvidence
- Inherits:
-
SecurityAlertEvidence
- Object
- SecurityAlertEvidence
- MicrosoftGraph::Models::SecurityAzureResourceEvidence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_azure_resource_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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityAzureResourceEvidence and sets the default values.
-
#resource_id ⇒ Object
Gets the resourceId property value.
-
#resource_id=(value) ⇒ Object
Sets the resourceId property value.
-
#resource_name ⇒ Object
Gets the resourceName property value.
-
#resource_name=(value) ⇒ Object
Sets the resourceName property value.
-
#resource_type ⇒ Object
Gets the resourceType property value.
-
#resource_type=(value) ⇒ Object
Sets the resourceType 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 securityAzureResourceEvidence and sets the default values.
22 23 24 25 |
# File 'lib/models/security_azure_resource_evidence.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.security.azureResourceEvidence" 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_azure_resource_evidence.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityAzureResourceEvidence.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
39 40 41 42 43 44 45 |
# File 'lib/models/security_azure_resource_evidence.rb', line 39 def get_field_deserializers() return super.merge({ "resourceId" => lambda {|n| @resource_id = n.get_string_value() }, "resourceName" => lambda {|n| @resource_name = n.get_string_value() }, "resourceType" => lambda {|n| @resource_type = n.get_string_value() }, }) end |
#resource_id ⇒ Object
Gets the resourceId property value. The unique identifier for the Azure resource.
50 51 52 |
# File 'lib/models/security_azure_resource_evidence.rb', line 50 def resource_id return @resource_id end |
#resource_id=(value) ⇒ Object
Sets the resourceId property value. The unique identifier for the Azure resource.
58 59 60 |
# File 'lib/models/security_azure_resource_evidence.rb', line 58 def resource_id=(value) @resource_id = value end |
#resource_name ⇒ Object
Gets the resourceName property value. The name of the resource.
65 66 67 |
# File 'lib/models/security_azure_resource_evidence.rb', line 65 def resource_name return @resource_name end |
#resource_name=(value) ⇒ Object
Sets the resourceName property value. The name of the resource.
73 74 75 |
# File 'lib/models/security_azure_resource_evidence.rb', line 73 def resource_name=(value) @resource_name = value end |
#resource_type ⇒ Object
Gets the resourceType property value. The type of the resource.
80 81 82 |
# File 'lib/models/security_azure_resource_evidence.rb', line 80 def resource_type return @resource_type end |
#resource_type=(value) ⇒ Object
Sets the resourceType property value. The type of the resource.
88 89 90 |
# File 'lib/models/security_azure_resource_evidence.rb', line 88 def resource_type=(value) @resource_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 102 |
# File 'lib/models/security_azure_resource_evidence.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("resourceId", @resource_id) writer.write_string_value("resourceName", @resource_name) writer.write_string_value("resourceType", @resource_type) end |