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

/**
 * Description of VirtualNetworkRules - NetworkRules resource.
 *
 */
class NWRuleSetVirtualNetworkRules {
  /**
   * Create a NWRuleSetVirtualNetworkRules.
   * @property {object} [subnet] Subnet properties
   * @property {string} [subnet.id] Resource ID of Virtual Network Subnet
   * @property {boolean} [ignoreMissingVnetServiceEndpoint] Value that
   * indicates whether to ignore missing VNet Service Endpoint
   */
  constructor() {
  }

  /**
   * Defines the metadata of NWRuleSetVirtualNetworkRules
   *
   * @returns {object} metadata of NWRuleSetVirtualNetworkRules
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'NWRuleSetVirtualNetworkRules',
      type: {
        name: 'Composite',
        className: 'NWRuleSetVirtualNetworkRules',
        modelProperties: {
          subnet: {
            required: false,
            serializedName: 'subnet',
            type: {
              name: 'Composite',
              className: 'Subnet'
            }
          },
          ignoreMissingVnetServiceEndpoint: {
            required: false,
            serializedName: 'ignoreMissingVnetServiceEndpoint',
            type: {
              name: 'Boolean'
            }
          }
        }
      }
    };
  }
}

module.exports = NWRuleSetVirtualNetworkRules;
