# 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_preview
  module Models
    #
    # The password that will be used for authenticating the token of a
    # container registry.
    #
    class TokenPassword

      include MsRestAzure

      # @return [DateTime] The creation datetime of the password.
      attr_accessor :creation_time

      # @return [DateTime] The expiry datetime of the password.
      attr_accessor :expiry

      # @return [TokenPasswordName] The password name "password1" or
      # "password2". Possible values include: 'password1', 'password2'
      attr_accessor :name

      # @return [String] The password value.
      attr_accessor :value


      #
      # Mapper for TokenPassword class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'TokenPassword',
          type: {
            name: 'Composite',
            class_name: 'TokenPassword',
            model_properties: {
              creation_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'creationTime',
                type: {
                  name: 'DateTime'
                }
              },
              expiry: {
                client_side_validation: true,
                required: false,
                serialized_name: 'expiry',
                type: {
                  name: 'DateTime'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              value: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'value',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
