Class: MicrosoftGraph::Models::RegistryKeyState
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::RegistryKeyState
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/registry_key_state.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#hive ⇒ Object
Gets the hive property value.
-
#hive=(value) ⇒ Object
Sets the hive property value.
-
#initialize ⇒ Object
constructor
Instantiates a new registryKeyState and sets the default values.
-
#key ⇒ Object
Gets the key property value.
-
#key=(value) ⇒ Object
Sets the key property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#old_key ⇒ Object
Gets the oldKey property value.
-
#old_key=(value) ⇒ Object
Sets the oldKey property value.
-
#old_value_data ⇒ Object
Gets the oldValueData property value.
-
#old_value_data=(value) ⇒ Object
Sets the oldValueData property value.
-
#old_value_name ⇒ Object
Gets the oldValueName property value.
-
#old_value_name=(value) ⇒ Object
Sets the oldValueName property value.
-
#operation ⇒ Object
Gets the operation property value.
-
#operation=(value) ⇒ Object
Sets the operation property value.
-
#process_id ⇒ Object
Gets the processId property value.
-
#process_id=(value) ⇒ Object
Sets the processId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#value_data ⇒ Object
Gets the valueData property value.
-
#value_data=(value) ⇒ Object
Sets the valueData property value.
-
#value_name ⇒ Object
Gets the valueName property value.
-
#value_name=(value) ⇒ Object
Sets the valueName property value.
-
#value_type ⇒ Object
Gets the valueType property value.
-
#value_type=(value) ⇒ Object
Sets the valueType property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new registryKeyState and sets the default values.
64 65 66 |
# File 'lib/models/registry_key_state.rb', line 64 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
72 73 74 75 |
# File 'lib/models/registry_key_state.rb', line 72 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return RegistryKeyState.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
49 50 51 |
# File 'lib/models/registry_key_state.rb', line 49 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
57 58 59 |
# File 'lib/models/registry_key_state.rb', line 57 def additional_data=(value) @additional_data = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/models/registry_key_state.rb', line 80 def get_field_deserializers() return { "hive" => lambda {|n| @hive = n.get_enum_value(MicrosoftGraph::Models::RegistryHive) }, "key" => lambda {|n| @key = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "oldKey" => lambda {|n| @old_key = n.get_string_value() }, "oldValueData" => lambda {|n| @old_value_data = n.get_string_value() }, "oldValueName" => lambda {|n| @old_value_name = n.get_string_value() }, "operation" => lambda {|n| @operation = n.get_enum_value(MicrosoftGraph::Models::RegistryOperation) }, "processId" => lambda {|n| @process_id = n.get_number_value() }, "valueData" => lambda {|n| @value_data = n.get_string_value() }, "valueName" => lambda {|n| @value_name = n.get_string_value() }, "valueType" => lambda {|n| @value_type = n.get_enum_value(MicrosoftGraph::Models::RegistryValueType) }, } end |
#hive ⇒ Object
Gets the hive property value. A Windows registry hive : HKEYCURRENTCONFIG HKEYCURRENTUSER HKEYLOCALMACHINE/SAM HKEYLOCALMACHINE/Security HKEYLOCALMACHINE/Software HKEYLOCALMACHINE/System HKEY_USERS/.Default. Possible values are: unknown, currentConfig, currentUser, localMachineSam, localMachineSecurity, localMachineSoftware, localMachineSystem, usersDefault.
99 100 101 |
# File 'lib/models/registry_key_state.rb', line 99 def hive return @hive end |
#hive=(value) ⇒ Object
Sets the hive property value. A Windows registry hive : HKEYCURRENTCONFIG HKEYCURRENTUSER HKEYLOCALMACHINE/SAM HKEYLOCALMACHINE/Security HKEYLOCALMACHINE/Software HKEYLOCALMACHINE/System HKEY_USERS/.Default. Possible values are: unknown, currentConfig, currentUser, localMachineSam, localMachineSecurity, localMachineSoftware, localMachineSystem, usersDefault.
107 108 109 |
# File 'lib/models/registry_key_state.rb', line 107 def hive=(value) @hive = value end |
#key ⇒ Object
Gets the key property value. Current (i.e. changed) registry key (excludes HIVE).
114 115 116 |
# File 'lib/models/registry_key_state.rb', line 114 def key return @key end |
#key=(value) ⇒ Object
Sets the key property value. Current (i.e. changed) registry key (excludes HIVE).
122 123 124 |
# File 'lib/models/registry_key_state.rb', line 122 def key=(value) @key = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
129 130 131 |
# File 'lib/models/registry_key_state.rb', line 129 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
137 138 139 |
# File 'lib/models/registry_key_state.rb', line 137 def odata_type=(value) @odata_type = value end |
#old_key ⇒ Object
Gets the oldKey property value. Previous (i.e. before changed) registry key (excludes HIVE).
144 145 146 |
# File 'lib/models/registry_key_state.rb', line 144 def old_key return @old_key end |
#old_key=(value) ⇒ Object
Sets the oldKey property value. Previous (i.e. before changed) registry key (excludes HIVE).
152 153 154 |
# File 'lib/models/registry_key_state.rb', line 152 def old_key=(value) @old_key = value end |
#old_value_data ⇒ Object
Gets the oldValueData property value. Previous (i.e. before changed) registry key value data (contents).
159 160 161 |
# File 'lib/models/registry_key_state.rb', line 159 def old_value_data return @old_value_data end |
#old_value_data=(value) ⇒ Object
Sets the oldValueData property value. Previous (i.e. before changed) registry key value data (contents).
167 168 169 |
# File 'lib/models/registry_key_state.rb', line 167 def old_value_data=(value) @old_value_data = value end |
#old_value_name ⇒ Object
Gets the oldValueName property value. Previous (i.e. before changed) registry key value name.
174 175 176 |
# File 'lib/models/registry_key_state.rb', line 174 def old_value_name return @old_value_name end |
#old_value_name=(value) ⇒ Object
Sets the oldValueName property value. Previous (i.e. before changed) registry key value name.
182 183 184 |
# File 'lib/models/registry_key_state.rb', line 182 def old_value_name=(value) @old_value_name = value end |
#operation ⇒ Object
Gets the operation property value. Operation that changed the registry key name and/or value. Possible values are: unknown, create, modify, delete.
189 190 191 |
# File 'lib/models/registry_key_state.rb', line 189 def operation return @operation end |
#operation=(value) ⇒ Object
Sets the operation property value. Operation that changed the registry key name and/or value. Possible values are: unknown, create, modify, delete.
197 198 199 |
# File 'lib/models/registry_key_state.rb', line 197 def operation=(value) @operation = value end |
#process_id ⇒ Object
Gets the processId property value. Process ID (PID) of the process that modified the registry key (process details will appear in the alert ‘processes’ collection).
204 205 206 |
# File 'lib/models/registry_key_state.rb', line 204 def process_id return @process_id end |
#process_id=(value) ⇒ Object
Sets the processId property value. Process ID (PID) of the process that modified the registry key (process details will appear in the alert ‘processes’ collection).
212 213 214 |
# File 'lib/models/registry_key_state.rb', line 212 def process_id=(value) @process_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# File 'lib/models/registry_key_state.rb', line 220 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_enum_value("hive", @hive) writer.write_string_value("key", @key) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("oldKey", @old_key) writer.write_string_value("oldValueData", @old_value_data) writer.write_string_value("oldValueName", @old_value_name) writer.write_enum_value("operation", @operation) writer.write_number_value("processId", @process_id) writer.write_string_value("valueData", @value_data) writer.write_string_value("valueName", @value_name) writer.write_enum_value("valueType", @value_type) writer.write_additional_data(@additional_data) end |
#value_data ⇒ Object
Gets the valueData property value. Current (i.e. changed) registry key value data (contents).
239 240 241 |
# File 'lib/models/registry_key_state.rb', line 239 def value_data return @value_data end |
#value_data=(value) ⇒ Object
Sets the valueData property value. Current (i.e. changed) registry key value data (contents).
247 248 249 |
# File 'lib/models/registry_key_state.rb', line 247 def value_data=(value) @value_data = value end |
#value_name ⇒ Object
Gets the valueName property value. Current (i.e. changed) registry key value name
254 255 256 |
# File 'lib/models/registry_key_state.rb', line 254 def value_name return @value_name end |
#value_name=(value) ⇒ Object
Sets the valueName property value. Current (i.e. changed) registry key value name
262 263 264 |
# File 'lib/models/registry_key_state.rb', line 262 def value_name=(value) @value_name = value end |
#value_type ⇒ Object
Gets the valueType property value. Registry key value type REGBINARY REGDWORD REGDWORDLITTLEENDIAN REGDWORDBIGENDIANREGEXPANDSZ REGLINK REGMULTISZ REGNONE REGQWORD REGQWORDLITTLEENDIAN REG_SZ Possible values are: unknown, binary, dword, dwordLittleEndian, dwordBigEndian, expandSz, link, multiSz, none, qword, qwordlittleEndian, sz.
269 270 271 |
# File 'lib/models/registry_key_state.rb', line 269 def value_type return @value_type end |
#value_type=(value) ⇒ Object
Sets the valueType property value. Registry key value type REGBINARY REGDWORD REGDWORDLITTLEENDIAN REGDWORDBIGENDIANREGEXPANDSZ REGLINK REGMULTISZ REGNONE REGQWORD REGQWORDLITTLEENDIAN REG_SZ Possible values are: unknown, binary, dword, dwordLittleEndian, dwordBigEndian, expandSz, link, multiSz, none, qword, qwordlittleEndian, sz.
277 278 279 |
# File 'lib/models/registry_key_state.rb', line 277 def value_type=(value) @value_type = value end |