Class: MicrosoftGraph::Models::SecurityAzureResourceEvidence

Inherits:
SecurityAlertEvidence show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_azure_resource_evidence.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a security_azure_resource_evidence

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_idObject

Gets the resourceId property value. The unique identifier for the Azure resource.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the resourceId property.

Returns:

  • a void



58
59
60
# File 'lib/models/security_azure_resource_evidence.rb', line 58

def resource_id=(value)
    @resource_id = value
end

#resource_nameObject

Gets the resourceName property value. The name of the resource.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the resourceName property.

Returns:

  • a void



73
74
75
# File 'lib/models/security_azure_resource_evidence.rb', line 73

def resource_name=(value)
    @resource_name = value
end

#resource_typeObject

Gets the resourceType property value. The type of the resource.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the resourceType property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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