# 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 details about the specific stage of a job.
    #
    class JobStage

      include MsRestAzure

      # @return [String] The message of the job stage.
      attr_accessor :message

      # @return [JobStatus] The stage status. Possible values include:
      # 'Running', 'Succeeded', 'Failed', 'Canceled'
      attr_accessor :stage_status

      # @return [String] The details of the stage.
      attr_accessor :detail

      # @return [String] The error code of the stage if any.
      attr_accessor :error_code


      #
      # Mapper for JobStage class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'JobStage',
          type: {
            name: 'Composite',
            class_name: 'JobStage',
            model_properties: {
              message: {
                client_side_validation: true,
                required: false,
                serialized_name: 'message',
                type: {
                  name: 'String'
                }
              },
              stage_status: {
                client_side_validation: true,
                required: true,
                serialized_name: 'stageStatus',
                type: {
                  name: 'Enum',
                  module: 'JobStatus'
                }
              },
              detail: {
                client_side_validation: true,
                required: false,
                serialized_name: 'detail',
                type: {
                  name: 'String'
                }
              },
              error_code: {
                client_side_validation: true,
                required: false,
                serialized_name: 'errorCode',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
