Class: MicrosoftGraph::Models::AuthenticationMethodModeDetail

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/authentication_method_mode_detail.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 authenticationMethodModeDetail and sets the default values.



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

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_method_mode_detail

Raises:

  • (StandardError)


42
43
44
45
# File 'lib/models/authentication_method_mode_detail.rb', line 42

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

Instance Method Details

#authentication_methodObject

Gets the authenticationMethod property value. The authenticationMethod property

Returns:

  • a base_authentication_method



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

def authentication_method
    return @authentication_method
end

#authentication_method=(value) ⇒ Object

Sets the authenticationMethod property value. The authenticationMethod property

Parameters:

  • value

    Value to set for the authenticationMethod property.

Returns:

  • a void



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

def authentication_method=(value)
    @authentication_method = value
end

#display_nameObject

Gets the displayName property value. The display name of this mode

Returns:

  • a string



50
51
52
# File 'lib/models/authentication_method_mode_detail.rb', line 50

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name of this mode

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



58
59
60
# File 'lib/models/authentication_method_mode_detail.rb', line 58

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



65
66
67
68
69
70
# File 'lib/models/authentication_method_mode_detail.rb', line 65

def get_field_deserializers()
    return super.merge({
        "authenticationMethod" => lambda {|n| @authentication_method = n.get_enum_value(MicrosoftGraph::Models::BaseAuthenticationMethod) },
        "displayName" => lambda {|n| @display_name = n.get_string_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)


76
77
78
79
80
81
# File 'lib/models/authentication_method_mode_detail.rb', line 76

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("authenticationMethod", @authentication_method)
    writer.write_string_value("displayName", @display_name)
end