Class: MicrosoftGraph::Models::EmailAuthenticationMethodConfiguration
- Inherits:
-
AuthenticationMethodConfiguration
- Object
- Entity
- AuthenticationMethodConfiguration
- MicrosoftGraph::Models::EmailAuthenticationMethodConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/email_authentication_method_configuration.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#allow_external_id_to_use_email_otp ⇒ Object
Gets the allowExternalIdToUseEmailOtp property value.
-
#allow_external_id_to_use_email_otp=(value) ⇒ Object
Sets the allowExternalIdToUseEmailOtp property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#include_targets ⇒ Object
Gets the includeTargets property value.
-
#include_targets=(value) ⇒ Object
Sets the includeTargets property value.
-
#initialize ⇒ Object
constructor
Instantiates a new EmailAuthenticationMethodConfiguration and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
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
#initialize ⇒ Object
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
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_otp ⇒ Object
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.
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.
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_deserializers ⇒ Object
The deserialization information for the current model
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_targets ⇒ Object
Gets the includeTargets property value. A collection of groups that are enabled to use the authentication method.
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.
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
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 |