Class: MicrosoftGraph::Models::ParseExpressionResponse

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/parse_expression_response.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a parse_expression_response

Raises:

  • (StandardError)


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_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



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



42
43
44
# File 'lib/models/parse_expression_response.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#errorObject

Gets the error property value. Error details, if expression evaluation resulted in an error.

Returns:

  • a public_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.

Parameters:

  • value

    Value to set for the error property.

Returns:

  • a void



73
74
75
# File 'lib/models/parse_expression_response.rb', line 73

def error=(value)
    @error = value
end

#evaluation_resultObject

Gets the evaluationResult property value. A collection of values produced by the evaluation of the expression.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the evaluationResult property.

Returns:

  • a void



88
89
90
# File 'lib/models/parse_expression_response.rb', line 88

def evaluation_result=(value)
    @evaluation_result = value
end

#evaluation_succeededObject

Gets the evaluationSucceeded property value. true if the evaluation was successful.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the evaluationSucceeded property.

Returns:

  • a void



103
104
105
# File 'lib/models/parse_expression_response.rb', line 103

def evaluation_succeeded=(value)
    @evaluation_succeeded = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



132
133
134
# File 'lib/models/parse_expression_response.rb', line 132

def odata_type=(value)
    @odata_type = value
end

#parsed_expressionObject

Gets the parsedExpression property value. An attributeMappingSource object representing the parsed expression.

Returns:

  • a attribute_mapping_source



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.

Parameters:

  • value

    Value to set for the parsedExpression property.

Returns:

  • a void



147
148
149
# File 'lib/models/parse_expression_response.rb', line 147

def parsed_expression=(value)
    @parsed_expression = value
end

#parsing_succeededObject

Gets the parsingSucceeded property value. true if the expression was parsed successfully.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the parsingSucceeded property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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