Class: MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::Daverage::DaveragePostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::Daverage::DaveragePostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/drives/item/items/item/workbook/functions/daverage/daverage_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.
-
#criteria ⇒ Object
Gets the criteria property value.
-
#criteria=(value) ⇒ Object
Sets the criteria property value.
-
#database ⇒ Object
Gets the database property value.
-
#database=(value) ⇒ Object
Sets the database property value.
-
#field ⇒ Object
Gets the field property value.
-
#field=(value) ⇒ Object
Sets the field property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new daveragePostRequestBody and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new daveragePostRequestBody and sets the default values.
53 54 55 |
# File 'lib/drives/item/items/item/workbook/functions/daverage/daverage_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
61 62 63 64 |
# File 'lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb', line 61 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DaveragePostRequestBody.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/daverage/daverage_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/daverage/daverage_post_request_body.rb', line 46 def additional_data=(value) @additional_data = value end |
#criteria ⇒ Object
Gets the criteria property value. The criteria property
69 70 71 |
# File 'lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb', line 69 def criteria return @criteria end |
#criteria=(value) ⇒ Object
Sets the criteria property value. The criteria property
77 78 79 |
# File 'lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb', line 77 def criteria=(value) @criteria = value end |
#database ⇒ Object
Gets the database property value. The database property
84 85 86 |
# File 'lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb', line 84 def database return @database end |
#database=(value) ⇒ Object
Sets the database property value. The database property
92 93 94 |
# File 'lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb', line 92 def database=(value) @database = value end |
#field ⇒ Object
Gets the field property value. The field property
99 100 101 |
# File 'lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb', line 99 def field return @field end |
#field=(value) ⇒ Object
Sets the field property value. The field property
107 108 109 |
# File 'lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb', line 107 def field=(value) @field = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
114 115 116 117 118 119 120 |
# File 'lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb', line 114 def get_field_deserializers() return { "criteria" => lambda {|n| @criteria = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "database" => lambda {|n| @database = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "field" => lambda {|n| @field = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end |
#serialize(writer) ⇒ Object
Serializes information the current object
126 127 128 129 130 131 132 |
# File 'lib/drives/item/items/item/workbook/functions/daverage/daverage_post_request_body.rb', line 126 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("criteria", @criteria) writer.write_object_value("database", @database) writer.write_object_value("field", @field) writer.write_additional_data(@additional_data) end |