Class: MicrosoftGraph::ServicePrincipals::Item::AddKey::AddKeyPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::ServicePrincipals::Item::AddKey::AddKeyPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/service_principals/item/add_key/add_key_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.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new addKeyPostRequestBody and sets the default values.
-
#key_credential ⇒ Object
Gets the keyCredential property value.
-
#key_credential=(value) ⇒ Object
Sets the keyCredential property value.
-
#password_credential ⇒ Object
Gets the passwordCredential property value.
-
#password_credential=(value) ⇒ Object
Sets the passwordCredential property value.
-
#proof ⇒ Object
Gets the proof property value.
-
#proof=(value) ⇒ Object
Sets the proof property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new addKeyPostRequestBody and sets the default values.
46 47 48 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 46 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
54 55 56 57 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 54 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AddKeyPostRequestBody.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.
31 32 33 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 31 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.
39 40 41 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 39 def additional_data=(value) @additional_data = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
62 63 64 65 66 67 68 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 62 def get_field_deserializers() return { "keyCredential" => lambda {|n| @key_credential = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::KeyCredential.create_from_discriminator_value(pn) }) }, "passwordCredential" => lambda {|n| @password_credential = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PasswordCredential.create_from_discriminator_value(pn) }) }, "proof" => lambda {|n| @proof = n.get_string_value() }, } end |
#key_credential ⇒ Object
Gets the keyCredential property value. The keyCredential property
73 74 75 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 73 def key_credential return @key_credential end |
#key_credential=(value) ⇒ Object
Sets the keyCredential property value. The keyCredential property
81 82 83 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 81 def key_credential=(value) @key_credential = value end |
#password_credential ⇒ Object
Gets the passwordCredential property value. The passwordCredential property
88 89 90 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 88 def password_credential return @password_credential end |
#password_credential=(value) ⇒ Object
Sets the passwordCredential property value. The passwordCredential property
96 97 98 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 96 def password_credential=(value) @password_credential = value end |
#proof ⇒ Object
Gets the proof property value. The proof property
103 104 105 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 103 def proof return @proof end |
#proof=(value) ⇒ Object
Sets the proof property value. The proof property
111 112 113 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 111 def proof=(value) @proof = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
119 120 121 122 123 124 125 |
# File 'lib/service_principals/item/add_key/add_key_post_request_body.rb', line 119 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("keyCredential", @key_credential) writer.write_object_value("passwordCredential", @password_credential) writer.write_string_value("proof", @proof) writer.write_additional_data(@additional_data) end |