Class: MicrosoftGraph::Applications::Item::RemoveKey::RemoveKeyPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Applications::Item::RemoveKey::RemoveKeyPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/applications/item/remove_key/remove_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 removeKeyPostRequestBody and sets the default values.
-
#key_id ⇒ Object
Gets the keyId property value.
-
#key_id=(value) ⇒ Object
Sets the keyId 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 removeKeyPostRequestBody and sets the default values.
41 42 43 |
# File 'lib/applications/item/remove_key/remove_key_post_request_body.rb', line 41 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
49 50 51 52 |
# File 'lib/applications/item/remove_key/remove_key_post_request_body.rb', line 49 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return RemoveKeyPostRequestBody.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.
26 27 28 |
# File 'lib/applications/item/remove_key/remove_key_post_request_body.rb', line 26 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.
34 35 36 |
# File 'lib/applications/item/remove_key/remove_key_post_request_body.rb', line 34 def additional_data=(value) @additional_data = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
57 58 59 60 61 62 |
# File 'lib/applications/item/remove_key/remove_key_post_request_body.rb', line 57 def get_field_deserializers() return { "keyId" => lambda {|n| @key_id = n.get_guid_value() }, "proof" => lambda {|n| @proof = n.get_string_value() }, } end |
#key_id ⇒ Object
Gets the keyId property value. The keyId property
67 68 69 |
# File 'lib/applications/item/remove_key/remove_key_post_request_body.rb', line 67 def key_id return @key_id end |
#key_id=(value) ⇒ Object
Sets the keyId property value. The keyId property
75 76 77 |
# File 'lib/applications/item/remove_key/remove_key_post_request_body.rb', line 75 def key_id=(value) @key_id = value end |
#proof ⇒ Object
Gets the proof property value. The proof property
82 83 84 |
# File 'lib/applications/item/remove_key/remove_key_post_request_body.rb', line 82 def proof return @proof end |
#proof=(value) ⇒ Object
Sets the proof property value. The proof property
90 91 92 |
# File 'lib/applications/item/remove_key/remove_key_post_request_body.rb', line 90 def proof=(value) @proof = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
98 99 100 101 102 103 |
# File 'lib/applications/item/remove_key/remove_key_post_request_body.rb', line 98 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_guid_value("keyId", @key_id) writer.write_string_value("proof", @proof) writer.write_additional_data(@additional_data) end |