/*
 * 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 0.16.0.0
 * 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 NodeResources class.
 * @constructor
 * a collection of node resource objects
 * @member {array} [value] Collection of Node Resources
 * 
 * @member {string} [nextLink] the URL to the next set of resources
 * 
 */
function NodeResources() {
}

util.inherits(NodeResources, Array);

/**
 * Defines the metadata of NodeResources
 *
 * @returns {object} metadata of NodeResources
 *
 */
NodeResources.prototype.mapper = function () {
  return {
    required: false,
    serializedName: 'NodeResources',
    type: {
      name: 'Composite',
      className: 'NodeResources',
      modelProperties: {
        value: {
          required: false,
          serializedName: '',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serializedName: 'NodeResourceElementType',
                type: {
                  name: 'Composite',
                  className: 'NodeResource'
                }
            }
          }
        },
        nextLink: {
          required: false,
          serializedName: 'nextLink',
          type: {
            name: 'String'
          }
        }
      }
    }
  };
};

module.exports = NodeResources;
