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

/**
 * A list of factory resources.
 */
class FactoryListResponse extends Array {
  /**
   * Create a FactoryListResponse.
   * @member {string} [nextLink] The link to the next page of results, if any
   * remaining results exist.
   */
  constructor() {
    super();
  }

  /**
   * Defines the metadata of FactoryListResponse
   *
   * @returns {object} metadata of FactoryListResponse
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'FactoryListResponse',
      type: {
        name: 'Composite',
        className: 'FactoryListResponse',
        modelProperties: {
          value: {
            required: true,
            serializedName: '',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'FactoryElementType',
                  type: {
                    name: 'Composite',
                    additionalProperties: {
                      type: {
                        name: 'Dictionary',
                        value: {
                            required: false,
                            serializedName: 'ObjectElementType',
                            type: {
                              name: 'Object'
                            }
                        }
                      }
                    },
                    className: 'Factory'
                  }
              }
            }
          },
          nextLink: {
            required: false,
            serializedName: 'nextLink',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = FactoryListResponse;
