Class: MicrosoftGraph::Models::Fido2AuthenticationMethod

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



77
78
79
80
# File 'lib/models/fido2_authentication_method.rb', line 77

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

Raises:

  • (StandardError)


101
102
103
104
# File 'lib/models/fido2_authentication_method.rb', line 101

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

Instance Method Details

#aa_guidObject

Gets the aaGuid property value. Authenticator Attestation GUID, an identifier that indicates the type (e.g. make and model) of the authenticator.

Returns:

  • a string



32
33
34
# File 'lib/models/fido2_authentication_method.rb', line 32

def aa_guid
    return @aa_guid
end

#aa_guid=(value) ⇒ Object

Sets the aaGuid property value. Authenticator Attestation GUID, an identifier that indicates the type (e.g. make and model) of the authenticator.

Parameters:

  • value

    Value to set for the aaGuid property.

Returns:

  • a void



40
41
42
# File 'lib/models/fido2_authentication_method.rb', line 40

def aa_guid=(value)
    @aa_guid = value
end

#attestation_certificatesObject

Gets the attestationCertificates property value. The attestation certificate(s) attached to this security key.

Returns:

  • a string



47
48
49
# File 'lib/models/fido2_authentication_method.rb', line 47

def attestation_certificates
    return @attestation_certificates
end

#attestation_certificates=(value) ⇒ Object

Sets the attestationCertificates property value. The attestation certificate(s) attached to this security key.

Parameters:

  • value

    Value to set for the attestationCertificates property.

Returns:

  • a void



55
56
57
# File 'lib/models/fido2_authentication_method.rb', line 55

def attestation_certificates=(value)
    @attestation_certificates = value
end

#attestation_levelObject

Gets the attestationLevel property value. The attestation level of this FIDO2 security key. Possible values are: attested, or notAttested.

Returns:

  • a attestation_level



62
63
64
# File 'lib/models/fido2_authentication_method.rb', line 62

def attestation_level
    return @attestation_level
end

#attestation_level=(value) ⇒ Object

Sets the attestationLevel property value. The attestation level of this FIDO2 security key. Possible values are: attested, or notAttested.

Parameters:

  • value

    Value to set for the attestationLevel property.

Returns:

  • a void



70
71
72
# File 'lib/models/fido2_authentication_method.rb', line 70

def attestation_level=(value)
    @attestation_level = value
end

#created_date_timeObject

Gets the createdDateTime property value. The timestamp when this key was registered to the user.

Returns:

  • a date_time



85
86
87
# File 'lib/models/fido2_authentication_method.rb', line 85

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. The timestamp when this key was registered to the user.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



93
94
95
# File 'lib/models/fido2_authentication_method.rb', line 93

def created_date_time=(value)
    @created_date_time = value
end

#display_nameObject

Gets the displayName property value. The display name of the key as given by the user.

Returns:

  • a string



109
110
111
# File 'lib/models/fido2_authentication_method.rb', line 109

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name of the key as given by the user.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



117
118
119
# File 'lib/models/fido2_authentication_method.rb', line 117

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



124
125
126
127
128
129
130
131
132
133
# File 'lib/models/fido2_authentication_method.rb', line 124

def get_field_deserializers()
    return super.merge({
        "aaGuid" => lambda {|n| @aa_guid = n.get_string_value() },
        "attestationCertificates" => lambda {|n| @attestation_certificates = n.get_collection_of_primitive_values(String) },
        "attestationLevel" => lambda {|n| @attestation_level = n.get_enum_value(MicrosoftGraph::Models::AttestationLevel) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "model" => lambda {|n| @model = n.get_string_value() },
    })
end

#modelObject

Gets the model property value. The manufacturer-assigned model of the FIDO2 security key.

Returns:

  • a string



138
139
140
# File 'lib/models/fido2_authentication_method.rb', line 138

def model
    return @model
end

#model=(value) ⇒ Object

Sets the model property value. The manufacturer-assigned model of the FIDO2 security key.

Parameters:

  • value

    Value to set for the model property.

Returns:

  • a void



146
147
148
# File 'lib/models/fido2_authentication_method.rb', line 146

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


154
155
156
157
158
159
160
161
162
163
# File 'lib/models/fido2_authentication_method.rb', line 154

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("aaGuid", @aa_guid)
    writer.write_collection_of_primitive_values("attestationCertificates", @attestation_certificates)
    writer.write_enum_value("attestationLevel", @attestation_level)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_string_value("displayName", @display_name)
    writer.write_string_value("model", @model)
end