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

/**
 * @class
 * Initializes a new instance of the PolicyViolation class.
 * @constructor
 * Policy violation.
 * @member {string} [code] The code of the policy violation.
 * 
 * @member {string} [message] The message of the policy violation.
 * 
 */
function PolicyViolation() {
}

/**
 * Defines the metadata of PolicyViolation
 *
 * @returns {object} metadata of PolicyViolation
 *
 */
PolicyViolation.prototype.mapper = function () {
  return {
    required: false,
    serializedName: 'PolicyViolation',
    type: {
      name: 'Composite',
      className: 'PolicyViolation',
      modelProperties: {
        code: {
          required: false,
          serializedName: 'code',
          type: {
            name: 'String'
          }
        },
        message: {
          required: false,
          serializedName: 'message',
          type: {
            name: 'String'
          }
        }
      }
    }
  };
};

module.exports = PolicyViolation;
