Class: MicrosoftGraph::Models::Fido2AuthenticationMethodConfiguration

Inherits:
AuthenticationMethodConfiguration show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/fido2_authentication_method_configuration.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AuthenticationMethodConfiguration

#exclude_targets, #exclude_targets=, #state, #state=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new fido2AuthenticationMethodConfiguration and sets the default values.



25
26
27
28
# File 'lib/models/fido2_authentication_method_configuration.rb', line 25

def initialize()
    super
    @odata_type = "#microsoft.graph.fido2AuthenticationMethodConfiguration"
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Raises:

  • (StandardError)


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

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model



42
43
44
45
46
47
48
49
# File 'lib/models/fido2_authentication_method_configuration.rb', line 42

def get_field_deserializers()
    return super.merge({
        "includeTargets" => lambda {|n| @include_targets = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodTarget.create_from_discriminator_value(pn) }) },
        "isAttestationEnforced" => lambda {|n| @is_attestation_enforced = n.get_boolean_value() },
        "isSelfServiceRegistrationAllowed" => lambda {|n| @is_self_service_registration_allowed = n.get_boolean_value() },
        "keyRestrictions" => lambda {|n| @key_restrictions = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Fido2KeyRestrictions.create_from_discriminator_value(pn) }) },
    })
end

#include_targetsObject

Gets the includeTargets property value. A collection of groups that are enabled to use the authentication method.



54
55
56
# File 'lib/models/fido2_authentication_method_configuration.rb', line 54

def include_targets
    return @include_targets
end

#include_targets=(value) ⇒ Object

Sets the includeTargets property value. A collection of groups that are enabled to use the authentication method.



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

def include_targets=(value)
    @include_targets = value
end

#is_attestation_enforcedObject

Gets the isAttestationEnforced property value. Determines whether attestation must be enforced for FIDO2 security key registration.



69
70
71
# File 'lib/models/fido2_authentication_method_configuration.rb', line 69

def is_attestation_enforced
    return @is_attestation_enforced
end

#is_attestation_enforced=(value) ⇒ Object

Sets the isAttestationEnforced property value. Determines whether attestation must be enforced for FIDO2 security key registration.



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

def is_attestation_enforced=(value)
    @is_attestation_enforced = value
end

#is_self_service_registration_allowedObject

Gets the isSelfServiceRegistrationAllowed property value. Determines if users can register new FIDO2 security keys.



84
85
86
# File 'lib/models/fido2_authentication_method_configuration.rb', line 84

def is_self_service_registration_allowed
    return @is_self_service_registration_allowed
end

#is_self_service_registration_allowed=(value) ⇒ Object

Sets the isSelfServiceRegistrationAllowed property value. Determines if users can register new FIDO2 security keys.



92
93
94
# File 'lib/models/fido2_authentication_method_configuration.rb', line 92

def is_self_service_registration_allowed=(value)
    @is_self_service_registration_allowed = value
end

#key_restrictionsObject

Gets the keyRestrictions property value. Controls whether key restrictions are enforced on FIDO2 security keys, either allowing or disallowing certain key types as defined by Authenticator Attestation GUID (AAGUID), an identifier that indicates the type (e.g. make and model) of the authenticator.



99
100
101
# File 'lib/models/fido2_authentication_method_configuration.rb', line 99

def key_restrictions
    return @key_restrictions
end

#key_restrictions=(value) ⇒ Object

Sets the keyRestrictions property value. Controls whether key restrictions are enforced on FIDO2 security keys, either allowing or disallowing certain key types as defined by Authenticator Attestation GUID (AAGUID), an identifier that indicates the type (e.g. make and model) of the authenticator.



107
108
109
# File 'lib/models/fido2_authentication_method_configuration.rb', line 107

def key_restrictions=(value)
    @key_restrictions = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Raises:

  • (StandardError)


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

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("includeTargets", @include_targets)
    writer.write_boolean_value("isAttestationEnforced", @is_attestation_enforced)
    writer.write_boolean_value("isSelfServiceRegistrationAllowed", @is_self_service_registration_allowed)
    writer.write_object_value("keyRestrictions", @key_restrictions)
end