# 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::Batch::Mgmt::V2019_08_01
  module Models
    #
    # A private container registry.
    #
    #
    class ContainerRegistry

      include MsRestAzure

      # @return [String] The registry URL. If omitted, the default is
      # "docker.io".
      attr_accessor :registry_server

      # @return [String] The user name to log into the registry server.
      attr_accessor :user_name

      # @return [String] The password to log into the registry server.
      attr_accessor :password


      #
      # Mapper for ContainerRegistry class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ContainerRegistry',
          type: {
            name: 'Composite',
            class_name: 'ContainerRegistry',
            model_properties: {
              registry_server: {
                client_side_validation: true,
                required: false,
                serialized_name: 'registryServer',
                type: {
                  name: 'String'
                }
              },
              user_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'username',
                type: {
                  name: 'String'
                }
              },
              password: {
                client_side_validation: true,
                required: true,
                serialized_name: 'password',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
