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

/**
 * Result of the request to list VirtualWANs. It contains a list of VirtualWANs
 * and a URL nextLink to get the next set of results.
 */
class ListVirtualWANsResult extends Array {
  /**
   * Create a ListVirtualWANsResult.
   * @property {string} [nextLink] URL to get the next set of operation list
   * results if there are any.
   */
  constructor() {
    super();
  }

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

module.exports = ListVirtualWANsResult;
