Class: MicrosoftGraph::Applications::Item::RemoveKey::RemoveKeyPostRequestBody

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/applications/item/remove_key/remove_key_post_request_body.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a remove_key_post_request_body

Raises:

  • (StandardError)


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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_idObject

Gets the keyId property value. The keyId property

Returns:

  • a guid



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

Parameters:

  • value

    Value to set for the keyId property.

Returns:

  • a void



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

#proofObject

Gets the proof property value. The proof property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the proof property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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