# 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_06_01_preview
  module Models
    #
    # Describes the credential parameters for accessing the source registry.
    #
    class SourceRegistryCredentials

      include MsRestAzure

      # @return [SourceRegistryLoginMode] The authentication mode which
      # determines the source registry login scope. The credentials for the
      # source registry
      # will be generated using the given scope. These credentials will be used
      # to login to
      # the source registry during the run. Possible values include: 'None',
      # 'Default'
      attr_accessor :login_mode


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