Class: MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::Sln::SlnPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::Sln::SlnPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/drives/item/items/item/workbook/functions/sln/sln_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.
-
#cost ⇒ Object
Gets the cost property value.
-
#cost=(value) ⇒ Object
Sets the cost property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new slnPostRequestBody and sets the default values.
-
#life ⇒ Object
Gets the life property value.
-
#life=(value) ⇒ Object
Sets the life property value.
-
#salvage ⇒ Object
Gets the salvage property value.
-
#salvage=(value) ⇒ Object
Sets the salvage property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new slnPostRequestBody and sets the default values.
53 54 55 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 53 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
76 77 78 79 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 76 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SlnPostRequestBody.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.
38 39 40 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 38 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.
46 47 48 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 46 def additional_data=(value) @additional_data = value end |
#cost ⇒ Object
Gets the cost property value. The cost property
60 61 62 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 60 def cost return @cost end |
#cost=(value) ⇒ Object
Sets the cost property value. The cost property
68 69 70 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 68 def cost=(value) @cost = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
84 85 86 87 88 89 90 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 84 def get_field_deserializers() return { "cost" => lambda {|n| @cost = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "life" => lambda {|n| @life = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "salvage" => lambda {|n| @salvage = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end |
#life ⇒ Object
Gets the life property value. The life property
95 96 97 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 95 def life return @life end |
#life=(value) ⇒ Object
Sets the life property value. The life property
103 104 105 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 103 def life=(value) @life = value end |
#salvage ⇒ Object
Gets the salvage property value. The salvage property
110 111 112 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 110 def salvage return @salvage end |
#salvage=(value) ⇒ Object
Sets the salvage property value. The salvage property
118 119 120 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 118 def salvage=(value) @salvage = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
126 127 128 129 130 131 132 |
# File 'lib/drives/item/items/item/workbook/functions/sln/sln_post_request_body.rb', line 126 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("cost", @cost) writer.write_object_value("life", @life) writer.write_object_value("salvage", @salvage) writer.write_additional_data(@additional_data) end |