/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 * 
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

var util = require('util');

/**
 * @class
 * Initializes a new instance of the USqlCredentialList class.
 * @constructor
 * A Data Lake Analytics catalog U-SQL credential item list.
 * @member {array} [value] the list of credentials in the database
 * 
 */
function USqlCredentialList() {
}

util.inherits(USqlCredentialList, Array);

/**
 * Defines the metadata of USqlCredentialList
 *
 * @returns {object} metadata of USqlCredentialList
 *
 */
USqlCredentialList.prototype.mapper = function () {
  return {
    required: false,
    serializedName: 'USqlCredentialList',
    type: {
      name: 'Composite',
      className: 'USqlCredentialList',
      modelProperties: {
        count: {
          required: false,
          serializedName: 'count',
          type: {
            name: 'Number'
          }
        },
        nextLink: {
          required: false,
          serializedName: 'nextLink',
          type: {
            name: 'String'
          }
        },
        value: {
          required: false,
          readOnly: true,
          serializedName: '',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serializedName: 'USqlCredentialElementType',
                type: {
                  name: 'Composite',
                  className: 'USqlCredential'
                }
            }
          }
        }
      }
    }
  };
};

module.exports = USqlCredentialList;
