# 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::ContainerRegistry::Mgmt::V2019_05_01
  module Models
    #
    # The status of an Azure resource at the time the operation was called.
    #
    class Status

      include MsRestAzure

      # @return [String] The short label for the status.
      attr_accessor :display_status

      # @return [String] The detailed message for the status, including alerts
      # and error messages.
      attr_accessor :message

      # @return [DateTime] The timestamp when the status was changed to the
      # current value.
      attr_accessor :timestamp


      #
      # Mapper for Status class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Status',
          type: {
            name: 'Composite',
            class_name: 'Status',
            model_properties: {
              display_status: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'displayStatus',
                type: {
                  name: 'String'
                }
              },
              message: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'message',
                type: {
                  name: 'String'
                }
              },
              timestamp: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'timestamp',
                type: {
                  name: 'DateTime'
                }
              }
            }
          }
        }
      end
    end
  end
end
