# 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::StorSimple8000Series::Mgmt::V2017_06_01
  module Models
    #
    # The OData filter to be used for jobs.
    #
    class JobFilter

      include MsRestAzure

      # @return [String] Specifies the status of the jobs to be filtered. For
      # e.g., "Running", "Succeeded", "Failed" or "Canceled". Only 'Equality'
      # operator is supported for this property.
      attr_accessor :status

      # @return [String] Specifies the type of the jobs to be filtered. For
      # e.g., "ScheduledBackup", "ManualBackup", "RestoreBackup",
      # "CloneVolume", "FailoverVolumeContainers", "CreateLocallyPinnedVolume",
      # "ModifyVolume", "InstallUpdates", "SupportPackageLogs", or
      # "CreateCloudAppliance". Only 'Equality' operator can be used for this
      # property.
      attr_accessor :job_type

      # @return [DateTime] Specifies the start time of the jobs to be filtered.
      # Only 'Greater Than or Equal To' and 'Lesser Than or Equal To' operators
      # are supported for this property.
      attr_accessor :start_time


      #
      # Mapper for JobFilter class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'JobFilter',
          type: {
            name: 'Composite',
            class_name: 'JobFilter',
            model_properties: {
              status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              },
              job_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'jobType',
                type: {
                  name: 'String'
                }
              },
              start_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'startTime',
                type: {
                  name: 'DateTime'
                }
              }
            }
          }
        }
      end
    end
  end
end
