Class: MicrosoftGraph::Models::AuthenticationMethodModeDetail
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/authentication_method_mode_detail.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
-
#authentication_method ⇒ Object
Gets the authenticationMethod property value.
-
#authentication_method=(value) ⇒ Object
Sets the authenticationMethod property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new authenticationMethodModeDetail and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_method ⇒ Object
Gets the authenticationMethod property value. The authenticationMethod property
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
27 28 29 |
# File 'lib/models/authentication_method_mode_detail.rb', line 27 def authentication_method=(value) @authentication_method = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name of this mode
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
58 59 60 |
# File 'lib/models/authentication_method_mode_detail.rb', line 58 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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
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 |