# 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
    #
    # An object to provide order by options for listing pipeline runs.
    #
    class PipelineRunQueryOrderBy

      include MsRestAzure

      # @return [PipelineRunQueryOrderByField] Parameter name to be used for
      # order by. Possible values include: 'RunStart', 'RunEnd'
      attr_accessor :order_by

      # @return [PipelineRunQueryOrder] Sorting order of the parameter.
      # Possible values include: 'ASC', 'DESC'
      attr_accessor :order


      #
      # Mapper for PipelineRunQueryOrderBy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'PipelineRunQueryOrderBy',
          type: {
            name: 'Composite',
            class_name: 'PipelineRunQueryOrderBy',
            model_properties: {
              order_by: {
                client_side_validation: true,
                required: true,
                serialized_name: 'orderBy',
                type: {
                  name: 'String'
                }
              },
              order: {
                client_side_validation: true,
                required: true,
                serialized_name: 'order',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
