Class: MicrosoftGraph::Models::X509CertificateAuthenticationMethodConfiguration

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



52
53
54
55
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 52

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

Raises:

  • (StandardError)


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

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

Instance Method Details

#authentication_mode_configurationObject

Gets the authenticationModeConfiguration property value. Defines strong authentication configurations. This configuration includes the default authentication mode and the different rules for strong authentication bindings.

Returns:

  • a x509_certificate_authentication_mode_configuration



22
23
24
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 22

def authentication_mode_configuration
    return @authentication_mode_configuration
end

#authentication_mode_configuration=(value) ⇒ Object

Sets the authenticationModeConfiguration property value. Defines strong authentication configurations. This configuration includes the default authentication mode and the different rules for strong authentication bindings.

Parameters:

  • value

    Value to set for the authenticationModeConfiguration property.

Returns:

  • a void



30
31
32
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 30

def authentication_mode_configuration=(value)
    @authentication_mode_configuration = value
end

#certificate_user_bindingsObject

Gets the certificateUserBindings property value. Defines fields in the X.509 certificate that map to attributes of the Azure AD user object in order to bind the certificate to the user. The priority of the object determines the order in which the binding is carried out. The first binding that matches will be used and the rest ignored.

Returns:

  • a x509_certificate_user_binding



37
38
39
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 37

def certificate_user_bindings
    return @certificate_user_bindings
end

#certificate_user_bindings=(value) ⇒ Object

Sets the certificateUserBindings property value. Defines fields in the X.509 certificate that map to attributes of the Azure AD user object in order to bind the certificate to the user. The priority of the object determines the order in which the binding is carried out. The first binding that matches will be used and the rest ignored.

Parameters:

  • value

    Value to set for the certificateUserBindings property.

Returns:

  • a void



45
46
47
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 45

def certificate_user_bindings=(value)
    @certificate_user_bindings = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



69
70
71
72
73
74
75
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 69

def get_field_deserializers()
    return super.merge({
        "authenticationModeConfiguration" => lambda {|n| @authentication_mode_configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::X509CertificateAuthenticationModeConfiguration.create_from_discriminator_value(pn) }) },
        "certificateUserBindings" => lambda {|n| @certificate_user_bindings = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::X509CertificateUserBinding.create_from_discriminator_value(pn) }) },
        "includeTargets" => lambda {|n| @include_targets = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodTarget.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



80
81
82
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 80

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



88
89
90
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 88

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


96
97
98
99
100
101
102
# File 'lib/models/x509_certificate_authentication_method_configuration.rb', line 96

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("authenticationModeConfiguration", @authentication_mode_configuration)
    writer.write_collection_of_object_values("certificateUserBindings", @certificate_user_bindings)
    writer.write_collection_of_object_values("includeTargets", @include_targets)
end