# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::PolicyInsights::Mgmt::V2019_10_01
  module Models
    #
    # Evaluation details of policy language expressions.
    #
    class ExpressionEvaluationDetails

      include MsRestAzure

      # @return [String] Evaluation result.
      attr_accessor :result

      # @return [String] Expression evaluated.
      attr_accessor :expression

      # @return [String] The kind of expression that was evaluated.
      attr_accessor :expression_kind

      # @return [String] Property path if the expression is a field or an
      # alias.
      attr_accessor :path

      # @return Value of the expression.
      attr_accessor :expression_value

      # @return Target value to be compared with the expression value.
      attr_accessor :target_value

      # @return [String] Operator to compare the expression value and the
      # target value.
      attr_accessor :operator


      #
      # Mapper for ExpressionEvaluationDetails class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ExpressionEvaluationDetails',
          type: {
            name: 'Composite',
            class_name: 'ExpressionEvaluationDetails',
            model_properties: {
              result: {
                client_side_validation: true,
                required: false,
                serialized_name: 'result',
                type: {
                  name: 'String'
                }
              },
              expression: {
                client_side_validation: true,
                required: false,
                serialized_name: 'expression',
                type: {
                  name: 'String'
                }
              },
              expression_kind: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'expressionKind',
                type: {
                  name: 'String'
                }
              },
              path: {
                client_side_validation: true,
                required: false,
                serialized_name: 'path',
                type: {
                  name: 'String'
                }
              },
              expression_value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'expressionValue',
                type: {
                  name: 'Object'
                }
              },
              target_value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'targetValue',
                type: {
                  name: 'Object'
                }
              },
              operator: {
                client_side_validation: true,
                required: false,
                serialized_name: 'operator',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
