Class: MicrosoftGraph::Models::WindowsHelloForBusinessAuthenticationMethod
- Inherits:
-
AuthenticationMethod
- Object
- Entity
- AuthenticationMethod
- MicrosoftGraph::Models::WindowsHelloForBusinessAuthenticationMethod
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_hello_for_business_authentication_method.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 ⇒ Object
Gets the device property value.
-
#device=(value) ⇒ Object
Sets the device property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new windowsHelloForBusinessAuthenticationMethod and sets the default values.
-
#key_strength ⇒ Object
Gets the keyStrength property value.
-
#key_strength=(value) ⇒ Object
Sets the keyStrength property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_time ⇒ Object
Gets the createdDateTime property value. The date and time that this Windows Hello for Business key was registered.
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.
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 |
#device ⇒ Object
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.
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.
66 67 68 |
# File 'lib/models/windows_hello_for_business_authentication_method.rb', line 66 def device=(value) @device = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of the device on which Windows Hello for Business is registered
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
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_deserializers ⇒ Object
The deserialization information for the current model
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_strength ⇒ Object
Gets the keyStrength property value. Key strength of this Windows Hello for Business key. Possible values are: normal, weak, unknown.
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.
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
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 |