Class: MicrosoftGraph::Models::Authentication
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/authentication.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
-
#email_methods ⇒ Object
Gets the emailMethods property value.
-
#email_methods=(value) ⇒ Object
Sets the emailMethods property value.
-
#fido2_methods ⇒ Object
Gets the fido2Methods property value.
-
#fido2_methods=(value) ⇒ Object
Sets the fido2Methods property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new authentication and sets the default values.
-
#methods ⇒ Object
Gets the methods property value.
-
#methods=(value) ⇒ Object
Sets the methods property value.
-
#microsoft_authenticator_methods ⇒ Object
Gets the microsoftAuthenticatorMethods property value.
-
#microsoft_authenticator_methods=(value) ⇒ Object
Sets the microsoftAuthenticatorMethods property value.
-
#operations ⇒ Object
Gets the operations property value.
-
#operations=(value) ⇒ Object
Sets the operations property value.
-
#password_methods ⇒ Object
Gets the passwordMethods property value.
-
#password_methods=(value) ⇒ Object
Sets the passwordMethods property value.
-
#phone_methods ⇒ Object
Gets the phoneMethods property value.
-
#phone_methods=(value) ⇒ Object
Sets the phoneMethods property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#software_oath_methods ⇒ Object
Gets the softwareOathMethods property value.
-
#software_oath_methods=(value) ⇒ Object
Sets the softwareOathMethods property value.
-
#temporary_access_pass_methods ⇒ Object
Gets the temporaryAccessPassMethods property value.
-
#temporary_access_pass_methods=(value) ⇒ Object
Sets the temporaryAccessPassMethods property value.
-
#windows_hello_for_business_methods ⇒ Object
Gets the windowsHelloForBusinessMethods property value.
-
#windows_hello_for_business_methods=(value) ⇒ Object
Sets the windowsHelloForBusinessMethods property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new authentication and sets the default values.
43 44 45 |
# File 'lib/models/authentication.rb', line 43 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
51 52 53 54 |
# File 'lib/models/authentication.rb', line 51 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Authentication.new end |
Instance Method Details
#email_methods ⇒ Object
Gets the emailMethods property value. The email address registered to a user for authentication.
59 60 61 |
# File 'lib/models/authentication.rb', line 59 def email_methods return @email_methods end |
#email_methods=(value) ⇒ Object
Sets the emailMethods property value. The email address registered to a user for authentication.
67 68 69 |
# File 'lib/models/authentication.rb', line 67 def email_methods=(value) @email_methods = value end |
#fido2_methods ⇒ Object
Gets the fido2Methods property value. Represents the FIDO2 security keys registered to a user for authentication.
74 75 76 |
# File 'lib/models/authentication.rb', line 74 def fido2_methods return @fido2_methods end |
#fido2_methods=(value) ⇒ Object
Sets the fido2Methods property value. Represents the FIDO2 security keys registered to a user for authentication.
82 83 84 |
# File 'lib/models/authentication.rb', line 82 def fido2_methods=(value) @fido2_methods = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/models/authentication.rb', line 89 def get_field_deserializers() return super.merge({ "emailMethods" => lambda {|n| @email_methods = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::EmailAuthenticationMethod.create_from_discriminator_value(pn) }) }, "fido2Methods" => lambda {|n| @fido2_methods = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Fido2AuthenticationMethod.create_from_discriminator_value(pn) }) }, "methods" => lambda {|n| @methods = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AuthenticationMethod.create_from_discriminator_value(pn) }) }, "microsoftAuthenticatorMethods" => lambda {|n| @microsoft_authenticator_methods = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MicrosoftAuthenticatorAuthenticationMethod.create_from_discriminator_value(pn) }) }, "operations" => lambda {|n| @operations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::LongRunningOperation.create_from_discriminator_value(pn) }) }, "passwordMethods" => lambda {|n| @password_methods = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PasswordAuthenticationMethod.create_from_discriminator_value(pn) }) }, "phoneMethods" => lambda {|n| @phone_methods = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PhoneAuthenticationMethod.create_from_discriminator_value(pn) }) }, "softwareOathMethods" => lambda {|n| @software_oath_methods = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SoftwareOathAuthenticationMethod.create_from_discriminator_value(pn) }) }, "temporaryAccessPassMethods" => lambda {|n| @temporary_access_pass_methods = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TemporaryAccessPassAuthenticationMethod.create_from_discriminator_value(pn) }) }, "windowsHelloForBusinessMethods" => lambda {|n| @windows_hello_for_business_methods = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsHelloForBusinessAuthenticationMethod.create_from_discriminator_value(pn) }) }, }) end |
#methods ⇒ Object
Gets the methods property value. Represents all authentication methods registered to a user.
107 108 109 |
# File 'lib/models/authentication.rb', line 107 def methods return @methods end |
#methods=(value) ⇒ Object
Sets the methods property value. Represents all authentication methods registered to a user.
115 116 117 |
# File 'lib/models/authentication.rb', line 115 def methods=(value) @methods = value end |
#microsoft_authenticator_methods ⇒ Object
Gets the microsoftAuthenticatorMethods property value. The details of the Microsoft Authenticator app registered to a user for authentication.
122 123 124 |
# File 'lib/models/authentication.rb', line 122 def microsoft_authenticator_methods return @microsoft_authenticator_methods end |
#microsoft_authenticator_methods=(value) ⇒ Object
Sets the microsoftAuthenticatorMethods property value. The details of the Microsoft Authenticator app registered to a user for authentication.
130 131 132 |
# File 'lib/models/authentication.rb', line 130 def microsoft_authenticator_methods=(value) @microsoft_authenticator_methods = value end |
#operations ⇒ Object
Gets the operations property value. Represents the status of a long-running operation.
137 138 139 |
# File 'lib/models/authentication.rb', line 137 def operations return @operations end |
#operations=(value) ⇒ Object
Sets the operations property value. Represents the status of a long-running operation.
145 146 147 |
# File 'lib/models/authentication.rb', line 145 def operations=(value) @operations = value end |
#password_methods ⇒ Object
Gets the passwordMethods property value. Represents the password that’s registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password.
152 153 154 |
# File 'lib/models/authentication.rb', line 152 def password_methods return @password_methods end |
#password_methods=(value) ⇒ Object
Sets the passwordMethods property value. Represents the password that’s registered to a user for authentication. For security, the password itself will never be returned in the object, but action can be taken to reset a password.
160 161 162 |
# File 'lib/models/authentication.rb', line 160 def password_methods=(value) @password_methods = value end |
#phone_methods ⇒ Object
Gets the phoneMethods property value. The phone numbers registered to a user for authentication.
167 168 169 |
# File 'lib/models/authentication.rb', line 167 def phone_methods return @phone_methods end |
#phone_methods=(value) ⇒ Object
Sets the phoneMethods property value. The phone numbers registered to a user for authentication.
175 176 177 |
# File 'lib/models/authentication.rb', line 175 def phone_methods=(value) @phone_methods = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
# File 'lib/models/authentication.rb', line 183 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("emailMethods", @email_methods) writer.write_collection_of_object_values("fido2Methods", @fido2_methods) writer.write_collection_of_object_values("methods", @methods) writer.write_collection_of_object_values("microsoftAuthenticatorMethods", @microsoft_authenticator_methods) writer.write_collection_of_object_values("operations", @operations) writer.write_collection_of_object_values("passwordMethods", @password_methods) writer.write_collection_of_object_values("phoneMethods", @phone_methods) writer.write_collection_of_object_values("softwareOathMethods", @software_oath_methods) writer.write_collection_of_object_values("temporaryAccessPassMethods", @temporary_access_pass_methods) writer.write_collection_of_object_values("windowsHelloForBusinessMethods", @windows_hello_for_business_methods) end |
#software_oath_methods ⇒ Object
Gets the softwareOathMethods property value. The software OATH TOTP applications registered to a user for authentication.
201 202 203 |
# File 'lib/models/authentication.rb', line 201 def software_oath_methods return @software_oath_methods end |
#software_oath_methods=(value) ⇒ Object
Sets the softwareOathMethods property value. The software OATH TOTP applications registered to a user for authentication.
209 210 211 |
# File 'lib/models/authentication.rb', line 209 def software_oath_methods=(value) @software_oath_methods = value end |
#temporary_access_pass_methods ⇒ Object
Gets the temporaryAccessPassMethods property value. Represents a Temporary Access Pass registered to a user for authentication through time-limited passcodes.
216 217 218 |
# File 'lib/models/authentication.rb', line 216 def temporary_access_pass_methods return @temporary_access_pass_methods end |
#temporary_access_pass_methods=(value) ⇒ Object
Sets the temporaryAccessPassMethods property value. Represents a Temporary Access Pass registered to a user for authentication through time-limited passcodes.
224 225 226 |
# File 'lib/models/authentication.rb', line 224 def temporary_access_pass_methods=(value) @temporary_access_pass_methods = value end |
#windows_hello_for_business_methods ⇒ Object
Gets the windowsHelloForBusinessMethods property value. Represents the Windows Hello for Business authentication method registered to a user for authentication.
231 232 233 |
# File 'lib/models/authentication.rb', line 231 def windows_hello_for_business_methods return @windows_hello_for_business_methods end |
#windows_hello_for_business_methods=(value) ⇒ Object
Sets the windowsHelloForBusinessMethods property value. Represents the Windows Hello for Business authentication method registered to a user for authentication.
239 240 241 |
# File 'lib/models/authentication.rb', line 239 def windows_hello_for_business_methods=(value) @windows_hello_for_business_methods = value end |