Class: MicrosoftGraph::Models::SecurityRegistryKeyEvidence

Inherits:
SecurityAlertEvidence show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_registry_key_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 securityRegistryKeyEvidence and sets the default values.



19
20
21
22
# File 'lib/models/security_registry_key_evidence.rb', line 19

def initialize()
    super
    @odata_type = "#microsoft.graph.security.registryKeyEvidence"
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_registry_key_evidence

Raises:

  • (StandardError)


28
29
30
31
# File 'lib/models/security_registry_key_evidence.rb', line 28

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SecurityRegistryKeyEvidence.new
end

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



36
37
38
39
40
41
# File 'lib/models/security_registry_key_evidence.rb', line 36

def get_field_deserializers()
    return super.merge({
        "registryHive" => lambda {|n| @registry_hive = n.get_string_value() },
        "registryKey" => lambda {|n| @registry_key = n.get_string_value() },
    })
end

#registry_hiveObject

Gets the registryHive property value. Registry hive of the key that the recorded action was applied to.

Returns:

  • a string



46
47
48
# File 'lib/models/security_registry_key_evidence.rb', line 46

def registry_hive
    return @registry_hive
end

#registry_hive=(value) ⇒ Object

Sets the registryHive property value. Registry hive of the key that the recorded action was applied to.

Parameters:

  • value

    Value to set for the registryHive property.

Returns:

  • a void



54
55
56
# File 'lib/models/security_registry_key_evidence.rb', line 54

def registry_hive=(value)
    @registry_hive = value
end

#registry_keyObject

Gets the registryKey property value. Registry key that the recorded action was applied to.

Returns:

  • a string



61
62
63
# File 'lib/models/security_registry_key_evidence.rb', line 61

def registry_key
    return @registry_key
end

#registry_key=(value) ⇒ Object

Sets the registryKey property value. Registry key that the recorded action was applied to.

Parameters:

  • value

    Value to set for the registryKey property.

Returns:

  • a void



69
70
71
# File 'lib/models/security_registry_key_evidence.rb', line 69

def registry_key=(value)
    @registry_key = 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)


77
78
79
80
81
82
# File 'lib/models/security_registry_key_evidence.rb', line 77

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("registryHive", @registry_hive)
    writer.write_string_value("registryKey", @registry_key)
end