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AS,KACxF,IAAI,EAAwB,IAAI,OAAO,sBAAsB,EAAS,GACtE,EAAsB,KAAO,EACzB,EAAO,EAAO,GACX,EAAQ,EACT,GACN,GAEN,CAuCA,wBAAA,CAAyB,EAAU,EAAiB,EAAS,GAC3D,IACI,EAAO,KAKX,OAJK,GAAuC,mBAAZ,IAC9B,EAAmB,EACnB,EAAU,MAEP,EASI,EAAK,0BAA0B,EAAU,EAAiB,EAAS,GARnE,IAAI,SAAQ,CAAC,EAAS,KAC3B,EAAK,0BAA0B,EAAU,EAAiB,GAAS,CAAC,EAAK,EAAQ,EAAS,KACpF,EAAO,EAAO,GACX,EAAQ,EACT,GACN,GAKR,CAqBA,mDAAA,CAAoD,EAAmB,EAAgB,GACrF,IACI,EAAO,KACX,OAAO,IAAI,SAAQ,CAAC,EAAS,KAC3B,EAAK,4BAA4B,EAAmB,EAAgB,GAAS,CAAC,EAAK,EAAQ,EAAS,KAClG,IAAI,EAAwB,IAAI,OAAO,sBAAsB,EAAS,GACtE,EAAsB,KAAO,EACzB,EAAO,EAAO,GACX,EAAQ,EACT,GACN,GAEN,CAsCA,0BAAA,CAA2B,EAAmB,EAAgB,EAAS,GACrE,IACI,EAAO,KAKX,OAJK,GAAuC,mBAAZ,IAC9B,EAAmB,EACnB,EAAU,MAEP,EASI,EAAK,4BAA4B,EAAmB,EAAgB,EAAS,GAR7E,IAAI,SAAQ,CAAC,EAAS,KAC3B,EAAK,4BAA4B,EAAmB,EAAgB,GAAS,CAAC,EAAK,EAAQ,EAAS,KAC9F,EAAO,EAAO,GACX,EAAQ,EACT,GACN,GAKR,EAIF,OAAO,QAAU,wBACjB,OAAO,QAAiB,QAAI,wBAC5B,OAAO,QAAQ,wBAA0B,wBACzC,OAAO,QAAQ,wBAA0B","file":"/npm/azure-arm-network@13.0.0/lib/networkManagementClient.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/azure-arm-network@13.0.0/lib/networkManagementClient.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for\n * license information.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is\n * regenerated.\n */\n\n/* jshint latedef:false */\n/* jshint forin:false */\n/* jshint noempty:false */\n\n'use strict';\n\nconst msRest = require('ms-rest');\nconst msRestAzure = require('ms-rest-azure');\nconst ServiceClient = msRestAzure.AzureServiceClient;\nconst WebResource = msRest.WebResource;\n\nconst models = require('./models');\nconst operations = require('./operations');\n\n\n/**\n * Checks whether a domain name in the cloudapp.azure.com zone is available for\n * use.\n *\n * @param {string} location The location of the domain name.\n *\n * @param {string} domainNameLabel The domain name to be verified. It must\n * conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.\n *\n * @param {object} [options] Optional Parameters.\n *\n * @param {object} [options.customHeaders] Headers that will be added to the\n * request\n *\n * @param {function} callback - The callback.\n *\n * @returns {function} callback(err, result, request, response)\n *\n *                      {Error}  err        - The Error object if an error occurred, null otherwise.\n *\n *                      {object} [result]   - The deserialized result object if an error did not occur.\n *                      See {@link DnsNameAvailabilityResult} for more\n *                      information.\n *\n *                      {object} [request]  - The HTTP Request object if an error did not occur.\n *\n *                      {stream} [response] - The HTTP Response stream if an error did not occur.\n */\nfunction _checkDnsNameAvailability(location, domainNameLabel, options, callback) {\n   /* jshint validthis: true */\n  let client = this;\n  if(!callback && typeof options === 'function') {\n    callback = options;\n    options = null;\n  }\n  if (!callback) {\n    throw new Error('callback cannot be null.');\n  }\n  let apiVersion = '2019-02-01';\n  // Validate\n  try {\n    if (location === null || location === undefined || typeof location.valueOf() !== 'string') {\n      throw new Error('location cannot be null or undefined and it must be of type string.');\n    }\n    if (domainNameLabel === null || domainNameLabel === undefined || typeof domainNameLabel.valueOf() !== 'string') {\n      throw new Error('domainNameLabel cannot be null or undefined and it must be of type string.');\n    }\n    if (this.subscriptionId === null || this.subscriptionId === undefined || typeof this.subscriptionId.valueOf() !== 'string') {\n      throw new Error('this.subscriptionId cannot be null or undefined and it must be of type string.');\n    }\n    if (this.acceptLanguage !== null && this.acceptLanguage !== undefined && typeof this.acceptLanguage.valueOf() !== 'string') {\n      throw new Error('this.acceptLanguage must be of type string.');\n    }\n  } catch (error) {\n    return callback(error);\n  }\n\n  // Construct URL\n  let baseUrl = this.baseUri;\n  let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability';\n  requestUrl = requestUrl.replace('{location}', encodeURIComponent(location));\n  requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.subscriptionId));\n  let queryParameters = [];\n  queryParameters.push('domainNameLabel=' + encodeURIComponent(domainNameLabel));\n  queryParameters.push('api-version=' + encodeURIComponent(apiVersion));\n  if (queryParameters.length > 0) {\n    requestUrl += '?' + queryParameters.join('&');\n  }\n\n  // Create HTTP transport objects\n  let httpRequest = new WebResource();\n  httpRequest.method = 'GET';\n  httpRequest.url = requestUrl;\n  httpRequest.headers = {};\n  // Set Headers\n  httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';\n  if (this.generateClientRequestId) {\n      httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();\n  }\n  if (this.acceptLanguage !== undefined && this.acceptLanguage !== null) {\n    httpRequest.headers['accept-language'] = this.acceptLanguage;\n  }\n  if(options) {\n    for(let headerName in options['customHeaders']) {\n      if (options['customHeaders'].hasOwnProperty(headerName)) {\n        httpRequest.headers[headerName] = options['customHeaders'][headerName];\n      }\n    }\n  }\n  httpRequest.body = null;\n  // Send Request\n  return client.pipeline(httpRequest, (err, response, responseBody) => {\n    if (err) {\n      return callback(err);\n    }\n    let statusCode = response.statusCode;\n    if (statusCode !== 200) {\n      let error = new Error(responseBody);\n      error.statusCode = response.statusCode;\n      error.request = msRest.stripRequest(httpRequest);\n      error.response = msRest.stripResponse(response);\n      if (responseBody === '') responseBody = null;\n      let parsedErrorResponse;\n      try {\n        parsedErrorResponse = JSON.parse(responseBody);\n        if (parsedErrorResponse) {\n          if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;\n          if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;\n          if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;\n        }\n        if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {\n          let resultMapper = new client.models['CloudError']().mapper();\n          error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');\n        }\n      } catch (defaultError) {\n        error.message = `Error \"${defaultError.message}\" occurred in deserializing the responseBody ` +\n                         `- \"${responseBody}\" for the default response.`;\n        return callback(error);\n      }\n      return callback(error);\n    }\n    // Create Result\n    let result = null;\n    if (responseBody === '') responseBody = null;\n    // Deserialize Response\n    if (statusCode === 200) {\n      let parsedResponse = null;\n      try {\n        parsedResponse = JSON.parse(responseBody);\n        result = JSON.parse(responseBody);\n        if (parsedResponse !== null && parsedResponse !== undefined) {\n          let resultMapper = new client.models['DnsNameAvailabilityResult']().mapper();\n          result = client.deserialize(resultMapper, parsedResponse, 'result');\n        }\n      } catch (error) {\n        let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);\n        deserializationError.request = msRest.stripRequest(httpRequest);\n        deserializationError.response = msRest.stripResponse(response);\n        return callback(deserializationError);\n      }\n    }\n\n    return callback(null, result, httpRequest, response);\n  });\n}\n\n/**\n * Gives the supported security providers for the virtual wan.\n *\n * @param {string} resourceGroupName The resource group name.\n *\n * @param {string} virtualWANName The name of the VirtualWAN for which\n * supported security providers are needed.\n *\n * @param {object} [options] Optional Parameters.\n *\n * @param {object} [options.customHeaders] Headers that will be added to the\n * request\n *\n * @param {function} callback - The callback.\n *\n * @returns {function} callback(err, result, request, response)\n *\n *                      {Error}  err        - The Error object if an error occurred, null otherwise.\n *\n *                      {object} [result]   - The deserialized result object if an error did not occur.\n *                      See {@link VirtualWanSecurityProviders} for more\n *                      information.\n *\n *                      {object} [request]  - The HTTP Request object if an error did not occur.\n *\n *                      {stream} [response] - The HTTP Response stream if an error did not occur.\n */\nfunction _supportedSecurityProviders(resourceGroupName, virtualWANName, options, callback) {\n   /* jshint validthis: true */\n  let client = this;\n  if(!callback && typeof options === 'function') {\n    callback = options;\n    options = null;\n  }\n  if (!callback) {\n    throw new Error('callback cannot be null.');\n  }\n  let apiVersion = '2019-02-01';\n  // Validate\n  try {\n    if (this.subscriptionId === null || this.subscriptionId === undefined || typeof this.subscriptionId.valueOf() !== 'string') {\n      throw new Error('this.subscriptionId cannot be null or undefined and it must be of type string.');\n    }\n    if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {\n      throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');\n    }\n    if (virtualWANName === null || virtualWANName === undefined || typeof virtualWANName.valueOf() !== 'string') {\n      throw new Error('virtualWANName cannot be null or undefined and it must be of type string.');\n    }\n    if (this.acceptLanguage !== null && this.acceptLanguage !== undefined && typeof this.acceptLanguage.valueOf() !== 'string') {\n      throw new Error('this.acceptLanguage must be of type string.');\n    }\n  } catch (error) {\n    return callback(error);\n  }\n\n  // Construct URL\n  let baseUrl = this.baseUri;\n  let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders';\n  requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.subscriptionId));\n  requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));\n  requestUrl = requestUrl.replace('{virtualWANName}', encodeURIComponent(virtualWANName));\n  let queryParameters = [];\n  queryParameters.push('api-version=' + encodeURIComponent(apiVersion));\n  if (queryParameters.length > 0) {\n    requestUrl += '?' + queryParameters.join('&');\n  }\n\n  // Create HTTP transport objects\n  let httpRequest = new WebResource();\n  httpRequest.method = 'GET';\n  httpRequest.url = requestUrl;\n  httpRequest.headers = {};\n  // Set Headers\n  httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';\n  if (this.generateClientRequestId) {\n      httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();\n  }\n  if (this.acceptLanguage !== undefined && this.acceptLanguage !== null) {\n    httpRequest.headers['accept-language'] = this.acceptLanguage;\n  }\n  if(options) {\n    for(let headerName in options['customHeaders']) {\n      if (options['customHeaders'].hasOwnProperty(headerName)) {\n        httpRequest.headers[headerName] = options['customHeaders'][headerName];\n      }\n    }\n  }\n  httpRequest.body = null;\n  // Send Request\n  return client.pipeline(httpRequest, (err, response, responseBody) => {\n    if (err) {\n      return callback(err);\n    }\n    let statusCode = response.statusCode;\n    if (statusCode !== 200) {\n      let error = new Error(responseBody);\n      error.statusCode = response.statusCode;\n      error.request = msRest.stripRequest(httpRequest);\n      error.response = msRest.stripResponse(response);\n      if (responseBody === '') responseBody = null;\n      let parsedErrorResponse;\n      try {\n        parsedErrorResponse = JSON.parse(responseBody);\n        if (parsedErrorResponse) {\n          let internalError = null;\n          if (parsedErrorResponse.error) internalError = parsedErrorResponse.error;\n          error.code = internalError ? internalError.code : parsedErrorResponse.code;\n          error.message = internalError ? internalError.message : parsedErrorResponse.message;\n        }\n        if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {\n          let resultMapper = new client.models['ErrorModel']().mapper();\n          error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');\n        }\n      } catch (defaultError) {\n        error.message = `Error \"${defaultError.message}\" occurred in deserializing the responseBody ` +\n                         `- \"${responseBody}\" for the default response.`;\n        return callback(error);\n      }\n      return callback(error);\n    }\n    // Create Result\n    let result = null;\n    if (responseBody === '') responseBody = null;\n    // Deserialize Response\n    if (statusCode === 200) {\n      let parsedResponse = null;\n      try {\n        parsedResponse = JSON.parse(responseBody);\n        result = JSON.parse(responseBody);\n        if (parsedResponse !== null && parsedResponse !== undefined) {\n          let resultMapper = new client.models['VirtualWanSecurityProviders']().mapper();\n          result = client.deserialize(resultMapper, parsedResponse, 'result');\n        }\n      } catch (error) {\n        let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);\n        deserializationError.request = msRest.stripRequest(httpRequest);\n        deserializationError.response = msRest.stripResponse(response);\n        return callback(deserializationError);\n      }\n    }\n\n    return callback(null, result, httpRequest, response);\n  });\n}\n\n/** Class representing a NetworkManagementClient. */\nclass NetworkManagementClient extends ServiceClient {\n  /**\n   * Create a NetworkManagementClient.\n   * @param {credentials} credentials - Credentials needed for the client to connect to Azure.\n   * @param {string} subscriptionId - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.\n   * @param {string} [baseUri] - The base URI of the service.\n   * @param {object} [options] - The parameter options\n   * @param {Array} [options.filters] - Filters to be added to the request pipeline\n   * @param {object} [options.requestOptions] - Options for the underlying request object\n   * {@link https://github.com/request/request#requestoptions-callback Options doc}\n   * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy\n   * @param {string} [options.acceptLanguage] - The preferred language for the response.\n   * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.\n   * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.\n   */\n  constructor(credentials, subscriptionId, baseUri, options) {\n    if (credentials === null || credentials === undefined) {\n      throw new Error('\\'credentials\\' cannot be null.');\n    }\n    if (subscriptionId === null || subscriptionId === undefined) {\n      throw new Error('\\'subscriptionId\\' cannot be null.');\n    }\n\n    if (!options) options = {};\n\n    super(credentials, options);\n\n    this.acceptLanguage = 'en-US';\n    this.longRunningOperationRetryTimeout = 30;\n    this.generateClientRequestId = true;\n    this.baseUri = baseUri;\n    if (!this.baseUri) {\n      this.baseUri = 'https://management.azure.com';\n    }\n    this.credentials = credentials;\n    this.subscriptionId = subscriptionId;\n\n    let packageInfo = this.getPackageJsonInfo(__dirname);\n    this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);\n    if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {\n      this.acceptLanguage = options.acceptLanguage;\n    }\n    if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {\n      this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;\n    }\n    if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {\n      this.generateClientRequestId = options.generateClientRequestId;\n    }\n    this.applicationGateways = new operations.ApplicationGateways(this);\n    this.applicationSecurityGroups = new operations.ApplicationSecurityGroups(this);\n    this.availableDelegations = new operations.AvailableDelegations(this);\n    this.availableResourceGroupDelegations = new operations.AvailableResourceGroupDelegations(this);\n    this.azureFirewalls = new operations.AzureFirewalls(this);\n    this.azureFirewallFqdnTags = new operations.AzureFirewallFqdnTags(this);\n    this.ddosCustomPolicies = new operations.DdosCustomPolicies(this);\n    this.ddosProtectionPlans = new operations.DdosProtectionPlans(this);\n    this.availableEndpointServices = new operations.AvailableEndpointServices(this);\n    this.expressRouteCircuitAuthorizations = new operations.ExpressRouteCircuitAuthorizations(this);\n    this.expressRouteCircuitPeerings = new operations.ExpressRouteCircuitPeerings(this);\n    this.expressRouteCircuitConnections = new operations.ExpressRouteCircuitConnections(this);\n    this.peerExpressRouteCircuitConnections = new operations.PeerExpressRouteCircuitConnections(this);\n    this.expressRouteCircuits = new operations.ExpressRouteCircuits(this);\n    this.expressRouteServiceProviders = new operations.ExpressRouteServiceProviders(this);\n    this.expressRouteCrossConnections = new operations.ExpressRouteCrossConnections(this);\n    this.expressRouteCrossConnectionPeerings = new operations.ExpressRouteCrossConnectionPeerings(this);\n    this.expressRouteGateways = new operations.ExpressRouteGateways(this);\n    this.expressRouteConnections = new operations.ExpressRouteConnections(this);\n    this.expressRoutePortsLocations = new operations.ExpressRoutePortsLocations(this);\n    this.expressRoutePorts = new operations.ExpressRoutePorts(this);\n    this.expressRouteLinks = new operations.ExpressRouteLinks(this);\n    this.interfaceEndpoints = new operations.InterfaceEndpoints(this);\n    this.loadBalancers = new operations.LoadBalancers(this);\n    this.loadBalancerBackendAddressPools = new operations.LoadBalancerBackendAddressPools(this);\n    this.loadBalancerFrontendIPConfigurations = new operations.LoadBalancerFrontendIPConfigurations(this);\n    this.inboundNatRules = new operations.InboundNatRules(this);\n    this.loadBalancerLoadBalancingRules = new operations.LoadBalancerLoadBalancingRules(this);\n    this.loadBalancerOutboundRules = new operations.LoadBalancerOutboundRules(this);\n    this.loadBalancerNetworkInterfaces = new operations.LoadBalancerNetworkInterfaces(this);\n    this.loadBalancerProbes = new operations.LoadBalancerProbes(this);\n    this.natGateways = new operations.NatGateways(this);\n    this.networkInterfaces = new operations.NetworkInterfaces(this);\n    this.networkInterfaceIPConfigurations = new operations.NetworkInterfaceIPConfigurations(this);\n    this.networkInterfaceLoadBalancers = new operations.NetworkInterfaceLoadBalancers(this);\n    this.networkInterfaceTapConfigurations = new operations.NetworkInterfaceTapConfigurations(this);\n    this.networkProfiles = new operations.NetworkProfiles(this);\n    this.networkSecurityGroups = new operations.NetworkSecurityGroups(this);\n    this.securityRules = new operations.SecurityRules(this);\n    this.defaultSecurityRules = new operations.DefaultSecurityRules(this);\n    this.networkWatchers = new operations.NetworkWatchers(this);\n    this.packetCaptures = new operations.PacketCaptures(this);\n    this.connectionMonitors = new operations.ConnectionMonitors(this);\n    this.operations = new operations.Operations(this);\n    this.publicIPAddresses = new operations.PublicIPAddresses(this);\n    this.publicIPPrefixes = new operations.PublicIPPrefixes(this);\n    this.routeFilters = new operations.RouteFilters(this);\n    this.routeFilterRules = new operations.RouteFilterRules(this);\n    this.routeTables = new operations.RouteTables(this);\n    this.routes = new operations.Routes(this);\n    this.bgpServiceCommunities = new operations.BgpServiceCommunities(this);\n    this.serviceEndpointPolicies = new operations.ServiceEndpointPolicies(this);\n    this.serviceEndpointPolicyDefinitions = new operations.ServiceEndpointPolicyDefinitions(this);\n    this.usages = new operations.Usages(this);\n    this.virtualNetworks = new operations.VirtualNetworks(this);\n    this.subnets = new operations.Subnets(this);\n    this.virtualNetworkPeerings = new operations.VirtualNetworkPeerings(this);\n    this.virtualNetworkGateways = new operations.VirtualNetworkGateways(this);\n    this.virtualNetworkGatewayConnections = new operations.VirtualNetworkGatewayConnections(this);\n    this.localNetworkGateways = new operations.LocalNetworkGateways(this);\n    this.virtualNetworkTaps = new operations.VirtualNetworkTaps(this);\n    this.virtualWans = new operations.VirtualWans(this);\n    this.vpnSites = new operations.VpnSites(this);\n    this.vpnSitesConfiguration = new operations.VpnSitesConfiguration(this);\n    this.virtualHubs = new operations.VirtualHubs(this);\n    this.hubVirtualNetworkConnections = new operations.HubVirtualNetworkConnections(this);\n    this.vpnGateways = new operations.VpnGateways(this);\n    this.vpnConnections = new operations.VpnConnections(this);\n    this.p2sVpnServerConfigurations = new operations.P2sVpnServerConfigurations(this);\n    this.p2sVpnGateways = new operations.P2sVpnGateways(this);\n    this.webApplicationFirewallPolicies = new operations.WebApplicationFirewallPolicies(this);\n    this.models = models;\n    this._checkDnsNameAvailability = _checkDnsNameAvailability;\n    this._supportedSecurityProviders = _supportedSecurityProviders;\n    msRest.addSerializationMixin(this);\n  }\n\n  /**\n   * Checks whether a domain name in the cloudapp.azure.com zone is available for\n   * use.\n   *\n   * @param {string} location The location of the domain name.\n   *\n   * @param {string} domainNameLabel The domain name to be verified. It must\n   * conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.\n   *\n   * @param {object} [options] Optional Parameters.\n   *\n   * @param {object} [options.customHeaders] Headers that will be added to the\n   * request\n   *\n   * @returns {Promise} A promise is returned\n   *\n   * @resolve {HttpOperationResponse<DnsNameAvailabilityResult>} - The deserialized result object.\n   *\n   * @reject {Error} - The error object.\n   */\n  checkDnsNameAvailabilityWithHttpOperationResponse(location, domainNameLabel, options) {\n    let client = this;\n    let self = this;\n    return new Promise((resolve, reject) => {\n      self._checkDnsNameAvailability(location, domainNameLabel, options, (err, result, request, response) => {\n        let httpOperationResponse = new msRest.HttpOperationResponse(request, response);\n        httpOperationResponse.body = result;\n        if (err) { reject(err); }\n        else { resolve(httpOperationResponse); }\n        return;\n      });\n    });\n  }\n\n  /**\n   * Checks whether a domain name in the cloudapp.azure.com zone is available for\n   * use.\n   *\n   * @param {string} location The location of the domain name.\n   *\n   * @param {string} domainNameLabel The domain name to be verified. It must\n   * conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.\n   *\n   * @param {object} [options] Optional Parameters.\n   *\n   * @param {object} [options.customHeaders] Headers that will be added to the\n   * request\n   *\n   * @param {function} [optionalCallback] - The optional callback.\n   *\n   * @returns {function|Promise} If a callback was passed as the last parameter\n   * then it returns the callback else returns a Promise.\n   *\n   * {Promise} A promise is returned\n   *\n   *                      @resolve {DnsNameAvailabilityResult} - The deserialized result object.\n   *\n   *                      @reject {Error} - The error object.\n   *\n   * {function} optionalCallback(err, result, request, response)\n   *\n   *                      {Error}  err        - The Error object if an error occurred, null otherwise.\n   *\n   *                      {object} [result]   - The deserialized result object if an error did not occur.\n   *                      See {@link DnsNameAvailabilityResult} for more\n   *                      information.\n   *\n   *                      {object} [request]  - The HTTP Request object if an error did not occur.\n   *\n   *                      {stream} [response] - The HTTP Response stream if an error did not occur.\n   */\n  checkDnsNameAvailability(location, domainNameLabel, options, optionalCallback) {\n    let client = this;\n    let self = this;\n    if (!optionalCallback && typeof options === 'function') {\n      optionalCallback = options;\n      options = null;\n    }\n    if (!optionalCallback) {\n      return new Promise((resolve, reject) => {\n        self._checkDnsNameAvailability(location, domainNameLabel, options, (err, result, request, response) => {\n          if (err) { reject(err); }\n          else { resolve(result); }\n          return;\n        });\n      });\n    } else {\n      return self._checkDnsNameAvailability(location, domainNameLabel, options, optionalCallback);\n    }\n  }\n\n  /**\n   * Gives the supported security providers for the virtual wan.\n   *\n   * @param {string} resourceGroupName The resource group name.\n   *\n   * @param {string} virtualWANName The name of the VirtualWAN for which\n   * supported security providers are needed.\n   *\n   * @param {object} [options] Optional Parameters.\n   *\n   * @param {object} [options.customHeaders] Headers that will be added to the\n   * request\n   *\n   * @returns {Promise} A promise is returned\n   *\n   * @resolve {HttpOperationResponse<VirtualWanSecurityProviders>} - The deserialized result object.\n   *\n   * @reject {Error} - The error object.\n   */\n  supportedSecurityProvidersWithHttpOperationResponse(resourceGroupName, virtualWANName, options) {\n    let client = this;\n    let self = this;\n    return new Promise((resolve, reject) => {\n      self._supportedSecurityProviders(resourceGroupName, virtualWANName, options, (err, result, request, response) => {\n        let httpOperationResponse = new msRest.HttpOperationResponse(request, response);\n        httpOperationResponse.body = result;\n        if (err) { reject(err); }\n        else { resolve(httpOperationResponse); }\n        return;\n      });\n    });\n  }\n\n  /**\n   * Gives the supported security providers for the virtual wan.\n   *\n   * @param {string} resourceGroupName The resource group name.\n   *\n   * @param {string} virtualWANName The name of the VirtualWAN for which\n   * supported security providers are needed.\n   *\n   * @param {object} [options] Optional Parameters.\n   *\n   * @param {object} [options.customHeaders] Headers that will be added to the\n   * request\n   *\n   * @param {function} [optionalCallback] - The optional callback.\n   *\n   * @returns {function|Promise} If a callback was passed as the last parameter\n   * then it returns the callback else returns a Promise.\n   *\n   * {Promise} A promise is returned\n   *\n   *                      @resolve {VirtualWanSecurityProviders} - The deserialized result object.\n   *\n   *                      @reject {Error} - The error object.\n   *\n   * {function} optionalCallback(err, result, request, response)\n   *\n   *                      {Error}  err        - The Error object if an error occurred, null otherwise.\n   *\n   *                      {object} [result]   - The deserialized result object if an error did not occur.\n   *                      See {@link VirtualWanSecurityProviders} for more\n   *                      information.\n   *\n   *                      {object} [request]  - The HTTP Request object if an error did not occur.\n   *\n   *                      {stream} [response] - The HTTP Response stream if an error did not occur.\n   */\n  supportedSecurityProviders(resourceGroupName, virtualWANName, options, optionalCallback) {\n    let client = this;\n    let self = this;\n    if (!optionalCallback && typeof options === 'function') {\n      optionalCallback = options;\n      options = null;\n    }\n    if (!optionalCallback) {\n      return new Promise((resolve, reject) => {\n        self._supportedSecurityProviders(resourceGroupName, virtualWANName, options, (err, result, request, response) => {\n          if (err) { reject(err); }\n          else { resolve(result); }\n          return;\n        });\n      });\n    } else {\n      return self._supportedSecurityProviders(resourceGroupName, virtualWANName, options, optionalCallback);\n    }\n  }\n\n}\n\nmodule.exports = NetworkManagementClient;\nmodule.exports['default'] = NetworkManagementClient;\nmodule.exports.NetworkManagementClient = NetworkManagementClient;\nmodule.exports.NetworkManagementModels = models;\n"]}