/*
 * 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 USqlTablePartitionList class.
 * @constructor
 * A Data Lake Analytics catalog U-SQL table partition item list.
 * @member {array} [value] the list of table partitions in the database,
 * schema and table combination
 * 
 */
function USqlTablePartitionList() {
}

util.inherits(USqlTablePartitionList, Array);

/**
 * Defines the metadata of USqlTablePartitionList
 *
 * @returns {object} metadata of USqlTablePartitionList
 *
 */
USqlTablePartitionList.prototype.mapper = function () {
  return {
    required: false,
    serializedName: 'USqlTablePartitionList',
    type: {
      name: 'Composite',
      className: 'USqlTablePartitionList',
      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: 'USqlTablePartitionElementType',
                type: {
                  name: 'Composite',
                  className: 'USqlTablePartition'
                }
            }
          }
        }
      }
    }
  };
};

module.exports = USqlTablePartitionList;
