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

/**
 * The detail of firewall rule.
 *
 */
class IPv4FirewallRule {
  /**
   * Create a IPv4FirewallRule.
   * @member {string} [firewallRuleName] The rule name.
   * @member {string} [rangeStart] The start range of IPv4.
   * @member {string} [rangeEnd] The end range of IPv4.
   */
  constructor() {
  }

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

module.exports = IPv4FirewallRule;
