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

/**
 * Collection of Kudu continuous web job information elements.
 */
class TriggeredJobHistoryCollection extends Array {
  /**
   * Create a TriggeredJobHistoryCollection.
   * @member {string} [nextLink] Link to next page of resources.
   */
  constructor() {
    super();
  }

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

module.exports = TriggeredJobHistoryCollection;
