Class: MicrosoftGraph::Models::BitlockerRecoveryKey
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/bitlocker_recovery_key.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
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#device_id ⇒ Object
Gets the deviceId property value.
-
#device_id=(value) ⇒ Object
Sets the deviceId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new bitlockerRecoveryKey and sets the default values.
-
#key ⇒ Object
Gets the key property value.
-
#key=(value) ⇒ Object
Sets the key property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#volume_type ⇒ Object
Gets the volumeType property value.
-
#volume_type=(value) ⇒ Object
Sets the volumeType property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new bitlockerRecoveryKey and sets the default values.
26 27 28 |
# File 'lib/models/bitlocker_recovery_key.rb', line 26 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
49 50 51 52 |
# File 'lib/models/bitlocker_recovery_key.rb', line 49 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return BitlockerRecoveryKey.new end |
Instance Method Details
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date and time when the key was originally backed up to Azure Active Directory. Not nullable.
33 34 35 |
# File 'lib/models/bitlocker_recovery_key.rb', line 33 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The date and time when the key was originally backed up to Azure Active Directory. Not nullable.
41 42 43 |
# File 'lib/models/bitlocker_recovery_key.rb', line 41 def created_date_time=(value) @created_date_time = value end |
#device_id ⇒ Object
Gets the deviceId property value. Identifier of the device the BitLocker key is originally backed up from. Supports $filter (eq).
57 58 59 |
# File 'lib/models/bitlocker_recovery_key.rb', line 57 def device_id return @device_id end |
#device_id=(value) ⇒ Object
Sets the deviceId property value. Identifier of the device the BitLocker key is originally backed up from. Supports $filter (eq).
65 66 67 |
# File 'lib/models/bitlocker_recovery_key.rb', line 65 def device_id=(value) @device_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/bitlocker_recovery_key.rb', line 72 def get_field_deserializers() return super.merge({ "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "deviceId" => lambda {|n| @device_id = n.get_string_value() }, "key" => lambda {|n| @key = n.get_string_value() }, "volumeType" => lambda {|n| @volume_type = n.get_enum_value(MicrosoftGraph::Models::VolumeType) }, }) end |
#key ⇒ Object
Gets the key property value. The BitLocker recovery key. Returned only on $select. Not nullable.
84 85 86 |
# File 'lib/models/bitlocker_recovery_key.rb', line 84 def key return @key end |
#key=(value) ⇒ Object
Sets the key property value. The BitLocker recovery key. Returned only on $select. Not nullable.
92 93 94 |
# File 'lib/models/bitlocker_recovery_key.rb', line 92 def key=(value) @key = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
100 101 102 103 104 105 106 107 |
# File 'lib/models/bitlocker_recovery_key.rb', line 100 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("deviceId", @device_id) writer.write_string_value("key", @key) writer.write_enum_value("volumeType", @volume_type) end |
#volume_type ⇒ Object
Gets the volumeType property value. Indicates the type of volume the BitLocker key is associated with. The possible values are: 1 (for operatingSystemVolume), 2 (for fixedDataVolume), 3 (for removableDataVolume), and 4 (for unknownFutureValue).
112 113 114 |
# File 'lib/models/bitlocker_recovery_key.rb', line 112 def volume_type return @volume_type end |
#volume_type=(value) ⇒ Object
Sets the volumeType property value. Indicates the type of volume the BitLocker key is associated with. The possible values are: 1 (for operatingSystemVolume), 2 (for fixedDataVolume), 3 (for removableDataVolume), and 4 (for unknownFutureValue).
120 121 122 |
# File 'lib/models/bitlocker_recovery_key.rb', line 120 def volume_type=(value) @volume_type = value end |