Class: MicrosoftGraph::Models::SecurityAmazonResourceEvidence
- Inherits:
-
SecurityAlertEvidence
- Object
- SecurityAlertEvidence
- MicrosoftGraph::Models::SecurityAmazonResourceEvidence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_amazon_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
-
#amazon_account_id ⇒ Object
Gets the amazonAccountId property value.
-
#amazon_account_id=(value) ⇒ Object
Sets the amazonAccountId property value.
-
#amazon_resource_id ⇒ Object
Gets the amazonResourceId property value.
-
#amazon_resource_id=(value) ⇒ Object
Sets the amazonResourceId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityAmazonResourceEvidence and sets the default values.
-
#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 securityAmazonResourceEvidence and sets the default values.
55 56 57 58 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 55 def initialize() super @odata_type = "#microsoft.graph.security.amazonResourceEvidence" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
64 65 66 67 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 64 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityAmazonResourceEvidence.new end |
Instance Method Details
#amazon_account_id ⇒ Object
Gets the amazonAccountId property value. The unique identifier for the Amazon account.
25 26 27 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 25 def amazon_account_id return @amazon_account_id end |
#amazon_account_id=(value) ⇒ Object
Sets the amazonAccountId property value. The unique identifier for the Amazon account.
33 34 35 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 33 def amazon_account_id=(value) @amazon_account_id = value end |
#amazon_resource_id ⇒ Object
Gets the amazonResourceId property value. The Amazon resource identifier (ARN) for the cloud resource.
40 41 42 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 40 def amazon_resource_id return @amazon_resource_id end |
#amazon_resource_id=(value) ⇒ Object
Sets the amazonResourceId property value. The Amazon resource identifier (ARN) for the cloud resource.
48 49 50 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 48 def amazon_resource_id=(value) @amazon_resource_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
72 73 74 75 76 77 78 79 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 72 def get_field_deserializers() return super.merge({ "amazonAccountId" => lambda {|n| @amazon_account_id = n.get_string_value() }, "amazonResourceId" => lambda {|n| @amazon_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_name ⇒ Object
Gets the resourceName property value. The name of the resource.
84 85 86 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 84 def resource_name return @resource_name end |
#resource_name=(value) ⇒ Object
Sets the resourceName property value. The name of the resource.
92 93 94 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 92 def resource_name=(value) @resource_name = value end |
#resource_type ⇒ Object
Gets the resourceType property value. The type of the resource.
99 100 101 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 99 def resource_type return @resource_type end |
#resource_type=(value) ⇒ Object
Sets the resourceType property value. The type of the resource.
107 108 109 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 107 def resource_type=(value) @resource_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
115 116 117 118 119 120 121 122 |
# File 'lib/models/security_amazon_resource_evidence.rb', line 115 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("amazonAccountId", @amazon_account_id) writer.write_string_value("amazonResourceId", @amazon_resource_id) writer.write_string_value("resourceName", @resource_name) writer.write_string_value("resourceType", @resource_type) end |