/*
 * 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 0.16.0.0
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

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

/**
 * @class
 * Initializes a new instance of the PolicyAssignment class.
 * @constructor
 * Policy assignment.
 * @member {object} [properties] Gets or sets the policy assignment properties.
 * 
 * @member {string} [properties.scope] Gets or sets the policy assignment
 * scope.
 * 
 * @member {string} [properties.displayName] Gets or sets the policy
 * assignment display name.
 * 
 * @member {string} [properties.policyDefinitionId] Gets or sets the policy
 * definition Id.
 * 
 * @member {string} [name] Gets or sets the policy assignment name.
 * 
 */
function PolicyAssignment() {
}

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

module.exports = PolicyAssignment;
