# 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::BatchAI::Mgmt::V2018_05_01
  module Models
    #
    # Constraints associated with the Job.
    #
    class JobPropertiesConstraints

      include MsRestAzure

      # @return [Duration] Max wall clock time. Max time the job can run.
      # Default value: 1 week. Default value: Date.parse('7.00:00:00') .
      attr_accessor :max_wall_clock_time


      #
      # Mapper for JobPropertiesConstraints class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'JobProperties_constraints',
          type: {
            name: 'Composite',
            class_name: 'JobPropertiesConstraints',
            model_properties: {
              max_wall_clock_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'maxWallClockTime',
                default_value: Date.parse('7.00:00:00'),
                type: {
                  name: 'TimeSpan'
                }
              }
            }
          }
        }
      end
    end
  end
end
