Class: MicrosoftGraph::Models::ParseExpressionResponse
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ParseExpressionResponse
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/parse_expression_response.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.
-
#error ⇒ Object
Gets the error property value.
-
#error=(value) ⇒ Object
Sets the error property value.
-
#evaluation_result ⇒ Object
Gets the evaluationResult property value.
-
#evaluation_result=(value) ⇒ Object
Sets the evaluationResult property value.
-
#evaluation_succeeded ⇒ Object
Gets the evaluationSucceeded property value.
-
#evaluation_succeeded=(value) ⇒ Object
Sets the evaluationSucceeded property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new parseExpressionResponse and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#parsed_expression ⇒ Object
Gets the parsedExpression property value.
-
#parsed_expression=(value) ⇒ Object
Sets the parsedExpression property value.
-
#parsing_succeeded ⇒ Object
Gets the parsingSucceeded property value.
-
#parsing_succeeded=(value) ⇒ Object
Sets the parsingSucceeded property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new parseExpressionResponse and sets the default values.
49 50 51 |
# File 'lib/models/parse_expression_response.rb', line 49 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
57 58 59 60 |
# File 'lib/models/parse_expression_response.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ParseExpressionResponse.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.
34 35 36 |
# File 'lib/models/parse_expression_response.rb', line 34 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.
42 43 44 |
# File 'lib/models/parse_expression_response.rb', line 42 def additional_data=(value) @additional_data = value end |
#error ⇒ Object
Gets the error property value. Error details, if expression evaluation resulted in an error.
65 66 67 |
# File 'lib/models/parse_expression_response.rb', line 65 def error return @error end |
#error=(value) ⇒ Object
Sets the error property value. Error details, if expression evaluation resulted in an error.
73 74 75 |
# File 'lib/models/parse_expression_response.rb', line 73 def error=(value) @error = value end |
#evaluation_result ⇒ Object
Gets the evaluationResult property value. A collection of values produced by the evaluation of the expression.
80 81 82 |
# File 'lib/models/parse_expression_response.rb', line 80 def evaluation_result return @evaluation_result end |
#evaluation_result=(value) ⇒ Object
Sets the evaluationResult property value. A collection of values produced by the evaluation of the expression.
88 89 90 |
# File 'lib/models/parse_expression_response.rb', line 88 def evaluation_result=(value) @evaluation_result = value end |
#evaluation_succeeded ⇒ Object
Gets the evaluationSucceeded property value. true if the evaluation was successful.
95 96 97 |
# File 'lib/models/parse_expression_response.rb', line 95 def evaluation_succeeded return @evaluation_succeeded end |
#evaluation_succeeded=(value) ⇒ Object
Sets the evaluationSucceeded property value. true if the evaluation was successful.
103 104 105 |
# File 'lib/models/parse_expression_response.rb', line 103 def evaluation_succeeded=(value) @evaluation_succeeded = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/models/parse_expression_response.rb', line 110 def get_field_deserializers() return { "error" => lambda {|n| @error = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PublicError.create_from_discriminator_value(pn) }) }, "evaluationResult" => lambda {|n| @evaluation_result = n.get_collection_of_primitive_values(String) }, "evaluationSucceeded" => lambda {|n| @evaluation_succeeded = n.get_boolean_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "parsedExpression" => lambda {|n| @parsed_expression = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AttributeMappingSource.create_from_discriminator_value(pn) }) }, "parsingSucceeded" => lambda {|n| @parsing_succeeded = n.get_boolean_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
124 125 126 |
# File 'lib/models/parse_expression_response.rb', line 124 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
132 133 134 |
# File 'lib/models/parse_expression_response.rb', line 132 def odata_type=(value) @odata_type = value end |
#parsed_expression ⇒ Object
Gets the parsedExpression property value. An attributeMappingSource object representing the parsed expression.
139 140 141 |
# File 'lib/models/parse_expression_response.rb', line 139 def parsed_expression return @parsed_expression end |
#parsed_expression=(value) ⇒ Object
Sets the parsedExpression property value. An attributeMappingSource object representing the parsed expression.
147 148 149 |
# File 'lib/models/parse_expression_response.rb', line 147 def parsed_expression=(value) @parsed_expression = value end |
#parsing_succeeded ⇒ Object
Gets the parsingSucceeded property value. true if the expression was parsed successfully.
154 155 156 |
# File 'lib/models/parse_expression_response.rb', line 154 def parsing_succeeded return @parsing_succeeded end |
#parsing_succeeded=(value) ⇒ Object
Sets the parsingSucceeded property value. true if the expression was parsed successfully.
162 163 164 |
# File 'lib/models/parse_expression_response.rb', line 162 def parsing_succeeded=(value) @parsing_succeeded = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
170 171 172 173 174 175 176 177 178 179 |
# File 'lib/models/parse_expression_response.rb', line 170 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("error", @error) writer.write_collection_of_primitive_values("evaluationResult", @evaluation_result) writer.write_boolean_value("evaluationSucceeded", @evaluation_succeeded) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("parsedExpression", @parsed_expression) writer.write_boolean_value("parsingSucceeded", @parsing_succeeded) writer.write_additional_data(@additional_data) end |