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

'use strict';

/**
 * Generic notification target.
 *
 */
class NotificationTarget {
  /**
   * Create a NotificationTarget.
   * @member {string} type Polymorphic Discriminator
   */
  constructor() {
  }

  /**
   * Defines the metadata of NotificationTarget
   *
   * @returns {object} metadata of NotificationTarget
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'NotificationTarget',
      type: {
        name: 'Composite',
        polymorphicDiscriminator: {
          serializedName: 'type',
          clientName: 'type'
        },
        uberParent: 'NotificationTarget',
        className: 'NotificationTarget',
        modelProperties: {
          type: {
            required: true,
            serializedName: 'type',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = NotificationTarget;
