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

Parameters:

  • parse_node

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

Returns:

  • a fido2_authentication_method_configuration

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

Returns:

  • a i_dictionary



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.

Returns:

  • a authentication_method_target



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.

Parameters:

  • value

    Value to set for the includeTargets property.

Returns:

  • a void



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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isAttestationEnforced property.

Returns:

  • a void



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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isSelfServiceRegistrationAllowed property.

Returns:

  • a void



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.

Returns:

  • a fido2_key_restrictions



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.

Parameters:

  • value

    Value to set for the keyRestrictions property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

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