Class: MicrosoftGraph::Models::Authentication

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/authentication.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a authentication

Raises:

  • (StandardError)


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_methodsObject

Gets the emailMethods property value. The email address registered to a user for authentication.

Returns:

  • a email_authentication_method



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.

Parameters:

  • value

    Value to set for the emailMethods property.

Returns:

  • a void



67
68
69
# File 'lib/models/authentication.rb', line 67

def email_methods=(value)
    @email_methods = value
end

#fido2_methodsObject

Gets the fido2Methods property value. Represents the FIDO2 security keys registered to a user for authentication.

Returns:

  • a fido2_authentication_method



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.

Parameters:

  • value

    Value to set for the fido2Methods property.

Returns:

  • a void



82
83
84
# File 'lib/models/authentication.rb', line 82

def fido2_methods=(value)
    @fido2_methods = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#methodsObject

Gets the methods property value. Represents all authentication methods registered to a user.

Returns:

  • a authentication_method



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.

Parameters:

  • value

    Value to set for the methods property.

Returns:

  • a void



115
116
117
# File 'lib/models/authentication.rb', line 115

def methods=(value)
    @methods = value
end

#microsoft_authenticator_methodsObject

Gets the microsoftAuthenticatorMethods property value. The details of the Microsoft Authenticator app registered to a user for authentication.

Returns:

  • a microsoft_authenticator_authentication_method



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.

Parameters:

  • value

    Value to set for the microsoftAuthenticatorMethods property.

Returns:

  • a void



130
131
132
# File 'lib/models/authentication.rb', line 130

def microsoft_authenticator_methods=(value)
    @microsoft_authenticator_methods = value
end

#operationsObject

Gets the operations property value. Represents the status of a long-running operation.

Returns:

  • 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.

Parameters:

  • value

    Value to set for the operations property.

Returns:

  • a void



145
146
147
# File 'lib/models/authentication.rb', line 145

def operations=(value)
    @operations = value
end

#password_methodsObject

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.

Returns:

  • a password_authentication_method



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.

Parameters:

  • value

    Value to set for the passwordMethods property.

Returns:

  • a void



160
161
162
# File 'lib/models/authentication.rb', line 160

def password_methods=(value)
    @password_methods = value
end

#phone_methodsObject

Gets the phoneMethods property value. The phone numbers registered to a user for authentication.

Returns:

  • a phone_authentication_method



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.

Parameters:

  • value

    Value to set for the phoneMethods property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_methodsObject

Gets the softwareOathMethods property value. The software OATH TOTP applications registered to a user for authentication.

Returns:

  • a software_oath_authentication_method



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.

Parameters:

  • value

    Value to set for the softwareOathMethods property.

Returns:

  • a void



209
210
211
# File 'lib/models/authentication.rb', line 209

def software_oath_methods=(value)
    @software_oath_methods = value
end

#temporary_access_pass_methodsObject

Gets the temporaryAccessPassMethods property value. Represents a Temporary Access Pass registered to a user for authentication through time-limited passcodes.

Returns:

  • a temporary_access_pass_authentication_method



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.

Parameters:

  • value

    Value to set for the temporaryAccessPassMethods property.

Returns:

  • a void



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_methodsObject

Gets the windowsHelloForBusinessMethods property value. Represents the Windows Hello for Business authentication method registered to a user for authentication.

Returns:

  • a windows_hello_for_business_authentication_method



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.

Parameters:

  • value

    Value to set for the windowsHelloForBusinessMethods property.

Returns:

  • a void



239
240
241
# File 'lib/models/authentication.rb', line 239

def windows_hello_for_business_methods=(value)
    @windows_hello_for_business_methods = value
end