Class: MicrosoftGraph::Models::SecurityRegistryValueEvidence

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



31
32
33
34
# File 'lib/models/security_registry_value_evidence.rb', line 31

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

Raises:

  • (StandardError)


40
41
42
43
# File 'lib/models/security_registry_value_evidence.rb', line 40

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



48
49
50
51
52
53
54
55
56
57
# File 'lib/models/security_registry_value_evidence.rb', line 48

def get_field_deserializers()
    return super.merge({
        "mdeDeviceId" => lambda {|n| @mde_device_id = n.get_string_value() },
        "registryHive" => lambda {|n| @registry_hive = n.get_string_value() },
        "registryKey" => lambda {|n| @registry_key = n.get_string_value() },
        "registryValue" => lambda {|n| @registry_value = n.get_string_value() },
        "registryValueName" => lambda {|n| @registry_value_name = n.get_string_value() },
        "registryValueType" => lambda {|n| @registry_value_type = n.get_string_value() },
    })
end

#mde_device_idObject

Gets the mdeDeviceId property value. A unique identifier assigned to a device by Microsoft Defender for Endpoint.

Returns:

  • a string



62
63
64
# File 'lib/models/security_registry_value_evidence.rb', line 62

def mde_device_id
    return @mde_device_id
end

#mde_device_id=(value) ⇒ Object

Sets the mdeDeviceId property value. A unique identifier assigned to a device by Microsoft Defender for Endpoint.

Parameters:

  • value

    Value to set for the mdeDeviceId property.

Returns:

  • a void



70
71
72
# File 'lib/models/security_registry_value_evidence.rb', line 70

def mde_device_id=(value)
    @mde_device_id = value
end

#registry_hiveObject

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

Returns:

  • a string



77
78
79
# File 'lib/models/security_registry_value_evidence.rb', line 77

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



85
86
87
# File 'lib/models/security_registry_value_evidence.rb', line 85

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



92
93
94
# File 'lib/models/security_registry_value_evidence.rb', line 92

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



100
101
102
# File 'lib/models/security_registry_value_evidence.rb', line 100

def registry_key=(value)
    @registry_key = value
end

#registry_valueObject

Gets the registryValue property value. Data of the registry value that the recorded action was applied to.

Returns:

  • a string



107
108
109
# File 'lib/models/security_registry_value_evidence.rb', line 107

def registry_value
    return @registry_value
end

#registry_value=(value) ⇒ Object

Sets the registryValue property value. Data of the registry value that the recorded action was applied to.

Parameters:

  • value

    Value to set for the registryValue property.

Returns:

  • a void



115
116
117
# File 'lib/models/security_registry_value_evidence.rb', line 115

def registry_value=(value)
    @registry_value = value
end

#registry_value_nameObject

Gets the registryValueName property value. Name of the registry value that the recorded action was applied to.

Returns:

  • a string



122
123
124
# File 'lib/models/security_registry_value_evidence.rb', line 122

def registry_value_name
    return @registry_value_name
end

#registry_value_name=(value) ⇒ Object

Sets the registryValueName property value. Name of the registry value that the recorded action was applied to.

Parameters:

  • value

    Value to set for the registryValueName property.

Returns:

  • a void



130
131
132
# File 'lib/models/security_registry_value_evidence.rb', line 130

def registry_value_name=(value)
    @registry_value_name = value
end

#registry_value_typeObject

Gets the registryValueType property value. Data type, such as binary or string, of the registry value that the recorded action was applied to.

Returns:

  • a string



137
138
139
# File 'lib/models/security_registry_value_evidence.rb', line 137

def registry_value_type
    return @registry_value_type
end

#registry_value_type=(value) ⇒ Object

Sets the registryValueType property value. Data type, such as binary or string, of the registry value that the recorded action was applied to.

Parameters:

  • value

    Value to set for the registryValueType property.

Returns:

  • a void



145
146
147
# File 'lib/models/security_registry_value_evidence.rb', line 145

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


153
154
155
156
157
158
159
160
161
162
# File 'lib/models/security_registry_value_evidence.rb', line 153

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("mdeDeviceId", @mde_device_id)
    writer.write_string_value("registryHive", @registry_hive)
    writer.write_string_value("registryKey", @registry_key)
    writer.write_string_value("registryValue", @registry_value)
    writer.write_string_value("registryValueName", @registry_value_name)
    writer.write_string_value("registryValueType", @registry_value_type)
end