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

/**
 * Matched rule.
 *
 */
class MatchedRule {
  /**
   * Create a MatchedRule.
   * @property {string} [ruleName] Name of the matched network security rule.
   * @property {string} [action] The network traffic is allowed or denied.
   * Possible values are 'Allow' and 'Deny'.
   */
  constructor() {
  }

  /**
   * Defines the metadata of MatchedRule
   *
   * @returns {object} metadata of MatchedRule
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'MatchedRule',
      type: {
        name: 'Composite',
        className: 'MatchedRule',
        modelProperties: {
          ruleName: {
            required: false,
            serializedName: 'ruleName',
            type: {
              name: 'String'
            }
          },
          action: {
            required: false,
            serializedName: 'action',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = MatchedRule;
