# 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::DataFactory::Mgmt::V2017_09_01_preview
  module Models
    #
    # Query filter option for listing pipeline runs.
    #
    class PipelineRunQueryFilter

      include MsRestAzure

      # @return [PipelineRunQueryFilterOperand] Parameter name to be used for
      # filter. Possible values include: 'PipelineName', 'Status', 'RunStart',
      # 'RunEnd'
      attr_accessor :operand

      # @return [PipelineRunQueryFilterOperator] Operator to be used for
      # filter. Possible values include: 'Equals', 'NotEquals', 'In', 'NotIn'
      attr_accessor :operator

      # @return [Array<String>] List of filter values.
      attr_accessor :values


      #
      # Mapper for PipelineRunQueryFilter class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'PipelineRunQueryFilter',
          type: {
            name: 'Composite',
            class_name: 'PipelineRunQueryFilter',
            model_properties: {
              operand: {
                client_side_validation: true,
                required: true,
                serialized_name: 'operand',
                type: {
                  name: 'String'
                }
              },
              operator: {
                client_side_validation: true,
                required: true,
                serialized_name: 'operator',
                type: {
                  name: 'String'
                }
              },
              values: {
                client_side_validation: true,
                required: true,
                serialized_name: 'values',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
