Class: MicrosoftGraph::Me::ChangePassword::ChangePasswordPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Me::ChangePassword::ChangePasswordPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/me/change_password/change_password_post_request_body.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#current_password ⇒ Object
Gets the currentPassword property value.
-
#current_password=(value) ⇒ Object
Sets the currentPassword property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new changePasswordPostRequestBody and sets the default values.
-
#new_password ⇒ Object
Gets the newPassword property value.
-
#new_password=(value) ⇒ Object
Sets the newPassword property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new changePasswordPostRequestBody and sets the default values.
39 40 41 |
# File 'lib/me/change_password/change_password_post_request_body.rb', line 39 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
47 48 49 50 |
# File 'lib/me/change_password/change_password_post_request_body.rb', line 47 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ChangePasswordPostRequestBody.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
24 25 26 |
# File 'lib/me/change_password/change_password_post_request_body.rb', line 24 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
32 33 34 |
# File 'lib/me/change_password/change_password_post_request_body.rb', line 32 def additional_data=(value) @additional_data = value end |
#current_password ⇒ Object
Gets the currentPassword property value. The currentPassword property
55 56 57 |
# File 'lib/me/change_password/change_password_post_request_body.rb', line 55 def current_password return @current_password end |
#current_password=(value) ⇒ Object
Sets the currentPassword property value. The currentPassword property
63 64 65 |
# File 'lib/me/change_password/change_password_post_request_body.rb', line 63 def current_password=(value) @current_password = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
70 71 72 73 74 75 |
# File 'lib/me/change_password/change_password_post_request_body.rb', line 70 def get_field_deserializers() return { "currentPassword" => lambda {|n| @current_password = n.get_string_value() }, "newPassword" => lambda {|n| @new_password = n.get_string_value() }, } end |
#new_password ⇒ Object
Gets the newPassword property value. The newPassword property
80 81 82 |
# File 'lib/me/change_password/change_password_post_request_body.rb', line 80 def new_password return @new_password end |
#new_password=(value) ⇒ Object
Sets the newPassword property value. The newPassword property
88 89 90 |
# File 'lib/me/change_password/change_password_post_request_body.rb', line 88 def new_password=(value) @new_password = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 |
# File 'lib/me/change_password/change_password_post_request_body.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("currentPassword", @current_password) writer.write_string_value("newPassword", @new_password) writer.write_additional_data(@additional_data) end |