/*
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

const models = require('./index');

/**
 * Class representing a ErrorGroups.
 */
class ErrorGroups {
  /**
   * Create a ErrorGroups.
   * @member {array} [errorGroups]
   */
  constructor() {
  }

  /**
   * Defines the metadata of ErrorGroups
   *
   * @returns {object} metadata of ErrorGroups
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'ErrorGroups',
      type: {
        name: 'Composite',
        className: 'ErrorGroups',
        modelProperties: {
          errorGroups: {
            required: false,
            serializedName: 'error_groups',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'ErrorGroupElementType',
                  type: {
                    name: 'Composite',
                    className: 'ErrorGroup'
                  }
              }
            }
          }
        }
      }
    };
  }
}

module.exports = ErrorGroups;
