Class: MicrosoftGraph::Models::BitlockerRecoveryKey

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/bitlocker_recovery_key.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a bitlocker_recovery_key

Raises:

  • (StandardError)


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_timeObject

Gets the createdDateTime property value. The date and time when the key was originally backed up to Azure Active Directory. Not nullable.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



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

def created_date_time=(value)
    @created_date_time = value
end

#device_idObject

Gets the deviceId property value. Identifier of the device the BitLocker key is originally backed up from. Supports $filter (eq).

Returns:

  • a string



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).

Parameters:

  • value

    Value to set for the deviceId property.

Returns:

  • a void



65
66
67
# File 'lib/models/bitlocker_recovery_key.rb', line 65

def device_id=(value)
    @device_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#keyObject

Gets the key property value. The BitLocker recovery key. Returned only on $select. Not nullable.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the key property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_typeObject

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).

Returns:

  • a volume_type



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).

Parameters:

  • value

    Value to set for the volumeType property.

Returns:

  • a void



120
121
122
# File 'lib/models/bitlocker_recovery_key.rb', line 120

def volume_type=(value)
    @volume_type = value
end