Class: MicrosoftGraph::Models::EmailAuthenticationMethodConfiguration

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



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

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

Raises:

  • (StandardError)


43
44
45
46
# File 'lib/models/email_authentication_method_configuration.rb', line 43

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

Instance Method Details

#allow_external_id_to_use_email_otpObject

Gets the allowExternalIdToUseEmailOtp property value. Determines whether email OTP is usable by external users for authentication. Possible values are: default, enabled, disabled, unknownFutureValue. Tenants in the default state who did not use public preview will automatically have email OTP enabled beginning in October 2021.

Returns:

  • a external_email_otp_state



19
20
21
# File 'lib/models/email_authentication_method_configuration.rb', line 19

def allow_external_id_to_use_email_otp
    return @allow_external_id_to_use_email_otp
end

#allow_external_id_to_use_email_otp=(value) ⇒ Object

Sets the allowExternalIdToUseEmailOtp property value. Determines whether email OTP is usable by external users for authentication. Possible values are: default, enabled, disabled, unknownFutureValue. Tenants in the default state who did not use public preview will automatically have email OTP enabled beginning in October 2021.

Parameters:

  • value

    Value to set for the allow_external_id_to_use_email_otp property.

Returns:

  • a void



27
28
29
# File 'lib/models/email_authentication_method_configuration.rb', line 27

def allow_external_id_to_use_email_otp=(value)
    @allow_external_id_to_use_email_otp = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



51
52
53
54
55
56
# File 'lib/models/email_authentication_method_configuration.rb', line 51

def get_field_deserializers()
    return super.merge({
        "allowExternalIdToUseEmailOtp" => lambda {|n| @allow_external_id_to_use_email_otp = n.get_enum_value(MicrosoftGraph::Models::ExternalEmailOtpState) },
        "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



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

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 include_targets property.

Returns:

  • a void



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

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)


77
78
79
80
81
82
# File 'lib/models/email_authentication_method_configuration.rb', line 77

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("allowExternalIdToUseEmailOtp", @allow_external_id_to_use_email_otp)
    writer.write_collection_of_object_values("includeTargets", @include_targets)
end