/*
 * 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';

/**
 * @class
 * Initializes a new instance of the DataSourceListResult class.
 * @constructor
 * The list data source by workspace operation response.
 *
 * @member {string} [nextLink] The link (url) to the next page of datasources.
 *
 */
class DataSourceListResult extends Array {
  constructor() {
    super();
  }

  /**
   * Defines the metadata of DataSourceListResult
   *
   * @returns {object} metadata of DataSourceListResult
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'DataSourceListResult',
      type: {
        name: 'Composite',
        className: 'DataSourceListResult',
        modelProperties: {
          value: {
            required: false,
            serializedName: '',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'DataSourceElementType',
                  type: {
                    name: 'Composite',
                    className: 'DataSource'
                  }
              }
            }
          },
          nextLink: {
            serializedName: 'nextLink',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = DataSourceListResult;
            required: false,