Class: MicrosoftGraph::Models::WindowsHelloForBusinessAuthenticationMethod

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



26
27
28
29
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 26

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

Raises:

  • (StandardError)


50
51
52
53
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 50

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

Instance Method Details

#created_date_timeObject

Gets the createdDateTime property value. The date and time that this Windows Hello for Business key was registered.

Returns:

  • a date_time



34
35
36
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 34

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. The date and time that this Windows Hello for Business key was registered.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



42
43
44
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 42

def created_date_time=(value)
    @created_date_time = value
end

#deviceObject

Gets the device property value. The registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user’s Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/[email protected]/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device.

Returns:

  • a device



58
59
60
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 58

def device
    return @device
end

#device=(value) ⇒ Object

Sets the device property value. The registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user’s Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/[email protected]/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device.

Parameters:

  • value

    Value to set for the device property.

Returns:

  • a void



66
67
68
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 66

def device=(value)
    @device = value
end

#display_nameObject

Gets the displayName property value. The name of the device on which Windows Hello for Business is registered

Returns:

  • a string



73
74
75
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 73

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The name of the device on which Windows Hello for Business is registered

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



81
82
83
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 81

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



88
89
90
91
92
93
94
95
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 88

def get_field_deserializers()
    return super.merge({
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "device" => lambda {|n| @device = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Device.create_from_discriminator_value(pn) }) },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "keyStrength" => lambda {|n| @key_strength = n.get_enum_value(MicrosoftGraph::Models::AuthenticationMethodKeyStrength) },
    })
end

#key_strengthObject

Gets the keyStrength property value. Key strength of this Windows Hello for Business key. Possible values are: normal, weak, unknown.

Returns:

  • a authentication_method_key_strength



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

def key_strength
    return @key_strength
end

#key_strength=(value) ⇒ Object

Sets the keyStrength property value. Key strength of this Windows Hello for Business key. Possible values are: normal, weak, unknown.

Parameters:

  • value

    Value to set for the keyStrength property.

Returns:

  • a void



108
109
110
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 108

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


116
117
118
119
120
121
122
123
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 116

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_object_value("device", @device)
    writer.write_string_value("displayName", @display_name)
    writer.write_enum_value("keyStrength", @key_strength)
end