# 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::Automation::Mgmt::V2015_10_31
  module Models
    #
    # Definition of the test job.
    #
    class TestJob

      include MsRestAzure

      # @return [DateTime] Gets or sets the creation time of the test job.
      attr_accessor :creation_time

      # @return [String] Gets or sets the status of the test job.
      attr_accessor :status

      # @return [String] Gets or sets the status details of the test job.
      attr_accessor :status_details

      # @return [String] Gets or sets the runOn which specifies the group name
      # where the job is to be executed.
      attr_accessor :run_on

      # @return [DateTime] Gets or sets the start time of the test job.
      attr_accessor :start_time

      # @return [DateTime] Gets or sets the end time of the test job.
      attr_accessor :end_time

      # @return [String] Gets or sets the exception of the test job.
      attr_accessor :exception

      # @return [DateTime] Gets or sets the last modified time of the test job.
      attr_accessor :last_modified_time

      # @return [DateTime] Gets or sets the last status modified time of the
      # test job.
      attr_accessor :last_status_modified_time

      # @return [Hash{String => String}] Gets or sets the parameters of the
      # test job.
      attr_accessor :parameters

      # @return [Integer] The activity-level tracing options of the runbook.
      attr_accessor :log_activity_trace


      #
      # Mapper for TestJob class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'TestJob',
          type: {
            name: 'Composite',
            class_name: 'TestJob',
            model_properties: {
              creation_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'creationTime',
                type: {
                  name: 'DateTime'
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              },
              status_details: {
                client_side_validation: true,
                required: false,
                serialized_name: 'statusDetails',
                type: {
                  name: 'String'
                }
              },
              run_on: {
                client_side_validation: true,
                required: false,
                serialized_name: 'runOn',
                type: {
                  name: 'String'
                }
              },
              start_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'startTime',
                type: {
                  name: 'DateTime'
                }
              },
              end_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'endTime',
                type: {
                  name: 'DateTime'
                }
              },
              exception: {
                client_side_validation: true,
                required: false,
                serialized_name: 'exception',
                type: {
                  name: 'String'
                }
              },
              last_modified_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'lastModifiedTime',
                type: {
                  name: 'DateTime'
                }
              },
              last_status_modified_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'lastStatusModifiedTime',
                type: {
                  name: 'DateTime'
                }
              },
              parameters: {
                client_side_validation: true,
                required: false,
                serialized_name: 'parameters',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              log_activity_trace: {
                client_side_validation: true,
                required: false,
                serialized_name: 'logActivityTrace',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
