Class: MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::If_escaped::IfPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Drives::Item::Items::Item::Workbook::Functions::If_escaped::IfPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/drives/item/items/item/workbook/functions/if_escaped/if_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 ifPostRequestBody and sets the default values.
-
#logical_test ⇒ Object
Gets the logicalTest property value.
-
#logical_test=(value) ⇒ Object
Sets the logicalTest property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#value_if_false ⇒ Object
Gets the valueIfFalse property value.
-
#value_if_false=(value) ⇒ Object
Sets the valueIfFalse property value.
-
#value_if_true ⇒ Object
Gets the valueIfTrue property value.
-
#value_if_true=(value) ⇒ Object
Sets the valueIfTrue property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new ifPostRequestBody and sets the default values.
53 54 55 |
# File 'lib/drives/item/items/item/workbook/functions/if_escaped/if_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/if_escaped/if_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 IfPostRequestBody.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/if_escaped/if_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/if_escaped/if_post_request_body.rb', line 46 def additional_data=(value) @additional_data = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
69 70 71 72 73 74 75 |
# File 'lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb', line 69 def get_field_deserializers() return { "logicalTest" => lambda {|n| @logical_test = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "valueIfFalse" => lambda {|n| @value_if_false = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, "valueIfTrue" => lambda {|n| @value_if_true = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Json.create_from_discriminator_value(pn) }) }, } end |
#logical_test ⇒ Object
Gets the logicalTest property value. The logicalTest property
80 81 82 |
# File 'lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb', line 80 def logical_test return @logical_test end |
#logical_test=(value) ⇒ Object
Sets the logicalTest property value. The logicalTest property
88 89 90 |
# File 'lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb', line 88 def logical_test=(value) @logical_test = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 102 |
# File 'lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("logicalTest", @logical_test) writer.write_object_value("valueIfFalse", @value_if_false) writer.write_object_value("valueIfTrue", @value_if_true) writer.write_additional_data(@additional_data) end |
#value_if_false ⇒ Object
Gets the valueIfFalse property value. The valueIfFalse property
107 108 109 |
# File 'lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb', line 107 def value_if_false return @value_if_false end |
#value_if_false=(value) ⇒ Object
Sets the valueIfFalse property value. The valueIfFalse property
115 116 117 |
# File 'lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb', line 115 def value_if_false=(value) @value_if_false = value end |
#value_if_true ⇒ Object
Gets the valueIfTrue property value. The valueIfTrue property
122 123 124 |
# File 'lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb', line 122 def value_if_true return @value_if_true end |
#value_if_true=(value) ⇒ Object
Sets the valueIfTrue property value. The valueIfTrue property
130 131 132 |
# File 'lib/drives/item/items/item/workbook/functions/if_escaped/if_post_request_body.rb', line 130 def value_if_true=(value) @value_if_true = value end |