/* * 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. */ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * ApplicationGateways * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ApplicationGateways { /** * Deletes the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, applicationGatewayName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, applicationGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGateway} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, applicationGatewayName: string, callback: ServiceCallback): void; get(resourceGroupName: string, applicationGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} parameters Parameters supplied to the create or update * application gateway operation. * * @param {object} [parameters.sku] SKU of the application gateway resource. * * @param {string} [parameters.sku.name] Name of an application gateway SKU. * Possible values include: 'Standard_Small', 'Standard_Medium', * 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2' * * @param {string} [parameters.sku.tier] Tier of an application gateway. * Possible values include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' * * @param {number} [parameters.sku.capacity] Capacity (instance count) of an * application gateway. * * @param {object} [parameters.sslPolicy] SSL policy of the application gateway * resource. * * @param {array} [parameters.sslPolicy.disabledSslProtocols] Ssl protocols to * be disabled on application gateway. * * @param {string} [parameters.sslPolicy.policyType] Type of Ssl Policy. * Possible values include: 'Predefined', 'Custom' * * @param {string} [parameters.sslPolicy.policyName] Name of Ssl predefined * policy. Possible values include: 'AppGwSslPolicy20150501', * 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S' * * @param {array} [parameters.sslPolicy.cipherSuites] Ssl cipher suites to be * enabled in the specified order to application gateway. * * @param {string} [parameters.sslPolicy.minProtocolVersion] Minimum version of * Ssl protocol to be supported on application gateway. Possible values * include: 'TLSv1_0', 'TLSv1_1', 'TLSv1_2' * * @param {array} [parameters.gatewayIPConfigurations] Subnets of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.trustedRootCertificates] Trusted Root * certificates of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.frontendIPConfigurations] Frontend IP addresses * of the application gateway resource. For default limits, see [Application * Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.frontendPorts] Frontend ports of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.probes] Probes of the application gateway * resource. * * @param {array} [parameters.backendAddressPools] Backend address pool of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.backendHttpSettingsCollection] Backend http * settings of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.httpListeners] Http listeners of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.urlPathMaps] URL path map of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.requestRoutingRules] Request routing rules of the * application gateway resource. * * @param {array} [parameters.rewriteRuleSets] Rewrite rules for the * application gateway resource. * * @param {array} [parameters.redirectConfigurations] Redirect configurations * of the application gateway resource. For default limits, see [Application * Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {object} [parameters.webApplicationFirewallConfiguration] Web * application firewall configuration. * * @param {boolean} parameters.webApplicationFirewallConfiguration.enabled * Whether the web application firewall is enabled or not. * * @param {string} parameters.webApplicationFirewallConfiguration.firewallMode * Web application firewall mode. Possible values include: 'Detection', * 'Prevention' * * @param {string} parameters.webApplicationFirewallConfiguration.ruleSetType * The type of the web application firewall rule set. Possible values are: * 'OWASP'. * * @param {string} * parameters.webApplicationFirewallConfiguration.ruleSetVersion The version of * the rule set type. * * @param {array} * [parameters.webApplicationFirewallConfiguration.disabledRuleGroups] The * disabled rule groups. * * @param {boolean} * [parameters.webApplicationFirewallConfiguration.requestBodyCheck] Whether * allow WAF to check request Body. * * @param {number} * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maximum * request body size for WAF. * * @param {number} * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] * Maximum request body size in Kb for WAF. * * @param {number} * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maximum * file upload size in Mb for WAF. * * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] * The exclusion list. * * @param {object} [parameters.firewallPolicy] Reference of the FirewallPolicy * resource. * * @param {string} [parameters.firewallPolicy.id] Resource ID. * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * * @param {boolean} [parameters.enableFips] Whether FIPS is enabled on the * application gateway resource. * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on * number of Application Gateway capacity * * @param {number} [parameters.autoscaleConfiguration.maxCapacity] Upper bound * on number of Application Gateway capacity * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. * * @param {string} [parameters.provisioningState] Provisioning state of the * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * * @param {array} [parameters.customErrorConfigurations] Custom error * configurations of the application gateway resource. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting * where the resource needs to come from. * * @param {object} [parameters.identity] The identity of the application * gateway, if configured. * * @param {string} [parameters.identity.type] The type of identity used for the * resource. The type 'SystemAssigned, UserAssigned' includes both an * implicitly created identity and a set of user assigned identities. The type * 'None' will remove any identities from the virtual machine. Possible values * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', * 'None' * * @param {object} [parameters.identity.userAssignedIdentities] The list of * user identities associated with resource. The user identity dictionary key * references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} parameters Parameters supplied to the create or update * application gateway operation. * * @param {object} [parameters.sku] SKU of the application gateway resource. * * @param {string} [parameters.sku.name] Name of an application gateway SKU. * Possible values include: 'Standard_Small', 'Standard_Medium', * 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2' * * @param {string} [parameters.sku.tier] Tier of an application gateway. * Possible values include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' * * @param {number} [parameters.sku.capacity] Capacity (instance count) of an * application gateway. * * @param {object} [parameters.sslPolicy] SSL policy of the application gateway * resource. * * @param {array} [parameters.sslPolicy.disabledSslProtocols] Ssl protocols to * be disabled on application gateway. * * @param {string} [parameters.sslPolicy.policyType] Type of Ssl Policy. * Possible values include: 'Predefined', 'Custom' * * @param {string} [parameters.sslPolicy.policyName] Name of Ssl predefined * policy. Possible values include: 'AppGwSslPolicy20150501', * 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S' * * @param {array} [parameters.sslPolicy.cipherSuites] Ssl cipher suites to be * enabled in the specified order to application gateway. * * @param {string} [parameters.sslPolicy.minProtocolVersion] Minimum version of * Ssl protocol to be supported on application gateway. Possible values * include: 'TLSv1_0', 'TLSv1_1', 'TLSv1_2' * * @param {array} [parameters.gatewayIPConfigurations] Subnets of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.trustedRootCertificates] Trusted Root * certificates of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.frontendIPConfigurations] Frontend IP addresses * of the application gateway resource. For default limits, see [Application * Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.frontendPorts] Frontend ports of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.probes] Probes of the application gateway * resource. * * @param {array} [parameters.backendAddressPools] Backend address pool of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.backendHttpSettingsCollection] Backend http * settings of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.httpListeners] Http listeners of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.urlPathMaps] URL path map of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.requestRoutingRules] Request routing rules of the * application gateway resource. * * @param {array} [parameters.rewriteRuleSets] Rewrite rules for the * application gateway resource. * * @param {array} [parameters.redirectConfigurations] Redirect configurations * of the application gateway resource. For default limits, see [Application * Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {object} [parameters.webApplicationFirewallConfiguration] Web * application firewall configuration. * * @param {boolean} parameters.webApplicationFirewallConfiguration.enabled * Whether the web application firewall is enabled or not. * * @param {string} parameters.webApplicationFirewallConfiguration.firewallMode * Web application firewall mode. Possible values include: 'Detection', * 'Prevention' * * @param {string} parameters.webApplicationFirewallConfiguration.ruleSetType * The type of the web application firewall rule set. Possible values are: * 'OWASP'. * * @param {string} * parameters.webApplicationFirewallConfiguration.ruleSetVersion The version of * the rule set type. * * @param {array} * [parameters.webApplicationFirewallConfiguration.disabledRuleGroups] The * disabled rule groups. * * @param {boolean} * [parameters.webApplicationFirewallConfiguration.requestBodyCheck] Whether * allow WAF to check request Body. * * @param {number} * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maximum * request body size for WAF. * * @param {number} * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] * Maximum request body size in Kb for WAF. * * @param {number} * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maximum * file upload size in Mb for WAF. * * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] * The exclusion list. * * @param {object} [parameters.firewallPolicy] Reference of the FirewallPolicy * resource. * * @param {string} [parameters.firewallPolicy.id] Resource ID. * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * * @param {boolean} [parameters.enableFips] Whether FIPS is enabled on the * application gateway resource. * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on * number of Application Gateway capacity * * @param {number} [parameters.autoscaleConfiguration.maxCapacity] Upper bound * on number of Application Gateway capacity * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. * * @param {string} [parameters.provisioningState] Provisioning state of the * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * * @param {array} [parameters.customErrorConfigurations] Custom error * configurations of the application gateway resource. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting * where the resource needs to come from. * * @param {object} [parameters.identity] The identity of the application * gateway, if configured. * * @param {string} [parameters.identity.type] The type of identity used for the * resource. The type 'SystemAssigned, UserAssigned' includes both an * implicitly created identity and a set of user assigned identities. The type * 'None' will remove any identities from the virtual machine. Possible values * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', * 'None' * * @param {object} [parameters.identity.userAssignedIdentities] The list of * user identities associated with resource. The user identity dictionary key * references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGateway} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates the specified application gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} parameters Parameters supplied to update application gateway * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates the specified application gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} parameters Parameters supplied to update application gateway * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGateway} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all application gateways in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all application gateways in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGatewayListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the application gateways in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the application gateways in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGatewayListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Starts the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ startWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Starts the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ start(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; start(resourceGroupName: string, applicationGatewayName: string, callback: ServiceCallback): void; start(resourceGroupName: string, applicationGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Stops the specified application gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ stopWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Stops the specified application gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ stop(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; stop(resourceGroupName: string, applicationGatewayName: string, callback: ServiceCallback): void; stop(resourceGroupName: string, applicationGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the backend health of the specified application gateway in a resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands BackendAddressPool and * BackendHttpSettings referenced in backend health. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ backendHealthWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the backend health of the specified application gateway in a resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands BackendAddressPool and * BackendHttpSettings referenced in backend health. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayBackendHealth} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayBackendHealth} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGatewayBackendHealth} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ backendHealth(resourceGroupName: string, applicationGatewayName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; backendHealth(resourceGroupName: string, applicationGatewayName: string, callback: ServiceCallback): void; backendHealth(resourceGroupName: string, applicationGatewayName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the backend health for given combination of backend pool and http * setting of the specified application gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} probeRequest Request body for on-demand test probe * operation. * * @param {string} [probeRequest.protocol] The protocol used for the probe. * Possible values include: 'Http', 'Https' * * @param {string} [probeRequest.host] Host name to send the probe to. * * @param {string} [probeRequest.path] Relative path of probe. Valid path * starts from '/'. Probe is sent to ://: * * @param {number} [probeRequest.timeout] The probe timeout in seconds. Probe * marked as failed if valid response is not received with this timeout period. * Acceptable values are from 1 second to 86400 seconds. * * @param {boolean} [probeRequest.pickHostNameFromBackendHttpSettings] Whether * the host header should be picked from the backend http settings. Default * value is false. * * @param {object} [probeRequest.match] Criterion for classifying a healthy * probe response. * * @param {string} [probeRequest.match.body] Body that must be contained in the * health response. Default value is empty. * * @param {array} [probeRequest.match.statusCodes] Allowed ranges of healthy * status codes. Default range of healthy status codes is 200-399. * * @param {string} [probeRequest.backendPoolName] Name of backend pool of * application gateway to which probe request will be sent. * * @param {string} [probeRequest.backendHttpSettingName] Name of backend http * setting of application gateway to be used for test probe * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands BackendAddressPool and * BackendHttpSettings referenced in backend health. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ backendHealthOnDemandWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, probeRequest: models.ApplicationGatewayOnDemandProbe, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the backend health for given combination of backend pool and http * setting of the specified application gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} probeRequest Request body for on-demand test probe * operation. * * @param {string} [probeRequest.protocol] The protocol used for the probe. * Possible values include: 'Http', 'Https' * * @param {string} [probeRequest.host] Host name to send the probe to. * * @param {string} [probeRequest.path] Relative path of probe. Valid path * starts from '/'. Probe is sent to ://: * * @param {number} [probeRequest.timeout] The probe timeout in seconds. Probe * marked as failed if valid response is not received with this timeout period. * Acceptable values are from 1 second to 86400 seconds. * * @param {boolean} [probeRequest.pickHostNameFromBackendHttpSettings] Whether * the host header should be picked from the backend http settings. Default * value is false. * * @param {object} [probeRequest.match] Criterion for classifying a healthy * probe response. * * @param {string} [probeRequest.match.body] Body that must be contained in the * health response. Default value is empty. * * @param {array} [probeRequest.match.statusCodes] Allowed ranges of healthy * status codes. Default range of healthy status codes is 200-399. * * @param {string} [probeRequest.backendPoolName] Name of backend pool of * application gateway to which probe request will be sent. * * @param {string} [probeRequest.backendHttpSettingName] Name of backend http * setting of application gateway to be used for test probe * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands BackendAddressPool and * BackendHttpSettings referenced in backend health. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayBackendHealthOnDemand} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayBackendHealthOnDemand} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGatewayBackendHealthOnDemand} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ backendHealthOnDemand(resourceGroupName: string, applicationGatewayName: string, probeRequest: models.ApplicationGatewayOnDemandProbe, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; backendHealthOnDemand(resourceGroupName: string, applicationGatewayName: string, probeRequest: models.ApplicationGatewayOnDemandProbe, callback: ServiceCallback): void; backendHealthOnDemand(resourceGroupName: string, applicationGatewayName: string, probeRequest: models.ApplicationGatewayOnDemandProbe, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all available server variables. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAvailableServerVariablesWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all available server variables. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Array} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Array} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAvailableServerVariables(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAvailableServerVariables(callback: ServiceCallback): void; listAvailableServerVariables(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all available request headers. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAvailableRequestHeadersWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all available request headers. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Array} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Array} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAvailableRequestHeaders(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAvailableRequestHeaders(callback: ServiceCallback): void; listAvailableRequestHeaders(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all available response headers. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAvailableResponseHeadersWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all available response headers. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Array} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Array} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAvailableResponseHeaders(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAvailableResponseHeaders(callback: ServiceCallback): void; listAvailableResponseHeaders(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all available web application firewall rule sets. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAvailableWafRuleSetsWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all available web application firewall rule sets. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayAvailableWafRuleSetsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayAvailableWafRuleSetsResult} [result] - The deserialized result object if an error did not occur. * See {@link * ApplicationGatewayAvailableWafRuleSetsResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAvailableWafRuleSets(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAvailableWafRuleSets(callback: ServiceCallback): void; listAvailableWafRuleSets(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists available Ssl options for configuring Ssl policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAvailableSslOptionsWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists available Ssl options for configuring Ssl policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayAvailableSslOptions} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayAvailableSslOptions} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGatewayAvailableSslOptions} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAvailableSslOptions(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAvailableSslOptions(callback: ServiceCallback): void; listAvailableSslOptions(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all SSL predefined policies for configuring Ssl policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAvailableSslPredefinedPoliciesWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all SSL predefined policies for configuring Ssl policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayAvailableSslPredefinedPolicies} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayAvailableSslPredefinedPolicies} [result] - The deserialized result object if an error did not occur. * See {@link * ApplicationGatewayAvailableSslPredefinedPolicies} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAvailableSslPredefinedPolicies(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAvailableSslPredefinedPolicies(callback: ServiceCallback): void; listAvailableSslPredefinedPolicies(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets Ssl predefined policy with the specified policy name. * * @param {string} predefinedPolicyName Name of Ssl predefined policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getSslPredefinedPolicyWithHttpOperationResponse(predefinedPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets Ssl predefined policy with the specified policy name. * * @param {string} predefinedPolicyName Name of Ssl predefined policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewaySslPredefinedPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewaySslPredefinedPolicy} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGatewaySslPredefinedPolicy} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getSslPredefinedPolicy(predefinedPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getSslPredefinedPolicy(predefinedPolicyName: string, callback: ServiceCallback): void; getSslPredefinedPolicy(predefinedPolicyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, applicationGatewayName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, applicationGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} parameters Parameters supplied to the create or update * application gateway operation. * * @param {object} [parameters.sku] SKU of the application gateway resource. * * @param {string} [parameters.sku.name] Name of an application gateway SKU. * Possible values include: 'Standard_Small', 'Standard_Medium', * 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2' * * @param {string} [parameters.sku.tier] Tier of an application gateway. * Possible values include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' * * @param {number} [parameters.sku.capacity] Capacity (instance count) of an * application gateway. * * @param {object} [parameters.sslPolicy] SSL policy of the application gateway * resource. * * @param {array} [parameters.sslPolicy.disabledSslProtocols] Ssl protocols to * be disabled on application gateway. * * @param {string} [parameters.sslPolicy.policyType] Type of Ssl Policy. * Possible values include: 'Predefined', 'Custom' * * @param {string} [parameters.sslPolicy.policyName] Name of Ssl predefined * policy. Possible values include: 'AppGwSslPolicy20150501', * 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S' * * @param {array} [parameters.sslPolicy.cipherSuites] Ssl cipher suites to be * enabled in the specified order to application gateway. * * @param {string} [parameters.sslPolicy.minProtocolVersion] Minimum version of * Ssl protocol to be supported on application gateway. Possible values * include: 'TLSv1_0', 'TLSv1_1', 'TLSv1_2' * * @param {array} [parameters.gatewayIPConfigurations] Subnets of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.trustedRootCertificates] Trusted Root * certificates of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.frontendIPConfigurations] Frontend IP addresses * of the application gateway resource. For default limits, see [Application * Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.frontendPorts] Frontend ports of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.probes] Probes of the application gateway * resource. * * @param {array} [parameters.backendAddressPools] Backend address pool of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.backendHttpSettingsCollection] Backend http * settings of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.httpListeners] Http listeners of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.urlPathMaps] URL path map of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.requestRoutingRules] Request routing rules of the * application gateway resource. * * @param {array} [parameters.rewriteRuleSets] Rewrite rules for the * application gateway resource. * * @param {array} [parameters.redirectConfigurations] Redirect configurations * of the application gateway resource. For default limits, see [Application * Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {object} [parameters.webApplicationFirewallConfiguration] Web * application firewall configuration. * * @param {boolean} parameters.webApplicationFirewallConfiguration.enabled * Whether the web application firewall is enabled or not. * * @param {string} parameters.webApplicationFirewallConfiguration.firewallMode * Web application firewall mode. Possible values include: 'Detection', * 'Prevention' * * @param {string} parameters.webApplicationFirewallConfiguration.ruleSetType * The type of the web application firewall rule set. Possible values are: * 'OWASP'. * * @param {string} * parameters.webApplicationFirewallConfiguration.ruleSetVersion The version of * the rule set type. * * @param {array} * [parameters.webApplicationFirewallConfiguration.disabledRuleGroups] The * disabled rule groups. * * @param {boolean} * [parameters.webApplicationFirewallConfiguration.requestBodyCheck] Whether * allow WAF to check request Body. * * @param {number} * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maximum * request body size for WAF. * * @param {number} * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] * Maximum request body size in Kb for WAF. * * @param {number} * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maximum * file upload size in Mb for WAF. * * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] * The exclusion list. * * @param {object} [parameters.firewallPolicy] Reference of the FirewallPolicy * resource. * * @param {string} [parameters.firewallPolicy.id] Resource ID. * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * * @param {boolean} [parameters.enableFips] Whether FIPS is enabled on the * application gateway resource. * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on * number of Application Gateway capacity * * @param {number} [parameters.autoscaleConfiguration.maxCapacity] Upper bound * on number of Application Gateway capacity * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. * * @param {string} [parameters.provisioningState] Provisioning state of the * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * * @param {array} [parameters.customErrorConfigurations] Custom error * configurations of the application gateway resource. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting * where the resource needs to come from. * * @param {object} [parameters.identity] The identity of the application * gateway, if configured. * * @param {string} [parameters.identity.type] The type of identity used for the * resource. The type 'SystemAssigned, UserAssigned' includes both an * implicitly created identity and a set of user assigned identities. The type * 'None' will remove any identities from the virtual machine. Possible values * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', * 'None' * * @param {object} [parameters.identity.userAssignedIdentities] The list of * user identities associated with resource. The user identity dictionary key * references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} parameters Parameters supplied to the create or update * application gateway operation. * * @param {object} [parameters.sku] SKU of the application gateway resource. * * @param {string} [parameters.sku.name] Name of an application gateway SKU. * Possible values include: 'Standard_Small', 'Standard_Medium', * 'Standard_Large', 'WAF_Medium', 'WAF_Large', 'Standard_v2', 'WAF_v2' * * @param {string} [parameters.sku.tier] Tier of an application gateway. * Possible values include: 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' * * @param {number} [parameters.sku.capacity] Capacity (instance count) of an * application gateway. * * @param {object} [parameters.sslPolicy] SSL policy of the application gateway * resource. * * @param {array} [parameters.sslPolicy.disabledSslProtocols] Ssl protocols to * be disabled on application gateway. * * @param {string} [parameters.sslPolicy.policyType] Type of Ssl Policy. * Possible values include: 'Predefined', 'Custom' * * @param {string} [parameters.sslPolicy.policyName] Name of Ssl predefined * policy. Possible values include: 'AppGwSslPolicy20150501', * 'AppGwSslPolicy20170401', 'AppGwSslPolicy20170401S' * * @param {array} [parameters.sslPolicy.cipherSuites] Ssl cipher suites to be * enabled in the specified order to application gateway. * * @param {string} [parameters.sslPolicy.minProtocolVersion] Minimum version of * Ssl protocol to be supported on application gateway. Possible values * include: 'TLSv1_0', 'TLSv1_1', 'TLSv1_2' * * @param {array} [parameters.gatewayIPConfigurations] Subnets of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.authenticationCertificates] Authentication * certificates of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.trustedRootCertificates] Trusted Root * certificates of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.sslCertificates] SSL certificates of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.frontendIPConfigurations] Frontend IP addresses * of the application gateway resource. For default limits, see [Application * Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.frontendPorts] Frontend ports of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.probes] Probes of the application gateway * resource. * * @param {array} [parameters.backendAddressPools] Backend address pool of the * application gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.backendHttpSettingsCollection] Backend http * settings of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.httpListeners] Http listeners of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.urlPathMaps] URL path map of the application * gateway resource. For default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {array} [parameters.requestRoutingRules] Request routing rules of the * application gateway resource. * * @param {array} [parameters.rewriteRuleSets] Rewrite rules for the * application gateway resource. * * @param {array} [parameters.redirectConfigurations] Redirect configurations * of the application gateway resource. For default limits, see [Application * Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). * * @param {object} [parameters.webApplicationFirewallConfiguration] Web * application firewall configuration. * * @param {boolean} parameters.webApplicationFirewallConfiguration.enabled * Whether the web application firewall is enabled or not. * * @param {string} parameters.webApplicationFirewallConfiguration.firewallMode * Web application firewall mode. Possible values include: 'Detection', * 'Prevention' * * @param {string} parameters.webApplicationFirewallConfiguration.ruleSetType * The type of the web application firewall rule set. Possible values are: * 'OWASP'. * * @param {string} * parameters.webApplicationFirewallConfiguration.ruleSetVersion The version of * the rule set type. * * @param {array} * [parameters.webApplicationFirewallConfiguration.disabledRuleGroups] The * disabled rule groups. * * @param {boolean} * [parameters.webApplicationFirewallConfiguration.requestBodyCheck] Whether * allow WAF to check request Body. * * @param {number} * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maximum * request body size for WAF. * * @param {number} * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] * Maximum request body size in Kb for WAF. * * @param {number} * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maximum * file upload size in Mb for WAF. * * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] * The exclusion list. * * @param {object} [parameters.firewallPolicy] Reference of the FirewallPolicy * resource. * * @param {string} [parameters.firewallPolicy.id] Resource ID. * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * * @param {boolean} [parameters.enableFips] Whether FIPS is enabled on the * application gateway resource. * * @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration. * * @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on * number of Application Gateway capacity * * @param {number} [parameters.autoscaleConfiguration.maxCapacity] Upper bound * on number of Application Gateway capacity * * @param {string} [parameters.resourceGuid] Resource GUID property of the * application gateway resource. * * @param {string} [parameters.provisioningState] Provisioning state of the * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * * @param {array} [parameters.customErrorConfigurations] Custom error * configurations of the application gateway resource. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting * where the resource needs to come from. * * @param {object} [parameters.identity] The identity of the application * gateway, if configured. * * @param {string} [parameters.identity.type] The type of identity used for the * resource. The type 'SystemAssigned, UserAssigned' includes both an * implicitly created identity and a set of user assigned identities. The type * 'None' will remove any identities from the virtual machine. Possible values * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', * 'None' * * @param {object} [parameters.identity.userAssignedIdentities] The list of * user identities associated with resource. The user identity dictionary key * references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGateway} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, applicationGatewayName: string, parameters: models.ApplicationGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates the specified application gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} parameters Parameters supplied to update application gateway * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates the specified application gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} parameters Parameters supplied to update application gateway * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGateway} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, applicationGatewayName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Starts the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginStartWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Starts the specified application gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginStart(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginStart(resourceGroupName: string, applicationGatewayName: string, callback: ServiceCallback): void; beginStart(resourceGroupName: string, applicationGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Stops the specified application gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginStopWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Stops the specified application gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginStop(resourceGroupName: string, applicationGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginStop(resourceGroupName: string, applicationGatewayName: string, callback: ServiceCallback): void; beginStop(resourceGroupName: string, applicationGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the backend health of the specified application gateway in a resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands BackendAddressPool and * BackendHttpSettings referenced in backend health. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginBackendHealthWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the backend health of the specified application gateway in a resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands BackendAddressPool and * BackendHttpSettings referenced in backend health. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayBackendHealth} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayBackendHealth} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGatewayBackendHealth} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginBackendHealth(resourceGroupName: string, applicationGatewayName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; beginBackendHealth(resourceGroupName: string, applicationGatewayName: string, callback: ServiceCallback): void; beginBackendHealth(resourceGroupName: string, applicationGatewayName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the backend health for given combination of backend pool and http * setting of the specified application gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} probeRequest Request body for on-demand test probe * operation. * * @param {string} [probeRequest.protocol] The protocol used for the probe. * Possible values include: 'Http', 'Https' * * @param {string} [probeRequest.host] Host name to send the probe to. * * @param {string} [probeRequest.path] Relative path of probe. Valid path * starts from '/'. Probe is sent to ://: * * @param {number} [probeRequest.timeout] The probe timeout in seconds. Probe * marked as failed if valid response is not received with this timeout period. * Acceptable values are from 1 second to 86400 seconds. * * @param {boolean} [probeRequest.pickHostNameFromBackendHttpSettings] Whether * the host header should be picked from the backend http settings. Default * value is false. * * @param {object} [probeRequest.match] Criterion for classifying a healthy * probe response. * * @param {string} [probeRequest.match.body] Body that must be contained in the * health response. Default value is empty. * * @param {array} [probeRequest.match.statusCodes] Allowed ranges of healthy * status codes. Default range of healthy status codes is 200-399. * * @param {string} [probeRequest.backendPoolName] Name of backend pool of * application gateway to which probe request will be sent. * * @param {string} [probeRequest.backendHttpSettingName] Name of backend http * setting of application gateway to be used for test probe * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands BackendAddressPool and * BackendHttpSettings referenced in backend health. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginBackendHealthOnDemandWithHttpOperationResponse(resourceGroupName: string, applicationGatewayName: string, probeRequest: models.ApplicationGatewayOnDemandProbe, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the backend health for given combination of backend pool and http * setting of the specified application gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationGatewayName The name of the application gateway. * * @param {object} probeRequest Request body for on-demand test probe * operation. * * @param {string} [probeRequest.protocol] The protocol used for the probe. * Possible values include: 'Http', 'Https' * * @param {string} [probeRequest.host] Host name to send the probe to. * * @param {string} [probeRequest.path] Relative path of probe. Valid path * starts from '/'. Probe is sent to ://: * * @param {number} [probeRequest.timeout] The probe timeout in seconds. Probe * marked as failed if valid response is not received with this timeout period. * Acceptable values are from 1 second to 86400 seconds. * * @param {boolean} [probeRequest.pickHostNameFromBackendHttpSettings] Whether * the host header should be picked from the backend http settings. Default * value is false. * * @param {object} [probeRequest.match] Criterion for classifying a healthy * probe response. * * @param {string} [probeRequest.match.body] Body that must be contained in the * health response. Default value is empty. * * @param {array} [probeRequest.match.statusCodes] Allowed ranges of healthy * status codes. Default range of healthy status codes is 200-399. * * @param {string} [probeRequest.backendPoolName] Name of backend pool of * application gateway to which probe request will be sent. * * @param {string} [probeRequest.backendHttpSettingName] Name of backend http * setting of application gateway to be used for test probe * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands BackendAddressPool and * BackendHttpSettings referenced in backend health. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayBackendHealthOnDemand} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayBackendHealthOnDemand} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGatewayBackendHealthOnDemand} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginBackendHealthOnDemand(resourceGroupName: string, applicationGatewayName: string, probeRequest: models.ApplicationGatewayOnDemandProbe, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; beginBackendHealthOnDemand(resourceGroupName: string, applicationGatewayName: string, probeRequest: models.ApplicationGatewayOnDemandProbe, callback: ServiceCallback): void; beginBackendHealthOnDemand(resourceGroupName: string, applicationGatewayName: string, probeRequest: models.ApplicationGatewayOnDemandProbe, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all application gateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all application gateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGatewayListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the application gateways in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the application gateways in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationGatewayListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all SSL predefined policies for configuring Ssl policy. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAvailableSslPredefinedPoliciesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all SSL predefined policies for configuring Ssl policy. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationGatewayAvailableSslPredefinedPolicies} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationGatewayAvailableSslPredefinedPolicies} [result] - The deserialized result object if an error did not occur. * See {@link * ApplicationGatewayAvailableSslPredefinedPolicies} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAvailableSslPredefinedPoliciesNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAvailableSslPredefinedPoliciesNext(nextPageLink: string, callback: ServiceCallback): void; listAvailableSslPredefinedPoliciesNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ApplicationSecurityGroups * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ApplicationSecurityGroups { /** * Deletes the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, applicationSecurityGroupName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, applicationSecurityGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationSecurityGroup} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationSecurityGroup} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, applicationSecurityGroupName: string, callback: ServiceCallback): void; get(resourceGroupName: string, applicationSecurityGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates an application security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} parameters Parameters supplied to the create or update * ApplicationSecurityGroup operation. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.ApplicationSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates an application security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} parameters Parameters supplied to the create or update * ApplicationSecurityGroup operation. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationSecurityGroup} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationSecurityGroup} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.ApplicationSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.ApplicationSecurityGroup, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.ApplicationSecurityGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates an application security group's tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} parameters Parameters supplied to update application * security group tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates an application security group's tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} parameters Parameters supplied to update application * security group tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationSecurityGroup} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationSecurityGroup} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all application security groups in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all application security groups in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationSecurityGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the application security groups in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the application security groups in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationSecurityGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified application security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, applicationSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, applicationSecurityGroupName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, applicationSecurityGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates an application security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} parameters Parameters supplied to the create or update * ApplicationSecurityGroup operation. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.ApplicationSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates an application security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} parameters Parameters supplied to the create or update * ApplicationSecurityGroup operation. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationSecurityGroup} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationSecurityGroup} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.ApplicationSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.ApplicationSecurityGroup, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.ApplicationSecurityGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates an application security group's tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} parameters Parameters supplied to update application * security group tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates an application security group's tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} applicationSecurityGroupName The name of the application * security group. * * @param {object} parameters Parameters supplied to update application * security group tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationSecurityGroup} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationSecurityGroup} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, applicationSecurityGroupName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all application security groups in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all application security groups in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationSecurityGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the application security groups in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the application security groups in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ApplicationSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ApplicationSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link ApplicationSecurityGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * AvailableDelegations * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface AvailableDelegations { /** * Gets all of the available subnet delegations for this subscription in this * region. * * @param {string} location The location of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all of the available subnet delegations for this subscription in this * region. * * @param {string} location The location of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AvailableDelegationsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AvailableDelegationsResult} [result] - The deserialized result object if an error did not occur. * See {@link AvailableDelegationsResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(location: string, callback: ServiceCallback): void; list(location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all of the available subnet delegations for this subscription in this * region. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all of the available subnet delegations for this subscription in this * region. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AvailableDelegationsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AvailableDelegationsResult} [result] - The deserialized result object if an error did not occur. * See {@link AvailableDelegationsResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * AvailableResourceGroupDelegations * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface AvailableResourceGroupDelegations { /** * Gets all of the available subnet delegations for this resource group in this * region. * * @param {string} location The location of the domain name. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(location: string, resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all of the available subnet delegations for this resource group in this * region. * * @param {string} location The location of the domain name. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AvailableDelegationsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AvailableDelegationsResult} [result] - The deserialized result object if an error did not occur. * See {@link AvailableDelegationsResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(location: string, resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(location: string, resourceGroupName: string, callback: ServiceCallback): void; list(location: string, resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all of the available subnet delegations for this resource group in this * region. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all of the available subnet delegations for this resource group in this * region. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AvailableDelegationsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AvailableDelegationsResult} [result] - The deserialized result object if an error did not occur. * See {@link AvailableDelegationsResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * AzureFirewalls * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface AzureFirewalls { /** * Deletes the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, azureFirewallName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, azureFirewallName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureFirewall} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureFirewall} [result] - The deserialized result object if an error did not occur. * See {@link AzureFirewall} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, azureFirewallName: string, callback: ServiceCallback): void; get(resourceGroupName: string, azureFirewallName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} parameters Parameters supplied to the create or update Azure * Firewall operation. * * @param {array} [parameters.applicationRuleCollections] Collection of * application rule collections used by Azure Firewall. * * @param {array} [parameters.natRuleCollections] Collection of NAT rule * collections used by Azure Firewall. * * @param {array} [parameters.networkRuleCollections] Collection of network * rule collections used by Azure Firewall. * * @param {array} [parameters.ipConfigurations] IP configuration of the Azure * Firewall resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' * * @param {string} [parameters.threatIntelMode] The operation mode for Threat * Intelligence. Possible values include: 'Alert', 'Deny', 'Off' * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, parameters: models.AzureFirewall, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} parameters Parameters supplied to the create or update Azure * Firewall operation. * * @param {array} [parameters.applicationRuleCollections] Collection of * application rule collections used by Azure Firewall. * * @param {array} [parameters.natRuleCollections] Collection of NAT rule * collections used by Azure Firewall. * * @param {array} [parameters.networkRuleCollections] Collection of network * rule collections used by Azure Firewall. * * @param {array} [parameters.ipConfigurations] IP configuration of the Azure * Firewall resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' * * @param {string} [parameters.threatIntelMode] The operation mode for Threat * Intelligence. Possible values include: 'Alert', 'Deny', 'Off' * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureFirewall} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureFirewall} [result] - The deserialized result object if an error did not occur. * See {@link AzureFirewall} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, azureFirewallName: string, parameters: models.AzureFirewall, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, azureFirewallName: string, parameters: models.AzureFirewall, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, azureFirewallName: string, parameters: models.AzureFirewall, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all Azure Firewalls in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all Azure Firewalls in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureFirewallListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureFirewallListResult} [result] - The deserialized result object if an error did not occur. * See {@link AzureFirewallListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the Azure Firewalls in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the Azure Firewalls in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureFirewallListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureFirewallListResult} [result] - The deserialized result object if an error did not occur. * See {@link AzureFirewallListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, azureFirewallName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, azureFirewallName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, azureFirewallName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} parameters Parameters supplied to the create or update Azure * Firewall operation. * * @param {array} [parameters.applicationRuleCollections] Collection of * application rule collections used by Azure Firewall. * * @param {array} [parameters.natRuleCollections] Collection of NAT rule * collections used by Azure Firewall. * * @param {array} [parameters.networkRuleCollections] Collection of network * rule collections used by Azure Firewall. * * @param {array} [parameters.ipConfigurations] IP configuration of the Azure * Firewall resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' * * @param {string} [parameters.threatIntelMode] The operation mode for Threat * Intelligence. Possible values include: 'Alert', 'Deny', 'Off' * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, azureFirewallName: string, parameters: models.AzureFirewall, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates the specified Azure Firewall. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} azureFirewallName The name of the Azure Firewall. * * @param {object} parameters Parameters supplied to the create or update Azure * Firewall operation. * * @param {array} [parameters.applicationRuleCollections] Collection of * application rule collections used by Azure Firewall. * * @param {array} [parameters.natRuleCollections] Collection of NAT rule * collections used by Azure Firewall. * * @param {array} [parameters.networkRuleCollections] Collection of network * rule collections used by Azure Firewall. * * @param {array} [parameters.ipConfigurations] IP configuration of the Azure * Firewall resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' * * @param {string} [parameters.threatIntelMode] The operation mode for Threat * Intelligence. Possible values include: 'Alert', 'Deny', 'Off' * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureFirewall} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureFirewall} [result] - The deserialized result object if an error did not occur. * See {@link AzureFirewall} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, azureFirewallName: string, parameters: models.AzureFirewall, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, azureFirewallName: string, parameters: models.AzureFirewall, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, azureFirewallName: string, parameters: models.AzureFirewall, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all Azure Firewalls in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all Azure Firewalls in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureFirewallListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureFirewallListResult} [result] - The deserialized result object if an error did not occur. * See {@link AzureFirewallListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the Azure Firewalls in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the Azure Firewalls in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureFirewallListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureFirewallListResult} [result] - The deserialized result object if an error did not occur. * See {@link AzureFirewallListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * AzureFirewallFqdnTags * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface AzureFirewallFqdnTags { /** * Gets all the Azure Firewall FQDN Tags in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the Azure Firewall FQDN Tags in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureFirewallFqdnTagListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureFirewallFqdnTagListResult} [result] - The deserialized result object if an error did not occur. * See {@link AzureFirewallFqdnTagListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the Azure Firewall FQDN Tags in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the Azure Firewall FQDN Tags in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureFirewallFqdnTagListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureFirewallFqdnTagListResult} [result] - The deserialized result object if an error did not occur. * See {@link AzureFirewallFqdnTagListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * DdosCustomPolicies * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface DdosCustomPolicies { /** * Deletes the specified DDoS custom policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, ddosCustomPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified DDoS custom policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, ddosCustomPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, ddosCustomPolicyName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, ddosCustomPolicyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about the specified DDoS custom policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, ddosCustomPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about the specified DDoS custom policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosCustomPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosCustomPolicy} [result] - The deserialized result object if an error did not occur. * See {@link DdosCustomPolicy} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, ddosCustomPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, ddosCustomPolicyName: string, callback: ServiceCallback): void; get(resourceGroupName: string, ddosCustomPolicyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a DDoS custom policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} parameters Parameters supplied to the create or update * operation. * * @param {array} [parameters.protocolCustomSettings] The protocol-specific * DDoS policy customization parameters. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.DdosCustomPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a DDoS custom policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} parameters Parameters supplied to the create or update * operation. * * @param {array} [parameters.protocolCustomSettings] The protocol-specific * DDoS policy customization parameters. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosCustomPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosCustomPolicy} [result] - The deserialized result object if an error did not occur. * See {@link DdosCustomPolicy} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.DdosCustomPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.DdosCustomPolicy, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.DdosCustomPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Update a DDoS custom policy tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} parameters Parameters supplied to the update DDoS custom * policy resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Update a DDoS custom policy tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} parameters Parameters supplied to the update DDoS custom * policy resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosCustomPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosCustomPolicy} [result] - The deserialized result object if an error did not occur. * See {@link DdosCustomPolicy} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified DDoS custom policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, ddosCustomPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified DDoS custom policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, ddosCustomPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, ddosCustomPolicyName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, ddosCustomPolicyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a DDoS custom policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} parameters Parameters supplied to the create or update * operation. * * @param {array} [parameters.protocolCustomSettings] The protocol-specific * DDoS policy customization parameters. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.DdosCustomPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a DDoS custom policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} parameters Parameters supplied to the create or update * operation. * * @param {array} [parameters.protocolCustomSettings] The protocol-specific * DDoS policy customization parameters. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosCustomPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosCustomPolicy} [result] - The deserialized result object if an error did not occur. * See {@link DdosCustomPolicy} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.DdosCustomPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.DdosCustomPolicy, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.DdosCustomPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Update a DDoS custom policy tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} parameters Parameters supplied to the update DDoS custom * policy resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Update a DDoS custom policy tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosCustomPolicyName The name of the DDoS custom policy. * * @param {object} parameters Parameters supplied to the update DDoS custom * policy resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosCustomPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosCustomPolicy} [result] - The deserialized result object if an error did not occur. * See {@link DdosCustomPolicy} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, ddosCustomPolicyName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * DdosProtectionPlans * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface DdosProtectionPlans { /** * Deletes the specified DDoS protection plan. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, ddosProtectionPlanName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified DDoS protection plan. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, ddosProtectionPlanName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, ddosProtectionPlanName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, ddosProtectionPlanName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about the specified DDoS protection plan. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, ddosProtectionPlanName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about the specified DDoS protection plan. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosProtectionPlan} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosProtectionPlan} [result] - The deserialized result object if an error did not occur. * See {@link DdosProtectionPlan} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, ddosProtectionPlanName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, ddosProtectionPlanName: string, callback: ServiceCallback): void; get(resourceGroupName: string, ddosProtectionPlanName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a DDoS protection plan. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} parameters Parameters supplied to the create or update * operation. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.DdosProtectionPlan, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a DDoS protection plan. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} parameters Parameters supplied to the create or update * operation. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosProtectionPlan} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosProtectionPlan} [result] - The deserialized result object if an error did not occur. * See {@link DdosProtectionPlan} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.DdosProtectionPlan, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.DdosProtectionPlan, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.DdosProtectionPlan, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Update a DDoS protection plan tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} parameters Parameters supplied to the update DDoS protection * plan resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Update a DDoS protection plan tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} parameters Parameters supplied to the update DDoS protection * plan resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosProtectionPlan} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosProtectionPlan} [result] - The deserialized result object if an error did not occur. * See {@link DdosProtectionPlan} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all DDoS protection plans in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all DDoS protection plans in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosProtectionPlanListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosProtectionPlanListResult} [result] - The deserialized result object if an error did not occur. * See {@link DdosProtectionPlanListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the DDoS protection plans in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the DDoS protection plans in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosProtectionPlanListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosProtectionPlanListResult} [result] - The deserialized result object if an error did not occur. * See {@link DdosProtectionPlanListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified DDoS protection plan. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, ddosProtectionPlanName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified DDoS protection plan. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, ddosProtectionPlanName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, ddosProtectionPlanName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, ddosProtectionPlanName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a DDoS protection plan. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} parameters Parameters supplied to the create or update * operation. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.DdosProtectionPlan, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a DDoS protection plan. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} parameters Parameters supplied to the create or update * operation. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosProtectionPlan} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosProtectionPlan} [result] - The deserialized result object if an error did not occur. * See {@link DdosProtectionPlan} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.DdosProtectionPlan, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.DdosProtectionPlan, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.DdosProtectionPlan, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Update a DDoS protection plan tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} parameters Parameters supplied to the update DDoS protection * plan resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Update a DDoS protection plan tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} ddosProtectionPlanName The name of the DDoS protection plan. * * @param {object} parameters Parameters supplied to the update DDoS protection * plan resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosProtectionPlan} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosProtectionPlan} [result] - The deserialized result object if an error did not occur. * See {@link DdosProtectionPlan} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, ddosProtectionPlanName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all DDoS protection plans in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all DDoS protection plans in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosProtectionPlanListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosProtectionPlanListResult} [result] - The deserialized result object if an error did not occur. * See {@link DdosProtectionPlanListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the DDoS protection plans in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the DDoS protection plans in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {DdosProtectionPlanListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {DdosProtectionPlanListResult} [result] - The deserialized result object if an error did not occur. * See {@link DdosProtectionPlanListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * AvailableEndpointServices * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface AvailableEndpointServices { /** * List what values of endpoint services are available for use. * * @param {string} location The location to check available endpoint services. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List what values of endpoint services are available for use. * * @param {string} location The location to check available endpoint services. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {EndpointServicesListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {EndpointServicesListResult} [result] - The deserialized result object if an error did not occur. * See {@link EndpointServicesListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(location: string, callback: ServiceCallback): void; list(location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * List what values of endpoint services are available for use. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List what values of endpoint services are available for use. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {EndpointServicesListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {EndpointServicesListResult} [result] - The deserialized result object if an error did not occur. * See {@link EndpointServicesListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRouteCircuitAuthorizations * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRouteCircuitAuthorizations { /** * Deletes the specified authorization from the specified express route * circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} authorizationName The name of the authorization. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, circuitName: string, authorizationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified authorization from the specified express route * circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} authorizationName The name of the authorization. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, circuitName: string, authorizationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, circuitName: string, authorizationName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, circuitName: string, authorizationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified authorization from the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} authorizationName The name of the authorization. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, circuitName: string, authorizationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified authorization from the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} authorizationName The name of the authorization. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitAuthorization} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitAuthorization} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitAuthorization} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, circuitName: string, authorizationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, circuitName: string, authorizationName: string, callback: ServiceCallback): void; get(resourceGroupName: string, circuitName: string, authorizationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates an authorization in the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} authorizationName The name of the authorization. * * @param {object} authorizationParameters Parameters supplied to the create or * update express route circuit authorization operation. * * @param {string} [authorizationParameters.authorizationKey] The authorization * key. * * @param {string} [authorizationParameters.authorizationUseStatus] * AuthorizationUseStatus. Possible values are: 'Available' and 'InUse'. * Possible values include: 'Available', 'InUse' * * @param {string} [authorizationParameters.provisioningState] Gets the * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [authorizationParameters.name] Gets name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [authorizationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, circuitName: string, authorizationName: string, authorizationParameters: models.ExpressRouteCircuitAuthorization, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates an authorization in the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} authorizationName The name of the authorization. * * @param {object} authorizationParameters Parameters supplied to the create or * update express route circuit authorization operation. * * @param {string} [authorizationParameters.authorizationKey] The authorization * key. * * @param {string} [authorizationParameters.authorizationUseStatus] * AuthorizationUseStatus. Possible values are: 'Available' and 'InUse'. * Possible values include: 'Available', 'InUse' * * @param {string} [authorizationParameters.provisioningState] Gets the * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [authorizationParameters.name] Gets name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [authorizationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitAuthorization} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitAuthorization} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitAuthorization} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, circuitName: string, authorizationName: string, authorizationParameters: models.ExpressRouteCircuitAuthorization, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, circuitName: string, authorizationName: string, authorizationParameters: models.ExpressRouteCircuitAuthorization, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, circuitName: string, authorizationName: string, authorizationParameters: models.ExpressRouteCircuitAuthorization, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all authorizations in an express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all authorizations in an express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AuthorizationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AuthorizationListResult} [result] - The deserialized result object if an error did not occur. * See {@link AuthorizationListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, circuitName: string, callback: ServiceCallback): void; list(resourceGroupName: string, circuitName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified authorization from the specified express route * circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} authorizationName The name of the authorization. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, circuitName: string, authorizationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified authorization from the specified express route * circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} authorizationName The name of the authorization. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, circuitName: string, authorizationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, circuitName: string, authorizationName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, circuitName: string, authorizationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates an authorization in the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} authorizationName The name of the authorization. * * @param {object} authorizationParameters Parameters supplied to the create or * update express route circuit authorization operation. * * @param {string} [authorizationParameters.authorizationKey] The authorization * key. * * @param {string} [authorizationParameters.authorizationUseStatus] * AuthorizationUseStatus. Possible values are: 'Available' and 'InUse'. * Possible values include: 'Available', 'InUse' * * @param {string} [authorizationParameters.provisioningState] Gets the * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [authorizationParameters.name] Gets name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [authorizationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, circuitName: string, authorizationName: string, authorizationParameters: models.ExpressRouteCircuitAuthorization, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates an authorization in the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} authorizationName The name of the authorization. * * @param {object} authorizationParameters Parameters supplied to the create or * update express route circuit authorization operation. * * @param {string} [authorizationParameters.authorizationKey] The authorization * key. * * @param {string} [authorizationParameters.authorizationUseStatus] * AuthorizationUseStatus. Possible values are: 'Available' and 'InUse'. * Possible values include: 'Available', 'InUse' * * @param {string} [authorizationParameters.provisioningState] Gets the * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [authorizationParameters.name] Gets name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [authorizationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitAuthorization} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitAuthorization} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitAuthorization} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, circuitName: string, authorizationName: string, authorizationParameters: models.ExpressRouteCircuitAuthorization, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, circuitName: string, authorizationName: string, authorizationParameters: models.ExpressRouteCircuitAuthorization, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, circuitName: string, authorizationName: string, authorizationParameters: models.ExpressRouteCircuitAuthorization, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all authorizations in an express route circuit. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all authorizations in an express route circuit. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AuthorizationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AuthorizationListResult} [result] - The deserialized result object if an error did not occur. * See {@link AuthorizationListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRouteCircuitPeerings * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRouteCircuitPeerings { /** * Deletes the specified peering from the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified peering from the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified peering for the express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified peering for the express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitPeering} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitPeering} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, circuitName: string, peeringName: string, callback: ServiceCallback): void; get(resourceGroupName: string, circuitName: string, peeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a peering in the specified express route circuits. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} peeringParameters Parameters supplied to the create or * update express route circuit peering operation. * * @param {string} [peeringParameters.peeringType] The peering type. Possible * values include: 'AzurePublicPeering', 'AzurePrivatePeering', * 'MicrosoftPeering' * * @param {string} [peeringParameters.state] The peering state. Possible values * include: 'Disabled', 'Enabled' * * @param {number} [peeringParameters.azureASN] The Azure ASN. * * @param {number} [peeringParameters.peerASN] The peer ASN. * * @param {string} [peeringParameters.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} [peeringParameters.secondaryPeerAddressPrefix] The secondary * address prefix. * * @param {string} [peeringParameters.primaryAzurePort] The primary port. * * @param {string} [peeringParameters.secondaryAzurePort] The secondary port. * * @param {string} [peeringParameters.sharedKey] The shared key. * * @param {number} [peeringParameters.vlanId] The VLAN ID. * * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * * @param {object} [peeringParameters.stats] Gets peering stats. * * @param {number} [peeringParameters.stats.primarybytesIn] Gets BytesIn of the * peering. * * @param {number} [peeringParameters.stats.primarybytesOut] Gets BytesOut of * the peering. * * @param {number} [peeringParameters.stats.secondarybytesIn] Gets BytesIn of * the peering. * * @param {number} [peeringParameters.stats.secondarybytesOut] Gets BytesOut of * the peering. * * @param {string} [peeringParameters.provisioningState] Gets the provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager * Etag. * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * * @param {object} [peeringParameters.routeFilter] The reference of the * RouteFilter resource. * * @param {object} [peeringParameters.ipv6PeeringConfig] The IPv6 peering * configuration. * * @param {string} * [peeringParameters.ipv6PeeringConfig.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} * [peeringParameters.ipv6PeeringConfig.secondaryPeerAddressPrefix] The * secondary address prefix. * * @param {object} [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig] * The Microsoft peering configuration. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] * The reference of AdvertisedPublicPrefixes. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] * The communities of bgp peering. Specified for microsoft peering * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The * legacy mode of the peering. * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.customerASN] The * CustomerASN of the peering. * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] * The RoutingRegistryName of the configuration. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter] The * reference of the RouteFilter resource. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A * collection of references to express route circuit peerings. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.location] * Resource location. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter.tags] * Resource tags. * * @param {string} [peeringParameters.ipv6PeeringConfig.state] The state of * peering. Possible values are: 'Disabled' and 'Enabled'. Possible values * include: 'Disabled', 'Enabled' * * @param {object} [peeringParameters.expressRouteConnection] The ExpressRoute * connection. * * @param {array} [peeringParameters.connections] The list of circuit * connections associated with Azure Private Peering for this circuit. * * @param {string} [peeringParameters.name] Gets name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [peeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, peeringParameters: models.ExpressRouteCircuitPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a peering in the specified express route circuits. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} peeringParameters Parameters supplied to the create or * update express route circuit peering operation. * * @param {string} [peeringParameters.peeringType] The peering type. Possible * values include: 'AzurePublicPeering', 'AzurePrivatePeering', * 'MicrosoftPeering' * * @param {string} [peeringParameters.state] The peering state. Possible values * include: 'Disabled', 'Enabled' * * @param {number} [peeringParameters.azureASN] The Azure ASN. * * @param {number} [peeringParameters.peerASN] The peer ASN. * * @param {string} [peeringParameters.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} [peeringParameters.secondaryPeerAddressPrefix] The secondary * address prefix. * * @param {string} [peeringParameters.primaryAzurePort] The primary port. * * @param {string} [peeringParameters.secondaryAzurePort] The secondary port. * * @param {string} [peeringParameters.sharedKey] The shared key. * * @param {number} [peeringParameters.vlanId] The VLAN ID. * * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * * @param {object} [peeringParameters.stats] Gets peering stats. * * @param {number} [peeringParameters.stats.primarybytesIn] Gets BytesIn of the * peering. * * @param {number} [peeringParameters.stats.primarybytesOut] Gets BytesOut of * the peering. * * @param {number} [peeringParameters.stats.secondarybytesIn] Gets BytesIn of * the peering. * * @param {number} [peeringParameters.stats.secondarybytesOut] Gets BytesOut of * the peering. * * @param {string} [peeringParameters.provisioningState] Gets the provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager * Etag. * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * * @param {object} [peeringParameters.routeFilter] The reference of the * RouteFilter resource. * * @param {object} [peeringParameters.ipv6PeeringConfig] The IPv6 peering * configuration. * * @param {string} * [peeringParameters.ipv6PeeringConfig.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} * [peeringParameters.ipv6PeeringConfig.secondaryPeerAddressPrefix] The * secondary address prefix. * * @param {object} [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig] * The Microsoft peering configuration. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] * The reference of AdvertisedPublicPrefixes. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] * The communities of bgp peering. Specified for microsoft peering * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The * legacy mode of the peering. * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.customerASN] The * CustomerASN of the peering. * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] * The RoutingRegistryName of the configuration. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter] The * reference of the RouteFilter resource. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A * collection of references to express route circuit peerings. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.location] * Resource location. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter.tags] * Resource tags. * * @param {string} [peeringParameters.ipv6PeeringConfig.state] The state of * peering. Possible values are: 'Disabled' and 'Enabled'. Possible values * include: 'Disabled', 'Enabled' * * @param {object} [peeringParameters.expressRouteConnection] The ExpressRoute * connection. * * @param {array} [peeringParameters.connections] The list of circuit * connections associated with Azure Private Peering for this circuit. * * @param {string} [peeringParameters.name] Gets name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [peeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitPeering} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitPeering} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, peeringParameters: models.ExpressRouteCircuitPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, peeringParameters: models.ExpressRouteCircuitPeering, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, peeringParameters: models.ExpressRouteCircuitPeering, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all peerings in a specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all peerings in a specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitPeeringListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitPeeringListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitPeeringListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, circuitName: string, callback: ServiceCallback): void; list(resourceGroupName: string, circuitName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified peering from the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified peering from the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a peering in the specified express route circuits. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} peeringParameters Parameters supplied to the create or * update express route circuit peering operation. * * @param {string} [peeringParameters.peeringType] The peering type. Possible * values include: 'AzurePublicPeering', 'AzurePrivatePeering', * 'MicrosoftPeering' * * @param {string} [peeringParameters.state] The peering state. Possible values * include: 'Disabled', 'Enabled' * * @param {number} [peeringParameters.azureASN] The Azure ASN. * * @param {number} [peeringParameters.peerASN] The peer ASN. * * @param {string} [peeringParameters.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} [peeringParameters.secondaryPeerAddressPrefix] The secondary * address prefix. * * @param {string} [peeringParameters.primaryAzurePort] The primary port. * * @param {string} [peeringParameters.secondaryAzurePort] The secondary port. * * @param {string} [peeringParameters.sharedKey] The shared key. * * @param {number} [peeringParameters.vlanId] The VLAN ID. * * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * * @param {object} [peeringParameters.stats] Gets peering stats. * * @param {number} [peeringParameters.stats.primarybytesIn] Gets BytesIn of the * peering. * * @param {number} [peeringParameters.stats.primarybytesOut] Gets BytesOut of * the peering. * * @param {number} [peeringParameters.stats.secondarybytesIn] Gets BytesIn of * the peering. * * @param {number} [peeringParameters.stats.secondarybytesOut] Gets BytesOut of * the peering. * * @param {string} [peeringParameters.provisioningState] Gets the provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager * Etag. * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * * @param {object} [peeringParameters.routeFilter] The reference of the * RouteFilter resource. * * @param {object} [peeringParameters.ipv6PeeringConfig] The IPv6 peering * configuration. * * @param {string} * [peeringParameters.ipv6PeeringConfig.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} * [peeringParameters.ipv6PeeringConfig.secondaryPeerAddressPrefix] The * secondary address prefix. * * @param {object} [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig] * The Microsoft peering configuration. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] * The reference of AdvertisedPublicPrefixes. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] * The communities of bgp peering. Specified for microsoft peering * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The * legacy mode of the peering. * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.customerASN] The * CustomerASN of the peering. * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] * The RoutingRegistryName of the configuration. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter] The * reference of the RouteFilter resource. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A * collection of references to express route circuit peerings. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.location] * Resource location. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter.tags] * Resource tags. * * @param {string} [peeringParameters.ipv6PeeringConfig.state] The state of * peering. Possible values are: 'Disabled' and 'Enabled'. Possible values * include: 'Disabled', 'Enabled' * * @param {object} [peeringParameters.expressRouteConnection] The ExpressRoute * connection. * * @param {array} [peeringParameters.connections] The list of circuit * connections associated with Azure Private Peering for this circuit. * * @param {string} [peeringParameters.name] Gets name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [peeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, peeringParameters: models.ExpressRouteCircuitPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a peering in the specified express route circuits. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} peeringParameters Parameters supplied to the create or * update express route circuit peering operation. * * @param {string} [peeringParameters.peeringType] The peering type. Possible * values include: 'AzurePublicPeering', 'AzurePrivatePeering', * 'MicrosoftPeering' * * @param {string} [peeringParameters.state] The peering state. Possible values * include: 'Disabled', 'Enabled' * * @param {number} [peeringParameters.azureASN] The Azure ASN. * * @param {number} [peeringParameters.peerASN] The peer ASN. * * @param {string} [peeringParameters.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} [peeringParameters.secondaryPeerAddressPrefix] The secondary * address prefix. * * @param {string} [peeringParameters.primaryAzurePort] The primary port. * * @param {string} [peeringParameters.secondaryAzurePort] The secondary port. * * @param {string} [peeringParameters.sharedKey] The shared key. * * @param {number} [peeringParameters.vlanId] The VLAN ID. * * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * * @param {object} [peeringParameters.stats] Gets peering stats. * * @param {number} [peeringParameters.stats.primarybytesIn] Gets BytesIn of the * peering. * * @param {number} [peeringParameters.stats.primarybytesOut] Gets BytesOut of * the peering. * * @param {number} [peeringParameters.stats.secondarybytesIn] Gets BytesIn of * the peering. * * @param {number} [peeringParameters.stats.secondarybytesOut] Gets BytesOut of * the peering. * * @param {string} [peeringParameters.provisioningState] Gets the provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager * Etag. * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * * @param {object} [peeringParameters.routeFilter] The reference of the * RouteFilter resource. * * @param {object} [peeringParameters.ipv6PeeringConfig] The IPv6 peering * configuration. * * @param {string} * [peeringParameters.ipv6PeeringConfig.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} * [peeringParameters.ipv6PeeringConfig.secondaryPeerAddressPrefix] The * secondary address prefix. * * @param {object} [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig] * The Microsoft peering configuration. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] * The reference of AdvertisedPublicPrefixes. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] * The communities of bgp peering. Specified for microsoft peering * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The * legacy mode of the peering. * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.customerASN] The * CustomerASN of the peering. * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] * The RoutingRegistryName of the configuration. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter] The * reference of the RouteFilter resource. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A * collection of references to express route circuit peerings. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.location] * Resource location. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter.tags] * Resource tags. * * @param {string} [peeringParameters.ipv6PeeringConfig.state] The state of * peering. Possible values are: 'Disabled' and 'Enabled'. Possible values * include: 'Disabled', 'Enabled' * * @param {object} [peeringParameters.expressRouteConnection] The ExpressRoute * connection. * * @param {array} [peeringParameters.connections] The list of circuit * connections associated with Azure Private Peering for this circuit. * * @param {string} [peeringParameters.name] Gets name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [peeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitPeering} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitPeering} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, peeringParameters: models.ExpressRouteCircuitPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, peeringParameters: models.ExpressRouteCircuitPeering, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, peeringParameters: models.ExpressRouteCircuitPeering, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all peerings in a specified express route circuit. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all peerings in a specified express route circuit. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitPeeringListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitPeeringListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitPeeringListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRouteCircuitConnections * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRouteCircuitConnections { /** * Deletes the specified Express Route Circuit Connection from the specified * express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the express route circuit * connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified Express Route Circuit Connection from the specified * express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the express route circuit * connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified Express Route Circuit Connection from the specified * express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the express route circuit * connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified Express Route Circuit Connection from the specified * express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the express route circuit * connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, callback: ServiceCallback): void; get(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a Express Route Circuit Connection in the specified * express route circuits. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the express route circuit * connection. * * @param {object} expressRouteCircuitConnectionParameters Parameters supplied * to the create or update express route circuit connection operation. * * @param {object} * [expressRouteCircuitConnectionParameters.expressRouteCircuitPeering] * Reference to Express Route Circuit Private Peering Resource of the circuit * initiating connection. * * @param {object} * [expressRouteCircuitConnectionParameters.peerExpressRouteCircuitPeering] * Reference to Express Route Circuit Private Peering Resource of the peered * circuit. * * @param {string} * [expressRouteCircuitConnectionParameters.peerExpressRouteCircuitPeering.id] * Resource ID. * * @param {string} [expressRouteCircuitConnectionParameters.addressPrefix] /29 * IP address space to carve out Customer addresses for tunnels. * * @param {string} [expressRouteCircuitConnectionParameters.authorizationKey] * The authorization key. * * @param {string} * [expressRouteCircuitConnectionParameters.circuitConnectionStatus] Express * Route Circuit connection state. Possible values include: 'Connected', * 'Connecting', 'Disconnected' * * @param {string} [expressRouteCircuitConnectionParameters.name] Gets name of * the resource that is unique within a resource group. This name can be used * to access the resource. * * @param {string} [expressRouteCircuitConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, expressRouteCircuitConnectionParameters: models.ExpressRouteCircuitConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a Express Route Circuit Connection in the specified * express route circuits. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the express route circuit * connection. * * @param {object} expressRouteCircuitConnectionParameters Parameters supplied * to the create or update express route circuit connection operation. * * @param {object} * [expressRouteCircuitConnectionParameters.expressRouteCircuitPeering] * Reference to Express Route Circuit Private Peering Resource of the circuit * initiating connection. * * @param {object} * [expressRouteCircuitConnectionParameters.peerExpressRouteCircuitPeering] * Reference to Express Route Circuit Private Peering Resource of the peered * circuit. * * @param {string} * [expressRouteCircuitConnectionParameters.peerExpressRouteCircuitPeering.id] * Resource ID. * * @param {string} [expressRouteCircuitConnectionParameters.addressPrefix] /29 * IP address space to carve out Customer addresses for tunnels. * * @param {string} [expressRouteCircuitConnectionParameters.authorizationKey] * The authorization key. * * @param {string} * [expressRouteCircuitConnectionParameters.circuitConnectionStatus] Express * Route Circuit connection state. Possible values include: 'Connected', * 'Connecting', 'Disconnected' * * @param {string} [expressRouteCircuitConnectionParameters.name] Gets name of * the resource that is unique within a resource group. This name can be used * to access the resource. * * @param {string} [expressRouteCircuitConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, expressRouteCircuitConnectionParameters: models.ExpressRouteCircuitConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, expressRouteCircuitConnectionParameters: models.ExpressRouteCircuitConnection, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, expressRouteCircuitConnectionParameters: models.ExpressRouteCircuitConnection, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all global reach connections associated with a private peering in an * express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all global reach connections associated with a private peering in an * express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitConnectionListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitConnectionListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, circuitName: string, peeringName: string, callback: ServiceCallback): void; list(resourceGroupName: string, circuitName: string, peeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified Express Route Circuit Connection from the specified * express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the express route circuit * connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified Express Route Circuit Connection from the specified * express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the express route circuit * connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a Express Route Circuit Connection in the specified * express route circuits. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the express route circuit * connection. * * @param {object} expressRouteCircuitConnectionParameters Parameters supplied * to the create or update express route circuit connection operation. * * @param {object} * [expressRouteCircuitConnectionParameters.expressRouteCircuitPeering] * Reference to Express Route Circuit Private Peering Resource of the circuit * initiating connection. * * @param {object} * [expressRouteCircuitConnectionParameters.peerExpressRouteCircuitPeering] * Reference to Express Route Circuit Private Peering Resource of the peered * circuit. * * @param {string} * [expressRouteCircuitConnectionParameters.peerExpressRouteCircuitPeering.id] * Resource ID. * * @param {string} [expressRouteCircuitConnectionParameters.addressPrefix] /29 * IP address space to carve out Customer addresses for tunnels. * * @param {string} [expressRouteCircuitConnectionParameters.authorizationKey] * The authorization key. * * @param {string} * [expressRouteCircuitConnectionParameters.circuitConnectionStatus] Express * Route Circuit connection state. Possible values include: 'Connected', * 'Connecting', 'Disconnected' * * @param {string} [expressRouteCircuitConnectionParameters.name] Gets name of * the resource that is unique within a resource group. This name can be used * to access the resource. * * @param {string} [expressRouteCircuitConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, expressRouteCircuitConnectionParameters: models.ExpressRouteCircuitConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a Express Route Circuit Connection in the specified * express route circuits. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the express route circuit * connection. * * @param {object} expressRouteCircuitConnectionParameters Parameters supplied * to the create or update express route circuit connection operation. * * @param {object} * [expressRouteCircuitConnectionParameters.expressRouteCircuitPeering] * Reference to Express Route Circuit Private Peering Resource of the circuit * initiating connection. * * @param {object} * [expressRouteCircuitConnectionParameters.peerExpressRouteCircuitPeering] * Reference to Express Route Circuit Private Peering Resource of the peered * circuit. * * @param {string} * [expressRouteCircuitConnectionParameters.peerExpressRouteCircuitPeering.id] * Resource ID. * * @param {string} [expressRouteCircuitConnectionParameters.addressPrefix] /29 * IP address space to carve out Customer addresses for tunnels. * * @param {string} [expressRouteCircuitConnectionParameters.authorizationKey] * The authorization key. * * @param {string} * [expressRouteCircuitConnectionParameters.circuitConnectionStatus] Express * Route Circuit connection state. Possible values include: 'Connected', * 'Connecting', 'Disconnected' * * @param {string} [expressRouteCircuitConnectionParameters.name] Gets name of * the resource that is unique within a resource group. This name can be used * to access the resource. * * @param {string} [expressRouteCircuitConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, expressRouteCircuitConnectionParameters: models.ExpressRouteCircuitConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, expressRouteCircuitConnectionParameters: models.ExpressRouteCircuitConnection, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, expressRouteCircuitConnectionParameters: models.ExpressRouteCircuitConnection, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all global reach connections associated with a private peering in an * express route circuit. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all global reach connections associated with a private peering in an * express route circuit. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitConnectionListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitConnectionListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * PeerExpressRouteCircuitConnections * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface PeerExpressRouteCircuitConnections { /** * Gets the specified Peer Express Route Circuit Connection from the specified * express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the peer express route circuit * connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified Peer Express Route Circuit Connection from the specified * express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} connectionName The name of the peer express route circuit * connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PeerExpressRouteCircuitConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PeerExpressRouteCircuitConnection} [result] - The deserialized result object if an error did not occur. * See {@link PeerExpressRouteCircuitConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, callback: ServiceCallback): void; get(resourceGroupName: string, circuitName: string, peeringName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all global reach peer connections associated with a private peering in * an express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all global reach peer connections associated with a private peering in * an express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PeerExpressRouteCircuitConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PeerExpressRouteCircuitConnectionListResult} [result] - The deserialized result object if an error did not occur. * See {@link PeerExpressRouteCircuitConnectionListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, circuitName: string, peeringName: string, callback: ServiceCallback): void; list(resourceGroupName: string, circuitName: string, peeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all global reach peer connections associated with a private peering in * an express route circuit. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all global reach peer connections associated with a private peering in * an express route circuit. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PeerExpressRouteCircuitConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PeerExpressRouteCircuitConnectionListResult} [result] - The deserialized result object if an error did not occur. * See {@link PeerExpressRouteCircuitConnectionListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRouteCircuits * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRouteCircuits { /** * Deletes the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, circuitName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, circuitName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of express route circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of express route circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuit} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuit} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuit} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, circuitName: string, callback: ServiceCallback): void; get(resourceGroupName: string, circuitName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates an express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {object} parameters Parameters supplied to the create or update * express route circuit operation. * * @param {object} [parameters.sku] The SKU. * * @param {string} [parameters.sku.name] The name of the SKU. * * @param {string} [parameters.sku.tier] The tier of the SKU. Possible values * are 'Standard', 'Premium' or 'Local'. Possible values include: 'Standard', * 'Premium', 'Basic', 'Local' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: * 'UnlimitedData', 'MeteredData' * * @param {boolean} [parameters.allowClassicOperations] Allow classic * operations * * @param {string} [parameters.circuitProvisioningState] The * CircuitProvisioningState state of the resource. * * @param {string} [parameters.serviceProviderProvisioningState] The * ServiceProviderProvisioningState state of the resource. Possible values * include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning' * * @param {array} [parameters.authorizations] The list of authorizations. * * @param {array} [parameters.peerings] The list of peerings. * * @param {string} [parameters.serviceKey] The ServiceKey. * * @param {string} [parameters.serviceProviderNotes] The ServiceProviderNotes. * * @param {object} [parameters.serviceProviderProperties] The * ServiceProviderProperties. * * @param {string} [parameters.serviceProviderProperties.serviceProviderName] * The serviceProviderName. * * @param {string} [parameters.serviceProviderProperties.peeringLocation] The * peering location. * * @param {number} [parameters.serviceProviderProperties.bandwidthInMbps] The * BandwidthInMbps. * * @param {object} [parameters.expressRoutePort] The reference to the * ExpressRoutePort resource when the circuit is provisioned on an * ExpressRoutePort resource. * * @param {string} [parameters.expressRoutePort.id] Resource ID. * * @param {number} [parameters.bandwidthInGbps] The bandwidth of the circuit * when the circuit is provisioned on an ExpressRoutePort resource. * * @param {string} [parameters.provisioningState] Gets the provisioning state * of the public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.gatewayManagerEtag] The GatewayManager Etag. * * @param {boolean} [parameters.globalReachEnabled] Flag denoting Global reach * status. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, circuitName: string, parameters: models.ExpressRouteCircuit, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates an express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {object} parameters Parameters supplied to the create or update * express route circuit operation. * * @param {object} [parameters.sku] The SKU. * * @param {string} [parameters.sku.name] The name of the SKU. * * @param {string} [parameters.sku.tier] The tier of the SKU. Possible values * are 'Standard', 'Premium' or 'Local'. Possible values include: 'Standard', * 'Premium', 'Basic', 'Local' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: * 'UnlimitedData', 'MeteredData' * * @param {boolean} [parameters.allowClassicOperations] Allow classic * operations * * @param {string} [parameters.circuitProvisioningState] The * CircuitProvisioningState state of the resource. * * @param {string} [parameters.serviceProviderProvisioningState] The * ServiceProviderProvisioningState state of the resource. Possible values * include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning' * * @param {array} [parameters.authorizations] The list of authorizations. * * @param {array} [parameters.peerings] The list of peerings. * * @param {string} [parameters.serviceKey] The ServiceKey. * * @param {string} [parameters.serviceProviderNotes] The ServiceProviderNotes. * * @param {object} [parameters.serviceProviderProperties] The * ServiceProviderProperties. * * @param {string} [parameters.serviceProviderProperties.serviceProviderName] * The serviceProviderName. * * @param {string} [parameters.serviceProviderProperties.peeringLocation] The * peering location. * * @param {number} [parameters.serviceProviderProperties.bandwidthInMbps] The * BandwidthInMbps. * * @param {object} [parameters.expressRoutePort] The reference to the * ExpressRoutePort resource when the circuit is provisioned on an * ExpressRoutePort resource. * * @param {string} [parameters.expressRoutePort.id] Resource ID. * * @param {number} [parameters.bandwidthInGbps] The bandwidth of the circuit * when the circuit is provisioned on an ExpressRoutePort resource. * * @param {string} [parameters.provisioningState] Gets the provisioning state * of the public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.gatewayManagerEtag] The GatewayManager Etag. * * @param {boolean} [parameters.globalReachEnabled] Flag denoting Global reach * status. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuit} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuit} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuit} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, circuitName: string, parameters: models.ExpressRouteCircuit, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, circuitName: string, parameters: models.ExpressRouteCircuit, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, circuitName: string, parameters: models.ExpressRouteCircuit, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates an express route circuit tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {object} parameters Parameters supplied to update express route * circuit tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, circuitName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates an express route circuit tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {object} parameters Parameters supplied to update express route * circuit tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuit} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuit} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuit} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, circuitName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, circuitName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, circuitName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the currently advertised ARP table associated with the express route * circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listArpTableWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the currently advertised ARP table associated with the express route * circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitsArpTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitsArpTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitsArpTableListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listArpTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listArpTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; listArpTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the currently advertised routes table associated with the express route * circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listRoutesTableWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the currently advertised routes table associated with the express route * circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitsRoutesTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitsRoutesTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitsRoutesTableListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listRoutesTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listRoutesTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; listRoutesTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the currently advertised routes table summary associated with the * express route circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listRoutesTableSummaryWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the currently advertised routes table summary associated with the * express route circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitsRoutesTableSummaryListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitsRoutesTableSummaryListResult} [result] - The deserialized result object if an error did not occur. * See {@link * ExpressRouteCircuitsRoutesTableSummaryListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listRoutesTableSummary(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listRoutesTableSummary(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; listRoutesTableSummary(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the stats from an express route circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getStatsWithHttpOperationResponse(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the stats from an express route circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitStats} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitStats} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitStats} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getStats(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getStats(resourceGroupName: string, circuitName: string, callback: ServiceCallback): void; getStats(resourceGroupName: string, circuitName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all stats from an express route circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getPeeringStatsWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all stats from an express route circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitStats} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitStats} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitStats} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getPeeringStats(resourceGroupName: string, circuitName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getPeeringStats(resourceGroupName: string, circuitName: string, peeringName: string, callback: ServiceCallback): void; getPeeringStats(resourceGroupName: string, circuitName: string, peeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the express route circuits in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the express route circuits in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the express route circuits in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the express route circuits in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, circuitName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, circuitName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, circuitName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates an express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {object} parameters Parameters supplied to the create or update * express route circuit operation. * * @param {object} [parameters.sku] The SKU. * * @param {string} [parameters.sku.name] The name of the SKU. * * @param {string} [parameters.sku.tier] The tier of the SKU. Possible values * are 'Standard', 'Premium' or 'Local'. Possible values include: 'Standard', * 'Premium', 'Basic', 'Local' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: * 'UnlimitedData', 'MeteredData' * * @param {boolean} [parameters.allowClassicOperations] Allow classic * operations * * @param {string} [parameters.circuitProvisioningState] The * CircuitProvisioningState state of the resource. * * @param {string} [parameters.serviceProviderProvisioningState] The * ServiceProviderProvisioningState state of the resource. Possible values * include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning' * * @param {array} [parameters.authorizations] The list of authorizations. * * @param {array} [parameters.peerings] The list of peerings. * * @param {string} [parameters.serviceKey] The ServiceKey. * * @param {string} [parameters.serviceProviderNotes] The ServiceProviderNotes. * * @param {object} [parameters.serviceProviderProperties] The * ServiceProviderProperties. * * @param {string} [parameters.serviceProviderProperties.serviceProviderName] * The serviceProviderName. * * @param {string} [parameters.serviceProviderProperties.peeringLocation] The * peering location. * * @param {number} [parameters.serviceProviderProperties.bandwidthInMbps] The * BandwidthInMbps. * * @param {object} [parameters.expressRoutePort] The reference to the * ExpressRoutePort resource when the circuit is provisioned on an * ExpressRoutePort resource. * * @param {string} [parameters.expressRoutePort.id] Resource ID. * * @param {number} [parameters.bandwidthInGbps] The bandwidth of the circuit * when the circuit is provisioned on an ExpressRoutePort resource. * * @param {string} [parameters.provisioningState] Gets the provisioning state * of the public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.gatewayManagerEtag] The GatewayManager Etag. * * @param {boolean} [parameters.globalReachEnabled] Flag denoting Global reach * status. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, circuitName: string, parameters: models.ExpressRouteCircuit, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates an express route circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {object} parameters Parameters supplied to the create or update * express route circuit operation. * * @param {object} [parameters.sku] The SKU. * * @param {string} [parameters.sku.name] The name of the SKU. * * @param {string} [parameters.sku.tier] The tier of the SKU. Possible values * are 'Standard', 'Premium' or 'Local'. Possible values include: 'Standard', * 'Premium', 'Basic', 'Local' * * @param {string} [parameters.sku.family] The family of the SKU. Possible * values are: 'UnlimitedData' and 'MeteredData'. Possible values include: * 'UnlimitedData', 'MeteredData' * * @param {boolean} [parameters.allowClassicOperations] Allow classic * operations * * @param {string} [parameters.circuitProvisioningState] The * CircuitProvisioningState state of the resource. * * @param {string} [parameters.serviceProviderProvisioningState] The * ServiceProviderProvisioningState state of the resource. Possible values * include: 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning' * * @param {array} [parameters.authorizations] The list of authorizations. * * @param {array} [parameters.peerings] The list of peerings. * * @param {string} [parameters.serviceKey] The ServiceKey. * * @param {string} [parameters.serviceProviderNotes] The ServiceProviderNotes. * * @param {object} [parameters.serviceProviderProperties] The * ServiceProviderProperties. * * @param {string} [parameters.serviceProviderProperties.serviceProviderName] * The serviceProviderName. * * @param {string} [parameters.serviceProviderProperties.peeringLocation] The * peering location. * * @param {number} [parameters.serviceProviderProperties.bandwidthInMbps] The * BandwidthInMbps. * * @param {object} [parameters.expressRoutePort] The reference to the * ExpressRoutePort resource when the circuit is provisioned on an * ExpressRoutePort resource. * * @param {string} [parameters.expressRoutePort.id] Resource ID. * * @param {number} [parameters.bandwidthInGbps] The bandwidth of the circuit * when the circuit is provisioned on an ExpressRoutePort resource. * * @param {string} [parameters.provisioningState] Gets the provisioning state * of the public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.gatewayManagerEtag] The GatewayManager Etag. * * @param {boolean} [parameters.globalReachEnabled] Flag denoting Global reach * status. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuit} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuit} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuit} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, circuitName: string, parameters: models.ExpressRouteCircuit, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, circuitName: string, parameters: models.ExpressRouteCircuit, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, circuitName: string, parameters: models.ExpressRouteCircuit, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates an express route circuit tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {object} parameters Parameters supplied to update express route * circuit tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, circuitName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates an express route circuit tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the circuit. * * @param {object} parameters Parameters supplied to update express route * circuit tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuit} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuit} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuit} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, circuitName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, circuitName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, circuitName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the currently advertised ARP table associated with the express route * circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginListArpTableWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the currently advertised ARP table associated with the express route * circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitsArpTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitsArpTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitsArpTableListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginListArpTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginListArpTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; beginListArpTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the currently advertised routes table associated with the express route * circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginListRoutesTableWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the currently advertised routes table associated with the express route * circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitsRoutesTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitsRoutesTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitsRoutesTableListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginListRoutesTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginListRoutesTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; beginListRoutesTable(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the currently advertised routes table summary associated with the * express route circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginListRoutesTableSummaryWithHttpOperationResponse(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the currently advertised routes table summary associated with the * express route circuit in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} circuitName The name of the express route circuit. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitsRoutesTableSummaryListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitsRoutesTableSummaryListResult} [result] - The deserialized result object if an error did not occur. * See {@link * ExpressRouteCircuitsRoutesTableSummaryListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginListRoutesTableSummary(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginListRoutesTableSummary(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; beginListRoutesTableSummary(resourceGroupName: string, circuitName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the express route circuits in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the express route circuits in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the express route circuits in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the express route circuits in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRouteServiceProviders * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRouteServiceProviders { /** * Gets all the available express route service providers. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the available express route service providers. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteServiceProviderListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteServiceProviderListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteServiceProviderListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the available express route service providers. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the available express route service providers. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteServiceProviderListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteServiceProviderListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteServiceProviderListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRouteCrossConnections * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRouteCrossConnections { /** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnectionListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnectionListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets details about the specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group (peering * location of the circuit). * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection (service key of the circuit). * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets details about the specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group (peering * location of the circuit). * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection (service key of the circuit). * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, crossConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, crossConnectionName: string, callback: ServiceCallback): void; get(resourceGroupName: string, crossConnectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Update the specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * * @param {string} [parameters.peeringLocation] The peering location of the * ExpressRoute circuit. * * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. * * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit * * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express * Route Circuit Id. * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', * 'Deprovisioning' * * @param {string} [parameters.serviceProviderNotes] Additional read only notes * set by the connectivity provider. * * @param {array} [parameters.peerings] The list of peerings. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, parameters: models.ExpressRouteCrossConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Update the specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * * @param {string} [parameters.peeringLocation] The peering location of the * ExpressRoute circuit. * * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. * * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit * * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express * Route Circuit Id. * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', * 'Deprovisioning' * * @param {string} [parameters.serviceProviderNotes] Additional read only notes * set by the connectivity provider. * * @param {array} [parameters.peerings] The list of peerings. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, crossConnectionName: string, parameters: models.ExpressRouteCrossConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, crossConnectionName: string, parameters: models.ExpressRouteCrossConnection, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, crossConnectionName: string, parameters: models.ExpressRouteCrossConnection, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates an express route cross connection tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the cross connection. * * @param {object} crossConnectionParameters Parameters supplied to update * express route cross connection tags. * * @param {object} [crossConnectionParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, crossConnectionParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates an express route cross connection tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the cross connection. * * @param {object} crossConnectionParameters Parameters supplied to update * express route cross connection tags. * * @param {object} [crossConnectionParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, crossConnectionName: string, crossConnectionParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, crossConnectionName: string, crossConnectionParameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, crossConnectionName: string, crossConnectionParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the currently advertised ARP table associated with the express route * cross connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listArpTableWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the currently advertised ARP table associated with the express route * cross connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitsArpTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitsArpTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitsArpTableListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listArpTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listArpTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; listArpTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the route table summary associated with the express route cross * connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listRoutesTableSummaryWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the route table summary associated with the express route cross * connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionsRoutesTableSummaryListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionsRoutesTableSummaryListResult} [result] - The deserialized result object if an error did not occur. * See {@link * ExpressRouteCrossConnectionsRoutesTableSummaryListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listRoutesTableSummary(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listRoutesTableSummary(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; listRoutesTableSummary(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the currently advertised routes table associated with the express route * cross connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listRoutesTableWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the currently advertised routes table associated with the express route * cross connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitsRoutesTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitsRoutesTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitsRoutesTableListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listRoutesTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listRoutesTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; listRoutesTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Update the specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * * @param {string} [parameters.peeringLocation] The peering location of the * ExpressRoute circuit. * * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. * * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit * * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express * Route Circuit Id. * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', * 'Deprovisioning' * * @param {string} [parameters.serviceProviderNotes] Additional read only notes * set by the connectivity provider. * * @param {array} [parameters.peerings] The list of peerings. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, parameters: models.ExpressRouteCrossConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Update the specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {object} parameters Parameters supplied to the update express route * crossConnection operation. * * @param {string} [parameters.peeringLocation] The peering location of the * ExpressRoute circuit. * * @param {number} [parameters.bandwidthInMbps] The circuit bandwidth In Mbps. * * @param {object} [parameters.expressRouteCircuit] The ExpressRouteCircuit * * @param {string} [parameters.expressRouteCircuit.id] Corresponding Express * Route Circuit Id. * * @param {string} [parameters.serviceProviderProvisioningState] The * provisioning state of the circuit in the connectivity provider system. * Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', * 'Deprovisioning' * * @param {string} [parameters.serviceProviderNotes] Additional read only notes * set by the connectivity provider. * * @param {array} [parameters.peerings] The list of peerings. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, crossConnectionName: string, parameters: models.ExpressRouteCrossConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, crossConnectionName: string, parameters: models.ExpressRouteCrossConnection, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, crossConnectionName: string, parameters: models.ExpressRouteCrossConnection, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates an express route cross connection tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the cross connection. * * @param {object} crossConnectionParameters Parameters supplied to update * express route cross connection tags. * * @param {object} [crossConnectionParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, crossConnectionParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates an express route cross connection tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the cross connection. * * @param {object} crossConnectionParameters Parameters supplied to update * express route cross connection tags. * * @param {object} [crossConnectionParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, crossConnectionName: string, crossConnectionParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, crossConnectionName: string, crossConnectionParameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, crossConnectionName: string, crossConnectionParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the currently advertised ARP table associated with the express route * cross connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginListArpTableWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the currently advertised ARP table associated with the express route * cross connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitsArpTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitsArpTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitsArpTableListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginListArpTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginListArpTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; beginListArpTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the route table summary associated with the express route cross * connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginListRoutesTableSummaryWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the route table summary associated with the express route cross * connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionsRoutesTableSummaryListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionsRoutesTableSummaryListResult} [result] - The deserialized result object if an error did not occur. * See {@link * ExpressRouteCrossConnectionsRoutesTableSummaryListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginListRoutesTableSummary(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginListRoutesTableSummary(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; beginListRoutesTableSummary(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the currently advertised routes table associated with the express route * cross connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginListRoutesTableWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the currently advertised routes table associated with the express route * cross connection in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {string} devicePath The path of the device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCircuitsRoutesTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCircuitsRoutesTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCircuitsRoutesTableListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginListRoutesTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginListRoutesTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, callback: ServiceCallback): void; beginListRoutesTable(resourceGroupName: string, crossConnectionName: string, peeringName: string, devicePath: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves all the ExpressRouteCrossConnections in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnectionListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves all the ExpressRouteCrossConnections in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnectionListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRouteCrossConnectionPeerings * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRouteCrossConnectionPeerings { /** * Gets all peerings in a specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all peerings in a specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionPeeringList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionPeeringList} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnectionPeeringList} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, crossConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, crossConnectionName: string, callback: ServiceCallback): void; list(resourceGroupName: string, crossConnectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified peering from the ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified peering from the ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, crossConnectionName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, crossConnectionName: string, peeringName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, crossConnectionName: string, peeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified peering for the ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified peering for the ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionPeering} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnectionPeering} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, crossConnectionName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, crossConnectionName: string, peeringName: string, callback: ServiceCallback): void; get(resourceGroupName: string, crossConnectionName: string, peeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {object} peeringParameters Parameters supplied to the create or * update ExpressRouteCrossConnection peering operation. * * @param {string} [peeringParameters.peeringType] The peering type. Possible * values include: 'AzurePublicPeering', 'AzurePrivatePeering', * 'MicrosoftPeering' * * @param {string} [peeringParameters.state] The peering state. Possible values * include: 'Disabled', 'Enabled' * * @param {number} [peeringParameters.peerASN] The peer ASN. * * @param {string} [peeringParameters.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} [peeringParameters.secondaryPeerAddressPrefix] The secondary * address prefix. * * @param {string} [peeringParameters.sharedKey] The shared key. * * @param {number} [peeringParameters.vlanId] The VLAN ID. * * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager * Etag. * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * * @param {object} [peeringParameters.ipv6PeeringConfig] The IPv6 peering * configuration. * * @param {string} * [peeringParameters.ipv6PeeringConfig.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} * [peeringParameters.ipv6PeeringConfig.secondaryPeerAddressPrefix] The * secondary address prefix. * * @param {object} [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig] * The Microsoft peering configuration. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] * The reference of AdvertisedPublicPrefixes. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] * The communities of bgp peering. Specified for microsoft peering * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The * legacy mode of the peering. * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.customerASN] The * CustomerASN of the peering. * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] * The RoutingRegistryName of the configuration. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter] The * reference of the RouteFilter resource. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A * collection of references to express route circuit peerings. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.location] * Resource location. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter.tags] * Resource tags. * * @param {string} [peeringParameters.ipv6PeeringConfig.state] The state of * peering. Possible values are: 'Disabled' and 'Enabled'. Possible values * include: 'Disabled', 'Enabled' * * @param {string} [peeringParameters.name] Gets name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [peeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, peeringParameters: models.ExpressRouteCrossConnectionPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {object} peeringParameters Parameters supplied to the create or * update ExpressRouteCrossConnection peering operation. * * @param {string} [peeringParameters.peeringType] The peering type. Possible * values include: 'AzurePublicPeering', 'AzurePrivatePeering', * 'MicrosoftPeering' * * @param {string} [peeringParameters.state] The peering state. Possible values * include: 'Disabled', 'Enabled' * * @param {number} [peeringParameters.peerASN] The peer ASN. * * @param {string} [peeringParameters.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} [peeringParameters.secondaryPeerAddressPrefix] The secondary * address prefix. * * @param {string} [peeringParameters.sharedKey] The shared key. * * @param {number} [peeringParameters.vlanId] The VLAN ID. * * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager * Etag. * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * * @param {object} [peeringParameters.ipv6PeeringConfig] The IPv6 peering * configuration. * * @param {string} * [peeringParameters.ipv6PeeringConfig.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} * [peeringParameters.ipv6PeeringConfig.secondaryPeerAddressPrefix] The * secondary address prefix. * * @param {object} [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig] * The Microsoft peering configuration. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] * The reference of AdvertisedPublicPrefixes. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] * The communities of bgp peering. Specified for microsoft peering * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The * legacy mode of the peering. * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.customerASN] The * CustomerASN of the peering. * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] * The RoutingRegistryName of the configuration. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter] The * reference of the RouteFilter resource. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A * collection of references to express route circuit peerings. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.location] * Resource location. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter.tags] * Resource tags. * * @param {string} [peeringParameters.ipv6PeeringConfig.state] The state of * peering. Possible values are: 'Disabled' and 'Enabled'. Possible values * include: 'Disabled', 'Enabled' * * @param {string} [peeringParameters.name] Gets name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [peeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionPeering} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnectionPeering} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, crossConnectionName: string, peeringName: string, peeringParameters: models.ExpressRouteCrossConnectionPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, crossConnectionName: string, peeringName: string, peeringParameters: models.ExpressRouteCrossConnectionPeering, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, crossConnectionName: string, peeringName: string, peeringParameters: models.ExpressRouteCrossConnectionPeering, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified peering from the ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified peering from the ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, crossConnectionName: string, peeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, crossConnectionName: string, peeringName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, crossConnectionName: string, peeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {object} peeringParameters Parameters supplied to the create or * update ExpressRouteCrossConnection peering operation. * * @param {string} [peeringParameters.peeringType] The peering type. Possible * values include: 'AzurePublicPeering', 'AzurePrivatePeering', * 'MicrosoftPeering' * * @param {string} [peeringParameters.state] The peering state. Possible values * include: 'Disabled', 'Enabled' * * @param {number} [peeringParameters.peerASN] The peer ASN. * * @param {string} [peeringParameters.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} [peeringParameters.secondaryPeerAddressPrefix] The secondary * address prefix. * * @param {string} [peeringParameters.sharedKey] The shared key. * * @param {number} [peeringParameters.vlanId] The VLAN ID. * * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager * Etag. * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * * @param {object} [peeringParameters.ipv6PeeringConfig] The IPv6 peering * configuration. * * @param {string} * [peeringParameters.ipv6PeeringConfig.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} * [peeringParameters.ipv6PeeringConfig.secondaryPeerAddressPrefix] The * secondary address prefix. * * @param {object} [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig] * The Microsoft peering configuration. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] * The reference of AdvertisedPublicPrefixes. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] * The communities of bgp peering. Specified for microsoft peering * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The * legacy mode of the peering. * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.customerASN] The * CustomerASN of the peering. * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] * The RoutingRegistryName of the configuration. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter] The * reference of the RouteFilter resource. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A * collection of references to express route circuit peerings. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.location] * Resource location. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter.tags] * Resource tags. * * @param {string} [peeringParameters.ipv6PeeringConfig.state] The state of * peering. Possible values are: 'Disabled' and 'Enabled'. Possible values * include: 'Disabled', 'Enabled' * * @param {string} [peeringParameters.name] Gets name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [peeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, crossConnectionName: string, peeringName: string, peeringParameters: models.ExpressRouteCrossConnectionPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a peering in the specified ExpressRouteCrossConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} crossConnectionName The name of the * ExpressRouteCrossConnection. * * @param {string} peeringName The name of the peering. * * @param {object} peeringParameters Parameters supplied to the create or * update ExpressRouteCrossConnection peering operation. * * @param {string} [peeringParameters.peeringType] The peering type. Possible * values include: 'AzurePublicPeering', 'AzurePrivatePeering', * 'MicrosoftPeering' * * @param {string} [peeringParameters.state] The peering state. Possible values * include: 'Disabled', 'Enabled' * * @param {number} [peeringParameters.peerASN] The peer ASN. * * @param {string} [peeringParameters.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} [peeringParameters.secondaryPeerAddressPrefix] The secondary * address prefix. * * @param {string} [peeringParameters.sharedKey] The shared key. * * @param {number} [peeringParameters.vlanId] The VLAN ID. * * @param {object} [peeringParameters.microsoftPeeringConfig] The Microsoft * peering configuration. * * @param {string} [peeringParameters.gatewayManagerEtag] The GatewayManager * Etag. * * @param {string} [peeringParameters.lastModifiedBy] Gets whether the provider * or the customer last modified the peering. * * @param {object} [peeringParameters.ipv6PeeringConfig] The IPv6 peering * configuration. * * @param {string} * [peeringParameters.ipv6PeeringConfig.primaryPeerAddressPrefix] The primary * address prefix. * * @param {string} * [peeringParameters.ipv6PeeringConfig.secondaryPeerAddressPrefix] The * secondary address prefix. * * @param {object} [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig] * The Microsoft peering configuration. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixes] * The reference of AdvertisedPublicPrefixes. * * @param {array} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedCommunities] * The communities of bgp peering. Specified for microsoft peering * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.advertisedPublicPrefixesState] * AdvertisedPublicPrefixState of the Peering resource. Possible values are * 'NotConfigured', 'Configuring', 'Configured', and 'ValidationNeeded'. * Possible values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded' * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.legacyMode] The * legacy mode of the peering. * * @param {number} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.customerASN] The * CustomerASN of the peering. * * @param {string} * [peeringParameters.ipv6PeeringConfig.microsoftPeeringConfig.routingRegistryName] * The RoutingRegistryName of the configuration. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter] The * reference of the RouteFilter resource. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.rules] * Collection of RouteFilterRules contained within a route filter. * * @param {array} [peeringParameters.ipv6PeeringConfig.routeFilter.peerings] A * collection of references to express route circuit peerings. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.id] * Resource ID. * * @param {string} [peeringParameters.ipv6PeeringConfig.routeFilter.location] * Resource location. * * @param {object} [peeringParameters.ipv6PeeringConfig.routeFilter.tags] * Resource tags. * * @param {string} [peeringParameters.ipv6PeeringConfig.state] The state of * peering. Possible values are: 'Disabled' and 'Enabled'. Possible values * include: 'Disabled', 'Enabled' * * @param {string} [peeringParameters.name] Gets name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [peeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionPeering} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnectionPeering} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, crossConnectionName: string, peeringName: string, peeringParameters: models.ExpressRouteCrossConnectionPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, crossConnectionName: string, peeringName: string, peeringParameters: models.ExpressRouteCrossConnectionPeering, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, crossConnectionName: string, peeringName: string, peeringParameters: models.ExpressRouteCrossConnectionPeering, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all peerings in a specified ExpressRouteCrossConnection. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all peerings in a specified ExpressRouteCrossConnection. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteCrossConnectionPeeringList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteCrossConnectionPeeringList} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteCrossConnectionPeeringList} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRouteGateways * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRouteGateways { /** * Lists ExpressRoute gateways under a given subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listBySubscriptionWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists ExpressRoute gateways under a given subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteGatewayList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteGatewayList} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteGatewayList} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listBySubscription(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listBySubscription(callback: ServiceCallback): void; listBySubscription(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists ExpressRoute gateways in a given resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists ExpressRoute gateways in a given resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteGatewayList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteGatewayList} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteGatewayList} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a ExpressRoute gateway in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} putExpressRouteGatewayParameters Parameters required in an * ExpressRoute gateway PUT operation. * * @param {object} [putExpressRouteGatewayParameters.autoScaleConfiguration] * Configuration for auto scaling. * * @param {object} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds] Minimum and * maximum number of scale units to deploy. * * @param {number} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds.min] Minimum * number of scale units deployed for ExpressRoute gateway. * * @param {number} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds.max] Maximum * number of scale units deployed for ExpressRoute gateway. * * @param {string} [putExpressRouteGatewayParameters.provisioningState] The * provisioning state of the resource. Possible values include: 'Succeeded', * 'Updating', 'Deleting', 'Failed' * * @param {object} putExpressRouteGatewayParameters.virtualHub The Virtual Hub * where the ExpressRoute gateway is or will be deployed. * * @param {string} [putExpressRouteGatewayParameters.virtualHub.id] The * resource URI for the Virtual Hub where the ExpressRoute gateway is or will * be deployed. The Virtual Hub resource and the ExpressRoute gateway resource * reside in the same subscription. * * @param {string} [putExpressRouteGatewayParameters.id] Resource ID. * * @param {string} [putExpressRouteGatewayParameters.location] Resource * location. * * @param {object} [putExpressRouteGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, putExpressRouteGatewayParameters: models.ExpressRouteGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a ExpressRoute gateway in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} putExpressRouteGatewayParameters Parameters required in an * ExpressRoute gateway PUT operation. * * @param {object} [putExpressRouteGatewayParameters.autoScaleConfiguration] * Configuration for auto scaling. * * @param {object} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds] Minimum and * maximum number of scale units to deploy. * * @param {number} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds.min] Minimum * number of scale units deployed for ExpressRoute gateway. * * @param {number} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds.max] Maximum * number of scale units deployed for ExpressRoute gateway. * * @param {string} [putExpressRouteGatewayParameters.provisioningState] The * provisioning state of the resource. Possible values include: 'Succeeded', * 'Updating', 'Deleting', 'Failed' * * @param {object} putExpressRouteGatewayParameters.virtualHub The Virtual Hub * where the ExpressRoute gateway is or will be deployed. * * @param {string} [putExpressRouteGatewayParameters.virtualHub.id] The * resource URI for the Virtual Hub where the ExpressRoute gateway is or will * be deployed. The Virtual Hub resource and the ExpressRoute gateway resource * reside in the same subscription. * * @param {string} [putExpressRouteGatewayParameters.id] Resource ID. * * @param {string} [putExpressRouteGatewayParameters.location] Resource * location. * * @param {object} [putExpressRouteGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteGateway} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, putExpressRouteGatewayParameters: models.ExpressRouteGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, putExpressRouteGatewayParameters: models.ExpressRouteGateway, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, putExpressRouteGatewayParameters: models.ExpressRouteGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Fetches the details of a ExpressRoute gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Fetches the details of a ExpressRoute gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteGateway} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, expressRouteGatewayName: string, callback: ServiceCallback): void; get(resourceGroupName: string, expressRouteGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified ExpressRoute gateway in a resource group. An * ExpressRoute gateway resource can only be deleted when there are no * connection subresources. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified ExpressRoute gateway in a resource group. An * ExpressRoute gateway resource can only be deleted when there are no * connection subresources. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, expressRouteGatewayName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, expressRouteGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a ExpressRoute gateway in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} putExpressRouteGatewayParameters Parameters required in an * ExpressRoute gateway PUT operation. * * @param {object} [putExpressRouteGatewayParameters.autoScaleConfiguration] * Configuration for auto scaling. * * @param {object} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds] Minimum and * maximum number of scale units to deploy. * * @param {number} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds.min] Minimum * number of scale units deployed for ExpressRoute gateway. * * @param {number} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds.max] Maximum * number of scale units deployed for ExpressRoute gateway. * * @param {string} [putExpressRouteGatewayParameters.provisioningState] The * provisioning state of the resource. Possible values include: 'Succeeded', * 'Updating', 'Deleting', 'Failed' * * @param {object} putExpressRouteGatewayParameters.virtualHub The Virtual Hub * where the ExpressRoute gateway is or will be deployed. * * @param {string} [putExpressRouteGatewayParameters.virtualHub.id] The * resource URI for the Virtual Hub where the ExpressRoute gateway is or will * be deployed. The Virtual Hub resource and the ExpressRoute gateway resource * reside in the same subscription. * * @param {string} [putExpressRouteGatewayParameters.id] Resource ID. * * @param {string} [putExpressRouteGatewayParameters.location] Resource * location. * * @param {object} [putExpressRouteGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, putExpressRouteGatewayParameters: models.ExpressRouteGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a ExpressRoute gateway in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} putExpressRouteGatewayParameters Parameters required in an * ExpressRoute gateway PUT operation. * * @param {object} [putExpressRouteGatewayParameters.autoScaleConfiguration] * Configuration for auto scaling. * * @param {object} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds] Minimum and * maximum number of scale units to deploy. * * @param {number} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds.min] Minimum * number of scale units deployed for ExpressRoute gateway. * * @param {number} * [putExpressRouteGatewayParameters.autoScaleConfiguration.bounds.max] Maximum * number of scale units deployed for ExpressRoute gateway. * * @param {string} [putExpressRouteGatewayParameters.provisioningState] The * provisioning state of the resource. Possible values include: 'Succeeded', * 'Updating', 'Deleting', 'Failed' * * @param {object} putExpressRouteGatewayParameters.virtualHub The Virtual Hub * where the ExpressRoute gateway is or will be deployed. * * @param {string} [putExpressRouteGatewayParameters.virtualHub.id] The * resource URI for the Virtual Hub where the ExpressRoute gateway is or will * be deployed. The Virtual Hub resource and the ExpressRoute gateway resource * reside in the same subscription. * * @param {string} [putExpressRouteGatewayParameters.id] Resource ID. * * @param {string} [putExpressRouteGatewayParameters.location] Resource * location. * * @param {object} [putExpressRouteGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteGateway} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, putExpressRouteGatewayParameters: models.ExpressRouteGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, putExpressRouteGatewayParameters: models.ExpressRouteGateway, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, putExpressRouteGatewayParameters: models.ExpressRouteGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified ExpressRoute gateway in a resource group. An * ExpressRoute gateway resource can only be deleted when there are no * connection subresources. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified ExpressRoute gateway in a resource group. An * ExpressRoute gateway resource can only be deleted when there are no * connection subresources. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, expressRouteGatewayName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, expressRouteGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRouteConnections * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRouteConnections { /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute * circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {string} connectionName The name of the connection subresource. * * @param {object} putExpressRouteConnectionParameters Parameters required in * an ExpressRouteConnection PUT operation. * * @param {string} [putExpressRouteConnectionParameters.provisioningState] The * provisioning state of the resource. Possible values include: 'Succeeded', * 'Updating', 'Deleting', 'Failed' * * @param {object} * putExpressRouteConnectionParameters.expressRouteCircuitPeering The * ExpressRoute circuit peering. * * @param {string} * [putExpressRouteConnectionParameters.expressRouteCircuitPeering.id] The ID * of the ExpressRoute circuit peering. * * @param {string} [putExpressRouteConnectionParameters.authorizationKey] * Authorization key to establish the connection. * * @param {number} [putExpressRouteConnectionParameters.routingWeight] The * routing weight associated to the connection. * * @param {string} putExpressRouteConnectionParameters.name The name of the * resource. * * @param {string} [putExpressRouteConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, putExpressRouteConnectionParameters: models.ExpressRouteConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute * circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {string} connectionName The name of the connection subresource. * * @param {object} putExpressRouteConnectionParameters Parameters required in * an ExpressRouteConnection PUT operation. * * @param {string} [putExpressRouteConnectionParameters.provisioningState] The * provisioning state of the resource. Possible values include: 'Succeeded', * 'Updating', 'Deleting', 'Failed' * * @param {object} * putExpressRouteConnectionParameters.expressRouteCircuitPeering The * ExpressRoute circuit peering. * * @param {string} * [putExpressRouteConnectionParameters.expressRouteCircuitPeering.id] The ID * of the ExpressRoute circuit peering. * * @param {string} [putExpressRouteConnectionParameters.authorizationKey] * Authorization key to establish the connection. * * @param {number} [putExpressRouteConnectionParameters.routingWeight] The * routing weight associated to the connection. * * @param {string} putExpressRouteConnectionParameters.name The name of the * resource. * * @param {string} [putExpressRouteConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, putExpressRouteConnectionParameters: models.ExpressRouteConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, putExpressRouteConnectionParameters: models.ExpressRouteConnection, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, putExpressRouteConnectionParameters: models.ExpressRouteConnection, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified ExpressRouteConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {string} connectionName The name of the ExpressRoute connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified ExpressRouteConnection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {string} connectionName The name of the ExpressRoute connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, callback: ServiceCallback): void; get(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a connection to a ExpressRoute circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {string} connectionName The name of the connection subresource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a connection to a ExpressRoute circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {string} connectionName The name of the connection subresource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists ExpressRouteConnections. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists ExpressRouteConnections. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteConnectionList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteConnectionList} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteConnectionList} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, expressRouteGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, expressRouteGatewayName: string, callback: ServiceCallback): void; list(resourceGroupName: string, expressRouteGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute * circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {string} connectionName The name of the connection subresource. * * @param {object} putExpressRouteConnectionParameters Parameters required in * an ExpressRouteConnection PUT operation. * * @param {string} [putExpressRouteConnectionParameters.provisioningState] The * provisioning state of the resource. Possible values include: 'Succeeded', * 'Updating', 'Deleting', 'Failed' * * @param {object} * putExpressRouteConnectionParameters.expressRouteCircuitPeering The * ExpressRoute circuit peering. * * @param {string} * [putExpressRouteConnectionParameters.expressRouteCircuitPeering.id] The ID * of the ExpressRoute circuit peering. * * @param {string} [putExpressRouteConnectionParameters.authorizationKey] * Authorization key to establish the connection. * * @param {number} [putExpressRouteConnectionParameters.routingWeight] The * routing weight associated to the connection. * * @param {string} putExpressRouteConnectionParameters.name The name of the * resource. * * @param {string} [putExpressRouteConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, putExpressRouteConnectionParameters: models.ExpressRouteConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a connection between an ExpressRoute gateway and an ExpressRoute * circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {string} connectionName The name of the connection subresource. * * @param {object} putExpressRouteConnectionParameters Parameters required in * an ExpressRouteConnection PUT operation. * * @param {string} [putExpressRouteConnectionParameters.provisioningState] The * provisioning state of the resource. Possible values include: 'Succeeded', * 'Updating', 'Deleting', 'Failed' * * @param {object} * putExpressRouteConnectionParameters.expressRouteCircuitPeering The * ExpressRoute circuit peering. * * @param {string} * [putExpressRouteConnectionParameters.expressRouteCircuitPeering.id] The ID * of the ExpressRoute circuit peering. * * @param {string} [putExpressRouteConnectionParameters.authorizationKey] * Authorization key to establish the connection. * * @param {number} [putExpressRouteConnectionParameters.routingWeight] The * routing weight associated to the connection. * * @param {string} putExpressRouteConnectionParameters.name The name of the * resource. * * @param {string} [putExpressRouteConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteConnection} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, putExpressRouteConnectionParameters: models.ExpressRouteConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, putExpressRouteConnectionParameters: models.ExpressRouteConnection, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, putExpressRouteConnectionParameters: models.ExpressRouteConnection, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a connection to a ExpressRoute circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {string} connectionName The name of the connection subresource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a connection to a ExpressRoute circuit. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRouteGatewayName The name of the ExpressRoute * gateway. * * @param {string} connectionName The name of the connection subresource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, expressRouteGatewayName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRoutePortsLocations * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRoutePortsLocations { /** * Retrieves all ExpressRoutePort peering locations. Does not return available * bandwidths for each location. Available bandwidths can only be obtained when * retrieving a specific peering location. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves all ExpressRoutePort peering locations. Does not return available * bandwidths for each location. Available bandwidths can only be obtained when * retrieving a specific peering location. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePortsLocationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePortsLocationListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePortsLocationListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves a single ExpressRoutePort peering location, including the list of * available bandwidths available at said peering location. * * @param {string} locationName Name of the requested ExpressRoutePort peering * location. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(locationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves a single ExpressRoutePort peering location, including the list of * available bandwidths available at said peering location. * * @param {string} locationName Name of the requested ExpressRoutePort peering * location. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePortsLocation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePortsLocation} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePortsLocation} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(locationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(locationName: string, callback: ServiceCallback): void; get(locationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves all ExpressRoutePort peering locations. Does not return available * bandwidths for each location. Available bandwidths can only be obtained when * retrieving a specific peering location. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves all ExpressRoutePort peering locations. Does not return available * bandwidths for each location. Available bandwidths can only be obtained when * retrieving a specific peering location. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePortsLocationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePortsLocationListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePortsLocationListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRoutePorts * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRoutePorts { /** * Deletes the specified ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, expressRoutePortName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, expressRoutePortName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves the requested ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of ExpressRoutePort. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the requested ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of ExpressRoutePort. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePort} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePort} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePort} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, expressRoutePortName: string, callback: ServiceCallback): void; get(resourceGroupName: string, expressRoutePortName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates the specified ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} parameters Parameters supplied to the create * ExpressRoutePort operation. * * @param {string} [parameters.peeringLocation] The name of the peering * location that the ExpressRoutePort is mapped to physically. * * @param {number} [parameters.bandwidthInGbps] Bandwidth of procured ports in * Gbps * * @param {string} [parameters.encapsulation] Encapsulation method on physical * ports. Possible values include: 'Dot1Q', 'QinQ' * * @param {array} [parameters.links] ExpressRouteLink Sub-Resources The set of * physical links of the ExpressRoutePort resource * * @param {string} [parameters.resourceGuid] The resource GUID property of the * ExpressRoutePort resource. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, parameters: models.ExpressRoutePort, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates the specified ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} parameters Parameters supplied to the create * ExpressRoutePort operation. * * @param {string} [parameters.peeringLocation] The name of the peering * location that the ExpressRoutePort is mapped to physically. * * @param {number} [parameters.bandwidthInGbps] Bandwidth of procured ports in * Gbps * * @param {string} [parameters.encapsulation] Encapsulation method on physical * ports. Possible values include: 'Dot1Q', 'QinQ' * * @param {array} [parameters.links] ExpressRouteLink Sub-Resources The set of * physical links of the ExpressRoutePort resource * * @param {string} [parameters.resourceGuid] The resource GUID property of the * ExpressRoutePort resource. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePort} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePort} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePort} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, expressRoutePortName: string, parameters: models.ExpressRoutePort, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, expressRoutePortName: string, parameters: models.ExpressRoutePort, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, expressRoutePortName: string, parameters: models.ExpressRoutePort, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Update ExpressRoutePort tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} parameters Parameters supplied to update ExpressRoutePort * resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Update ExpressRoutePort tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} parameters Parameters supplied to update ExpressRoutePort * resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePort} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePort} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePort} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, expressRoutePortName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, expressRoutePortName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, expressRoutePortName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * List all the ExpressRoutePort resources in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List all the ExpressRoutePort resources in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePortListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePortListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePortListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * List all the ExpressRoutePort resources in the specified subscription * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List all the ExpressRoutePort resources in the specified subscription * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePortListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePortListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePortListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, expressRoutePortName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, expressRoutePortName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates the specified ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} parameters Parameters supplied to the create * ExpressRoutePort operation. * * @param {string} [parameters.peeringLocation] The name of the peering * location that the ExpressRoutePort is mapped to physically. * * @param {number} [parameters.bandwidthInGbps] Bandwidth of procured ports in * Gbps * * @param {string} [parameters.encapsulation] Encapsulation method on physical * ports. Possible values include: 'Dot1Q', 'QinQ' * * @param {array} [parameters.links] ExpressRouteLink Sub-Resources The set of * physical links of the ExpressRoutePort resource * * @param {string} [parameters.resourceGuid] The resource GUID property of the * ExpressRoutePort resource. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, parameters: models.ExpressRoutePort, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates the specified ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} parameters Parameters supplied to the create * ExpressRoutePort operation. * * @param {string} [parameters.peeringLocation] The name of the peering * location that the ExpressRoutePort is mapped to physically. * * @param {number} [parameters.bandwidthInGbps] Bandwidth of procured ports in * Gbps * * @param {string} [parameters.encapsulation] Encapsulation method on physical * ports. Possible values include: 'Dot1Q', 'QinQ' * * @param {array} [parameters.links] ExpressRouteLink Sub-Resources The set of * physical links of the ExpressRoutePort resource * * @param {string} [parameters.resourceGuid] The resource GUID property of the * ExpressRoutePort resource. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePort} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePort} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePort} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, expressRoutePortName: string, parameters: models.ExpressRoutePort, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, expressRoutePortName: string, parameters: models.ExpressRoutePort, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, expressRoutePortName: string, parameters: models.ExpressRoutePort, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Update ExpressRoutePort tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} parameters Parameters supplied to update ExpressRoutePort * resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Update ExpressRoutePort tags * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} parameters Parameters supplied to update ExpressRoutePort * resource tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePort} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePort} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePort} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, expressRoutePortName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, expressRoutePortName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, expressRoutePortName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * List all the ExpressRoutePort resources in the specified resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List all the ExpressRoutePort resources in the specified resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePortListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePortListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePortListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * List all the ExpressRoutePort resources in the specified subscription * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List all the ExpressRoutePort resources in the specified subscription * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRoutePortListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRoutePortListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRoutePortListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ExpressRouteLinks * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ExpressRouteLinks { /** * Retrieves the specified ExpressRouteLink resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {string} linkName The name of the ExpressRouteLink resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, linkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the specified ExpressRouteLink resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {string} linkName The name of the ExpressRouteLink resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteLink} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteLink} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteLink} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, expressRoutePortName: string, linkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, expressRoutePortName: string, linkName: string, callback: ServiceCallback): void; get(resourceGroupName: string, expressRoutePortName: string, linkName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieve the ExpressRouteLink sub-resources of the specified * ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve the ExpressRouteLink sub-resources of the specified * ExpressRoutePort resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} expressRoutePortName The name of the ExpressRoutePort * resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteLinkListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteLinkListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteLinkListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, expressRoutePortName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, expressRoutePortName: string, callback: ServiceCallback): void; list(resourceGroupName: string, expressRoutePortName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieve the ExpressRouteLink sub-resources of the specified * ExpressRoutePort resource. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve the ExpressRouteLink sub-resources of the specified * ExpressRoutePort resource. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ExpressRouteLinkListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ExpressRouteLinkListResult} [result] - The deserialized result object if an error did not occur. * See {@link ExpressRouteLinkListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * InterfaceEndpoints * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface InterfaceEndpoints { /** * Deletes the specified interface endpoint. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} interfaceEndpointName The name of the interface endpoint. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, interfaceEndpointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified interface endpoint. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} interfaceEndpointName The name of the interface endpoint. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, interfaceEndpointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, interfaceEndpointName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, interfaceEndpointName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified interface endpoint by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} interfaceEndpointName The name of the interface endpoint. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, interfaceEndpointName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified interface endpoint by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} interfaceEndpointName The name of the interface endpoint. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InterfaceEndpoint} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InterfaceEndpoint} [result] - The deserialized result object if an error did not occur. * See {@link InterfaceEndpoint} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, interfaceEndpointName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, interfaceEndpointName: string, callback: ServiceCallback): void; get(resourceGroupName: string, interfaceEndpointName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates an interface endpoint in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} interfaceEndpointName The name of the interface endpoint. * * @param {object} parameters Parameters supplied to the create or update * interface endpoint operation * * @param {string} [parameters.fqdn] A first-party service's FQDN that is * mapped to the private IP allocated via this interface endpoint. * * @param {object} [parameters.endpointService] A reference to the service * being brought into the virtual network. * * @param {string} [parameters.endpointService.id] A unique identifier of the * service being referenced by the interface endpoint. * * @param {object} [parameters.subnet] The ID of the subnet from which the * private IP will be allocated. * * @param {string} [parameters.subnet.addressPrefix] The address prefix for the * subnet. * * @param {array} [parameters.subnet.addressPrefixes] List of address prefixes * for the subnet. * * @param {object} [parameters.subnet.networkSecurityGroup] The reference of * the NetworkSecurityGroup resource. * * @param {array} [parameters.subnet.networkSecurityGroup.securityRules] A * collection of security rules of the network security group. * * @param {array} [parameters.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} [parameters.subnet.networkSecurityGroup.resourceGuid] The * resource GUID property of the network security group resource. * * @param {string} [parameters.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.subnet.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {string} [parameters.subnet.networkSecurityGroup.id] Resource ID. * * @param {string} [parameters.subnet.networkSecurityGroup.location] Resource * location. * * @param {object} [parameters.subnet.networkSecurityGroup.tags] Resource tags. * * @param {object} [parameters.subnet.routeTable] The reference of the * RouteTable resource. * * @param {array} [parameters.subnet.routeTable.routes] Collection of routes * contained within a route table. * * @param {boolean} [parameters.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} [parameters.subnet.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [parameters.subnet.routeTable.etag] Gets a unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.subnet.routeTable.id] Resource ID. * * @param {string} [parameters.subnet.routeTable.location] Resource location. * * @param {object} [parameters.subnet.routeTable.tags] Resource tags. * * @param {object} [parameters.subnet.natGateway] Nat gateway associated with * this subnet. * * @param {string} [parameters.subnet.natGateway.id] Resource ID. * * @param {array} [parameters.subnet.serviceEndpoints] An array of service * endpoints. * * @param {array} [parameters.subnet.serviceEndpointPolicies] An array of * service endpoint policies. * * @param {array} [parameters.subnet.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. * * @param {array} [parameters.subnet.serviceAssociationLinks] Gets an array of * references to services injecting into this subnet. * * @param {array} [parameters.subnet.delegations] Gets an array of references * to the delegations on the subnet. * * @param {string} [parameters.subnet.provisioningState] The provisioning state * of the resource. * * @param {string} [parameters.subnet.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [parameters.subnet.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.subnet.id] Resource ID. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, interfaceEndpointName: string, parameters: models.InterfaceEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates an interface endpoint in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} interfaceEndpointName The name of the interface endpoint. * * @param {object} parameters Parameters supplied to the create or update * interface endpoint operation * * @param {string} [parameters.fqdn] A first-party service's FQDN that is * mapped to the private IP allocated via this interface endpoint. * * @param {object} [parameters.endpointService] A reference to the service * being brought into the virtual network. * * @param {string} [parameters.endpointService.id] A unique identifier of the * service being referenced by the interface endpoint. * * @param {object} [parameters.subnet] The ID of the subnet from which the * private IP will be allocated. * * @param {string} [parameters.subnet.addressPrefix] The address prefix for the * subnet. * * @param {array} [parameters.subnet.addressPrefixes] List of address prefixes * for the subnet. * * @param {object} [parameters.subnet.networkSecurityGroup] The reference of * the NetworkSecurityGroup resource. * * @param {array} [parameters.subnet.networkSecurityGroup.securityRules] A * collection of security rules of the network security group. * * @param {array} [parameters.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} [parameters.subnet.networkSecurityGroup.resourceGuid] The * resource GUID property of the network security group resource. * * @param {string} [parameters.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.subnet.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {string} [parameters.subnet.networkSecurityGroup.id] Resource ID. * * @param {string} [parameters.subnet.networkSecurityGroup.location] Resource * location. * * @param {object} [parameters.subnet.networkSecurityGroup.tags] Resource tags. * * @param {object} [parameters.subnet.routeTable] The reference of the * RouteTable resource. * * @param {array} [parameters.subnet.routeTable.routes] Collection of routes * contained within a route table. * * @param {boolean} [parameters.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} [parameters.subnet.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [parameters.subnet.routeTable.etag] Gets a unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.subnet.routeTable.id] Resource ID. * * @param {string} [parameters.subnet.routeTable.location] Resource location. * * @param {object} [parameters.subnet.routeTable.tags] Resource tags. * * @param {object} [parameters.subnet.natGateway] Nat gateway associated with * this subnet. * * @param {string} [parameters.subnet.natGateway.id] Resource ID. * * @param {array} [parameters.subnet.serviceEndpoints] An array of service * endpoints. * * @param {array} [parameters.subnet.serviceEndpointPolicies] An array of * service endpoint policies. * * @param {array} [parameters.subnet.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. * * @param {array} [parameters.subnet.serviceAssociationLinks] Gets an array of * references to services injecting into this subnet. * * @param {array} [parameters.subnet.delegations] Gets an array of references * to the delegations on the subnet. * * @param {string} [parameters.subnet.provisioningState] The provisioning state * of the resource. * * @param {string} [parameters.subnet.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [parameters.subnet.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.subnet.id] Resource ID. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InterfaceEndpoint} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InterfaceEndpoint} [result] - The deserialized result object if an error did not occur. * See {@link InterfaceEndpoint} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, interfaceEndpointName: string, parameters: models.InterfaceEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, interfaceEndpointName: string, parameters: models.InterfaceEndpoint, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, interfaceEndpointName: string, parameters: models.InterfaceEndpoint, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all interface endpoints in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all interface endpoints in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InterfaceEndpointListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InterfaceEndpointListResult} [result] - The deserialized result object if an error did not occur. * See {@link InterfaceEndpointListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all interface endpoints in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listBySubscriptionWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all interface endpoints in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InterfaceEndpointListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InterfaceEndpointListResult} [result] - The deserialized result object if an error did not occur. * See {@link InterfaceEndpointListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listBySubscription(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listBySubscription(callback: ServiceCallback): void; listBySubscription(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified interface endpoint. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} interfaceEndpointName The name of the interface endpoint. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, interfaceEndpointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified interface endpoint. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} interfaceEndpointName The name of the interface endpoint. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, interfaceEndpointName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, interfaceEndpointName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, interfaceEndpointName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates an interface endpoint in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} interfaceEndpointName The name of the interface endpoint. * * @param {object} parameters Parameters supplied to the create or update * interface endpoint operation * * @param {string} [parameters.fqdn] A first-party service's FQDN that is * mapped to the private IP allocated via this interface endpoint. * * @param {object} [parameters.endpointService] A reference to the service * being brought into the virtual network. * * @param {string} [parameters.endpointService.id] A unique identifier of the * service being referenced by the interface endpoint. * * @param {object} [parameters.subnet] The ID of the subnet from which the * private IP will be allocated. * * @param {string} [parameters.subnet.addressPrefix] The address prefix for the * subnet. * * @param {array} [parameters.subnet.addressPrefixes] List of address prefixes * for the subnet. * * @param {object} [parameters.subnet.networkSecurityGroup] The reference of * the NetworkSecurityGroup resource. * * @param {array} [parameters.subnet.networkSecurityGroup.securityRules] A * collection of security rules of the network security group. * * @param {array} [parameters.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} [parameters.subnet.networkSecurityGroup.resourceGuid] The * resource GUID property of the network security group resource. * * @param {string} [parameters.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.subnet.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {string} [parameters.subnet.networkSecurityGroup.id] Resource ID. * * @param {string} [parameters.subnet.networkSecurityGroup.location] Resource * location. * * @param {object} [parameters.subnet.networkSecurityGroup.tags] Resource tags. * * @param {object} [parameters.subnet.routeTable] The reference of the * RouteTable resource. * * @param {array} [parameters.subnet.routeTable.routes] Collection of routes * contained within a route table. * * @param {boolean} [parameters.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} [parameters.subnet.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [parameters.subnet.routeTable.etag] Gets a unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.subnet.routeTable.id] Resource ID. * * @param {string} [parameters.subnet.routeTable.location] Resource location. * * @param {object} [parameters.subnet.routeTable.tags] Resource tags. * * @param {object} [parameters.subnet.natGateway] Nat gateway associated with * this subnet. * * @param {string} [parameters.subnet.natGateway.id] Resource ID. * * @param {array} [parameters.subnet.serviceEndpoints] An array of service * endpoints. * * @param {array} [parameters.subnet.serviceEndpointPolicies] An array of * service endpoint policies. * * @param {array} [parameters.subnet.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. * * @param {array} [parameters.subnet.serviceAssociationLinks] Gets an array of * references to services injecting into this subnet. * * @param {array} [parameters.subnet.delegations] Gets an array of references * to the delegations on the subnet. * * @param {string} [parameters.subnet.provisioningState] The provisioning state * of the resource. * * @param {string} [parameters.subnet.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [parameters.subnet.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.subnet.id] Resource ID. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, interfaceEndpointName: string, parameters: models.InterfaceEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates an interface endpoint in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} interfaceEndpointName The name of the interface endpoint. * * @param {object} parameters Parameters supplied to the create or update * interface endpoint operation * * @param {string} [parameters.fqdn] A first-party service's FQDN that is * mapped to the private IP allocated via this interface endpoint. * * @param {object} [parameters.endpointService] A reference to the service * being brought into the virtual network. * * @param {string} [parameters.endpointService.id] A unique identifier of the * service being referenced by the interface endpoint. * * @param {object} [parameters.subnet] The ID of the subnet from which the * private IP will be allocated. * * @param {string} [parameters.subnet.addressPrefix] The address prefix for the * subnet. * * @param {array} [parameters.subnet.addressPrefixes] List of address prefixes * for the subnet. * * @param {object} [parameters.subnet.networkSecurityGroup] The reference of * the NetworkSecurityGroup resource. * * @param {array} [parameters.subnet.networkSecurityGroup.securityRules] A * collection of security rules of the network security group. * * @param {array} [parameters.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} [parameters.subnet.networkSecurityGroup.resourceGuid] The * resource GUID property of the network security group resource. * * @param {string} [parameters.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.subnet.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {string} [parameters.subnet.networkSecurityGroup.id] Resource ID. * * @param {string} [parameters.subnet.networkSecurityGroup.location] Resource * location. * * @param {object} [parameters.subnet.networkSecurityGroup.tags] Resource tags. * * @param {object} [parameters.subnet.routeTable] The reference of the * RouteTable resource. * * @param {array} [parameters.subnet.routeTable.routes] Collection of routes * contained within a route table. * * @param {boolean} [parameters.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} [parameters.subnet.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [parameters.subnet.routeTable.etag] Gets a unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.subnet.routeTable.id] Resource ID. * * @param {string} [parameters.subnet.routeTable.location] Resource location. * * @param {object} [parameters.subnet.routeTable.tags] Resource tags. * * @param {object} [parameters.subnet.natGateway] Nat gateway associated with * this subnet. * * @param {string} [parameters.subnet.natGateway.id] Resource ID. * * @param {array} [parameters.subnet.serviceEndpoints] An array of service * endpoints. * * @param {array} [parameters.subnet.serviceEndpointPolicies] An array of * service endpoint policies. * * @param {array} [parameters.subnet.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. * * @param {array} [parameters.subnet.serviceAssociationLinks] Gets an array of * references to services injecting into this subnet. * * @param {array} [parameters.subnet.delegations] Gets an array of references * to the delegations on the subnet. * * @param {string} [parameters.subnet.provisioningState] The provisioning state * of the resource. * * @param {string} [parameters.subnet.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [parameters.subnet.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.subnet.id] Resource ID. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InterfaceEndpoint} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InterfaceEndpoint} [result] - The deserialized result object if an error did not occur. * See {@link InterfaceEndpoint} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, interfaceEndpointName: string, parameters: models.InterfaceEndpoint, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, interfaceEndpointName: string, parameters: models.InterfaceEndpoint, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, interfaceEndpointName: string, parameters: models.InterfaceEndpoint, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all interface endpoints in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all interface endpoints in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InterfaceEndpointListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InterfaceEndpointListResult} [result] - The deserialized result object if an error did not occur. * See {@link InterfaceEndpointListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all interface endpoints in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listBySubscriptionNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all interface endpoints in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InterfaceEndpointListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InterfaceEndpointListResult} [result] - The deserialized result object if an error did not occur. * See {@link InterfaceEndpointListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listBySubscriptionNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listBySubscriptionNext(nextPageLink: string, callback: ServiceCallback): void; listBySubscriptionNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * LoadBalancers * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface LoadBalancers { /** * Deletes the specified load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancer} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancer} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancer} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, loadBalancerName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; get(resourceGroupName: string, loadBalancerName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * * @param {object} [parameters.sku] The load balancer SKU. * * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible * values include: 'Basic', 'Standard' * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * * @param {array} [parameters.backendAddressPools] Collection of backend * address pools used by a load balancer * * @param {array} [parameters.loadBalancingRules] Object collection * representing the load balancing rules Gets the provisioning * * @param {array} [parameters.probes] Collection of probe objects used in the * load balancer * * @param {array} [parameters.inboundNatRules] Collection of inbound NAT Rules * used by a load balancer. Defining inbound NAT rules on your load balancer is * mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are * referenced from virtual machine scale sets. NICs that are associated with * individual virtual machines cannot reference an Inbound NAT pool. They have * to reference individual inbound NAT rules. * * @param {array} [parameters.inboundNatPools] Defines an external port range * for inbound NAT to a single backend port on NICs associated with a load * balancer. Inbound NAT rules are created automatically for each NIC * associated with the Load Balancer using an external port from this range. * Defining an Inbound NAT pool on your Load Balancer is mutually exclusive * with defining inbound Nat rules. Inbound NAT pools are referenced from * virtual machine scale sets. NICs that are associated with individual virtual * machines cannot reference an inbound NAT pool. They have to reference * individual inbound NAT rules. * * @param {array} [parameters.outboundRules] The outbound rules. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * load balancer resource. * * @param {string} [parameters.provisioningState] Gets the provisioning state * of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, parameters: models.LoadBalancer, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * * @param {object} [parameters.sku] The load balancer SKU. * * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible * values include: 'Basic', 'Standard' * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * * @param {array} [parameters.backendAddressPools] Collection of backend * address pools used by a load balancer * * @param {array} [parameters.loadBalancingRules] Object collection * representing the load balancing rules Gets the provisioning * * @param {array} [parameters.probes] Collection of probe objects used in the * load balancer * * @param {array} [parameters.inboundNatRules] Collection of inbound NAT Rules * used by a load balancer. Defining inbound NAT rules on your load balancer is * mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are * referenced from virtual machine scale sets. NICs that are associated with * individual virtual machines cannot reference an Inbound NAT pool. They have * to reference individual inbound NAT rules. * * @param {array} [parameters.inboundNatPools] Defines an external port range * for inbound NAT to a single backend port on NICs associated with a load * balancer. Inbound NAT rules are created automatically for each NIC * associated with the Load Balancer using an external port from this range. * Defining an Inbound NAT pool on your Load Balancer is mutually exclusive * with defining inbound Nat rules. Inbound NAT pools are referenced from * virtual machine scale sets. NICs that are associated with individual virtual * machines cannot reference an inbound NAT pool. They have to reference * individual inbound NAT rules. * * @param {array} [parameters.outboundRules] The outbound rules. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * load balancer resource. * * @param {string} [parameters.provisioningState] Gets the provisioning state * of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancer} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancer} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancer} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, loadBalancerName: string, parameters: models.LoadBalancer, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, loadBalancerName: string, parameters: models.LoadBalancer, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, loadBalancerName: string, parameters: models.LoadBalancer, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a load balancer tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} parameters Parameters supplied to update load balancer tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a load balancer tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} parameters Parameters supplied to update load balancer tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancer} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancer} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancer} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, loadBalancerName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, loadBalancerName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, loadBalancerName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the load balancers in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancers in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the load balancers in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancers in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * * @param {object} [parameters.sku] The load balancer SKU. * * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible * values include: 'Basic', 'Standard' * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * * @param {array} [parameters.backendAddressPools] Collection of backend * address pools used by a load balancer * * @param {array} [parameters.loadBalancingRules] Object collection * representing the load balancing rules Gets the provisioning * * @param {array} [parameters.probes] Collection of probe objects used in the * load balancer * * @param {array} [parameters.inboundNatRules] Collection of inbound NAT Rules * used by a load balancer. Defining inbound NAT rules on your load balancer is * mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are * referenced from virtual machine scale sets. NICs that are associated with * individual virtual machines cannot reference an Inbound NAT pool. They have * to reference individual inbound NAT rules. * * @param {array} [parameters.inboundNatPools] Defines an external port range * for inbound NAT to a single backend port on NICs associated with a load * balancer. Inbound NAT rules are created automatically for each NIC * associated with the Load Balancer using an external port from this range. * Defining an Inbound NAT pool on your Load Balancer is mutually exclusive * with defining inbound Nat rules. Inbound NAT pools are referenced from * virtual machine scale sets. NICs that are associated with individual virtual * machines cannot reference an inbound NAT pool. They have to reference * individual inbound NAT rules. * * @param {array} [parameters.outboundRules] The outbound rules. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * load balancer resource. * * @param {string} [parameters.provisioningState] Gets the provisioning state * of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, parameters: models.LoadBalancer, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} parameters Parameters supplied to the create or update load * balancer operation. * * @param {object} [parameters.sku] The load balancer SKU. * * @param {string} [parameters.sku.name] Name of a load balancer SKU. Possible * values include: 'Basic', 'Standard' * * @param {array} [parameters.frontendIPConfigurations] Object representing the * frontend IPs to be used for the load balancer * * @param {array} [parameters.backendAddressPools] Collection of backend * address pools used by a load balancer * * @param {array} [parameters.loadBalancingRules] Object collection * representing the load balancing rules Gets the provisioning * * @param {array} [parameters.probes] Collection of probe objects used in the * load balancer * * @param {array} [parameters.inboundNatRules] Collection of inbound NAT Rules * used by a load balancer. Defining inbound NAT rules on your load balancer is * mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are * referenced from virtual machine scale sets. NICs that are associated with * individual virtual machines cannot reference an Inbound NAT pool. They have * to reference individual inbound NAT rules. * * @param {array} [parameters.inboundNatPools] Defines an external port range * for inbound NAT to a single backend port on NICs associated with a load * balancer. Inbound NAT rules are created automatically for each NIC * associated with the Load Balancer using an external port from this range. * Defining an Inbound NAT pool on your Load Balancer is mutually exclusive * with defining inbound Nat rules. Inbound NAT pools are referenced from * virtual machine scale sets. NICs that are associated with individual virtual * machines cannot reference an inbound NAT pool. They have to reference * individual inbound NAT rules. * * @param {array} [parameters.outboundRules] The outbound rules. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * load balancer resource. * * @param {string} [parameters.provisioningState] Gets the provisioning state * of the PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancer} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancer} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancer} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, parameters: models.LoadBalancer, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, parameters: models.LoadBalancer, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, parameters: models.LoadBalancer, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a load balancer tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} parameters Parameters supplied to update load balancer tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a load balancer tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} parameters Parameters supplied to update load balancer tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancer} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancer} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancer} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, loadBalancerName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, loadBalancerName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, loadBalancerName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the load balancers in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancers in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the load balancers in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancers in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * LoadBalancerBackendAddressPools * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface LoadBalancerBackendAddressPools { /** * Gets all the load balancer backed address pools. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancer backed address pools. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerBackendAddressPoolListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerBackendAddressPoolListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerBackendAddressPoolListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets load balancer backend address pool. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} backendAddressPoolName The name of the backend address pool. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets load balancer backend address pool. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} backendAddressPoolName The name of the backend address pool. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {BackendAddressPool} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {BackendAddressPool} [result] - The deserialized result object if an error did not occur. * See {@link BackendAddressPool} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, callback: ServiceCallback): void; get(resourceGroupName: string, loadBalancerName: string, backendAddressPoolName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the load balancer backed address pools. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancer backed address pools. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerBackendAddressPoolListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerBackendAddressPoolListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerBackendAddressPoolListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * LoadBalancerFrontendIPConfigurations * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface LoadBalancerFrontendIPConfigurations { /** * Gets all the load balancer frontend IP configurations. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancer frontend IP configurations. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerFrontendIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerFrontendIPConfigurationListResult} [result] - The deserialized result object if an error did not occur. * See {@link * LoadBalancerFrontendIPConfigurationListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets load balancer frontend IP configuration. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} frontendIPConfigurationName The name of the frontend IP * configuration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets load balancer frontend IP configuration. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} frontendIPConfigurationName The name of the frontend IP * configuration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {FrontendIPConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {FrontendIPConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link FrontendIPConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, callback: ServiceCallback): void; get(resourceGroupName: string, loadBalancerName: string, frontendIPConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the load balancer frontend IP configurations. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancer frontend IP configurations. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerFrontendIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerFrontendIPConfigurationListResult} [result] - The deserialized result object if an error did not occur. * See {@link * LoadBalancerFrontendIPConfigurationListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * InboundNatRules * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface InboundNatRules { /** * Gets all the inbound nat rules in a load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the inbound nat rules in a load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InboundNatRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InboundNatRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link InboundNatRuleListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InboundNatRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InboundNatRule} [result] - The deserialized result object if an error did not occur. * See {@link InboundNatRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, callback: ServiceCallback): void; get(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} inboundNatRuleParameters Parameters supplied to the create * or update inbound nat rule operation. * * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A * reference to frontend IP addresses. * * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] * Resource ID. * * @param {string} [inboundNatRuleParameters.protocol] The reference to the * transport protocol used by the load balancing rule. Possible values include: * 'Udp', 'Tcp', 'All' * * @param {number} [inboundNatRuleParameters.frontendPort] The port for the * external endpoint. Port numbers for each rule must be unique within the Load * Balancer. Acceptable values range from 1 to 65534. * * @param {number} [inboundNatRuleParameters.backendPort] The port used for the * internal endpoint. Acceptable values range from 1 to 65535. * * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout * for the TCP idle connection. The value can be set between 4 and 30 minutes. * The default value is 4 minutes. This element is only used when the protocol * is set to TCP. * * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a * virtual machine's endpoint for the floating IP capability required to * configure a SQL AlwaysOn Availability Group. This setting is required when * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't * be changed after you create the endpoint. * * @param {boolean} [inboundNatRuleParameters.enableTcpReset] Receive * bidirectional TCP Reset on TCP flow idle timeout or unexpected connection * termination. This element is only used when the protocol is set to TCP. * * @param {string} [inboundNatRuleParameters.provisioningState] Gets the * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [inboundNatRuleParameters.name] Gets name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [inboundNatRuleParameters.etag] A unique read-only string * that changes whenever the resource is updated. * * @param {string} [inboundNatRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} inboundNatRuleParameters Parameters supplied to the create * or update inbound nat rule operation. * * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A * reference to frontend IP addresses. * * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] * Resource ID. * * @param {string} [inboundNatRuleParameters.protocol] The reference to the * transport protocol used by the load balancing rule. Possible values include: * 'Udp', 'Tcp', 'All' * * @param {number} [inboundNatRuleParameters.frontendPort] The port for the * external endpoint. Port numbers for each rule must be unique within the Load * Balancer. Acceptable values range from 1 to 65534. * * @param {number} [inboundNatRuleParameters.backendPort] The port used for the * internal endpoint. Acceptable values range from 1 to 65535. * * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout * for the TCP idle connection. The value can be set between 4 and 30 minutes. * The default value is 4 minutes. This element is only used when the protocol * is set to TCP. * * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a * virtual machine's endpoint for the floating IP capability required to * configure a SQL AlwaysOn Availability Group. This setting is required when * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't * be changed after you create the endpoint. * * @param {boolean} [inboundNatRuleParameters.enableTcpReset] Receive * bidirectional TCP Reset on TCP flow idle timeout or unexpected connection * termination. This element is only used when the protocol is set to TCP. * * @param {string} [inboundNatRuleParameters.provisioningState] Gets the * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [inboundNatRuleParameters.name] Gets name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [inboundNatRuleParameters.etag] A unique read-only string * that changes whenever the resource is updated. * * @param {string} [inboundNatRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InboundNatRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InboundNatRule} [result] - The deserialized result object if an error did not occur. * See {@link InboundNatRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} inboundNatRuleParameters Parameters supplied to the create * or update inbound nat rule operation. * * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A * reference to frontend IP addresses. * * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] * Resource ID. * * @param {string} [inboundNatRuleParameters.protocol] The reference to the * transport protocol used by the load balancing rule. Possible values include: * 'Udp', 'Tcp', 'All' * * @param {number} [inboundNatRuleParameters.frontendPort] The port for the * external endpoint. Port numbers for each rule must be unique within the Load * Balancer. Acceptable values range from 1 to 65534. * * @param {number} [inboundNatRuleParameters.backendPort] The port used for the * internal endpoint. Acceptable values range from 1 to 65535. * * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout * for the TCP idle connection. The value can be set between 4 and 30 minutes. * The default value is 4 minutes. This element is only used when the protocol * is set to TCP. * * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a * virtual machine's endpoint for the floating IP capability required to * configure a SQL AlwaysOn Availability Group. This setting is required when * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't * be changed after you create the endpoint. * * @param {boolean} [inboundNatRuleParameters.enableTcpReset] Receive * bidirectional TCP Reset on TCP flow idle timeout or unexpected connection * termination. This element is only used when the protocol is set to TCP. * * @param {string} [inboundNatRuleParameters.provisioningState] Gets the * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [inboundNatRuleParameters.name] Gets name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [inboundNatRuleParameters.etag] A unique read-only string * that changes whenever the resource is updated. * * @param {string} [inboundNatRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a load balancer inbound nat rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} inboundNatRuleName The name of the inbound nat rule. * * @param {object} inboundNatRuleParameters Parameters supplied to the create * or update inbound nat rule operation. * * @param {object} [inboundNatRuleParameters.frontendIPConfiguration] A * reference to frontend IP addresses. * * @param {string} [inboundNatRuleParameters.frontendIPConfiguration.id] * Resource ID. * * @param {string} [inboundNatRuleParameters.protocol] The reference to the * transport protocol used by the load balancing rule. Possible values include: * 'Udp', 'Tcp', 'All' * * @param {number} [inboundNatRuleParameters.frontendPort] The port for the * external endpoint. Port numbers for each rule must be unique within the Load * Balancer. Acceptable values range from 1 to 65534. * * @param {number} [inboundNatRuleParameters.backendPort] The port used for the * internal endpoint. Acceptable values range from 1 to 65535. * * @param {number} [inboundNatRuleParameters.idleTimeoutInMinutes] The timeout * for the TCP idle connection. The value can be set between 4 and 30 minutes. * The default value is 4 minutes. This element is only used when the protocol * is set to TCP. * * @param {boolean} [inboundNatRuleParameters.enableFloatingIP] Configures a * virtual machine's endpoint for the floating IP capability required to * configure a SQL AlwaysOn Availability Group. This setting is required when * using the SQL AlwaysOn Availability Groups in SQL server. This setting can't * be changed after you create the endpoint. * * @param {boolean} [inboundNatRuleParameters.enableTcpReset] Receive * bidirectional TCP Reset on TCP flow idle timeout or unexpected connection * termination. This element is only used when the protocol is set to TCP. * * @param {string} [inboundNatRuleParameters.provisioningState] Gets the * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [inboundNatRuleParameters.name] Gets name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [inboundNatRuleParameters.etag] A unique read-only string * that changes whenever the resource is updated. * * @param {string} [inboundNatRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InboundNatRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InboundNatRule} [result] - The deserialized result object if an error did not occur. * See {@link InboundNatRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, loadBalancerName: string, inboundNatRuleName: string, inboundNatRuleParameters: models.InboundNatRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the inbound nat rules in a load balancer. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the inbound nat rules in a load balancer. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {InboundNatRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {InboundNatRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link InboundNatRuleListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * LoadBalancerLoadBalancingRules * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface LoadBalancerLoadBalancingRules { /** * Gets all the load balancing rules in a load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancing rules in a load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerLoadBalancingRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerLoadBalancingRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerLoadBalancingRuleListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified load balancer load balancing rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} loadBalancingRuleName The name of the load balancing rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified load balancer load balancing rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} loadBalancingRuleName The name of the load balancing rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancingRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancingRule} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancingRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, callback: ServiceCallback): void; get(resourceGroupName: string, loadBalancerName: string, loadBalancingRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the load balancing rules in a load balancer. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancing rules in a load balancer. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerLoadBalancingRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerLoadBalancingRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerLoadBalancingRuleListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * LoadBalancerOutboundRules * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface LoadBalancerOutboundRules { /** * Gets all the outbound rules in a load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the outbound rules in a load balancer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerOutboundRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerOutboundRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerOutboundRuleListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified load balancer outbound rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} outboundRuleName The name of the outbound rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified load balancer outbound rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} outboundRuleName The name of the outbound rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {OutboundRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {OutboundRule} [result] - The deserialized result object if an error did not occur. * See {@link OutboundRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, callback: ServiceCallback): void; get(resourceGroupName: string, loadBalancerName: string, outboundRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the outbound rules in a load balancer. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the outbound rules in a load balancer. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerOutboundRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerOutboundRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerOutboundRuleListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * LoadBalancerNetworkInterfaces * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface LoadBalancerNetworkInterfaces { /** * Gets associated load balancer network interfaces. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets associated load balancer network interfaces. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets associated load balancer network interfaces. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets associated load balancer network interfaces. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * LoadBalancerProbes * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface LoadBalancerProbes { /** * Gets all the load balancer probes. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancer probes. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerProbeListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerProbeListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerProbeListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, loadBalancerName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, loadBalancerName: string, callback: ServiceCallback): void; list(resourceGroupName: string, loadBalancerName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets load balancer probe. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} probeName The name of the probe. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, loadBalancerName: string, probeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets load balancer probe. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} loadBalancerName The name of the load balancer. * * @param {string} probeName The name of the probe. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Probe} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Probe} [result] - The deserialized result object if an error did not occur. * See {@link Probe} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, loadBalancerName: string, probeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, loadBalancerName: string, probeName: string, callback: ServiceCallback): void; get(resourceGroupName: string, loadBalancerName: string, probeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the load balancer probes. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the load balancer probes. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LoadBalancerProbeListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LoadBalancerProbeListResult} [result] - The deserialized result object if an error did not occur. * See {@link LoadBalancerProbeListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * NatGateways * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface NatGateways { /** * Deletes the specified nat gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, natGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified nat gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, natGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, natGatewayName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, natGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified nat gateway in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, natGatewayName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified nat gateway in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NatGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NatGateway} [result] - The deserialized result object if an error did not occur. * See {@link NatGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, natGatewayName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, natGatewayName: string, callback: ServiceCallback): void; get(resourceGroupName: string, natGatewayName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a nat gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} parameters Parameters supplied to the create or update nat * gateway operation. * * @param {object} [parameters.sku] The nat gateway SKU. * * @param {string} [parameters.sku.name] Name of Nat Gateway SKU. Possible * values include: 'Standard' * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * nat gateway. * * @param {array} [parameters.publicIpAddresses] An array of public ip * addresses associated with the nat gateway resource. * * @param {array} [parameters.publicIpPrefixes] An array of public ip prefixes * associated with the nat gateway resource. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * nat gateway resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * NatGateway resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, natGatewayName: string, parameters: models.NatGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a nat gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} parameters Parameters supplied to the create or update nat * gateway operation. * * @param {object} [parameters.sku] The nat gateway SKU. * * @param {string} [parameters.sku.name] Name of Nat Gateway SKU. Possible * values include: 'Standard' * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * nat gateway. * * @param {array} [parameters.publicIpAddresses] An array of public ip * addresses associated with the nat gateway resource. * * @param {array} [parameters.publicIpPrefixes] An array of public ip prefixes * associated with the nat gateway resource. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * nat gateway resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * NatGateway resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NatGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NatGateway} [result] - The deserialized result object if an error did not occur. * See {@link NatGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, natGatewayName: string, parameters: models.NatGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, natGatewayName: string, parameters: models.NatGateway, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, natGatewayName: string, parameters: models.NatGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates nat gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} parameters Parameters supplied to update nat gateway tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, natGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates nat gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} parameters Parameters supplied to update nat gateway tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NatGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NatGateway} [result] - The deserialized result object if an error did not occur. * See {@link NatGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, natGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, natGatewayName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, natGatewayName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the Nat Gateways in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the Nat Gateways in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NatGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NatGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link NatGatewayListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all nat gateways in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all nat gateways in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NatGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NatGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link NatGatewayListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified nat gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, natGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified nat gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, natGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, natGatewayName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, natGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a nat gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} parameters Parameters supplied to the create or update nat * gateway operation. * * @param {object} [parameters.sku] The nat gateway SKU. * * @param {string} [parameters.sku.name] Name of Nat Gateway SKU. Possible * values include: 'Standard' * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * nat gateway. * * @param {array} [parameters.publicIpAddresses] An array of public ip * addresses associated with the nat gateway resource. * * @param {array} [parameters.publicIpPrefixes] An array of public ip prefixes * associated with the nat gateway resource. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * nat gateway resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * NatGateway resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, natGatewayName: string, parameters: models.NatGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a nat gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} natGatewayName The name of the nat gateway. * * @param {object} parameters Parameters supplied to the create or update nat * gateway operation. * * @param {object} [parameters.sku] The nat gateway SKU. * * @param {string} [parameters.sku.name] Name of Nat Gateway SKU. Possible * values include: 'Standard' * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * nat gateway. * * @param {array} [parameters.publicIpAddresses] An array of public ip * addresses associated with the nat gateway resource. * * @param {array} [parameters.publicIpPrefixes] An array of public ip prefixes * associated with the nat gateway resource. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * nat gateway resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * NatGateway resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NatGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NatGateway} [result] - The deserialized result object if an error did not occur. * See {@link NatGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, natGatewayName: string, parameters: models.NatGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, natGatewayName: string, parameters: models.NatGateway, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, natGatewayName: string, parameters: models.NatGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the Nat Gateways in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the Nat Gateways in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NatGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NatGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link NatGatewayListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all nat gateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all nat gateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NatGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NatGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link NatGatewayListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * NetworkInterfaces * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface NetworkInterfaces { /** * Deletes the specified network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about the specified network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about the specified network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterface} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterface} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; get(resourceGroupName: string, networkInterfaceName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} parameters Parameters supplied to the create or update * network interface operation. * * @param {object} [parameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * * @param {array} [parameters.networkSecurityGroup.securityRules] A collection * of security rules of the network security group. * * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The * default security rules of network security group. * * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource * GUID property of the network security group resource. * * @param {string} [parameters.networkSecurityGroup.provisioningState] The * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.networkSecurityGroup.id] Resource ID. * * @param {string} [parameters.networkSecurityGroup.location] Resource * location. * * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. * * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of * the network interface. * * @param {array} [parameters.tapConfigurations] A list of TapConfigurations of * the network interface. * * @param {object} [parameters.dnsSettings] The DNS settings in network * interface. * * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it * must be the only value in dnsServers collection. * * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that * uses this NIC is part of an Availability Set, then this list will have the * union of all DNS servers from all NICs that are part of the Availability * Set. This property is what is configured on each of those VMs. * * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS * name for this NIC used for internal communications between VMs in the same * virtual network. * * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS * name supporting internal communications between VMs in the same virtual * network. * * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if * internalDnsNameLabel is not specified, a DNS entry is created for the * primary NIC of the VM. This DNS name can be constructed by concatenating the * VM name with the value of internalDomainNameSuffix. * * @param {string} [parameters.macAddress] The MAC address of the network * interface. * * @param {boolean} [parameters.primary] Gets whether this is a primary network * interface on a virtual machine. * * @param {boolean} [parameters.enableAcceleratedNetworking] If the network * interface is accelerated networking enabled. * * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP * forwarding is enabled on this network interface. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * network interface resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} parameters Parameters supplied to the create or update * network interface operation. * * @param {object} [parameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * * @param {array} [parameters.networkSecurityGroup.securityRules] A collection * of security rules of the network security group. * * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The * default security rules of network security group. * * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource * GUID property of the network security group resource. * * @param {string} [parameters.networkSecurityGroup.provisioningState] The * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.networkSecurityGroup.id] Resource ID. * * @param {string} [parameters.networkSecurityGroup.location] Resource * location. * * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. * * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of * the network interface. * * @param {array} [parameters.tapConfigurations] A list of TapConfigurations of * the network interface. * * @param {object} [parameters.dnsSettings] The DNS settings in network * interface. * * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it * must be the only value in dnsServers collection. * * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that * uses this NIC is part of an Availability Set, then this list will have the * union of all DNS servers from all NICs that are part of the Availability * Set. This property is what is configured on each of those VMs. * * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS * name for this NIC used for internal communications between VMs in the same * virtual network. * * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS * name supporting internal communications between VMs in the same virtual * network. * * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if * internalDnsNameLabel is not specified, a DNS entry is created for the * primary NIC of the VM. This DNS name can be constructed by concatenating the * VM name with the value of internalDomainNameSuffix. * * @param {string} [parameters.macAddress] The MAC address of the network * interface. * * @param {boolean} [parameters.primary] Gets whether this is a primary network * interface on a virtual machine. * * @param {boolean} [parameters.enableAcceleratedNetworking] If the network * interface is accelerated networking enabled. * * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP * forwarding is enabled on this network interface. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * network interface resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterface} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterface} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a network interface tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} parameters Parameters supplied to update network interface * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a network interface tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} parameters Parameters supplied to update network interface * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterface} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterface} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, networkInterfaceName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, networkInterfaceName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, networkInterfaceName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network interfaces in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network interfaces in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network interfaces in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network interfaces in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all route tables applied to a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getEffectiveRouteTableWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all route tables applied to a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {EffectiveRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {EffectiveRouteListResult} [result] - The deserialized result object if an error did not occur. * See {@link EffectiveRouteListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; getEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network security groups applied to a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listEffectiveNetworkSecurityGroupsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network security groups applied to a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {EffectiveNetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {EffectiveNetworkSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link EffectiveNetworkSecurityGroupListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; listEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about all network interfaces in a virtual machine in a * virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVirtualMachineScaleSetVMNetworkInterfacesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about all network interfaces in a virtual machine in a * virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, callback: ServiceCallback): void; listVirtualMachineScaleSetVMNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network interfaces in a virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVirtualMachineScaleSetNetworkInterfacesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network interfaces in a virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, callback: ServiceCallback): void; listVirtualMachineScaleSetNetworkInterfaces(resourceGroupName: string, virtualMachineScaleSetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified network interface in a virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getVirtualMachineScaleSetNetworkInterfaceWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified network interface in a virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterface} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterface} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getVirtualMachineScaleSetNetworkInterface(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; getVirtualMachineScaleSetNetworkInterface(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, callback: ServiceCallback): void; getVirtualMachineScaleSetNetworkInterface(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified network interface ip configuration in a virtual machine * scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVirtualMachineScaleSetIpConfigurationsWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified network interface ip configuration in a virtual machine * scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceIPConfigurationListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceIPConfigurationListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listVirtualMachineScaleSetIpConfigurations(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; listVirtualMachineScaleSetIpConfigurations(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, callback: ServiceCallback): void; listVirtualMachineScaleSetIpConfigurations(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified network interface ip configuration in a virtual machine * scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} ipConfigurationName The name of the ip configuration. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getVirtualMachineScaleSetIpConfigurationWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified network interface ip configuration in a virtual machine * scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} ipConfigurationName The name of the ip configuration. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceIPConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceIPConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceIPConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getVirtualMachineScaleSetIpConfiguration(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; getVirtualMachineScaleSetIpConfiguration(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, callback: ServiceCallback): void; getVirtualMachineScaleSetIpConfiguration(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} parameters Parameters supplied to the create or update * network interface operation. * * @param {object} [parameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * * @param {array} [parameters.networkSecurityGroup.securityRules] A collection * of security rules of the network security group. * * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The * default security rules of network security group. * * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource * GUID property of the network security group resource. * * @param {string} [parameters.networkSecurityGroup.provisioningState] The * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.networkSecurityGroup.id] Resource ID. * * @param {string} [parameters.networkSecurityGroup.location] Resource * location. * * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. * * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of * the network interface. * * @param {array} [parameters.tapConfigurations] A list of TapConfigurations of * the network interface. * * @param {object} [parameters.dnsSettings] The DNS settings in network * interface. * * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it * must be the only value in dnsServers collection. * * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that * uses this NIC is part of an Availability Set, then this list will have the * union of all DNS servers from all NICs that are part of the Availability * Set. This property is what is configured on each of those VMs. * * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS * name for this NIC used for internal communications between VMs in the same * virtual network. * * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS * name supporting internal communications between VMs in the same virtual * network. * * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if * internalDnsNameLabel is not specified, a DNS entry is created for the * primary NIC of the VM. This DNS name can be constructed by concatenating the * VM name with the value of internalDomainNameSuffix. * * @param {string} [parameters.macAddress] The MAC address of the network * interface. * * @param {boolean} [parameters.primary] Gets whether this is a primary network * interface on a virtual machine. * * @param {boolean} [parameters.enableAcceleratedNetworking] If the network * interface is accelerated networking enabled. * * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP * forwarding is enabled on this network interface. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * network interface resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} parameters Parameters supplied to the create or update * network interface operation. * * @param {object} [parameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * * @param {array} [parameters.networkSecurityGroup.securityRules] A collection * of security rules of the network security group. * * @param {array} [parameters.networkSecurityGroup.defaultSecurityRules] The * default security rules of network security group. * * @param {string} [parameters.networkSecurityGroup.resourceGuid] The resource * GUID property of the network security group resource. * * @param {string} [parameters.networkSecurityGroup.provisioningState] The * provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.networkSecurityGroup.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.networkSecurityGroup.id] Resource ID. * * @param {string} [parameters.networkSecurityGroup.location] Resource * location. * * @param {object} [parameters.networkSecurityGroup.tags] Resource tags. * * @param {array} [parameters.ipConfigurations] A list of IPConfigurations of * the network interface. * * @param {array} [parameters.tapConfigurations] A list of TapConfigurations of * the network interface. * * @param {object} [parameters.dnsSettings] The DNS settings in network * interface. * * @param {array} [parameters.dnsSettings.dnsServers] List of DNS servers IP * addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS * resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it * must be the only value in dnsServers collection. * * @param {array} [parameters.dnsSettings.appliedDnsServers] If the VM that * uses this NIC is part of an Availability Set, then this list will have the * union of all DNS servers from all NICs that are part of the Availability * Set. This property is what is configured on each of those VMs. * * @param {string} [parameters.dnsSettings.internalDnsNameLabel] Relative DNS * name for this NIC used for internal communications between VMs in the same * virtual network. * * @param {string} [parameters.dnsSettings.internalFqdn] Fully qualified DNS * name supporting internal communications between VMs in the same virtual * network. * * @param {string} [parameters.dnsSettings.internalDomainNameSuffix] Even if * internalDnsNameLabel is not specified, a DNS entry is created for the * primary NIC of the VM. This DNS name can be constructed by concatenating the * VM name with the value of internalDomainNameSuffix. * * @param {string} [parameters.macAddress] The MAC address of the network * interface. * * @param {boolean} [parameters.primary] Gets whether this is a primary network * interface on a virtual machine. * * @param {boolean} [parameters.enableAcceleratedNetworking] If the network * interface is accelerated networking enabled. * * @param {boolean} [parameters.enableIPForwarding] Indicates whether IP * forwarding is enabled on this network interface. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * network interface resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterface} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterface} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, parameters: models.NetworkInterface, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a network interface tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} parameters Parameters supplied to update network interface * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a network interface tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} parameters Parameters supplied to update network interface * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterface} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterface} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterface} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, networkInterfaceName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, networkInterfaceName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, networkInterfaceName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all route tables applied to a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetEffectiveRouteTableWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all route tables applied to a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {EffectiveRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {EffectiveRouteListResult} [result] - The deserialized result object if an error did not occur. * See {@link EffectiveRouteListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; beginGetEffectiveRouteTable(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network security groups applied to a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginListEffectiveNetworkSecurityGroupsWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network security groups applied to a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {EffectiveNetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {EffectiveNetworkSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link EffectiveNetworkSecurityGroupListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; beginListEffectiveNetworkSecurityGroups(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network interfaces in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network interfaces in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network interfaces in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network interfaces in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about all network interfaces in a virtual machine in a * virtual machine scale set. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVirtualMachineScaleSetVMNetworkInterfacesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about all network interfaces in a virtual machine in a * virtual machine scale set. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink: string, callback: ServiceCallback): void; listVirtualMachineScaleSetVMNetworkInterfacesNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network interfaces in a virtual machine scale set. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVirtualMachineScaleSetNetworkInterfacesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network interfaces in a virtual machine scale set. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink: string, callback: ServiceCallback): void; listVirtualMachineScaleSetNetworkInterfacesNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified network interface ip configuration in a virtual machine * scale set. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVirtualMachineScaleSetIpConfigurationsNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified network interface ip configuration in a virtual machine * scale set. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceIPConfigurationListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceIPConfigurationListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listVirtualMachineScaleSetIpConfigurationsNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listVirtualMachineScaleSetIpConfigurationsNext(nextPageLink: string, callback: ServiceCallback): void; listVirtualMachineScaleSetIpConfigurationsNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * NetworkInterfaceIPConfigurations * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface NetworkInterfaceIPConfigurations { /** * Get all ip configurations in a network interface * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get all ip configurations in a network interface * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceIPConfigurationListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceIPConfigurationListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; list(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified network interface ip configuration. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} ipConfigurationName The name of the ip configuration name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified network interface ip configuration. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} ipConfigurationName The name of the ip configuration name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceIPConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceIPConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceIPConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, callback: ServiceCallback): void; get(resourceGroupName: string, networkInterfaceName: string, ipConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get all ip configurations in a network interface * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get all ip configurations in a network interface * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceIPConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceIPConfigurationListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceIPConfigurationListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * NetworkInterfaceLoadBalancers * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface NetworkInterfaceLoadBalancers { /** * List all load balancers in a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List all load balancers in a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceLoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceLoadBalancerListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceLoadBalancerListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; list(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * List all load balancers in a network interface. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List all load balancers in a network interface. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceLoadBalancerListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceLoadBalancerListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceLoadBalancerListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * NetworkInterfaceTapConfigurations * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface NetworkInterfaceTapConfigurations { /** * Deletes the specified tap configuration from the NetworkInterface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} tapConfigurationName The name of the tap configuration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified tap configuration from the NetworkInterface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} tapConfigurationName The name of the tap configuration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified tap configuration on a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} tapConfigurationName The name of the tap configuration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified tap configuration on a network interface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} tapConfigurationName The name of the tap configuration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceTapConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceTapConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceTapConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, callback: ServiceCallback): void; get(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a Tap configuration in the specified NetworkInterface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} tapConfigurationName The name of the tap configuration. * * @param {object} tapConfigurationParameters Parameters supplied to the create * or update tap configuration operation. * * @param {object} [tapConfigurationParameters.virtualNetworkTap] The reference * of the Virtual Network Tap resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration] * The reference to the private IP Address of the collector nic that will * receive the tap * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] * The reference to Virtual Network Taps. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] * The reference of ApplicationGatewayBackendAddressPool resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] * The reference of LoadBalancerBackendAddressPool resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] * A list of references of LoadBalancerInboundNatRules. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddress] * Private IP address of the IP configuration. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] * The private IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddressVersion] * Available from Api-Version 2016-03-30 onwards, it represents whether the * specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible * values include: 'IPv4', 'IPv6' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet] * Subnet bound to the IP configuration. * * @param {boolean} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.primary] * Gets whether this is a primary customer address on the network interface. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress] * Public IP address bound to the IP configuration. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] * Application security groups in which the IP configuration is included. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.provisioningState] * The provisioning state of the network interface IP configuration. Possible * values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.id] * Resource ID. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration] * The reference to the private IP address on the internal Load Balancer that * will receive the tap * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] * The private IP address of the IP configuration. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] * The Private IP allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet] * The reference of the subnet resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] * The address prefix for the subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] * List of address prefixes for the subnet. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] * The reference of the RouteTable resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. * * @param {boolean} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] * The provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.natGateway] * Nat gateway associated with this subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] * An array of service endpoints. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] * An array of service endpoint policies. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] * Gets an array of references to services injecting into this subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] * Gets an array of references to the delegations on the subnet. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] * The provisioning state of the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.id] * Resource ID. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] * The reference of the Public IP resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] * The public IP address SKU. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] * Name of a public IP address SKU. Possible values include: 'Basic', * 'Standard' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] * The public IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] * The public IP address version. Possible values include: 'IPv4', 'IPv6' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] * The FQDN of the DNS record associated with the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] * Gets or sets the Domain name label.The concatenation of the domain name * label and the regionalized DNS zone make up the fully qualified domain name * associated with the public IP address. If a domain name label is specified, * an A DNS record is created for the public IP in the Microsoft Azure DNS * system. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.fqdn] * Gets the FQDN, Fully qualified domain name of the A DNS record associated * with the public IP. This is the concatenation of the domainNameLabel and the * regionalized DNS zone. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name * that resolves to this public IP address. If the reverseFqdn is specified, * then a PTR DNS record is created pointing from the IP address in the * in-addr.arpa domain to the reverse FQDN. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings] * The DDoS protection custom policy associated with the public IP address. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy] * The DDoS custom policy associated with the public IP. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.protectionCoverage] * The DDoS protection policy customizability of the public IP. Only standard * coverage will have the ability to be customized. Possible values include: * 'Basic', 'Standard' * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] * The list of tags associated with the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] * The IP address associated with the public IP address resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] * The Public IP Prefix this Public IP Address should be allocated from. * * @param {number} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] * The idle timeout of the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] * The resource GUID property of the public IP resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] * The provisioning state of the PublicIP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] * The reference of the Public IP Prefix resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] * Gets the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.id] * Resource ID. * * @param {number} * [tapConfigurationParameters.virtualNetworkTap.destinationPort] The VXLAN * destination port that will receive the tapped traffic. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.etag] Gets a * unique read-only string that changes whenever the resource is updated. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.id] Resource * ID. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.location] * Resource location. * * @param {object} [tapConfigurationParameters.virtualNetworkTap.tags] Resource * tags. * * @param {string} [tapConfigurationParameters.name] The name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [tapConfigurationParameters.etag] A unique read-only string * that changes whenever the resource is updated. * * @param {string} [tapConfigurationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, tapConfigurationParameters: models.NetworkInterfaceTapConfiguration, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a Tap configuration in the specified NetworkInterface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} tapConfigurationName The name of the tap configuration. * * @param {object} tapConfigurationParameters Parameters supplied to the create * or update tap configuration operation. * * @param {object} [tapConfigurationParameters.virtualNetworkTap] The reference * of the Virtual Network Tap resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration] * The reference to the private IP Address of the collector nic that will * receive the tap * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] * The reference to Virtual Network Taps. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] * The reference of ApplicationGatewayBackendAddressPool resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] * The reference of LoadBalancerBackendAddressPool resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] * A list of references of LoadBalancerInboundNatRules. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddress] * Private IP address of the IP configuration. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] * The private IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddressVersion] * Available from Api-Version 2016-03-30 onwards, it represents whether the * specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible * values include: 'IPv4', 'IPv6' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet] * Subnet bound to the IP configuration. * * @param {boolean} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.primary] * Gets whether this is a primary customer address on the network interface. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress] * Public IP address bound to the IP configuration. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] * Application security groups in which the IP configuration is included. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.provisioningState] * The provisioning state of the network interface IP configuration. Possible * values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.id] * Resource ID. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration] * The reference to the private IP address on the internal Load Balancer that * will receive the tap * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] * The private IP address of the IP configuration. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] * The Private IP allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet] * The reference of the subnet resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] * The address prefix for the subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] * List of address prefixes for the subnet. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] * The reference of the RouteTable resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. * * @param {boolean} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] * The provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.natGateway] * Nat gateway associated with this subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] * An array of service endpoints. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] * An array of service endpoint policies. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] * Gets an array of references to services injecting into this subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] * Gets an array of references to the delegations on the subnet. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] * The provisioning state of the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.id] * Resource ID. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] * The reference of the Public IP resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] * The public IP address SKU. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] * Name of a public IP address SKU. Possible values include: 'Basic', * 'Standard' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] * The public IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] * The public IP address version. Possible values include: 'IPv4', 'IPv6' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] * The FQDN of the DNS record associated with the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] * Gets or sets the Domain name label.The concatenation of the domain name * label and the regionalized DNS zone make up the fully qualified domain name * associated with the public IP address. If a domain name label is specified, * an A DNS record is created for the public IP in the Microsoft Azure DNS * system. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.fqdn] * Gets the FQDN, Fully qualified domain name of the A DNS record associated * with the public IP. This is the concatenation of the domainNameLabel and the * regionalized DNS zone. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name * that resolves to this public IP address. If the reverseFqdn is specified, * then a PTR DNS record is created pointing from the IP address in the * in-addr.arpa domain to the reverse FQDN. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings] * The DDoS protection custom policy associated with the public IP address. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy] * The DDoS custom policy associated with the public IP. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.protectionCoverage] * The DDoS protection policy customizability of the public IP. Only standard * coverage will have the ability to be customized. Possible values include: * 'Basic', 'Standard' * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] * The list of tags associated with the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] * The IP address associated with the public IP address resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] * The Public IP Prefix this Public IP Address should be allocated from. * * @param {number} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] * The idle timeout of the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] * The resource GUID property of the public IP resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] * The provisioning state of the PublicIP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] * The reference of the Public IP Prefix resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] * Gets the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.id] * Resource ID. * * @param {number} * [tapConfigurationParameters.virtualNetworkTap.destinationPort] The VXLAN * destination port that will receive the tapped traffic. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.etag] Gets a * unique read-only string that changes whenever the resource is updated. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.id] Resource * ID. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.location] * Resource location. * * @param {object} [tapConfigurationParameters.virtualNetworkTap.tags] Resource * tags. * * @param {string} [tapConfigurationParameters.name] The name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [tapConfigurationParameters.etag] A unique read-only string * that changes whenever the resource is updated. * * @param {string} [tapConfigurationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceTapConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceTapConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceTapConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, tapConfigurationParameters: models.NetworkInterfaceTapConfiguration, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, tapConfigurationParameters: models.NetworkInterfaceTapConfiguration, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, tapConfigurationParameters: models.NetworkInterfaceTapConfiguration, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get all Tap configurations in a network interface * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get all Tap configurations in a network interface * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceTapConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceTapConfigurationListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceTapConfigurationListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, networkInterfaceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, networkInterfaceName: string, callback: ServiceCallback): void; list(resourceGroupName: string, networkInterfaceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified tap configuration from the NetworkInterface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} tapConfigurationName The name of the tap configuration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified tap configuration from the NetworkInterface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} tapConfigurationName The name of the tap configuration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a Tap configuration in the specified NetworkInterface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} tapConfigurationName The name of the tap configuration. * * @param {object} tapConfigurationParameters Parameters supplied to the create * or update tap configuration operation. * * @param {object} [tapConfigurationParameters.virtualNetworkTap] The reference * of the Virtual Network Tap resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration] * The reference to the private IP Address of the collector nic that will * receive the tap * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] * The reference to Virtual Network Taps. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] * The reference of ApplicationGatewayBackendAddressPool resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] * The reference of LoadBalancerBackendAddressPool resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] * A list of references of LoadBalancerInboundNatRules. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddress] * Private IP address of the IP configuration. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] * The private IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddressVersion] * Available from Api-Version 2016-03-30 onwards, it represents whether the * specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible * values include: 'IPv4', 'IPv6' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet] * Subnet bound to the IP configuration. * * @param {boolean} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.primary] * Gets whether this is a primary customer address on the network interface. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress] * Public IP address bound to the IP configuration. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] * Application security groups in which the IP configuration is included. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.provisioningState] * The provisioning state of the network interface IP configuration. Possible * values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.id] * Resource ID. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration] * The reference to the private IP address on the internal Load Balancer that * will receive the tap * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] * The private IP address of the IP configuration. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] * The Private IP allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet] * The reference of the subnet resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] * The address prefix for the subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] * List of address prefixes for the subnet. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] * The reference of the RouteTable resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. * * @param {boolean} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] * The provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.natGateway] * Nat gateway associated with this subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] * An array of service endpoints. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] * An array of service endpoint policies. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] * Gets an array of references to services injecting into this subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] * Gets an array of references to the delegations on the subnet. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] * The provisioning state of the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.id] * Resource ID. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] * The reference of the Public IP resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] * The public IP address SKU. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] * Name of a public IP address SKU. Possible values include: 'Basic', * 'Standard' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] * The public IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] * The public IP address version. Possible values include: 'IPv4', 'IPv6' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] * The FQDN of the DNS record associated with the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] * Gets or sets the Domain name label.The concatenation of the domain name * label and the regionalized DNS zone make up the fully qualified domain name * associated with the public IP address. If a domain name label is specified, * an A DNS record is created for the public IP in the Microsoft Azure DNS * system. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.fqdn] * Gets the FQDN, Fully qualified domain name of the A DNS record associated * with the public IP. This is the concatenation of the domainNameLabel and the * regionalized DNS zone. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name * that resolves to this public IP address. If the reverseFqdn is specified, * then a PTR DNS record is created pointing from the IP address in the * in-addr.arpa domain to the reverse FQDN. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings] * The DDoS protection custom policy associated with the public IP address. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy] * The DDoS custom policy associated with the public IP. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.protectionCoverage] * The DDoS protection policy customizability of the public IP. Only standard * coverage will have the ability to be customized. Possible values include: * 'Basic', 'Standard' * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] * The list of tags associated with the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] * The IP address associated with the public IP address resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] * The Public IP Prefix this Public IP Address should be allocated from. * * @param {number} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] * The idle timeout of the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] * The resource GUID property of the public IP resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] * The provisioning state of the PublicIP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] * The reference of the Public IP Prefix resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] * Gets the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.id] * Resource ID. * * @param {number} * [tapConfigurationParameters.virtualNetworkTap.destinationPort] The VXLAN * destination port that will receive the tapped traffic. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.etag] Gets a * unique read-only string that changes whenever the resource is updated. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.id] Resource * ID. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.location] * Resource location. * * @param {object} [tapConfigurationParameters.virtualNetworkTap.tags] Resource * tags. * * @param {string} [tapConfigurationParameters.name] The name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [tapConfigurationParameters.etag] A unique read-only string * that changes whenever the resource is updated. * * @param {string} [tapConfigurationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, tapConfigurationParameters: models.NetworkInterfaceTapConfiguration, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a Tap configuration in the specified NetworkInterface. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} tapConfigurationName The name of the tap configuration. * * @param {object} tapConfigurationParameters Parameters supplied to the create * or update tap configuration operation. * * @param {object} [tapConfigurationParameters.virtualNetworkTap] The reference * of the Virtual Network Tap resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration] * The reference to the private IP Address of the collector nic that will * receive the tap * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] * The reference to Virtual Network Taps. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] * The reference of ApplicationGatewayBackendAddressPool resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] * The reference of LoadBalancerBackendAddressPool resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] * A list of references of LoadBalancerInboundNatRules. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddress] * Private IP address of the IP configuration. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] * The private IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.privateIPAddressVersion] * Available from Api-Version 2016-03-30 onwards, it represents whether the * specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible * values include: 'IPv4', 'IPv6' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.subnet] * Subnet bound to the IP configuration. * * @param {boolean} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.primary] * Gets whether this is a primary customer address on the network interface. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.publicIPAddress] * Public IP address bound to the IP configuration. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] * Application security groups in which the IP configuration is included. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.provisioningState] * The provisioning state of the network interface IP configuration. Possible * values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationNetworkInterfaceIPConfiguration.id] * Resource ID. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration] * The reference to the private IP address on the internal Load Balancer that * will receive the tap * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] * The private IP address of the IP configuration. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] * The Private IP allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet] * The reference of the subnet resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] * The address prefix for the subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] * List of address prefixes for the subnet. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] * The reference of the RouteTable resource. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. * * @param {boolean} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] * The provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.natGateway] * Nat gateway associated with this subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] * An array of service endpoints. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] * An array of service endpoint policies. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] * Gets an array of references to services injecting into this subnet. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] * Gets an array of references to the delegations on the subnet. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] * The provisioning state of the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.subnet.id] * Resource ID. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] * The reference of the Public IP resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] * The public IP address SKU. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] * Name of a public IP address SKU. Possible values include: 'Basic', * 'Standard' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] * The public IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] * The public IP address version. Possible values include: 'IPv4', 'IPv6' * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] * The FQDN of the DNS record associated with the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] * Gets or sets the Domain name label.The concatenation of the domain name * label and the regionalized DNS zone make up the fully qualified domain name * associated with the public IP address. If a domain name label is specified, * an A DNS record is created for the public IP in the Microsoft Azure DNS * system. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.fqdn] * Gets the FQDN, Fully qualified domain name of the A DNS record associated * with the public IP. This is the concatenation of the domainNameLabel and the * regionalized DNS zone. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name * that resolves to this public IP address. If the reverseFqdn is specified, * then a PTR DNS record is created pointing from the IP address in the * in-addr.arpa domain to the reverse FQDN. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings] * The DDoS protection custom policy associated with the public IP address. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy] * The DDoS custom policy associated with the public IP. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.protectionCoverage] * The DDoS protection policy customizability of the public IP. Only standard * coverage will have the ability to be customized. Possible values include: * 'Basic', 'Standard' * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] * The list of tags associated with the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] * The IP address associated with the public IP address resource. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] * The Public IP Prefix this Public IP Address should be allocated from. * * @param {number} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] * The idle timeout of the public IP address. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] * The resource GUID property of the public IP resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] * The provisioning state of the PublicIP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] * Resource location. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] * Resource tags. * * @param {object} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] * The reference of the Public IP Prefix resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] * Resource ID. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] * Gets the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [tapConfigurationParameters.virtualNetworkTap.destinationLoadBalancerFrontEndIPConfiguration.id] * Resource ID. * * @param {number} * [tapConfigurationParameters.virtualNetworkTap.destinationPort] The VXLAN * destination port that will receive the tapped traffic. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.etag] Gets a * unique read-only string that changes whenever the resource is updated. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.id] Resource * ID. * * @param {string} [tapConfigurationParameters.virtualNetworkTap.location] * Resource location. * * @param {object} [tapConfigurationParameters.virtualNetworkTap.tags] Resource * tags. * * @param {string} [tapConfigurationParameters.name] The name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [tapConfigurationParameters.etag] A unique read-only string * that changes whenever the resource is updated. * * @param {string} [tapConfigurationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceTapConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceTapConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceTapConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, tapConfigurationParameters: models.NetworkInterfaceTapConfiguration, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, tapConfigurationParameters: models.NetworkInterfaceTapConfiguration, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, tapConfigurationName: string, tapConfigurationParameters: models.NetworkInterfaceTapConfiguration, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get all Tap configurations in a network interface * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get all Tap configurations in a network interface * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkInterfaceTapConfigurationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkInterfaceTapConfigurationListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkInterfaceTapConfigurationListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * NetworkProfiles * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface NetworkProfiles { /** * Deletes the specified network profile. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkProfileName The name of the NetworkProfile. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkProfileName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified network profile. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkProfileName The name of the NetworkProfile. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, networkProfileName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, networkProfileName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, networkProfileName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified network profile in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkProfileName The name of the public IP prefix. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, networkProfileName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified network profile in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkProfileName The name of the public IP prefix. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkProfile} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkProfile} [result] - The deserialized result object if an error did not occur. * See {@link NetworkProfile} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, networkProfileName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, networkProfileName: string, callback: ServiceCallback): void; get(resourceGroupName: string, networkProfileName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a network profile. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkProfileName The name of the network profile. * * @param {object} parameters Parameters supplied to the create or update * network profile operation. * * @param {array} [parameters.containerNetworkInterfaces] List of child * container network interfaces. * * @param {array} [parameters.containerNetworkInterfaceConfigurations] List of * chid container network interface configurations. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkProfileName: string, parameters: models.NetworkProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a network profile. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkProfileName The name of the network profile. * * @param {object} parameters Parameters supplied to the create or update * network profile operation. * * @param {array} [parameters.containerNetworkInterfaces] List of child * container network interfaces. * * @param {array} [parameters.containerNetworkInterfaceConfigurations] List of * chid container network interface configurations. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkProfile} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkProfile} [result] - The deserialized result object if an error did not occur. * See {@link NetworkProfile} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, networkProfileName: string, parameters: models.NetworkProfile, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, networkProfileName: string, parameters: models.NetworkProfile, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, networkProfileName: string, parameters: models.NetworkProfile, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates network profile tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkProfileName The name of the network profile. * * @param {object} parameters Parameters supplied to update network profile * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, networkProfileName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates network profile tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkProfileName The name of the network profile. * * @param {object} parameters Parameters supplied to update network profile * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkProfile} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkProfile} [result] - The deserialized result object if an error did not occur. * See {@link NetworkProfile} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, networkProfileName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, networkProfileName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, networkProfileName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the network profiles in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the network profiles in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkProfileListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkProfileListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkProfileListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network profiles in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network profiles in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkProfileListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkProfileListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkProfileListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the network profiles in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the network profiles in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkProfileListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkProfileListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkProfileListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network profiles in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network profiles in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkProfileListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkProfileListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkProfileListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * NetworkSecurityGroups * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface NetworkSecurityGroups { /** * Deletes the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, networkSecurityGroupName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, networkSecurityGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkSecurityGroup} [result] - The deserialized result object if an error did not occur. * See {@link NetworkSecurityGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, networkSecurityGroupName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, networkSecurityGroupName: string, callback: ServiceCallback): void; get(resourceGroupName: string, networkSecurityGroupName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a network security group in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} parameters Parameters supplied to the create or update * network security group operation. * * @param {array} [parameters.securityRules] A collection of security rules of * the network security group. * * @param {array} [parameters.defaultSecurityRules] The default security rules * of network security group. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * network security group resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a network security group in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} parameters Parameters supplied to the create or update * network security group operation. * * @param {array} [parameters.securityRules] A collection of security rules of * the network security group. * * @param {array} [parameters.defaultSecurityRules] The default security rules * of network security group. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * network security group resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkSecurityGroup} [result] - The deserialized result object if an error did not occur. * See {@link NetworkSecurityGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a network security group tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} parameters Parameters supplied to update network security * group tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a network security group tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} parameters Parameters supplied to update network security * group tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkSecurityGroup} [result] - The deserialized result object if an error did not occur. * See {@link NetworkSecurityGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network security groups in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network security groups in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkSecurityGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network security groups in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network security groups in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkSecurityGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, networkSecurityGroupName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, networkSecurityGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a network security group in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} parameters Parameters supplied to the create or update * network security group operation. * * @param {array} [parameters.securityRules] A collection of security rules of * the network security group. * * @param {array} [parameters.defaultSecurityRules] The default security rules * of network security group. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * network security group resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a network security group in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} parameters Parameters supplied to the create or update * network security group operation. * * @param {array} [parameters.securityRules] A collection of security rules of * the network security group. * * @param {array} [parameters.defaultSecurityRules] The default security rules * of network security group. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * network security group resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * public IP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkSecurityGroup} [result] - The deserialized result object if an error did not occur. * See {@link NetworkSecurityGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.NetworkSecurityGroup, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a network security group tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} parameters Parameters supplied to update network security * group tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a network security group tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} parameters Parameters supplied to update network security * group tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkSecurityGroup} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkSecurityGroup} [result] - The deserialized result object if an error did not occur. * See {@link NetworkSecurityGroup} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, networkSecurityGroupName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network security groups in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network security groups in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkSecurityGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network security groups in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network security groups in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkSecurityGroupListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkSecurityGroupListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkSecurityGroupListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * SecurityRules * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface SecurityRules { /** * Deletes the specified network security rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} securityRuleName The name of the security rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified network security rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} securityRuleName The name of the security rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified network security rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} securityRuleName The name of the security rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified network security rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} securityRuleName The name of the security rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SecurityRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SecurityRule} [result] - The deserialized result object if an error did not occur. * See {@link SecurityRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, callback: ServiceCallback): void; get(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a security rule in the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} securityRuleName The name of the security rule. * * @param {object} securityRuleParameters Parameters supplied to the create or * update network security rule operation. * * @param {string} [securityRuleParameters.description] A description for this * rule. Restricted to 140 chars. * * @param {string} securityRuleParameters.protocol Network protocol this rule * applies to. Possible values are 'Tcp', 'Udp', 'Icmp', 'Esp', and '*'. * Possible values include: 'Tcp', 'Udp', 'Icmp', 'Esp', '*' * * @param {string} [securityRuleParameters.sourcePortRange] The source port or * range. Integer or range between 0 and 65535. Asterisk '*' can also be used * to match all ports. * * @param {string} [securityRuleParameters.destinationPortRange] The * destination port or range. Integer or range between 0 and 65535. Asterisk * '*' can also be used to match all ports. * * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or * source IP range. Asterisk '*' can also be used to match all source IPs. * Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or * source IP ranges. * * @param {array} [securityRuleParameters.sourceApplicationSecurityGroups] The * application security group specified as source. * * @param {string} [securityRuleParameters.destinationAddressPrefix] The * destination address prefix. CIDR or destination IP range. Asterisk '*' can * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * * @param {array} [securityRuleParameters.destinationAddressPrefixes] The * destination address prefixes. CIDR or destination IP ranges. * * @param {array} [securityRuleParameters.destinationApplicationSecurityGroups] * The application security group specified as destination. * * @param {array} [securityRuleParameters.sourcePortRanges] The source port * ranges. * * @param {array} [securityRuleParameters.destinationPortRanges] The * destination port ranges. * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values include: 'Allow', 'Deny' * * @param {number} [securityRuleParameters.priority] The priority of the rule. * The value can be between 100 and 4096. The priority number must be unique * for each rule in the collection. The lower the priority number, the higher * the priority of the rule. * * @param {string} securityRuleParameters.direction The direction of the rule. * The direction specifies if rule will be evaluated on incoming or outgoing * traffic. Possible values include: 'Inbound', 'Outbound' * * @param {string} [securityRuleParameters.provisioningState] The provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [securityRuleParameters.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. * * @param {string} [securityRuleParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [securityRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a security rule in the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} securityRuleName The name of the security rule. * * @param {object} securityRuleParameters Parameters supplied to the create or * update network security rule operation. * * @param {string} [securityRuleParameters.description] A description for this * rule. Restricted to 140 chars. * * @param {string} securityRuleParameters.protocol Network protocol this rule * applies to. Possible values are 'Tcp', 'Udp', 'Icmp', 'Esp', and '*'. * Possible values include: 'Tcp', 'Udp', 'Icmp', 'Esp', '*' * * @param {string} [securityRuleParameters.sourcePortRange] The source port or * range. Integer or range between 0 and 65535. Asterisk '*' can also be used * to match all ports. * * @param {string} [securityRuleParameters.destinationPortRange] The * destination port or range. Integer or range between 0 and 65535. Asterisk * '*' can also be used to match all ports. * * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or * source IP range. Asterisk '*' can also be used to match all source IPs. * Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or * source IP ranges. * * @param {array} [securityRuleParameters.sourceApplicationSecurityGroups] The * application security group specified as source. * * @param {string} [securityRuleParameters.destinationAddressPrefix] The * destination address prefix. CIDR or destination IP range. Asterisk '*' can * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * * @param {array} [securityRuleParameters.destinationAddressPrefixes] The * destination address prefixes. CIDR or destination IP ranges. * * @param {array} [securityRuleParameters.destinationApplicationSecurityGroups] * The application security group specified as destination. * * @param {array} [securityRuleParameters.sourcePortRanges] The source port * ranges. * * @param {array} [securityRuleParameters.destinationPortRanges] The * destination port ranges. * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values include: 'Allow', 'Deny' * * @param {number} [securityRuleParameters.priority] The priority of the rule. * The value can be between 100 and 4096. The priority number must be unique * for each rule in the collection. The lower the priority number, the higher * the priority of the rule. * * @param {string} securityRuleParameters.direction The direction of the rule. * The direction specifies if rule will be evaluated on incoming or outgoing * traffic. Possible values include: 'Inbound', 'Outbound' * * @param {string} [securityRuleParameters.provisioningState] The provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [securityRuleParameters.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. * * @param {string} [securityRuleParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [securityRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SecurityRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SecurityRule} [result] - The deserialized result object if an error did not occur. * See {@link SecurityRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all security rules in a network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all security rules in a network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SecurityRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SecurityRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link SecurityRuleListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, networkSecurityGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, networkSecurityGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified network security rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} securityRuleName The name of the security rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified network security rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} securityRuleName The name of the security rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a security rule in the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} securityRuleName The name of the security rule. * * @param {object} securityRuleParameters Parameters supplied to the create or * update network security rule operation. * * @param {string} [securityRuleParameters.description] A description for this * rule. Restricted to 140 chars. * * @param {string} securityRuleParameters.protocol Network protocol this rule * applies to. Possible values are 'Tcp', 'Udp', 'Icmp', 'Esp', and '*'. * Possible values include: 'Tcp', 'Udp', 'Icmp', 'Esp', '*' * * @param {string} [securityRuleParameters.sourcePortRange] The source port or * range. Integer or range between 0 and 65535. Asterisk '*' can also be used * to match all ports. * * @param {string} [securityRuleParameters.destinationPortRange] The * destination port or range. Integer or range between 0 and 65535. Asterisk * '*' can also be used to match all ports. * * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or * source IP range. Asterisk '*' can also be used to match all source IPs. * Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or * source IP ranges. * * @param {array} [securityRuleParameters.sourceApplicationSecurityGroups] The * application security group specified as source. * * @param {string} [securityRuleParameters.destinationAddressPrefix] The * destination address prefix. CIDR or destination IP range. Asterisk '*' can * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * * @param {array} [securityRuleParameters.destinationAddressPrefixes] The * destination address prefixes. CIDR or destination IP ranges. * * @param {array} [securityRuleParameters.destinationApplicationSecurityGroups] * The application security group specified as destination. * * @param {array} [securityRuleParameters.sourcePortRanges] The source port * ranges. * * @param {array} [securityRuleParameters.destinationPortRanges] The * destination port ranges. * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values include: 'Allow', 'Deny' * * @param {number} [securityRuleParameters.priority] The priority of the rule. * The value can be between 100 and 4096. The priority number must be unique * for each rule in the collection. The lower the priority number, the higher * the priority of the rule. * * @param {string} securityRuleParameters.direction The direction of the rule. * The direction specifies if rule will be evaluated on incoming or outgoing * traffic. Possible values include: 'Inbound', 'Outbound' * * @param {string} [securityRuleParameters.provisioningState] The provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [securityRuleParameters.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. * * @param {string} [securityRuleParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [securityRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a security rule in the specified network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} securityRuleName The name of the security rule. * * @param {object} securityRuleParameters Parameters supplied to the create or * update network security rule operation. * * @param {string} [securityRuleParameters.description] A description for this * rule. Restricted to 140 chars. * * @param {string} securityRuleParameters.protocol Network protocol this rule * applies to. Possible values are 'Tcp', 'Udp', 'Icmp', 'Esp', and '*'. * Possible values include: 'Tcp', 'Udp', 'Icmp', 'Esp', '*' * * @param {string} [securityRuleParameters.sourcePortRange] The source port or * range. Integer or range between 0 and 65535. Asterisk '*' can also be used * to match all ports. * * @param {string} [securityRuleParameters.destinationPortRange] The * destination port or range. Integer or range between 0 and 65535. Asterisk * '*' can also be used to match all ports. * * @param {string} [securityRuleParameters.sourceAddressPrefix] The CIDR or * source IP range. Asterisk '*' can also be used to match all source IPs. * Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' * can also be used. If this is an ingress rule, specifies where network * traffic originates from. * * @param {array} [securityRuleParameters.sourceAddressPrefixes] The CIDR or * source IP ranges. * * @param {array} [securityRuleParameters.sourceApplicationSecurityGroups] The * application security group specified as source. * * @param {string} [securityRuleParameters.destinationAddressPrefix] The * destination address prefix. CIDR or destination IP range. Asterisk '*' can * also be used to match all source IPs. Default tags such as 'VirtualNetwork', * 'AzureLoadBalancer' and 'Internet' can also be used. * * @param {array} [securityRuleParameters.destinationAddressPrefixes] The * destination address prefixes. CIDR or destination IP ranges. * * @param {array} [securityRuleParameters.destinationApplicationSecurityGroups] * The application security group specified as destination. * * @param {array} [securityRuleParameters.sourcePortRanges] The source port * ranges. * * @param {array} [securityRuleParameters.destinationPortRanges] The * destination port ranges. * * @param {string} securityRuleParameters.access The network traffic is allowed * or denied. Possible values include: 'Allow', 'Deny' * * @param {number} [securityRuleParameters.priority] The priority of the rule. * The value can be between 100 and 4096. The priority number must be unique * for each rule in the collection. The lower the priority number, the higher * the priority of the rule. * * @param {string} securityRuleParameters.direction The direction of the rule. * The direction specifies if rule will be evaluated on incoming or outgoing * traffic. Possible values include: 'Inbound', 'Outbound' * * @param {string} [securityRuleParameters.provisioningState] The provisioning * state of the public IP resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [securityRuleParameters.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. * * @param {string} [securityRuleParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [securityRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SecurityRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SecurityRule} [result] - The deserialized result object if an error did not occur. * See {@link SecurityRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, networkSecurityGroupName: string, securityRuleName: string, securityRuleParameters: models.SecurityRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all security rules in a network security group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all security rules in a network security group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SecurityRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SecurityRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link SecurityRuleListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * DefaultSecurityRules * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface DefaultSecurityRules { /** * Gets all default security rules in a network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all default security rules in a network security group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SecurityRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SecurityRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link SecurityRuleListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, networkSecurityGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, networkSecurityGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, networkSecurityGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified default network security rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} defaultSecurityRuleName The name of the default security * rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified default network security rule. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkSecurityGroupName The name of the network security * group. * * @param {string} defaultSecurityRuleName The name of the default security * rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SecurityRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SecurityRule} [result] - The deserialized result object if an error did not occur. * See {@link SecurityRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, callback: ServiceCallback): void; get(resourceGroupName: string, networkSecurityGroupName: string, defaultSecurityRuleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all default security rules in a network security group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all default security rules in a network security group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SecurityRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SecurityRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link SecurityRuleListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * NetworkWatchers * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface NetworkWatchers { /** * Creates or updates a network watcher in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the network watcher * resource. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkWatcher, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a network watcher in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the network watcher * resource. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.provisioningState] The provisioning state of the * resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkWatcher} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkWatcher} [result] - The deserialized result object if an error did not occur. * See {@link NetworkWatcher} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkWatcher, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkWatcher, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkWatcher, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified network watcher by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified network watcher by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkWatcher} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkWatcher} [result] - The deserialized result object if an error did not occur. * See {@link NetworkWatcher} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, networkWatcherName: string, callback: ServiceCallback): void; get(resourceGroupName: string, networkWatcherName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified network watcher resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified network watcher resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, networkWatcherName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, networkWatcherName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a network watcher tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters supplied to update network watcher * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a network watcher tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters supplied to update network watcher * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkWatcher} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkWatcher} [result] - The deserialized result object if an error did not occur. * See {@link NetworkWatcher} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, networkWatcherName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, networkWatcherName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, networkWatcherName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network watchers by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network watchers by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkWatcherListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkWatcherListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkWatcherListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all network watchers by subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all network watchers by subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkWatcherListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkWatcherListResult} [result] - The deserialized result object if an error did not occur. * See {@link NetworkWatcherListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the current network topology by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the representation of * topology. * * @param {string} [parameters.targetResourceGroupName] The name of the target * resource group to perform topology on. * * @param {object} [parameters.targetVirtualNetwork] The reference of the * Virtual Network resource. * * @param {object} [parameters.targetSubnet] The reference of the Subnet * resource. * * @param {string} [parameters.targetSubnet.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getTopologyWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.TopologyParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the current network topology by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the representation of * topology. * * @param {string} [parameters.targetResourceGroupName] The name of the target * resource group to perform topology on. * * @param {object} [parameters.targetVirtualNetwork] The reference of the * Virtual Network resource. * * @param {object} [parameters.targetSubnet] The reference of the Subnet * resource. * * @param {string} [parameters.targetSubnet.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Topology} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Topology} [result] - The deserialized result object if an error did not occur. * See {@link Topology} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getTopology(resourceGroupName: string, networkWatcherName: string, parameters: models.TopologyParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getTopology(resourceGroupName: string, networkWatcherName: string, parameters: models.TopologyParameters, callback: ServiceCallback): void; getTopology(resourceGroupName: string, networkWatcherName: string, parameters: models.TopologyParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Verify IP flow from the specified VM to a location given the currently * configured NSG rules. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the IP flow to be * verified. * * @param {string} parameters.targetResourceId The ID of the target resource to * perform next-hop on. * * @param {string} parameters.direction The direction of the packet represented * as a 5-tuple. Possible values include: 'Inbound', 'Outbound' * * @param {string} parameters.protocol Protocol to be verified on. Possible * values include: 'TCP', 'UDP' * * @param {string} parameters.localPort The local port. Acceptable values are a * single integer in the range (0-65535). Support for * for the source port, * which depends on the direction. * * @param {string} parameters.remotePort The remote port. Acceptable values are * a single integer in the range (0-65535). Support for * for the source port, * which depends on the direction. * * @param {string} parameters.localIPAddress The local IP address. Acceptable * values are valid IPv4 addresses. * * @param {string} parameters.remoteIPAddress The remote IP address. Acceptable * values are valid IPv4 addresses. * * @param {string} [parameters.targetNicResourceId] The NIC ID. (If VM has * multiple NICs and IP forwarding is enabled on any of them, then this * parameter must be specified. Otherwise optional). * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ verifyIPFlowWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.VerificationIPFlowParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Verify IP flow from the specified VM to a location given the currently * configured NSG rules. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the IP flow to be * verified. * * @param {string} parameters.targetResourceId The ID of the target resource to * perform next-hop on. * * @param {string} parameters.direction The direction of the packet represented * as a 5-tuple. Possible values include: 'Inbound', 'Outbound' * * @param {string} parameters.protocol Protocol to be verified on. Possible * values include: 'TCP', 'UDP' * * @param {string} parameters.localPort The local port. Acceptable values are a * single integer in the range (0-65535). Support for * for the source port, * which depends on the direction. * * @param {string} parameters.remotePort The remote port. Acceptable values are * a single integer in the range (0-65535). Support for * for the source port, * which depends on the direction. * * @param {string} parameters.localIPAddress The local IP address. Acceptable * values are valid IPv4 addresses. * * @param {string} parameters.remoteIPAddress The remote IP address. Acceptable * values are valid IPv4 addresses. * * @param {string} [parameters.targetNicResourceId] The NIC ID. (If VM has * multiple NICs and IP forwarding is enabled on any of them, then this * parameter must be specified. Otherwise optional). * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VerificationIPFlowResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VerificationIPFlowResult} [result] - The deserialized result object if an error did not occur. * See {@link VerificationIPFlowResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ verifyIPFlow(resourceGroupName: string, networkWatcherName: string, parameters: models.VerificationIPFlowParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; verifyIPFlow(resourceGroupName: string, networkWatcherName: string, parameters: models.VerificationIPFlowParameters, callback: ServiceCallback): void; verifyIPFlow(resourceGroupName: string, networkWatcherName: string, parameters: models.VerificationIPFlowParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the next hop from the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the source and destination * endpoint. * * @param {string} parameters.targetResourceId The resource identifier of the * target resource against which the action is to be performed. * * @param {string} parameters.sourceIPAddress The source IP address. * * @param {string} parameters.destinationIPAddress The destination IP address. * * @param {string} [parameters.targetNicResourceId] The NIC ID. (If VM has * multiple NICs and IP forwarding is enabled on any of the nics, then this * parameter must be specified. Otherwise optional). * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getNextHopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.NextHopParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the next hop from the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the source and destination * endpoint. * * @param {string} parameters.targetResourceId The resource identifier of the * target resource against which the action is to be performed. * * @param {string} parameters.sourceIPAddress The source IP address. * * @param {string} parameters.destinationIPAddress The destination IP address. * * @param {string} [parameters.targetNicResourceId] The NIC ID. (If VM has * multiple NICs and IP forwarding is enabled on any of the nics, then this * parameter must be specified. Otherwise optional). * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NextHopResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NextHopResult} [result] - The deserialized result object if an error did not occur. * See {@link NextHopResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getNextHop(resourceGroupName: string, networkWatcherName: string, parameters: models.NextHopParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getNextHop(resourceGroupName: string, networkWatcherName: string, parameters: models.NextHopParameters, callback: ServiceCallback): void; getNextHop(resourceGroupName: string, networkWatcherName: string, parameters: models.NextHopParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the configured and effective security group rules on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the VM to check security * groups for. * * @param {string} parameters.targetResourceId ID of the target VM. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getVMSecurityRulesWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.SecurityGroupViewParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the configured and effective security group rules on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the VM to check security * groups for. * * @param {string} parameters.targetResourceId ID of the target VM. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SecurityGroupViewResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SecurityGroupViewResult} [result] - The deserialized result object if an error did not occur. * See {@link SecurityGroupViewResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getVMSecurityRules(resourceGroupName: string, networkWatcherName: string, parameters: models.SecurityGroupViewParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getVMSecurityRules(resourceGroupName: string, networkWatcherName: string, parameters: models.SecurityGroupViewParameters, callback: ServiceCallback): void; getVMSecurityRules(resourceGroupName: string, networkWatcherName: string, parameters: models.SecurityGroupViewParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Initiate troubleshooting on a specified resource * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the resource to * troubleshoot. * * @param {string} parameters.targetResourceId The target resource to * troubleshoot. * * @param {string} parameters.storageId The ID for the storage account to save * the troubleshoot result. * * @param {string} parameters.storagePath The path to the blob to save the * troubleshoot result in. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getTroubleshootingWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.TroubleshootingParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Initiate troubleshooting on a specified resource * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the resource to * troubleshoot. * * @param {string} parameters.targetResourceId The target resource to * troubleshoot. * * @param {string} parameters.storageId The ID for the storage account to save * the troubleshoot result. * * @param {string} parameters.storagePath The path to the blob to save the * troubleshoot result in. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {TroubleshootingResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {TroubleshootingResult} [result] - The deserialized result object if an error did not occur. * See {@link TroubleshootingResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getTroubleshooting(resourceGroupName: string, networkWatcherName: string, parameters: models.TroubleshootingParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getTroubleshooting(resourceGroupName: string, networkWatcherName: string, parameters: models.TroubleshootingParameters, callback: ServiceCallback): void; getTroubleshooting(resourceGroupName: string, networkWatcherName: string, parameters: models.TroubleshootingParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the last completed troubleshooting result on a specified resource * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the resource to query the * troubleshooting result. * * @param {string} parameters.targetResourceId The target resource ID to query * the troubleshooting result. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getTroubleshootingResultWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.QueryTroubleshootingParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the last completed troubleshooting result on a specified resource * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the resource to query the * troubleshooting result. * * @param {string} parameters.targetResourceId The target resource ID to query * the troubleshooting result. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {TroubleshootingResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {TroubleshootingResult} [result] - The deserialized result object if an error did not occur. * See {@link TroubleshootingResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getTroubleshootingResult(resourceGroupName: string, networkWatcherName: string, parameters: models.QueryTroubleshootingParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getTroubleshootingResult(resourceGroupName: string, networkWatcherName: string, parameters: models.QueryTroubleshootingParameters, callback: ServiceCallback): void; getTroubleshootingResult(resourceGroupName: string, networkWatcherName: string, parameters: models.QueryTroubleshootingParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Configures flow log and traffic analytics (optional) on a specified * resource. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the configuration of flow * log. * * @param {string} parameters.targetResourceId The ID of the resource to * configure for flow log and traffic analytics (optional) . * * @param {string} parameters.storageId ID of the storage account which is used * to store the flow log. * * @param {boolean} parameters.enabled Flag to enable/disable flow logging. * * @param {object} [parameters.retentionPolicy] Parameters that define the * retention policy for flow log. * * @param {number} [parameters.retentionPolicy.days] Number of days to retain * flow log records. * * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * * @param {object} [parameters.format] Parameters that define the flow log * format. * * @param {string} [parameters.format.type] The file type of flow log. Possible * values include: 'JSON' * * @param {number} [parameters.format.version] The version (revision) of the * flow log. * * @param {object} [parameters.flowAnalyticsConfiguration] Parameters that * define the configuration of traffic analytics. * * @param {object} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration * Parameters that define the configuration of traffic analytics. * * @param {boolean} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled * Flag to enable/disable traffic analytics. * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId * The resource guid of the attached workspace * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion * The location of the attached workspace * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId * Resource Id of the attached workspace * * @param {number} * [parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] * The interval in minutes which would decide how frequently TA service should * do flow analytics * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ setFlowLogConfigurationWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogInformation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Configures flow log and traffic analytics (optional) on a specified * resource. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the configuration of flow * log. * * @param {string} parameters.targetResourceId The ID of the resource to * configure for flow log and traffic analytics (optional) . * * @param {string} parameters.storageId ID of the storage account which is used * to store the flow log. * * @param {boolean} parameters.enabled Flag to enable/disable flow logging. * * @param {object} [parameters.retentionPolicy] Parameters that define the * retention policy for flow log. * * @param {number} [parameters.retentionPolicy.days] Number of days to retain * flow log records. * * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * * @param {object} [parameters.format] Parameters that define the flow log * format. * * @param {string} [parameters.format.type] The file type of flow log. Possible * values include: 'JSON' * * @param {number} [parameters.format.version] The version (revision) of the * flow log. * * @param {object} [parameters.flowAnalyticsConfiguration] Parameters that * define the configuration of traffic analytics. * * @param {object} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration * Parameters that define the configuration of traffic analytics. * * @param {boolean} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled * Flag to enable/disable traffic analytics. * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId * The resource guid of the attached workspace * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion * The location of the attached workspace * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId * Resource Id of the attached workspace * * @param {number} * [parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] * The interval in minutes which would decide how frequently TA service should * do flow analytics * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {FlowLogInformation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {FlowLogInformation} [result] - The deserialized result object if an error did not occur. * See {@link FlowLogInformation} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ setFlowLogConfiguration(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogInformation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; setFlowLogConfiguration(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogInformation, callback: ServiceCallback): void; setFlowLogConfiguration(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogInformation, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Queries status of flow log and traffic analytics (optional) on a specified * resource. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define a resource to query flow * log and traffic analytics (optional) status. * * @param {string} parameters.targetResourceId The target resource where * getting the flow log and traffic analytics (optional) status. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getFlowLogStatusWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogStatusParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Queries status of flow log and traffic analytics (optional) on a specified * resource. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define a resource to query flow * log and traffic analytics (optional) status. * * @param {string} parameters.targetResourceId The target resource where * getting the flow log and traffic analytics (optional) status. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {FlowLogInformation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {FlowLogInformation} [result] - The deserialized result object if an error did not occur. * See {@link FlowLogInformation} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getFlowLogStatus(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogStatusParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getFlowLogStatus(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogStatusParameters, callback: ServiceCallback): void; getFlowLogStatus(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogStatusParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Verifies the possibility of establishing a direct TCP connection from a * virtual machine to a given endpoint including another VM or an arbitrary * remote server. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that determine how the connectivity * check will be performed. * * @param {object} parameters.source Describes the source of the connection. * * @param {string} parameters.source.resourceId The ID of the resource from * which a connectivity check will be initiated. * * @param {number} [parameters.source.port] The source port from which a * connectivity check will be performed. * * @param {object} parameters.destination Describes the destination of * connection. * * @param {string} [parameters.destination.resourceId] The ID of the resource * to which a connection attempt will be made. * * @param {string} [parameters.destination.address] The IP address or URI the * resource to which a connection attempt will be made. * * @param {number} [parameters.destination.port] Port on which check * connectivity will be performed. * * @param {string} [parameters.protocol] Network protocol. Possible values * include: 'Tcp', 'Http', 'Https', 'Icmp' * * @param {object} [parameters.protocolConfiguration] Configuration of the * protocol. * * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] HTTP * configuration of the connectivity check. * * @param {string} [parameters.protocolConfiguration.hTTPConfiguration.method] * HTTP method. Possible values include: 'Get' * * @param {array} [parameters.protocolConfiguration.hTTPConfiguration.headers] * List of HTTP headers. * * @param {array} * [parameters.protocolConfiguration.hTTPConfiguration.validStatusCodes] Valid * status codes. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ checkConnectivityWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.ConnectivityParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Verifies the possibility of establishing a direct TCP connection from a * virtual machine to a given endpoint including another VM or an arbitrary * remote server. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that determine how the connectivity * check will be performed. * * @param {object} parameters.source Describes the source of the connection. * * @param {string} parameters.source.resourceId The ID of the resource from * which a connectivity check will be initiated. * * @param {number} [parameters.source.port] The source port from which a * connectivity check will be performed. * * @param {object} parameters.destination Describes the destination of * connection. * * @param {string} [parameters.destination.resourceId] The ID of the resource * to which a connection attempt will be made. * * @param {string} [parameters.destination.address] The IP address or URI the * resource to which a connection attempt will be made. * * @param {number} [parameters.destination.port] Port on which check * connectivity will be performed. * * @param {string} [parameters.protocol] Network protocol. Possible values * include: 'Tcp', 'Http', 'Https', 'Icmp' * * @param {object} [parameters.protocolConfiguration] Configuration of the * protocol. * * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] HTTP * configuration of the connectivity check. * * @param {string} [parameters.protocolConfiguration.hTTPConfiguration.method] * HTTP method. Possible values include: 'Get' * * @param {array} [parameters.protocolConfiguration.hTTPConfiguration.headers] * List of HTTP headers. * * @param {array} * [parameters.protocolConfiguration.hTTPConfiguration.validStatusCodes] Valid * status codes. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectivityInformation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectivityInformation} [result] - The deserialized result object if an error did not occur. * See {@link ConnectivityInformation} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ checkConnectivity(resourceGroupName: string, networkWatcherName: string, parameters: models.ConnectivityParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; checkConnectivity(resourceGroupName: string, networkWatcherName: string, parameters: models.ConnectivityParameters, callback: ServiceCallback): void; checkConnectivity(resourceGroupName: string, networkWatcherName: string, parameters: models.ConnectivityParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the relative latency score for internet service providers from a * specified location to Azure regions. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that determine Azure reachability * report configuration. * * @param {object} parameters.providerLocation Parameters that define a * geographic location. * * @param {string} parameters.providerLocation.country The name of the country. * * @param {string} [parameters.providerLocation.state] The name of the state. * * @param {string} [parameters.providerLocation.city] The name of the city or * town. * * @param {array} [parameters.providers] List of Internet service providers. * * @param {array} [parameters.azureLocations] Optional Azure regions to scope * the query to. * * @param {date} parameters.startTime The start time for the Azure reachability * report. * * @param {date} parameters.endTime The end time for the Azure reachability * report. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getAzureReachabilityReportWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.AzureReachabilityReportParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the relative latency score for internet service providers from a * specified location to Azure regions. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that determine Azure reachability * report configuration. * * @param {object} parameters.providerLocation Parameters that define a * geographic location. * * @param {string} parameters.providerLocation.country The name of the country. * * @param {string} [parameters.providerLocation.state] The name of the state. * * @param {string} [parameters.providerLocation.city] The name of the city or * town. * * @param {array} [parameters.providers] List of Internet service providers. * * @param {array} [parameters.azureLocations] Optional Azure regions to scope * the query to. * * @param {date} parameters.startTime The start time for the Azure reachability * report. * * @param {date} parameters.endTime The end time for the Azure reachability * report. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureReachabilityReport} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureReachabilityReport} [result] - The deserialized result object if an error did not occur. * See {@link AzureReachabilityReport} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getAzureReachabilityReport(resourceGroupName: string, networkWatcherName: string, parameters: models.AzureReachabilityReportParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getAzureReachabilityReport(resourceGroupName: string, networkWatcherName: string, parameters: models.AzureReachabilityReportParameters, callback: ServiceCallback): void; getAzureReachabilityReport(resourceGroupName: string, networkWatcherName: string, parameters: models.AzureReachabilityReportParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all available internet service providers for a specified Azure region. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that scope the list of available * providers. * * @param {array} [parameters.azureLocations] A list of Azure regions. * * @param {string} [parameters.country] The country for available providers * list. * * @param {string} [parameters.state] The state for available providers list. * * @param {string} [parameters.city] The city or town for available providers * list. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAvailableProvidersWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.AvailableProvidersListParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all available internet service providers for a specified Azure region. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that scope the list of available * providers. * * @param {array} [parameters.azureLocations] A list of Azure regions. * * @param {string} [parameters.country] The country for available providers * list. * * @param {string} [parameters.state] The state for available providers list. * * @param {string} [parameters.city] The city or town for available providers * list. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AvailableProvidersList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AvailableProvidersList} [result] - The deserialized result object if an error did not occur. * See {@link AvailableProvidersList} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAvailableProviders(resourceGroupName: string, networkWatcherName: string, parameters: models.AvailableProvidersListParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAvailableProviders(resourceGroupName: string, networkWatcherName: string, parameters: models.AvailableProvidersListParameters, callback: ServiceCallback): void; listAvailableProviders(resourceGroupName: string, networkWatcherName: string, parameters: models.AvailableProvidersListParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get network configuration diagnostic. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters to get network configuration * diagnostic. * * @param {string} parameters.targetResourceId The ID of the target resource to * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', * 'Minimum', 'Full' * * @param {array} parameters.profiles List of network configuration diagnostic * profiles. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getNetworkConfigurationDiagnosticWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkConfigurationDiagnosticParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get network configuration diagnostic. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters to get network configuration * diagnostic. * * @param {string} parameters.targetResourceId The ID of the target resource to * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', * 'Minimum', 'Full' * * @param {array} parameters.profiles List of network configuration diagnostic * profiles. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkConfigurationDiagnosticResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkConfigurationDiagnosticResponse} [result] - The deserialized result object if an error did not occur. * See {@link NetworkConfigurationDiagnosticResponse} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getNetworkConfigurationDiagnostic(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkConfigurationDiagnosticParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getNetworkConfigurationDiagnostic(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkConfigurationDiagnosticParameters, callback: ServiceCallback): void; getNetworkConfigurationDiagnostic(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkConfigurationDiagnosticParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified network watcher resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified network watcher resource. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, networkWatcherName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, networkWatcherName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Verify IP flow from the specified VM to a location given the currently * configured NSG rules. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the IP flow to be * verified. * * @param {string} parameters.targetResourceId The ID of the target resource to * perform next-hop on. * * @param {string} parameters.direction The direction of the packet represented * as a 5-tuple. Possible values include: 'Inbound', 'Outbound' * * @param {string} parameters.protocol Protocol to be verified on. Possible * values include: 'TCP', 'UDP' * * @param {string} parameters.localPort The local port. Acceptable values are a * single integer in the range (0-65535). Support for * for the source port, * which depends on the direction. * * @param {string} parameters.remotePort The remote port. Acceptable values are * a single integer in the range (0-65535). Support for * for the source port, * which depends on the direction. * * @param {string} parameters.localIPAddress The local IP address. Acceptable * values are valid IPv4 addresses. * * @param {string} parameters.remoteIPAddress The remote IP address. Acceptable * values are valid IPv4 addresses. * * @param {string} [parameters.targetNicResourceId] The NIC ID. (If VM has * multiple NICs and IP forwarding is enabled on any of them, then this * parameter must be specified. Otherwise optional). * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginVerifyIPFlowWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.VerificationIPFlowParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Verify IP flow from the specified VM to a location given the currently * configured NSG rules. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the IP flow to be * verified. * * @param {string} parameters.targetResourceId The ID of the target resource to * perform next-hop on. * * @param {string} parameters.direction The direction of the packet represented * as a 5-tuple. Possible values include: 'Inbound', 'Outbound' * * @param {string} parameters.protocol Protocol to be verified on. Possible * values include: 'TCP', 'UDP' * * @param {string} parameters.localPort The local port. Acceptable values are a * single integer in the range (0-65535). Support for * for the source port, * which depends on the direction. * * @param {string} parameters.remotePort The remote port. Acceptable values are * a single integer in the range (0-65535). Support for * for the source port, * which depends on the direction. * * @param {string} parameters.localIPAddress The local IP address. Acceptable * values are valid IPv4 addresses. * * @param {string} parameters.remoteIPAddress The remote IP address. Acceptable * values are valid IPv4 addresses. * * @param {string} [parameters.targetNicResourceId] The NIC ID. (If VM has * multiple NICs and IP forwarding is enabled on any of them, then this * parameter must be specified. Otherwise optional). * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VerificationIPFlowResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VerificationIPFlowResult} [result] - The deserialized result object if an error did not occur. * See {@link VerificationIPFlowResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginVerifyIPFlow(resourceGroupName: string, networkWatcherName: string, parameters: models.VerificationIPFlowParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginVerifyIPFlow(resourceGroupName: string, networkWatcherName: string, parameters: models.VerificationIPFlowParameters, callback: ServiceCallback): void; beginVerifyIPFlow(resourceGroupName: string, networkWatcherName: string, parameters: models.VerificationIPFlowParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the next hop from the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the source and destination * endpoint. * * @param {string} parameters.targetResourceId The resource identifier of the * target resource against which the action is to be performed. * * @param {string} parameters.sourceIPAddress The source IP address. * * @param {string} parameters.destinationIPAddress The destination IP address. * * @param {string} [parameters.targetNicResourceId] The NIC ID. (If VM has * multiple NICs and IP forwarding is enabled on any of the nics, then this * parameter must be specified. Otherwise optional). * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetNextHopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.NextHopParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the next hop from the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the source and destination * endpoint. * * @param {string} parameters.targetResourceId The resource identifier of the * target resource against which the action is to be performed. * * @param {string} parameters.sourceIPAddress The source IP address. * * @param {string} parameters.destinationIPAddress The destination IP address. * * @param {string} [parameters.targetNicResourceId] The NIC ID. (If VM has * multiple NICs and IP forwarding is enabled on any of the nics, then this * parameter must be specified. Otherwise optional). * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NextHopResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NextHopResult} [result] - The deserialized result object if an error did not occur. * See {@link NextHopResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetNextHop(resourceGroupName: string, networkWatcherName: string, parameters: models.NextHopParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetNextHop(resourceGroupName: string, networkWatcherName: string, parameters: models.NextHopParameters, callback: ServiceCallback): void; beginGetNextHop(resourceGroupName: string, networkWatcherName: string, parameters: models.NextHopParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the configured and effective security group rules on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the VM to check security * groups for. * * @param {string} parameters.targetResourceId ID of the target VM. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetVMSecurityRulesWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.SecurityGroupViewParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the configured and effective security group rules on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters that define the VM to check security * groups for. * * @param {string} parameters.targetResourceId ID of the target VM. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SecurityGroupViewResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SecurityGroupViewResult} [result] - The deserialized result object if an error did not occur. * See {@link SecurityGroupViewResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetVMSecurityRules(resourceGroupName: string, networkWatcherName: string, parameters: models.SecurityGroupViewParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetVMSecurityRules(resourceGroupName: string, networkWatcherName: string, parameters: models.SecurityGroupViewParameters, callback: ServiceCallback): void; beginGetVMSecurityRules(resourceGroupName: string, networkWatcherName: string, parameters: models.SecurityGroupViewParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Initiate troubleshooting on a specified resource * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the resource to * troubleshoot. * * @param {string} parameters.targetResourceId The target resource to * troubleshoot. * * @param {string} parameters.storageId The ID for the storage account to save * the troubleshoot result. * * @param {string} parameters.storagePath The path to the blob to save the * troubleshoot result in. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetTroubleshootingWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.TroubleshootingParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Initiate troubleshooting on a specified resource * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the resource to * troubleshoot. * * @param {string} parameters.targetResourceId The target resource to * troubleshoot. * * @param {string} parameters.storageId The ID for the storage account to save * the troubleshoot result. * * @param {string} parameters.storagePath The path to the blob to save the * troubleshoot result in. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {TroubleshootingResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {TroubleshootingResult} [result] - The deserialized result object if an error did not occur. * See {@link TroubleshootingResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetTroubleshooting(resourceGroupName: string, networkWatcherName: string, parameters: models.TroubleshootingParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetTroubleshooting(resourceGroupName: string, networkWatcherName: string, parameters: models.TroubleshootingParameters, callback: ServiceCallback): void; beginGetTroubleshooting(resourceGroupName: string, networkWatcherName: string, parameters: models.TroubleshootingParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the last completed troubleshooting result on a specified resource * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the resource to query the * troubleshooting result. * * @param {string} parameters.targetResourceId The target resource ID to query * the troubleshooting result. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetTroubleshootingResultWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.QueryTroubleshootingParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the last completed troubleshooting result on a specified resource * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the resource to query the * troubleshooting result. * * @param {string} parameters.targetResourceId The target resource ID to query * the troubleshooting result. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {TroubleshootingResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {TroubleshootingResult} [result] - The deserialized result object if an error did not occur. * See {@link TroubleshootingResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetTroubleshootingResult(resourceGroupName: string, networkWatcherName: string, parameters: models.QueryTroubleshootingParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetTroubleshootingResult(resourceGroupName: string, networkWatcherName: string, parameters: models.QueryTroubleshootingParameters, callback: ServiceCallback): void; beginGetTroubleshootingResult(resourceGroupName: string, networkWatcherName: string, parameters: models.QueryTroubleshootingParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Configures flow log and traffic analytics (optional) on a specified * resource. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the configuration of flow * log. * * @param {string} parameters.targetResourceId The ID of the resource to * configure for flow log and traffic analytics (optional) . * * @param {string} parameters.storageId ID of the storage account which is used * to store the flow log. * * @param {boolean} parameters.enabled Flag to enable/disable flow logging. * * @param {object} [parameters.retentionPolicy] Parameters that define the * retention policy for flow log. * * @param {number} [parameters.retentionPolicy.days] Number of days to retain * flow log records. * * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * * @param {object} [parameters.format] Parameters that define the flow log * format. * * @param {string} [parameters.format.type] The file type of flow log. Possible * values include: 'JSON' * * @param {number} [parameters.format.version] The version (revision) of the * flow log. * * @param {object} [parameters.flowAnalyticsConfiguration] Parameters that * define the configuration of traffic analytics. * * @param {object} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration * Parameters that define the configuration of traffic analytics. * * @param {boolean} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled * Flag to enable/disable traffic analytics. * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId * The resource guid of the attached workspace * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion * The location of the attached workspace * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId * Resource Id of the attached workspace * * @param {number} * [parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] * The interval in minutes which would decide how frequently TA service should * do flow analytics * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginSetFlowLogConfigurationWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogInformation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Configures flow log and traffic analytics (optional) on a specified * resource. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define the configuration of flow * log. * * @param {string} parameters.targetResourceId The ID of the resource to * configure for flow log and traffic analytics (optional) . * * @param {string} parameters.storageId ID of the storage account which is used * to store the flow log. * * @param {boolean} parameters.enabled Flag to enable/disable flow logging. * * @param {object} [parameters.retentionPolicy] Parameters that define the * retention policy for flow log. * * @param {number} [parameters.retentionPolicy.days] Number of days to retain * flow log records. * * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * * @param {object} [parameters.format] Parameters that define the flow log * format. * * @param {string} [parameters.format.type] The file type of flow log. Possible * values include: 'JSON' * * @param {number} [parameters.format.version] The version (revision) of the * flow log. * * @param {object} [parameters.flowAnalyticsConfiguration] Parameters that * define the configuration of traffic analytics. * * @param {object} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration * Parameters that define the configuration of traffic analytics. * * @param {boolean} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled * Flag to enable/disable traffic analytics. * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceId * The resource guid of the attached workspace * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceRegion * The location of the attached workspace * * @param {string} * parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.workspaceResourceId * Resource Id of the attached workspace * * @param {number} * [parameters.flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval] * The interval in minutes which would decide how frequently TA service should * do flow analytics * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {FlowLogInformation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {FlowLogInformation} [result] - The deserialized result object if an error did not occur. * See {@link FlowLogInformation} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginSetFlowLogConfiguration(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogInformation, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginSetFlowLogConfiguration(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogInformation, callback: ServiceCallback): void; beginSetFlowLogConfiguration(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogInformation, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Queries status of flow log and traffic analytics (optional) on a specified * resource. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define a resource to query flow * log and traffic analytics (optional) status. * * @param {string} parameters.targetResourceId The target resource where * getting the flow log and traffic analytics (optional) status. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetFlowLogStatusWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogStatusParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Queries status of flow log and traffic analytics (optional) on a specified * resource. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that define a resource to query flow * log and traffic analytics (optional) status. * * @param {string} parameters.targetResourceId The target resource where * getting the flow log and traffic analytics (optional) status. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {FlowLogInformation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {FlowLogInformation} [result] - The deserialized result object if an error did not occur. * See {@link FlowLogInformation} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetFlowLogStatus(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogStatusParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetFlowLogStatus(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogStatusParameters, callback: ServiceCallback): void; beginGetFlowLogStatus(resourceGroupName: string, networkWatcherName: string, parameters: models.FlowLogStatusParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Verifies the possibility of establishing a direct TCP connection from a * virtual machine to a given endpoint including another VM or an arbitrary * remote server. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that determine how the connectivity * check will be performed. * * @param {object} parameters.source Describes the source of the connection. * * @param {string} parameters.source.resourceId The ID of the resource from * which a connectivity check will be initiated. * * @param {number} [parameters.source.port] The source port from which a * connectivity check will be performed. * * @param {object} parameters.destination Describes the destination of * connection. * * @param {string} [parameters.destination.resourceId] The ID of the resource * to which a connection attempt will be made. * * @param {string} [parameters.destination.address] The IP address or URI the * resource to which a connection attempt will be made. * * @param {number} [parameters.destination.port] Port on which check * connectivity will be performed. * * @param {string} [parameters.protocol] Network protocol. Possible values * include: 'Tcp', 'Http', 'Https', 'Icmp' * * @param {object} [parameters.protocolConfiguration] Configuration of the * protocol. * * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] HTTP * configuration of the connectivity check. * * @param {string} [parameters.protocolConfiguration.hTTPConfiguration.method] * HTTP method. Possible values include: 'Get' * * @param {array} [parameters.protocolConfiguration.hTTPConfiguration.headers] * List of HTTP headers. * * @param {array} * [parameters.protocolConfiguration.hTTPConfiguration.validStatusCodes] Valid * status codes. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCheckConnectivityWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.ConnectivityParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Verifies the possibility of establishing a direct TCP connection from a * virtual machine to a given endpoint including another VM or an arbitrary * remote server. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that determine how the connectivity * check will be performed. * * @param {object} parameters.source Describes the source of the connection. * * @param {string} parameters.source.resourceId The ID of the resource from * which a connectivity check will be initiated. * * @param {number} [parameters.source.port] The source port from which a * connectivity check will be performed. * * @param {object} parameters.destination Describes the destination of * connection. * * @param {string} [parameters.destination.resourceId] The ID of the resource * to which a connection attempt will be made. * * @param {string} [parameters.destination.address] The IP address or URI the * resource to which a connection attempt will be made. * * @param {number} [parameters.destination.port] Port on which check * connectivity will be performed. * * @param {string} [parameters.protocol] Network protocol. Possible values * include: 'Tcp', 'Http', 'Https', 'Icmp' * * @param {object} [parameters.protocolConfiguration] Configuration of the * protocol. * * @param {object} [parameters.protocolConfiguration.hTTPConfiguration] HTTP * configuration of the connectivity check. * * @param {string} [parameters.protocolConfiguration.hTTPConfiguration.method] * HTTP method. Possible values include: 'Get' * * @param {array} [parameters.protocolConfiguration.hTTPConfiguration.headers] * List of HTTP headers. * * @param {array} * [parameters.protocolConfiguration.hTTPConfiguration.validStatusCodes] Valid * status codes. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectivityInformation} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectivityInformation} [result] - The deserialized result object if an error did not occur. * See {@link ConnectivityInformation} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCheckConnectivity(resourceGroupName: string, networkWatcherName: string, parameters: models.ConnectivityParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCheckConnectivity(resourceGroupName: string, networkWatcherName: string, parameters: models.ConnectivityParameters, callback: ServiceCallback): void; beginCheckConnectivity(resourceGroupName: string, networkWatcherName: string, parameters: models.ConnectivityParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the relative latency score for internet service providers from a * specified location to Azure regions. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that determine Azure reachability * report configuration. * * @param {object} parameters.providerLocation Parameters that define a * geographic location. * * @param {string} parameters.providerLocation.country The name of the country. * * @param {string} [parameters.providerLocation.state] The name of the state. * * @param {string} [parameters.providerLocation.city] The name of the city or * town. * * @param {array} [parameters.providers] List of Internet service providers. * * @param {array} [parameters.azureLocations] Optional Azure regions to scope * the query to. * * @param {date} parameters.startTime The start time for the Azure reachability * report. * * @param {date} parameters.endTime The end time for the Azure reachability * report. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetAzureReachabilityReportWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.AzureReachabilityReportParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the relative latency score for internet service providers from a * specified location to Azure regions. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that determine Azure reachability * report configuration. * * @param {object} parameters.providerLocation Parameters that define a * geographic location. * * @param {string} parameters.providerLocation.country The name of the country. * * @param {string} [parameters.providerLocation.state] The name of the state. * * @param {string} [parameters.providerLocation.city] The name of the city or * town. * * @param {array} [parameters.providers] List of Internet service providers. * * @param {array} [parameters.azureLocations] Optional Azure regions to scope * the query to. * * @param {date} parameters.startTime The start time for the Azure reachability * report. * * @param {date} parameters.endTime The end time for the Azure reachability * report. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AzureReachabilityReport} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AzureReachabilityReport} [result] - The deserialized result object if an error did not occur. * See {@link AzureReachabilityReport} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetAzureReachabilityReport(resourceGroupName: string, networkWatcherName: string, parameters: models.AzureReachabilityReportParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetAzureReachabilityReport(resourceGroupName: string, networkWatcherName: string, parameters: models.AzureReachabilityReportParameters, callback: ServiceCallback): void; beginGetAzureReachabilityReport(resourceGroupName: string, networkWatcherName: string, parameters: models.AzureReachabilityReportParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all available internet service providers for a specified Azure region. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that scope the list of available * providers. * * @param {array} [parameters.azureLocations] A list of Azure regions. * * @param {string} [parameters.country] The country for available providers * list. * * @param {string} [parameters.state] The state for available providers list. * * @param {string} [parameters.city] The city or town for available providers * list. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginListAvailableProvidersWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.AvailableProvidersListParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all available internet service providers for a specified Azure region. * * @param {string} resourceGroupName The name of the network watcher resource * group. * * @param {string} networkWatcherName The name of the network watcher resource. * * @param {object} parameters Parameters that scope the list of available * providers. * * @param {array} [parameters.azureLocations] A list of Azure regions. * * @param {string} [parameters.country] The country for available providers * list. * * @param {string} [parameters.state] The state for available providers list. * * @param {string} [parameters.city] The city or town for available providers * list. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {AvailableProvidersList} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {AvailableProvidersList} [result] - The deserialized result object if an error did not occur. * See {@link AvailableProvidersList} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginListAvailableProviders(resourceGroupName: string, networkWatcherName: string, parameters: models.AvailableProvidersListParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginListAvailableProviders(resourceGroupName: string, networkWatcherName: string, parameters: models.AvailableProvidersListParameters, callback: ServiceCallback): void; beginListAvailableProviders(resourceGroupName: string, networkWatcherName: string, parameters: models.AvailableProvidersListParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get network configuration diagnostic. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters to get network configuration * diagnostic. * * @param {string} parameters.targetResourceId The ID of the target resource to * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', * 'Minimum', 'Full' * * @param {array} parameters.profiles List of network configuration diagnostic * profiles. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetNetworkConfigurationDiagnosticWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkConfigurationDiagnosticParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get network configuration diagnostic. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {object} parameters Parameters to get network configuration * diagnostic. * * @param {string} parameters.targetResourceId The ID of the target resource to * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', * 'Minimum', 'Full' * * @param {array} parameters.profiles List of network configuration diagnostic * profiles. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {NetworkConfigurationDiagnosticResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {NetworkConfigurationDiagnosticResponse} [result] - The deserialized result object if an error did not occur. * See {@link NetworkConfigurationDiagnosticResponse} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetNetworkConfigurationDiagnostic(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkConfigurationDiagnosticParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetNetworkConfigurationDiagnostic(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkConfigurationDiagnosticParameters, callback: ServiceCallback): void; beginGetNetworkConfigurationDiagnostic(resourceGroupName: string, networkWatcherName: string, parameters: models.NetworkConfigurationDiagnosticParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * PacketCaptures * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface PacketCaptures { /** * Create and start a packet capture on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} parameters Parameters that define the create packet capture * operation. * * @param {string} parameters.target The ID of the targeted resource, only VM * is currently supported. * * @param {number} [parameters.bytesToCapturePerPacket] Number of bytes * captured per packet, the remaining bytes are truncated. * * @param {number} [parameters.totalBytesPerSession] Maximum size of the * capture output. * * @param {number} [parameters.timeLimitInSeconds] Maximum duration of the * capture session in seconds. * * @param {object} parameters.storageLocation Describes the storage location * for a packet capture session. * * @param {string} [parameters.storageLocation.storageId] The ID of the storage * account to save the packet capture session. Required if no local file path * is provided. * * @param {string} [parameters.storageLocation.storagePath] The URI of the * storage path to save the packet capture. Must be a well-formed URI * describing the location to save the packet capture. * * @param {string} [parameters.storageLocation.filePath] A valid local path on * the targeting VM. Must include the name of the capture file (*.cap). For * linux virtual machine it must start with /var/captures. Required if no * storage ID is provided, otherwise optional. * * @param {array} [parameters.filters] A list of packet capture filters. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, parameters: models.PacketCapture, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create and start a packet capture on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} parameters Parameters that define the create packet capture * operation. * * @param {string} parameters.target The ID of the targeted resource, only VM * is currently supported. * * @param {number} [parameters.bytesToCapturePerPacket] Number of bytes * captured per packet, the remaining bytes are truncated. * * @param {number} [parameters.totalBytesPerSession] Maximum size of the * capture output. * * @param {number} [parameters.timeLimitInSeconds] Maximum duration of the * capture session in seconds. * * @param {object} parameters.storageLocation Describes the storage location * for a packet capture session. * * @param {string} [parameters.storageLocation.storageId] The ID of the storage * account to save the packet capture session. Required if no local file path * is provided. * * @param {string} [parameters.storageLocation.storagePath] The URI of the * storage path to save the packet capture. Must be a well-formed URI * describing the location to save the packet capture. * * @param {string} [parameters.storageLocation.filePath] A valid local path on * the targeting VM. Must include the name of the capture file (*.cap). For * linux virtual machine it must start with /var/captures. Required if no * storage ID is provided, otherwise optional. * * @param {array} [parameters.filters] A list of packet capture filters. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PacketCaptureResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PacketCaptureResult} [result] - The deserialized result object if an error did not occur. * See {@link PacketCaptureResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ create(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, parameters: models.PacketCapture, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; create(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, parameters: models.PacketCapture, callback: ServiceCallback): void; create(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, parameters: models.PacketCapture, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets a packet capture session by name. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets a packet capture session by name. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PacketCaptureResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PacketCaptureResult} [result] - The deserialized result object if an error did not occur. * See {@link PacketCaptureResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, callback: ServiceCallback): void; get(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Stops a specified packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ stopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Stops a specified packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ stop(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; stop(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, callback: ServiceCallback): void; stop(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Query the status of a running packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} packetCaptureName The name given to the packet capture * session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getStatusWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Query the status of a running packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} packetCaptureName The name given to the packet capture * session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PacketCaptureQueryStatusResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PacketCaptureQueryStatusResult} [result] - The deserialized result object if an error did not occur. * See {@link PacketCaptureQueryStatusResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getStatus(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getStatus(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, callback: ServiceCallback): void; getStatus(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all packet capture sessions within the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all packet capture sessions within the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PacketCaptureListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PacketCaptureListResult} [result] - The deserialized result object if an error did not occur. * See {@link PacketCaptureListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, networkWatcherName: string, callback: ServiceCallback): void; list(resourceGroupName: string, networkWatcherName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Create and start a packet capture on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} parameters Parameters that define the create packet capture * operation. * * @param {string} parameters.target The ID of the targeted resource, only VM * is currently supported. * * @param {number} [parameters.bytesToCapturePerPacket] Number of bytes * captured per packet, the remaining bytes are truncated. * * @param {number} [parameters.totalBytesPerSession] Maximum size of the * capture output. * * @param {number} [parameters.timeLimitInSeconds] Maximum duration of the * capture session in seconds. * * @param {object} parameters.storageLocation Describes the storage location * for a packet capture session. * * @param {string} [parameters.storageLocation.storageId] The ID of the storage * account to save the packet capture session. Required if no local file path * is provided. * * @param {string} [parameters.storageLocation.storagePath] The URI of the * storage path to save the packet capture. Must be a well-formed URI * describing the location to save the packet capture. * * @param {string} [parameters.storageLocation.filePath] A valid local path on * the targeting VM. Must include the name of the capture file (*.cap). For * linux virtual machine it must start with /var/captures. Required if no * storage ID is provided, otherwise optional. * * @param {array} [parameters.filters] A list of packet capture filters. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, parameters: models.PacketCapture, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create and start a packet capture on the specified VM. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} parameters Parameters that define the create packet capture * operation. * * @param {string} parameters.target The ID of the targeted resource, only VM * is currently supported. * * @param {number} [parameters.bytesToCapturePerPacket] Number of bytes * captured per packet, the remaining bytes are truncated. * * @param {number} [parameters.totalBytesPerSession] Maximum size of the * capture output. * * @param {number} [parameters.timeLimitInSeconds] Maximum duration of the * capture session in seconds. * * @param {object} parameters.storageLocation Describes the storage location * for a packet capture session. * * @param {string} [parameters.storageLocation.storageId] The ID of the storage * account to save the packet capture session. Required if no local file path * is provided. * * @param {string} [parameters.storageLocation.storagePath] The URI of the * storage path to save the packet capture. Must be a well-formed URI * describing the location to save the packet capture. * * @param {string} [parameters.storageLocation.filePath] A valid local path on * the targeting VM. Must include the name of the capture file (*.cap). For * linux virtual machine it must start with /var/captures. Required if no * storage ID is provided, otherwise optional. * * @param {array} [parameters.filters] A list of packet capture filters. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PacketCaptureResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PacketCaptureResult} [result] - The deserialized result object if an error did not occur. * See {@link PacketCaptureResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreate(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, parameters: models.PacketCapture, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreate(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, parameters: models.PacketCapture, callback: ServiceCallback): void; beginCreate(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, parameters: models.PacketCapture, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Stops a specified packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginStopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Stops a specified packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the network watcher. * * @param {string} packetCaptureName The name of the packet capture session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginStop(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginStop(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, callback: ServiceCallback): void; beginStop(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Query the status of a running packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} packetCaptureName The name given to the packet capture * session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetStatusWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Query the status of a running packet capture session. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} packetCaptureName The name given to the packet capture * session. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PacketCaptureQueryStatusResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PacketCaptureQueryStatusResult} [result] - The deserialized result object if an error did not occur. * See {@link PacketCaptureQueryStatusResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetStatus(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetStatus(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, callback: ServiceCallback): void; beginGetStatus(resourceGroupName: string, networkWatcherName: string, packetCaptureName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ConnectionMonitors * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ConnectionMonitors { /** * Create or update a connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} parameters Parameters that define the operation to create a * connection monitor. * * @param {string} [parameters.location] Connection monitor location. * * @param {object} [parameters.tags] Connection monitor tags. * * @param {object} parameters.source Describes the source of connection * monitor. * * @param {string} parameters.source.resourceId The ID of the resource used as * the source by connection monitor. * * @param {number} [parameters.source.port] The source port used by connection * monitor. * * @param {object} parameters.destination Describes the destination of * connection monitor. * * @param {string} [parameters.destination.resourceId] The ID of the resource * used as the destination by connection monitor. * * @param {string} [parameters.destination.address] Address of the connection * monitor destination (IP or domain name). * * @param {number} [parameters.destination.port] The destination port used by * connection monitor. * * @param {boolean} [parameters.autoStart] Determines if the connection monitor * will start automatically once created. * * @param {number} [parameters.monitoringIntervalInSeconds] Monitoring interval * in seconds. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, parameters: models.ConnectionMonitor, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create or update a connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} parameters Parameters that define the operation to create a * connection monitor. * * @param {string} [parameters.location] Connection monitor location. * * @param {object} [parameters.tags] Connection monitor tags. * * @param {object} parameters.source Describes the source of connection * monitor. * * @param {string} parameters.source.resourceId The ID of the resource used as * the source by connection monitor. * * @param {number} [parameters.source.port] The source port used by connection * monitor. * * @param {object} parameters.destination Describes the destination of * connection monitor. * * @param {string} [parameters.destination.resourceId] The ID of the resource * used as the destination by connection monitor. * * @param {string} [parameters.destination.address] Address of the connection * monitor destination (IP or domain name). * * @param {number} [parameters.destination.port] The destination port used by * connection monitor. * * @param {boolean} [parameters.autoStart] Determines if the connection monitor * will start automatically once created. * * @param {number} [parameters.monitoringIntervalInSeconds] Monitoring interval * in seconds. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionMonitorResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionMonitorResult} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionMonitorResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, parameters: models.ConnectionMonitor, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, parameters: models.ConnectionMonitor, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, parameters: models.ConnectionMonitor, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets a connection monitor by name. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets a connection monitor by name. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionMonitorResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionMonitorResult} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionMonitorResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, callback: ServiceCallback): void; get(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Stops the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ stopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Stops the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ stop(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; stop(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, callback: ServiceCallback): void; stop(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Starts the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ startWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Starts the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ start(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; start(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, callback: ServiceCallback): void; start(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Query a snapshot of the most recent connection states. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name given to the connection * monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ queryWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Query a snapshot of the most recent connection states. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name given to the connection * monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionMonitorQueryResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionMonitorQueryResult} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionMonitorQueryResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ query(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; query(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, callback: ServiceCallback): void; query(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all connection monitors for the specified Network Watcher. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all connection monitors for the specified Network Watcher. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionMonitorListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionMonitorListResult} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionMonitorListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, networkWatcherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, networkWatcherName: string, callback: ServiceCallback): void; list(resourceGroupName: string, networkWatcherName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Create or update a connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} parameters Parameters that define the operation to create a * connection monitor. * * @param {string} [parameters.location] Connection monitor location. * * @param {object} [parameters.tags] Connection monitor tags. * * @param {object} parameters.source Describes the source of connection * monitor. * * @param {string} parameters.source.resourceId The ID of the resource used as * the source by connection monitor. * * @param {number} [parameters.source.port] The source port used by connection * monitor. * * @param {object} parameters.destination Describes the destination of * connection monitor. * * @param {string} [parameters.destination.resourceId] The ID of the resource * used as the destination by connection monitor. * * @param {string} [parameters.destination.address] Address of the connection * monitor destination (IP or domain name). * * @param {number} [parameters.destination.port] The destination port used by * connection monitor. * * @param {boolean} [parameters.autoStart] Determines if the connection monitor * will start automatically once created. * * @param {number} [parameters.monitoringIntervalInSeconds] Monitoring interval * in seconds. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, parameters: models.ConnectionMonitor, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create or update a connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} parameters Parameters that define the operation to create a * connection monitor. * * @param {string} [parameters.location] Connection monitor location. * * @param {object} [parameters.tags] Connection monitor tags. * * @param {object} parameters.source Describes the source of connection * monitor. * * @param {string} parameters.source.resourceId The ID of the resource used as * the source by connection monitor. * * @param {number} [parameters.source.port] The source port used by connection * monitor. * * @param {object} parameters.destination Describes the destination of * connection monitor. * * @param {string} [parameters.destination.resourceId] The ID of the resource * used as the destination by connection monitor. * * @param {string} [parameters.destination.address] Address of the connection * monitor destination (IP or domain name). * * @param {number} [parameters.destination.port] The destination port used by * connection monitor. * * @param {boolean} [parameters.autoStart] Determines if the connection monitor * will start automatically once created. * * @param {number} [parameters.monitoringIntervalInSeconds] Monitoring interval * in seconds. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionMonitorResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionMonitorResult} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionMonitorResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, parameters: models.ConnectionMonitor, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, parameters: models.ConnectionMonitor, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, parameters: models.ConnectionMonitor, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Stops the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginStopWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Stops the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginStop(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginStop(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, callback: ServiceCallback): void; beginStop(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Starts the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginStartWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Starts the specified connection monitor. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name of the connection monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginStart(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginStart(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, callback: ServiceCallback): void; beginStart(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Query a snapshot of the most recent connection states. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name given to the connection * monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginQueryWithHttpOperationResponse(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Query a snapshot of the most recent connection states. * * @param {string} resourceGroupName The name of the resource group containing * Network Watcher. * * @param {string} networkWatcherName The name of the Network Watcher resource. * * @param {string} connectionMonitorName The name given to the connection * monitor. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionMonitorQueryResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionMonitorQueryResult} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionMonitorQueryResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginQuery(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginQuery(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, callback: ServiceCallback): void; beginQuery(resourceGroupName: string, networkWatcherName: string, connectionMonitorName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Operations * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface Operations { /** * Lists all of the available Network Rest API operations. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the available Network Rest API operations. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {OperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {OperationListResult} [result] - The deserialized result object if an error did not occur. * See {@link OperationListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all of the available Network Rest API operations. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the available Network Rest API operations. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {OperationListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {OperationListResult} [result] - The deserialized result object if an error did not occur. * See {@link OperationListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * PublicIPAddresses * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface PublicIPAddresses { /** * Deletes the specified public IP address. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified public IP address. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, publicIpAddressName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, publicIpAddressName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, publicIpAddressName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified public IP address in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified public IP address in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddress} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddress} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, publicIpAddressName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, publicIpAddressName: string, callback: ServiceCallback): void; get(resourceGroupName: string, publicIpAddressName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a static or dynamic public IP address. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the public IP address. * * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * * @param {object} [parameters.sku] The public IP address SKU. * * @param {string} [parameters.sku.name] Name of a public IP address SKU. * Possible values include: 'Basic', 'Standard' * * @param {string} [parameters.publicIPAllocationMethod] The public IP address * allocation method. Possible values include: 'Static', 'Dynamic' * * @param {string} [parameters.publicIPAddressVersion] The public IP address * version. Possible values include: 'IPv4', 'IPv6' * * @param {object} [parameters.dnsSettings] The FQDN of the DNS record * associated with the public IP address. * * @param {string} [parameters.dnsSettings.domainNameLabel] Gets or sets the * Domain name label.The concatenation of the domain name label and the * regionalized DNS zone make up the fully qualified domain name associated * with the public IP address. If a domain name label is specified, an A DNS * record is created for the public IP in the Microsoft Azure DNS system. * * @param {string} [parameters.dnsSettings.fqdn] Gets the FQDN, Fully qualified * domain name of the A DNS record associated with the public IP. This is the * concatenation of the domainNameLabel and the regionalized DNS zone. * * @param {string} [parameters.dnsSettings.reverseFqdn] Gets or Sets the * Reverse FQDN. A user-visible, fully qualified domain name that resolves to * this public IP address. If the reverseFqdn is specified, then a PTR DNS * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * * @param {object} [parameters.ddosSettings] The DDoS protection custom policy * associated with the public IP address. * * @param {object} [parameters.ddosSettings.ddosCustomPolicy] The DDoS custom * policy associated with the public IP. * * @param {string} [parameters.ddosSettings.protectionCoverage] The DDoS * protection policy customizability of the public IP. Only standard coverage * will have the ability to be customized. Possible values include: 'Basic', * 'Standard' * * @param {array} [parameters.ipTags] The list of tags associated with the * public IP address. * * @param {string} [parameters.ipAddress] The IP address associated with the * public IP address resource. * * @param {object} [parameters.publicIPPrefix] The Public IP Prefix this Public * IP Address should be allocated from. * * @param {string} [parameters.publicIPPrefix.id] Resource ID. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * public IP resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting the * IP allocated for the resource needs to come from. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, parameters: models.PublicIPAddress, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a static or dynamic public IP address. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the public IP address. * * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * * @param {object} [parameters.sku] The public IP address SKU. * * @param {string} [parameters.sku.name] Name of a public IP address SKU. * Possible values include: 'Basic', 'Standard' * * @param {string} [parameters.publicIPAllocationMethod] The public IP address * allocation method. Possible values include: 'Static', 'Dynamic' * * @param {string} [parameters.publicIPAddressVersion] The public IP address * version. Possible values include: 'IPv4', 'IPv6' * * @param {object} [parameters.dnsSettings] The FQDN of the DNS record * associated with the public IP address. * * @param {string} [parameters.dnsSettings.domainNameLabel] Gets or sets the * Domain name label.The concatenation of the domain name label and the * regionalized DNS zone make up the fully qualified domain name associated * with the public IP address. If a domain name label is specified, an A DNS * record is created for the public IP in the Microsoft Azure DNS system. * * @param {string} [parameters.dnsSettings.fqdn] Gets the FQDN, Fully qualified * domain name of the A DNS record associated with the public IP. This is the * concatenation of the domainNameLabel and the regionalized DNS zone. * * @param {string} [parameters.dnsSettings.reverseFqdn] Gets or Sets the * Reverse FQDN. A user-visible, fully qualified domain name that resolves to * this public IP address. If the reverseFqdn is specified, then a PTR DNS * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * * @param {object} [parameters.ddosSettings] The DDoS protection custom policy * associated with the public IP address. * * @param {object} [parameters.ddosSettings.ddosCustomPolicy] The DDoS custom * policy associated with the public IP. * * @param {string} [parameters.ddosSettings.protectionCoverage] The DDoS * protection policy customizability of the public IP. Only standard coverage * will have the ability to be customized. Possible values include: 'Basic', * 'Standard' * * @param {array} [parameters.ipTags] The list of tags associated with the * public IP address. * * @param {string} [parameters.ipAddress] The IP address associated with the * public IP address resource. * * @param {object} [parameters.publicIPPrefix] The Public IP Prefix this Public * IP Address should be allocated from. * * @param {string} [parameters.publicIPPrefix.id] Resource ID. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * public IP resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting the * IP allocated for the resource needs to come from. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddress} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddress} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: models.PublicIPAddress, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: models.PublicIPAddress, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: models.PublicIPAddress, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates public IP address tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the public IP address. * * @param {object} parameters Parameters supplied to update public IP address * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates public IP address tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the public IP address. * * @param {object} parameters Parameters supplied to update public IP address * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddress} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddress} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, publicIpAddressName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, publicIpAddressName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, publicIpAddressName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the public IP addresses in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the public IP addresses in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddressListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddressListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all public IP addresses in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all public IP addresses in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddressListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddressListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about all public IP addresses on a virtual machine scale * set level. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVirtualMachineScaleSetPublicIPAddressesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about all public IP addresses on a virtual machine scale * set level. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddressListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddressListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listVirtualMachineScaleSetPublicIPAddresses(resourceGroupName: string, virtualMachineScaleSetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listVirtualMachineScaleSetPublicIPAddresses(resourceGroupName: string, virtualMachineScaleSetName: string, callback: ServiceCallback): void; listVirtualMachineScaleSetPublicIPAddresses(resourceGroupName: string, virtualMachineScaleSetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about all public IP addresses in a virtual machine IP * configuration in a virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {string} networkInterfaceName The network interface name. * * @param {string} ipConfigurationName The IP configuration name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVirtualMachineScaleSetVMPublicIPAddressesWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about all public IP addresses in a virtual machine IP * configuration in a virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {string} networkInterfaceName The network interface name. * * @param {string} ipConfigurationName The IP configuration name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddressListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddressListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listVirtualMachineScaleSetVMPublicIPAddresses(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listVirtualMachineScaleSetVMPublicIPAddresses(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, callback: ServiceCallback): void; listVirtualMachineScaleSetVMPublicIPAddresses(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified public IP address in a virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} ipConfigurationName The name of the IP configuration. * * @param {string} publicIpAddressName The name of the public IP Address. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getVirtualMachineScaleSetPublicIPAddressWithHttpOperationResponse(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, publicIpAddressName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified public IP address in a virtual machine scale set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualMachineScaleSetName The name of the virtual machine * scale set. * * @param {string} virtualmachineIndex The virtual machine index. * * @param {string} networkInterfaceName The name of the network interface. * * @param {string} ipConfigurationName The name of the IP configuration. * * @param {string} publicIpAddressName The name of the public IP Address. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddress} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddress} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getVirtualMachineScaleSetPublicIPAddress(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, publicIpAddressName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; getVirtualMachineScaleSetPublicIPAddress(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, publicIpAddressName: string, callback: ServiceCallback): void; getVirtualMachineScaleSetPublicIPAddress(resourceGroupName: string, virtualMachineScaleSetName: string, virtualmachineIndex: string, networkInterfaceName: string, ipConfigurationName: string, publicIpAddressName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified public IP address. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified public IP address. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, publicIpAddressName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, publicIpAddressName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, publicIpAddressName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a static or dynamic public IP address. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the public IP address. * * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * * @param {object} [parameters.sku] The public IP address SKU. * * @param {string} [parameters.sku.name] Name of a public IP address SKU. * Possible values include: 'Basic', 'Standard' * * @param {string} [parameters.publicIPAllocationMethod] The public IP address * allocation method. Possible values include: 'Static', 'Dynamic' * * @param {string} [parameters.publicIPAddressVersion] The public IP address * version. Possible values include: 'IPv4', 'IPv6' * * @param {object} [parameters.dnsSettings] The FQDN of the DNS record * associated with the public IP address. * * @param {string} [parameters.dnsSettings.domainNameLabel] Gets or sets the * Domain name label.The concatenation of the domain name label and the * regionalized DNS zone make up the fully qualified domain name associated * with the public IP address. If a domain name label is specified, an A DNS * record is created for the public IP in the Microsoft Azure DNS system. * * @param {string} [parameters.dnsSettings.fqdn] Gets the FQDN, Fully qualified * domain name of the A DNS record associated with the public IP. This is the * concatenation of the domainNameLabel and the regionalized DNS zone. * * @param {string} [parameters.dnsSettings.reverseFqdn] Gets or Sets the * Reverse FQDN. A user-visible, fully qualified domain name that resolves to * this public IP address. If the reverseFqdn is specified, then a PTR DNS * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * * @param {object} [parameters.ddosSettings] The DDoS protection custom policy * associated with the public IP address. * * @param {object} [parameters.ddosSettings.ddosCustomPolicy] The DDoS custom * policy associated with the public IP. * * @param {string} [parameters.ddosSettings.protectionCoverage] The DDoS * protection policy customizability of the public IP. Only standard coverage * will have the ability to be customized. Possible values include: 'Basic', * 'Standard' * * @param {array} [parameters.ipTags] The list of tags associated with the * public IP address. * * @param {string} [parameters.ipAddress] The IP address associated with the * public IP address resource. * * @param {object} [parameters.publicIPPrefix] The Public IP Prefix this Public * IP Address should be allocated from. * * @param {string} [parameters.publicIPPrefix.id] Resource ID. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * public IP resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting the * IP allocated for the resource needs to come from. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, parameters: models.PublicIPAddress, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a static or dynamic public IP address. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the public IP address. * * @param {object} parameters Parameters supplied to the create or update * public IP address operation. * * @param {object} [parameters.sku] The public IP address SKU. * * @param {string} [parameters.sku.name] Name of a public IP address SKU. * Possible values include: 'Basic', 'Standard' * * @param {string} [parameters.publicIPAllocationMethod] The public IP address * allocation method. Possible values include: 'Static', 'Dynamic' * * @param {string} [parameters.publicIPAddressVersion] The public IP address * version. Possible values include: 'IPv4', 'IPv6' * * @param {object} [parameters.dnsSettings] The FQDN of the DNS record * associated with the public IP address. * * @param {string} [parameters.dnsSettings.domainNameLabel] Gets or sets the * Domain name label.The concatenation of the domain name label and the * regionalized DNS zone make up the fully qualified domain name associated * with the public IP address. If a domain name label is specified, an A DNS * record is created for the public IP in the Microsoft Azure DNS system. * * @param {string} [parameters.dnsSettings.fqdn] Gets the FQDN, Fully qualified * domain name of the A DNS record associated with the public IP. This is the * concatenation of the domainNameLabel and the regionalized DNS zone. * * @param {string} [parameters.dnsSettings.reverseFqdn] Gets or Sets the * Reverse FQDN. A user-visible, fully qualified domain name that resolves to * this public IP address. If the reverseFqdn is specified, then a PTR DNS * record is created pointing from the IP address in the in-addr.arpa domain to * the reverse FQDN. * * @param {object} [parameters.ddosSettings] The DDoS protection custom policy * associated with the public IP address. * * @param {object} [parameters.ddosSettings.ddosCustomPolicy] The DDoS custom * policy associated with the public IP. * * @param {string} [parameters.ddosSettings.protectionCoverage] The DDoS * protection policy customizability of the public IP. Only standard coverage * will have the ability to be customized. Possible values include: 'Basic', * 'Standard' * * @param {array} [parameters.ipTags] The list of tags associated with the * public IP address. * * @param {string} [parameters.ipAddress] The IP address associated with the * public IP address resource. * * @param {object} [parameters.publicIPPrefix] The Public IP Prefix this Public * IP Address should be allocated from. * * @param {string} [parameters.publicIPPrefix.id] Resource ID. * * @param {number} [parameters.idleTimeoutInMinutes] The idle timeout of the * public IP address. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * public IP resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting the * IP allocated for the resource needs to come from. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddress} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddress} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: models.PublicIPAddress, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: models.PublicIPAddress, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: models.PublicIPAddress, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates public IP address tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the public IP address. * * @param {object} parameters Parameters supplied to update public IP address * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, publicIpAddressName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates public IP address tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpAddressName The name of the public IP address. * * @param {object} parameters Parameters supplied to update public IP address * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddress} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddress} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddress} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, publicIpAddressName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, publicIpAddressName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, publicIpAddressName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the public IP addresses in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the public IP addresses in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddressListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddressListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all public IP addresses in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all public IP addresses in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddressListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddressListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about all public IP addresses on a virtual machine scale * set level. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVirtualMachineScaleSetPublicIPAddressesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about all public IP addresses on a virtual machine scale * set level. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddressListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddressListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listVirtualMachineScaleSetPublicIPAddressesNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listVirtualMachineScaleSetPublicIPAddressesNext(nextPageLink: string, callback: ServiceCallback): void; listVirtualMachineScaleSetPublicIPAddressesNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about all public IP addresses in a virtual machine IP * configuration in a virtual machine scale set. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVirtualMachineScaleSetVMPublicIPAddressesNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about all public IP addresses in a virtual machine IP * configuration in a virtual machine scale set. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPAddressListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPAddressListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPAddressListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listVirtualMachineScaleSetVMPublicIPAddressesNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listVirtualMachineScaleSetVMPublicIPAddressesNext(nextPageLink: string, callback: ServiceCallback): void; listVirtualMachineScaleSetVMPublicIPAddressesNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * PublicIPPrefixes * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface PublicIPPrefixes { /** * Deletes the specified public IP prefix. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the PublicIpPrefix. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, publicIpPrefixName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified public IP prefix. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the PublicIpPrefix. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, publicIpPrefixName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, publicIpPrefixName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, publicIpPrefixName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified public IP prefix in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the public IP prefix. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, publicIpPrefixName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified public IP prefix in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the public IP prefix. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPPrefix} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPPrefix} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPPrefix} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, publicIpPrefixName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, publicIpPrefixName: string, callback: ServiceCallback): void; get(resourceGroupName: string, publicIpPrefixName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a static or dynamic public IP prefix. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the public IP prefix. * * @param {object} parameters Parameters supplied to the create or update * public IP prefix operation. * * @param {object} [parameters.sku] The public IP prefix SKU. * * @param {string} [parameters.sku.name] Name of a public IP prefix SKU. * Possible values include: 'Standard' * * @param {string} [parameters.publicIPAddressVersion] The public IP address * version. Possible values include: 'IPv4', 'IPv6' * * @param {array} [parameters.ipTags] The list of tags associated with the * public IP prefix. * * @param {number} [parameters.prefixLength] The Length of the Public IP * Prefix. * * @param {string} [parameters.ipPrefix] The allocated Prefix * * @param {array} [parameters.publicIPAddresses] The list of all referenced * PublicIPAddresses * * @param {string} [parameters.resourceGuid] The resource GUID property of the * public IP prefix resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * Public IP prefix resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting the * IP allocated for the resource needs to come from. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, publicIpPrefixName: string, parameters: models.PublicIPPrefix, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a static or dynamic public IP prefix. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the public IP prefix. * * @param {object} parameters Parameters supplied to the create or update * public IP prefix operation. * * @param {object} [parameters.sku] The public IP prefix SKU. * * @param {string} [parameters.sku.name] Name of a public IP prefix SKU. * Possible values include: 'Standard' * * @param {string} [parameters.publicIPAddressVersion] The public IP address * version. Possible values include: 'IPv4', 'IPv6' * * @param {array} [parameters.ipTags] The list of tags associated with the * public IP prefix. * * @param {number} [parameters.prefixLength] The Length of the Public IP * Prefix. * * @param {string} [parameters.ipPrefix] The allocated Prefix * * @param {array} [parameters.publicIPAddresses] The list of all referenced * PublicIPAddresses * * @param {string} [parameters.resourceGuid] The resource GUID property of the * public IP prefix resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * Public IP prefix resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting the * IP allocated for the resource needs to come from. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPPrefix} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPPrefix} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPPrefix} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, publicIpPrefixName: string, parameters: models.PublicIPPrefix, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, publicIpPrefixName: string, parameters: models.PublicIPPrefix, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, publicIpPrefixName: string, parameters: models.PublicIPPrefix, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates public IP prefix tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the public IP prefix. * * @param {object} parameters Parameters supplied to update public IP prefix * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, publicIpPrefixName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates public IP prefix tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the public IP prefix. * * @param {object} parameters Parameters supplied to update public IP prefix * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPPrefix} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPPrefix} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPPrefix} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, publicIpPrefixName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, publicIpPrefixName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, publicIpPrefixName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the public IP prefixes in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the public IP prefixes in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPPrefixListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPPrefixListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPPrefixListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all public IP prefixes in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all public IP prefixes in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPPrefixListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPPrefixListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPPrefixListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified public IP prefix. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the PublicIpPrefix. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, publicIpPrefixName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified public IP prefix. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the PublicIpPrefix. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, publicIpPrefixName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, publicIpPrefixName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, publicIpPrefixName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a static or dynamic public IP prefix. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the public IP prefix. * * @param {object} parameters Parameters supplied to the create or update * public IP prefix operation. * * @param {object} [parameters.sku] The public IP prefix SKU. * * @param {string} [parameters.sku.name] Name of a public IP prefix SKU. * Possible values include: 'Standard' * * @param {string} [parameters.publicIPAddressVersion] The public IP address * version. Possible values include: 'IPv4', 'IPv6' * * @param {array} [parameters.ipTags] The list of tags associated with the * public IP prefix. * * @param {number} [parameters.prefixLength] The Length of the Public IP * Prefix. * * @param {string} [parameters.ipPrefix] The allocated Prefix * * @param {array} [parameters.publicIPAddresses] The list of all referenced * PublicIPAddresses * * @param {string} [parameters.resourceGuid] The resource GUID property of the * public IP prefix resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * Public IP prefix resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting the * IP allocated for the resource needs to come from. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, publicIpPrefixName: string, parameters: models.PublicIPPrefix, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a static or dynamic public IP prefix. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the public IP prefix. * * @param {object} parameters Parameters supplied to the create or update * public IP prefix operation. * * @param {object} [parameters.sku] The public IP prefix SKU. * * @param {string} [parameters.sku.name] Name of a public IP prefix SKU. * Possible values include: 'Standard' * * @param {string} [parameters.publicIPAddressVersion] The public IP address * version. Possible values include: 'IPv4', 'IPv6' * * @param {array} [parameters.ipTags] The list of tags associated with the * public IP prefix. * * @param {number} [parameters.prefixLength] The Length of the Public IP * Prefix. * * @param {string} [parameters.ipPrefix] The allocated Prefix * * @param {array} [parameters.publicIPAddresses] The list of all referenced * PublicIPAddresses * * @param {string} [parameters.resourceGuid] The resource GUID property of the * public IP prefix resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * Public IP prefix resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {array} [parameters.zones] A list of availability zones denoting the * IP allocated for the resource needs to come from. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPPrefix} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPPrefix} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPPrefix} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, publicIpPrefixName: string, parameters: models.PublicIPPrefix, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, publicIpPrefixName: string, parameters: models.PublicIPPrefix, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, publicIpPrefixName: string, parameters: models.PublicIPPrefix, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates public IP prefix tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the public IP prefix. * * @param {object} parameters Parameters supplied to update public IP prefix * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, publicIpPrefixName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates public IP prefix tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} publicIpPrefixName The name of the public IP prefix. * * @param {object} parameters Parameters supplied to update public IP prefix * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPPrefix} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPPrefix} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPPrefix} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, publicIpPrefixName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, publicIpPrefixName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, publicIpPrefixName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the public IP prefixes in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the public IP prefixes in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPPrefixListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPPrefixListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPPrefixListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all public IP prefixes in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all public IP prefixes in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {PublicIPPrefixListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {PublicIPPrefixListResult} [result] - The deserialized result object if an error did not occur. * See {@link PublicIPPrefixListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * RouteFilters * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface RouteFilters { /** * Deletes the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, routeFilterName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, routeFilterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced express route bgp * peering resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced express route bgp * peering resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilter} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilter} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilter} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, routeFilterName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, routeFilterName: string, callback: ServiceCallback): void; get(resourceGroupName: string, routeFilterName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} routeFilterParameters Parameters supplied to the create or * update route filter operation. * * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * * @param {array} [routeFilterParameters.peerings] A collection of references * to express route circuit peerings. * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.RouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} routeFilterParameters Parameters supplied to the create or * update route filter operation. * * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * * @param {array} [routeFilterParameters.peerings] A collection of references * to express route circuit peerings. * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilter} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilter} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilter} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.RouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.RouteFilter, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.RouteFilter, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} routeFilterParameters Parameters supplied to the update * route filter operation. * * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * * @param {array} [routeFilterParameters.peerings] A collection of references * to express route circuit peerings. * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.PatchRouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} routeFilterParameters Parameters supplied to the update * route filter operation. * * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * * @param {array} [routeFilterParameters.peerings] A collection of references * to express route circuit peerings. * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilter} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilter} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilter} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ update(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.PatchRouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; update(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.PatchRouteFilter, callback: ServiceCallback): void; update(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.PatchRouteFilter, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all route filters in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all route filters in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all route filters in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all route filters in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, routeFilterName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, routeFilterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} routeFilterParameters Parameters supplied to the create or * update route filter operation. * * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * * @param {array} [routeFilterParameters.peerings] A collection of references * to express route circuit peerings. * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.RouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} routeFilterParameters Parameters supplied to the create or * update route filter operation. * * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * * @param {array} [routeFilterParameters.peerings] A collection of references * to express route circuit peerings. * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {string} [routeFilterParameters.location] Resource location. * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilter} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilter} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilter} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.RouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.RouteFilter, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.RouteFilter, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} routeFilterParameters Parameters supplied to the update * route filter operation. * * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * * @param {array} [routeFilterParameters.peerings] A collection of references * to express route circuit peerings. * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.PatchRouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a route filter in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} routeFilterParameters Parameters supplied to the update * route filter operation. * * @param {array} [routeFilterParameters.rules] Collection of RouteFilterRules * contained within a route filter. * * @param {array} [routeFilterParameters.peerings] A collection of references * to express route circuit peerings. * * @param {object} [routeFilterParameters.tags] Resource tags. * * @param {string} [routeFilterParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilter} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilter} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilter} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdate(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.PatchRouteFilter, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdate(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.PatchRouteFilter, callback: ServiceCallback): void; beginUpdate(resourceGroupName: string, routeFilterName: string, routeFilterParameters: models.PatchRouteFilter, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all route filters in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all route filters in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all route filters in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all route filters in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * RouteFilterRules * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface RouteFilterRules { /** * Deletes the specified rule from a route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified rule from a route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, routeFilterName: string, ruleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, routeFilterName: string, ruleName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, routeFilterName: string, ruleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified rule from a route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified rule from a route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterRule} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, routeFilterName: string, ruleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, routeFilterName: string, ruleName: string, callback: ServiceCallback): void; get(resourceGroupName: string, routeFilterName: string, ruleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the route filter rule. * * @param {object} routeFilterRuleParameters Parameters supplied to the create * or update route filter rule operation. * * @param {string} routeFilterRuleParameters.access The access type of the * rule. Possible values include: 'Allow', 'Deny' * * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * * @param {string} [routeFilterRuleParameters.name] The name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.RouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the route filter rule. * * @param {object} routeFilterRuleParameters Parameters supplied to the create * or update route filter rule operation. * * @param {string} routeFilterRuleParameters.access The access type of the * rule. Possible values include: 'Allow', 'Deny' * * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * * @param {string} [routeFilterRuleParameters.name] The name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterRule} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.RouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.RouteFilterRule, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.RouteFilterRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the route filter rule. * * @param {object} routeFilterRuleParameters Parameters supplied to the update * route filter rule operation. * * @param {string} routeFilterRuleParameters.access The access type of the * rule. Possible values include: 'Allow', 'Deny' * * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * * @param {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.PatchRouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the route filter rule. * * @param {object} routeFilterRuleParameters Parameters supplied to the update * route filter rule operation. * * @param {string} routeFilterRuleParameters.access The access type of the * rule. Possible values include: 'Allow', 'Deny' * * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * * @param {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterRule} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ update(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.PatchRouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; update(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.PatchRouteFilterRule, callback: ServiceCallback): void; update(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.PatchRouteFilterRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all RouteFilterRules in a route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByRouteFilterWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all RouteFilterRules in a route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterRuleListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByRouteFilter(resourceGroupName: string, routeFilterName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByRouteFilter(resourceGroupName: string, routeFilterName: string, callback: ServiceCallback): void; listByRouteFilter(resourceGroupName: string, routeFilterName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified rule from a route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified rule from a route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the rule. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, routeFilterName: string, ruleName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, routeFilterName: string, ruleName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, routeFilterName: string, ruleName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the route filter rule. * * @param {object} routeFilterRuleParameters Parameters supplied to the create * or update route filter rule operation. * * @param {string} routeFilterRuleParameters.access The access type of the * rule. Possible values include: 'Allow', 'Deny' * * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * * @param {string} [routeFilterRuleParameters.name] The name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.RouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the route filter rule. * * @param {object} routeFilterRuleParameters Parameters supplied to the create * or update route filter rule operation. * * @param {string} routeFilterRuleParameters.access The access type of the * rule. Possible values include: 'Allow', 'Deny' * * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * * @param {string} [routeFilterRuleParameters.name] The name of the resource * that is unique within a resource group. This name can be used to access the * resource. * * @param {string} [routeFilterRuleParameters.location] Resource location. * * @param {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterRule} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.RouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.RouteFilterRule, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.RouteFilterRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the route filter rule. * * @param {object} routeFilterRuleParameters Parameters supplied to the update * route filter rule operation. * * @param {string} routeFilterRuleParameters.access The access type of the * rule. Possible values include: 'Allow', 'Deny' * * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * * @param {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateWithHttpOperationResponse(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.PatchRouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a route in the specified route filter. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeFilterName The name of the route filter. * * @param {string} ruleName The name of the route filter rule. * * @param {object} routeFilterRuleParameters Parameters supplied to the update * route filter rule operation. * * @param {string} routeFilterRuleParameters.access The access type of the * rule. Possible values include: 'Allow', 'Deny' * * @param {array} routeFilterRuleParameters.communities The collection for bgp * community values to filter on. e.g. ['12076:5010','12076:5020'] * * @param {string} [routeFilterRuleParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterRule} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterRule} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterRule} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdate(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.PatchRouteFilterRule, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdate(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.PatchRouteFilterRule, callback: ServiceCallback): void; beginUpdate(resourceGroupName: string, routeFilterName: string, ruleName: string, routeFilterRuleParameters: models.PatchRouteFilterRule, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all RouteFilterRules in a route filter. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByRouteFilterNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all RouteFilterRules in a route filter. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteFilterRuleListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteFilterRuleListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteFilterRuleListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByRouteFilterNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByRouteFilterNext(nextPageLink: string, callback: ServiceCallback): void; listByRouteFilterNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * RouteTables * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface RouteTables { /** * Deletes the specified route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, routeTableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, routeTableName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, routeTableName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteTable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteTable} [result] - The deserialized result object if an error did not occur. * See {@link RouteTable} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, routeTableName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, routeTableName: string, callback: ServiceCallback): void; get(resourceGroupName: string, routeTableName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Create or updates a route table in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} parameters Parameters supplied to the create or update route * table operation. * * @param {array} [parameters.routes] Collection of routes contained within a * route table. * * @param {boolean} [parameters.disableBgpRoutePropagation] Gets or sets * whether to disable the routes learned by BGP on that route table. True means * disable. * * @param {string} [parameters.provisioningState] The provisioning state of the * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, parameters: models.RouteTable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create or updates a route table in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} parameters Parameters supplied to the create or update route * table operation. * * @param {array} [parameters.routes] Collection of routes contained within a * route table. * * @param {boolean} [parameters.disableBgpRoutePropagation] Gets or sets * whether to disable the routes learned by BGP on that route table. True means * disable. * * @param {string} [parameters.provisioningState] The provisioning state of the * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteTable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteTable} [result] - The deserialized result object if an error did not occur. * See {@link RouteTable} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, routeTableName: string, parameters: models.RouteTable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, routeTableName: string, parameters: models.RouteTable, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, routeTableName: string, parameters: models.RouteTable, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a route table tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} parameters Parameters supplied to update route table tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a route table tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} parameters Parameters supplied to update route table tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteTable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteTable} [result] - The deserialized result object if an error did not occur. * See {@link RouteTable} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, routeTableName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, routeTableName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, routeTableName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all route tables in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all route tables in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteTableListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all route tables in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all route tables in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteTableListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, routeTableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, routeTableName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, routeTableName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Create or updates a route table in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} parameters Parameters supplied to the create or update route * table operation. * * @param {array} [parameters.routes] Collection of routes contained within a * route table. * * @param {boolean} [parameters.disableBgpRoutePropagation] Gets or sets * whether to disable the routes learned by BGP on that route table. True means * disable. * * @param {string} [parameters.provisioningState] The provisioning state of the * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, parameters: models.RouteTable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Create or updates a route table in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} parameters Parameters supplied to the create or update route * table operation. * * @param {array} [parameters.routes] Collection of routes contained within a * route table. * * @param {boolean} [parameters.disableBgpRoutePropagation] Gets or sets * whether to disable the routes learned by BGP on that route table. True means * disable. * * @param {string} [parameters.provisioningState] The provisioning state of the * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteTable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteTable} [result] - The deserialized result object if an error did not occur. * See {@link RouteTable} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, routeTableName: string, parameters: models.RouteTable, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, routeTableName: string, parameters: models.RouteTable, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, routeTableName: string, parameters: models.RouteTable, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a route table tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} parameters Parameters supplied to update route table tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a route table tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} parameters Parameters supplied to update route table tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteTable} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteTable} [result] - The deserialized result object if an error did not occur. * See {@link RouteTable} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, routeTableName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, routeTableName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, routeTableName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all route tables in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all route tables in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteTableListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all route tables in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all route tables in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteTableListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteTableListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteTableListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Routes * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface Routes { /** * Deletes the specified route from a route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, routeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified route from a route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, routeTableName: string, routeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, routeTableName: string, routeName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, routeTableName: string, routeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified route from a route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, routeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified route from a route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Route} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Route} [result] - The deserialized result object if an error did not occur. * See {@link Route} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, routeTableName: string, routeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, routeTableName: string, routeName: string, callback: ServiceCallback): void; get(resourceGroupName: string, routeTableName: string, routeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a route in the specified route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {string} routeName The name of the route. * * @param {object} routeParameters Parameters supplied to the create or update * route operation. * * @param {string} [routeParameters.addressPrefix] The destination CIDR to * which the route applies. * * @param {string} routeParameters.nextHopType The type of Azure hop the packet * should be sent to. Possible values include: 'VirtualNetworkGateway', * 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' * * @param {string} [routeParameters.nextHopIpAddress] The IP address packets * should be forwarded to. Next hop values are only allowed in routes where the * next hop type is VirtualAppliance. * * @param {string} [routeParameters.provisioningState] The provisioning state * of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [routeParameters.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [routeParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [routeParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: models.Route, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a route in the specified route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {string} routeName The name of the route. * * @param {object} routeParameters Parameters supplied to the create or update * route operation. * * @param {string} [routeParameters.addressPrefix] The destination CIDR to * which the route applies. * * @param {string} routeParameters.nextHopType The type of Azure hop the packet * should be sent to. Possible values include: 'VirtualNetworkGateway', * 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' * * @param {string} [routeParameters.nextHopIpAddress] The IP address packets * should be forwarded to. Next hop values are only allowed in routes where the * next hop type is VirtualAppliance. * * @param {string} [routeParameters.provisioningState] The provisioning state * of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [routeParameters.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [routeParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [routeParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Route} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Route} [result] - The deserialized result object if an error did not occur. * See {@link Route} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: models.Route, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: models.Route, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: models.Route, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all routes in a route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all routes in a route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, routeTableName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, routeTableName: string, callback: ServiceCallback): void; list(resourceGroupName: string, routeTableName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified route from a route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, routeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified route from a route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {string} routeName The name of the route. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, routeTableName: string, routeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, routeTableName: string, routeName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, routeTableName: string, routeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a route in the specified route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {string} routeName The name of the route. * * @param {object} routeParameters Parameters supplied to the create or update * route operation. * * @param {string} [routeParameters.addressPrefix] The destination CIDR to * which the route applies. * * @param {string} routeParameters.nextHopType The type of Azure hop the packet * should be sent to. Possible values include: 'VirtualNetworkGateway', * 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' * * @param {string} [routeParameters.nextHopIpAddress] The IP address packets * should be forwarded to. Next hop values are only allowed in routes where the * next hop type is VirtualAppliance. * * @param {string} [routeParameters.provisioningState] The provisioning state * of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [routeParameters.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [routeParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [routeParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: models.Route, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a route in the specified route table. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} routeTableName The name of the route table. * * @param {string} routeName The name of the route. * * @param {object} routeParameters Parameters supplied to the create or update * route operation. * * @param {string} [routeParameters.addressPrefix] The destination CIDR to * which the route applies. * * @param {string} routeParameters.nextHopType The type of Azure hop the packet * should be sent to. Possible values include: 'VirtualNetworkGateway', * 'VnetLocal', 'Internet', 'VirtualAppliance', 'None' * * @param {string} [routeParameters.nextHopIpAddress] The IP address packets * should be forwarded to. Next hop values are only allowed in routes where the * next hop type is VirtualAppliance. * * @param {string} [routeParameters.provisioningState] The provisioning state * of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [routeParameters.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [routeParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [routeParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Route} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Route} [result] - The deserialized result object if an error did not occur. * See {@link Route} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: models.Route, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: models.Route, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, routeTableName: string, routeName: string, routeParameters: models.Route, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all routes in a route table. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all routes in a route table. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {RouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {RouteListResult} [result] - The deserialized result object if an error did not occur. * See {@link RouteListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * BgpServiceCommunities * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface BgpServiceCommunities { /** * Gets all the available bgp service communities. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the available bgp service communities. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {BgpServiceCommunityListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {BgpServiceCommunityListResult} [result] - The deserialized result object if an error did not occur. * See {@link BgpServiceCommunityListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the available bgp service communities. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the available bgp service communities. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {BgpServiceCommunityListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {BgpServiceCommunityListResult} [result] - The deserialized result object if an error did not occur. * See {@link BgpServiceCommunityListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ServiceEndpointPolicies * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ServiceEndpointPolicies { /** * Deletes the specified service endpoint policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified service endpoint policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified service Endpoint Policies in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified service Endpoint Policies in a specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicy} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicy} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, serviceEndpointPolicyName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, serviceEndpointPolicyName: string, callback: ServiceCallback): void; get(resourceGroupName: string, serviceEndpointPolicyName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a service Endpoint Policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} parameters Parameters supplied to the create or update * service endpoint policy operation. * * @param {array} [parameters.serviceEndpointPolicyDefinitions] A collection of * service endpoint policy definitions of the service endpoint policy. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.ServiceEndpointPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a service Endpoint Policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} parameters Parameters supplied to the create or update * service endpoint policy operation. * * @param {array} [parameters.serviceEndpointPolicyDefinitions] A collection of * service endpoint policy definitions of the service endpoint policy. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicy} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicy} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.ServiceEndpointPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.ServiceEndpointPolicy, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.ServiceEndpointPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates service Endpoint Policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} parameters Parameters supplied to update service endpoint * policy tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates service Endpoint Policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} parameters Parameters supplied to update service endpoint * policy tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicy} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicy} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ update(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; update(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.TagsObject, callback: ServiceCallback): void; update(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the service endpoint policies in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the service endpoint policies in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicyListResult} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicyListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all service endpoint Policies in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all service endpoint Policies in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicyListResult} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicyListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified service endpoint policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified service endpoint policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a service Endpoint Policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} parameters Parameters supplied to the create or update * service endpoint policy operation. * * @param {array} [parameters.serviceEndpointPolicyDefinitions] A collection of * service endpoint policy definitions of the service endpoint policy. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.ServiceEndpointPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a service Endpoint Policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} parameters Parameters supplied to the create or update * service endpoint policy operation. * * @param {array} [parameters.serviceEndpointPolicyDefinitions] A collection of * service endpoint policy definitions of the service endpoint policy. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicy} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicy} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.ServiceEndpointPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.ServiceEndpointPolicy, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.ServiceEndpointPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates service Endpoint Policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} parameters Parameters supplied to update service endpoint * policy tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates service Endpoint Policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {object} parameters Parameters supplied to update service endpoint * policy tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicy} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicy} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the service endpoint policies in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the service endpoint policies in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicyListResult} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicyListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all service endpoint Policies in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all service endpoint Policies in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicyListResult} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicyListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * ServiceEndpointPolicyDefinitions * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface ServiceEndpointPolicyDefinitions { /** * Deletes the specified ServiceEndpoint policy definitions. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the Service Endpoint * Policy. * * @param {string} serviceEndpointPolicyDefinitionName The name of the service * endpoint policy definition. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified ServiceEndpoint policy definitions. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the Service Endpoint * Policy. * * @param {string} serviceEndpointPolicyDefinitionName The name of the service * endpoint policy definition. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Get the specified service endpoint policy definitions from service endpoint * policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy name. * * @param {string} serviceEndpointPolicyDefinitionName The name of the service * endpoint policy definition name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get the specified service endpoint policy definitions from service endpoint * policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy name. * * @param {string} serviceEndpointPolicyDefinitionName The name of the service * endpoint policy definition name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicyDefinition} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicyDefinition} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicyDefinition} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, callback: ServiceCallback): void; get(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a service endpoint policy definition in the specified * service endpoint policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {string} serviceEndpointPolicyDefinitionName The name of the service * endpoint policy definition name. * * @param {object} serviceEndpointPolicyDefinitions Parameters supplied to the * create or update service endpoint policy operation. * * @param {string} [serviceEndpointPolicyDefinitions.description] A description * for this rule. Restricted to 140 chars. * * @param {string} [serviceEndpointPolicyDefinitions.service] Service endpoint * name. * * @param {array} [serviceEndpointPolicyDefinitions.serviceResources] A list of * service resources. * * @param {string} [serviceEndpointPolicyDefinitions.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [serviceEndpointPolicyDefinitions.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [serviceEndpointPolicyDefinitions.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, serviceEndpointPolicyDefinitions: models.ServiceEndpointPolicyDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a service endpoint policy definition in the specified * service endpoint policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {string} serviceEndpointPolicyDefinitionName The name of the service * endpoint policy definition name. * * @param {object} serviceEndpointPolicyDefinitions Parameters supplied to the * create or update service endpoint policy operation. * * @param {string} [serviceEndpointPolicyDefinitions.description] A description * for this rule. Restricted to 140 chars. * * @param {string} [serviceEndpointPolicyDefinitions.service] Service endpoint * name. * * @param {array} [serviceEndpointPolicyDefinitions.serviceResources] A list of * service resources. * * @param {string} [serviceEndpointPolicyDefinitions.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [serviceEndpointPolicyDefinitions.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [serviceEndpointPolicyDefinitions.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicyDefinition} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicyDefinition} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicyDefinition} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, serviceEndpointPolicyDefinitions: models.ServiceEndpointPolicyDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, serviceEndpointPolicyDefinitions: models.ServiceEndpointPolicyDefinition, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, serviceEndpointPolicyDefinitions: models.ServiceEndpointPolicyDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all service endpoint policy definitions in a service end point policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all service endpoint policy definitions in a service end point policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicyDefinitionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicyDefinitionListResult} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicyDefinitionListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, serviceEndpointPolicyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, serviceEndpointPolicyName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, serviceEndpointPolicyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified ServiceEndpoint policy definitions. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the Service Endpoint * Policy. * * @param {string} serviceEndpointPolicyDefinitionName The name of the service * endpoint policy definition. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified ServiceEndpoint policy definitions. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the Service Endpoint * Policy. * * @param {string} serviceEndpointPolicyDefinitionName The name of the service * endpoint policy definition. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a service endpoint policy definition in the specified * service endpoint policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {string} serviceEndpointPolicyDefinitionName The name of the service * endpoint policy definition name. * * @param {object} serviceEndpointPolicyDefinitions Parameters supplied to the * create or update service endpoint policy operation. * * @param {string} [serviceEndpointPolicyDefinitions.description] A description * for this rule. Restricted to 140 chars. * * @param {string} [serviceEndpointPolicyDefinitions.service] Service endpoint * name. * * @param {array} [serviceEndpointPolicyDefinitions.serviceResources] A list of * service resources. * * @param {string} [serviceEndpointPolicyDefinitions.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [serviceEndpointPolicyDefinitions.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [serviceEndpointPolicyDefinitions.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, serviceEndpointPolicyDefinitions: models.ServiceEndpointPolicyDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a service endpoint policy definition in the specified * service endpoint policy. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceEndpointPolicyName The name of the service endpoint * policy. * * @param {string} serviceEndpointPolicyDefinitionName The name of the service * endpoint policy definition name. * * @param {object} serviceEndpointPolicyDefinitions Parameters supplied to the * create or update service endpoint policy operation. * * @param {string} [serviceEndpointPolicyDefinitions.description] A description * for this rule. Restricted to 140 chars. * * @param {string} [serviceEndpointPolicyDefinitions.service] Service endpoint * name. * * @param {array} [serviceEndpointPolicyDefinitions.serviceResources] A list of * service resources. * * @param {string} [serviceEndpointPolicyDefinitions.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [serviceEndpointPolicyDefinitions.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [serviceEndpointPolicyDefinitions.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicyDefinition} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicyDefinition} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicyDefinition} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, serviceEndpointPolicyDefinitions: models.ServiceEndpointPolicyDefinition, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, serviceEndpointPolicyDefinitions: models.ServiceEndpointPolicyDefinition, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, serviceEndpointPolicyName: string, serviceEndpointPolicyDefinitionName: string, serviceEndpointPolicyDefinitions: models.ServiceEndpointPolicyDefinition, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all service endpoint policy definitions in a service end point policy. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all service endpoint policy definitions in a service end point policy. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ServiceEndpointPolicyDefinitionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ServiceEndpointPolicyDefinitionListResult} [result] - The deserialized result object if an error did not occur. * See {@link ServiceEndpointPolicyDefinitionListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Usages * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface Usages { /** * List network usages for a subscription. * * @param {string} location The location where resource usage is queried. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List network usages for a subscription. * * @param {string} location The location where resource usage is queried. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {UsagesListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {UsagesListResult} [result] - The deserialized result object if an error did not occur. * See {@link UsagesListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(location: string, callback: ServiceCallback): void; list(location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * List network usages for a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * List network usages for a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {UsagesListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {UsagesListResult} [result] - The deserialized result object if an error did not occur. * See {@link UsagesListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VirtualNetworks * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VirtualNetworks { /** * Deletes the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, virtualNetworkName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, virtualNetworkName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified virtual network by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified virtual network by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetwork} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetwork} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetwork} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, virtualNetworkName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, virtualNetworkName: string, callback: ServiceCallback): void; get(resourceGroupName: string, virtualNetworkName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a virtual network in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} parameters Parameters supplied to the create or update * virtual network operation * * @param {object} [parameters.addressSpace] The AddressSpace that contains an * array of IP address ranges that can be used by subnets. * * @param {array} [parameters.addressSpace.addressPrefixes] A list of address * blocks reserved for this virtual network in CIDR notation. * * @param {object} [parameters.dhcpOptions] The dhcpOptions that contains an * array of DNS servers available to VMs deployed in the virtual network. * * @param {array} [parameters.dhcpOptions.dnsServers] The list of DNS servers * IP addresses. * * @param {array} [parameters.subnets] A list of subnets in a Virtual Network. * * @param {array} [parameters.virtualNetworkPeerings] A list of peerings in a * Virtual Network. * * @param {string} [parameters.resourceGuid] The resourceGuid property of the * Virtual Network resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {boolean} [parameters.enableDdosProtection] Indicates if DDoS * protection is enabled for all the protected resources in the virtual * network. It requires a DDoS protection plan associated with the resource. * * @param {boolean} [parameters.enableVmProtection] Indicates if VM protection * is enabled for all the subnets in the virtual network. * * @param {object} [parameters.ddosProtectionPlan] The DDoS protection plan * associated with the virtual network. * * @param {string} [parameters.ddosProtectionPlan.id] Resource ID. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, parameters: models.VirtualNetwork, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a virtual network in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} parameters Parameters supplied to the create or update * virtual network operation * * @param {object} [parameters.addressSpace] The AddressSpace that contains an * array of IP address ranges that can be used by subnets. * * @param {array} [parameters.addressSpace.addressPrefixes] A list of address * blocks reserved for this virtual network in CIDR notation. * * @param {object} [parameters.dhcpOptions] The dhcpOptions that contains an * array of DNS servers available to VMs deployed in the virtual network. * * @param {array} [parameters.dhcpOptions.dnsServers] The list of DNS servers * IP addresses. * * @param {array} [parameters.subnets] A list of subnets in a Virtual Network. * * @param {array} [parameters.virtualNetworkPeerings] A list of peerings in a * Virtual Network. * * @param {string} [parameters.resourceGuid] The resourceGuid property of the * Virtual Network resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {boolean} [parameters.enableDdosProtection] Indicates if DDoS * protection is enabled for all the protected resources in the virtual * network. It requires a DDoS protection plan associated with the resource. * * @param {boolean} [parameters.enableVmProtection] Indicates if VM protection * is enabled for all the subnets in the virtual network. * * @param {object} [parameters.ddosProtectionPlan] The DDoS protection plan * associated with the virtual network. * * @param {string} [parameters.ddosProtectionPlan.id] Resource ID. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetwork} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetwork} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetwork} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, virtualNetworkName: string, parameters: models.VirtualNetwork, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, virtualNetworkName: string, parameters: models.VirtualNetwork, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, virtualNetworkName: string, parameters: models.VirtualNetwork, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a virtual network tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} parameters Parameters supplied to update virtual network * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a virtual network tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} parameters Parameters supplied to update virtual network * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetwork} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetwork} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetwork} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, virtualNetworkName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, virtualNetworkName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, virtualNetworkName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all virtual networks in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all virtual networks in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all virtual networks in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all virtual networks in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Checks whether a private IP address is available for use. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} ipAddress The private IP address to be verified. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ checkIPAddressAvailabilityWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Checks whether a private IP address is available for use. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} ipAddress The private IP address to be verified. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {IPAddressAvailabilityResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {IPAddressAvailabilityResult} [result] - The deserialized result object if an error did not occur. * See {@link IPAddressAvailabilityResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, callback: ServiceCallback): void; checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists usage stats. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listUsageWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists usage stats. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkListUsageResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkListUsageResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkListUsageResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listUsage(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listUsage(resourceGroupName: string, virtualNetworkName: string, callback: ServiceCallback): void; listUsage(resourceGroupName: string, virtualNetworkName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a virtual network in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} parameters Parameters supplied to the create or update * virtual network operation * * @param {object} [parameters.addressSpace] The AddressSpace that contains an * array of IP address ranges that can be used by subnets. * * @param {array} [parameters.addressSpace.addressPrefixes] A list of address * blocks reserved for this virtual network in CIDR notation. * * @param {object} [parameters.dhcpOptions] The dhcpOptions that contains an * array of DNS servers available to VMs deployed in the virtual network. * * @param {array} [parameters.dhcpOptions.dnsServers] The list of DNS servers * IP addresses. * * @param {array} [parameters.subnets] A list of subnets in a Virtual Network. * * @param {array} [parameters.virtualNetworkPeerings] A list of peerings in a * Virtual Network. * * @param {string} [parameters.resourceGuid] The resourceGuid property of the * Virtual Network resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {boolean} [parameters.enableDdosProtection] Indicates if DDoS * protection is enabled for all the protected resources in the virtual * network. It requires a DDoS protection plan associated with the resource. * * @param {boolean} [parameters.enableVmProtection] Indicates if VM protection * is enabled for all the subnets in the virtual network. * * @param {object} [parameters.ddosProtectionPlan] The DDoS protection plan * associated with the virtual network. * * @param {string} [parameters.ddosProtectionPlan.id] Resource ID. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, parameters: models.VirtualNetwork, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a virtual network in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} parameters Parameters supplied to the create or update * virtual network operation * * @param {object} [parameters.addressSpace] The AddressSpace that contains an * array of IP address ranges that can be used by subnets. * * @param {array} [parameters.addressSpace.addressPrefixes] A list of address * blocks reserved for this virtual network in CIDR notation. * * @param {object} [parameters.dhcpOptions] The dhcpOptions that contains an * array of DNS servers available to VMs deployed in the virtual network. * * @param {array} [parameters.dhcpOptions.dnsServers] The list of DNS servers * IP addresses. * * @param {array} [parameters.subnets] A list of subnets in a Virtual Network. * * @param {array} [parameters.virtualNetworkPeerings] A list of peerings in a * Virtual Network. * * @param {string} [parameters.resourceGuid] The resourceGuid property of the * Virtual Network resource. * * @param {string} [parameters.provisioningState] The provisioning state of the * PublicIP resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. * * @param {boolean} [parameters.enableDdosProtection] Indicates if DDoS * protection is enabled for all the protected resources in the virtual * network. It requires a DDoS protection plan associated with the resource. * * @param {boolean} [parameters.enableVmProtection] Indicates if VM protection * is enabled for all the subnets in the virtual network. * * @param {object} [parameters.ddosProtectionPlan] The DDoS protection plan * associated with the virtual network. * * @param {string} [parameters.ddosProtectionPlan.id] Resource ID. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetwork} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetwork} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetwork} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, parameters: models.VirtualNetwork, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, parameters: models.VirtualNetwork, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, parameters: models.VirtualNetwork, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a virtual network tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} parameters Parameters supplied to update virtual network * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a virtual network tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} parameters Parameters supplied to update virtual network * tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetwork} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetwork} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetwork} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, virtualNetworkName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, virtualNetworkName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, virtualNetworkName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all virtual networks in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all virtual networks in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all virtual networks in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all virtual networks in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists usage stats. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listUsageNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists usage stats. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkListUsageResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkListUsageResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkListUsageResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listUsageNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listUsageNext(nextPageLink: string, callback: ServiceCallback): void; listUsageNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * Subnets * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface Subnets { /** * Deletes the specified subnet. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified subnet. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified subnet by virtual network and resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified subnet by virtual network and resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] Expands referenced resources. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Subnet} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Subnet} [result] - The deserialized result object if an error did not occur. * See {@link Subnet} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, virtualNetworkName: string, subnetName: string, callback: ServiceCallback): void; get(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a subnet in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} subnetParameters Parameters supplied to the create or update * subnet operation. * * @param {string} [subnetParameters.addressPrefix] The address prefix for the * subnet. * * @param {array} [subnetParameters.addressPrefixes] List of address prefixes * for the subnet. * * @param {object} [subnetParameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * * @param {array} [subnetParameters.networkSecurityGroup.securityRules] A * collection of security rules of the network security group. * * @param {array} [subnetParameters.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} [subnetParameters.networkSecurityGroup.resourceGuid] The * resource GUID property of the network security group resource. * * @param {string} [subnetParameters.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [subnetParameters.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {string} [subnetParameters.networkSecurityGroup.id] Resource ID. * * @param {string} [subnetParameters.networkSecurityGroup.location] Resource * location. * * @param {object} [subnetParameters.networkSecurityGroup.tags] Resource tags. * * @param {object} [subnetParameters.routeTable] The reference of the * RouteTable resource. * * @param {array} [subnetParameters.routeTable.routes] Collection of routes * contained within a route table. * * @param {boolean} [subnetParameters.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} [subnetParameters.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [subnetParameters.routeTable.etag] Gets a unique read-only * string that changes whenever the resource is updated. * * @param {string} [subnetParameters.routeTable.id] Resource ID. * * @param {string} [subnetParameters.routeTable.location] Resource location. * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * * @param {object} [subnetParameters.natGateway] Nat gateway associated with * this subnet. * * @param {string} [subnetParameters.natGateway.id] Resource ID. * * @param {array} [subnetParameters.serviceEndpoints] An array of service * endpoints. * * @param {array} [subnetParameters.serviceEndpointPolicies] An array of * service endpoint policies. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. * * @param {array} [subnetParameters.serviceAssociationLinks] Gets an array of * references to services injecting into this subnet. * * @param {array} [subnetParameters.delegations] Gets an array of references to * the delegations on the subnet. * * @param {string} [subnetParameters.provisioningState] The provisioning state * of the resource. * * @param {string} [subnetParameters.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [subnetParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [subnetParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: models.Subnet, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a subnet in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} subnetParameters Parameters supplied to the create or update * subnet operation. * * @param {string} [subnetParameters.addressPrefix] The address prefix for the * subnet. * * @param {array} [subnetParameters.addressPrefixes] List of address prefixes * for the subnet. * * @param {object} [subnetParameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * * @param {array} [subnetParameters.networkSecurityGroup.securityRules] A * collection of security rules of the network security group. * * @param {array} [subnetParameters.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} [subnetParameters.networkSecurityGroup.resourceGuid] The * resource GUID property of the network security group resource. * * @param {string} [subnetParameters.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [subnetParameters.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {string} [subnetParameters.networkSecurityGroup.id] Resource ID. * * @param {string} [subnetParameters.networkSecurityGroup.location] Resource * location. * * @param {object} [subnetParameters.networkSecurityGroup.tags] Resource tags. * * @param {object} [subnetParameters.routeTable] The reference of the * RouteTable resource. * * @param {array} [subnetParameters.routeTable.routes] Collection of routes * contained within a route table. * * @param {boolean} [subnetParameters.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} [subnetParameters.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [subnetParameters.routeTable.etag] Gets a unique read-only * string that changes whenever the resource is updated. * * @param {string} [subnetParameters.routeTable.id] Resource ID. * * @param {string} [subnetParameters.routeTable.location] Resource location. * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * * @param {object} [subnetParameters.natGateway] Nat gateway associated with * this subnet. * * @param {string} [subnetParameters.natGateway.id] Resource ID. * * @param {array} [subnetParameters.serviceEndpoints] An array of service * endpoints. * * @param {array} [subnetParameters.serviceEndpointPolicies] An array of * service endpoint policies. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. * * @param {array} [subnetParameters.serviceAssociationLinks] Gets an array of * references to services injecting into this subnet. * * @param {array} [subnetParameters.delegations] Gets an array of references to * the delegations on the subnet. * * @param {string} [subnetParameters.provisioningState] The provisioning state * of the resource. * * @param {string} [subnetParameters.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [subnetParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [subnetParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Subnet} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Subnet} [result] - The deserialized result object if an error did not occur. * See {@link Subnet} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: models.Subnet, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: models.Subnet, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: models.Subnet, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Prepares a subnet by applying network intent policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} prepareNetworkPoliciesRequestParameters Parameters supplied * to prepare subnet by applying network intent policies. * * @param {string} [prepareNetworkPoliciesRequestParameters.serviceName] The * name of the service for which subnet is being prepared for. * * @param {string} [prepareNetworkPoliciesRequestParameters.resourceGroupName] * The name of the resource group where the Network Intent Policy will be * stored. * * @param {array} * [prepareNetworkPoliciesRequestParameters.networkIntentPolicyConfigurations] * A list of NetworkIntentPolicyConfiguration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ prepareNetworkPoliciesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, prepareNetworkPoliciesRequestParameters: models.PrepareNetworkPoliciesRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Prepares a subnet by applying network intent policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} prepareNetworkPoliciesRequestParameters Parameters supplied * to prepare subnet by applying network intent policies. * * @param {string} [prepareNetworkPoliciesRequestParameters.serviceName] The * name of the service for which subnet is being prepared for. * * @param {string} [prepareNetworkPoliciesRequestParameters.resourceGroupName] * The name of the resource group where the Network Intent Policy will be * stored. * * @param {array} * [prepareNetworkPoliciesRequestParameters.networkIntentPolicyConfigurations] * A list of NetworkIntentPolicyConfiguration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ prepareNetworkPolicies(resourceGroupName: string, virtualNetworkName: string, subnetName: string, prepareNetworkPoliciesRequestParameters: models.PrepareNetworkPoliciesRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; prepareNetworkPolicies(resourceGroupName: string, virtualNetworkName: string, subnetName: string, prepareNetworkPoliciesRequestParameters: models.PrepareNetworkPoliciesRequest, callback: ServiceCallback): void; prepareNetworkPolicies(resourceGroupName: string, virtualNetworkName: string, subnetName: string, prepareNetworkPoliciesRequestParameters: models.PrepareNetworkPoliciesRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all subnets in a virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all subnets in a virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SubnetListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SubnetListResult} [result] - The deserialized result object if an error did not occur. * See {@link SubnetListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, virtualNetworkName: string, callback: ServiceCallback): void; list(resourceGroupName: string, virtualNetworkName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified subnet. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified subnet. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a subnet in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} subnetParameters Parameters supplied to the create or update * subnet operation. * * @param {string} [subnetParameters.addressPrefix] The address prefix for the * subnet. * * @param {array} [subnetParameters.addressPrefixes] List of address prefixes * for the subnet. * * @param {object} [subnetParameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * * @param {array} [subnetParameters.networkSecurityGroup.securityRules] A * collection of security rules of the network security group. * * @param {array} [subnetParameters.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} [subnetParameters.networkSecurityGroup.resourceGuid] The * resource GUID property of the network security group resource. * * @param {string} [subnetParameters.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [subnetParameters.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {string} [subnetParameters.networkSecurityGroup.id] Resource ID. * * @param {string} [subnetParameters.networkSecurityGroup.location] Resource * location. * * @param {object} [subnetParameters.networkSecurityGroup.tags] Resource tags. * * @param {object} [subnetParameters.routeTable] The reference of the * RouteTable resource. * * @param {array} [subnetParameters.routeTable.routes] Collection of routes * contained within a route table. * * @param {boolean} [subnetParameters.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} [subnetParameters.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [subnetParameters.routeTable.etag] Gets a unique read-only * string that changes whenever the resource is updated. * * @param {string} [subnetParameters.routeTable.id] Resource ID. * * @param {string} [subnetParameters.routeTable.location] Resource location. * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * * @param {object} [subnetParameters.natGateway] Nat gateway associated with * this subnet. * * @param {string} [subnetParameters.natGateway.id] Resource ID. * * @param {array} [subnetParameters.serviceEndpoints] An array of service * endpoints. * * @param {array} [subnetParameters.serviceEndpointPolicies] An array of * service endpoint policies. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. * * @param {array} [subnetParameters.serviceAssociationLinks] Gets an array of * references to services injecting into this subnet. * * @param {array} [subnetParameters.delegations] Gets an array of references to * the delegations on the subnet. * * @param {string} [subnetParameters.provisioningState] The provisioning state * of the resource. * * @param {string} [subnetParameters.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [subnetParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [subnetParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: models.Subnet, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a subnet in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} subnetParameters Parameters supplied to the create or update * subnet operation. * * @param {string} [subnetParameters.addressPrefix] The address prefix for the * subnet. * * @param {array} [subnetParameters.addressPrefixes] List of address prefixes * for the subnet. * * @param {object} [subnetParameters.networkSecurityGroup] The reference of the * NetworkSecurityGroup resource. * * @param {array} [subnetParameters.networkSecurityGroup.securityRules] A * collection of security rules of the network security group. * * @param {array} [subnetParameters.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} [subnetParameters.networkSecurityGroup.resourceGuid] The * resource GUID property of the network security group resource. * * @param {string} [subnetParameters.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} [subnetParameters.networkSecurityGroup.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {string} [subnetParameters.networkSecurityGroup.id] Resource ID. * * @param {string} [subnetParameters.networkSecurityGroup.location] Resource * location. * * @param {object} [subnetParameters.networkSecurityGroup.tags] Resource tags. * * @param {object} [subnetParameters.routeTable] The reference of the * RouteTable resource. * * @param {array} [subnetParameters.routeTable.routes] Collection of routes * contained within a route table. * * @param {boolean} [subnetParameters.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} [subnetParameters.routeTable.provisioningState] The * provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} [subnetParameters.routeTable.etag] Gets a unique read-only * string that changes whenever the resource is updated. * * @param {string} [subnetParameters.routeTable.id] Resource ID. * * @param {string} [subnetParameters.routeTable.location] Resource location. * * @param {object} [subnetParameters.routeTable.tags] Resource tags. * * @param {object} [subnetParameters.natGateway] Nat gateway associated with * this subnet. * * @param {string} [subnetParameters.natGateway.id] Resource ID. * * @param {array} [subnetParameters.serviceEndpoints] An array of service * endpoints. * * @param {array} [subnetParameters.serviceEndpointPolicies] An array of * service endpoint policies. * * @param {array} [subnetParameters.resourceNavigationLinks] Gets an array of * references to the external resources using subnet. * * @param {array} [subnetParameters.serviceAssociationLinks] Gets an array of * references to services injecting into this subnet. * * @param {array} [subnetParameters.delegations] Gets an array of references to * the delegations on the subnet. * * @param {string} [subnetParameters.provisioningState] The provisioning state * of the resource. * * @param {string} [subnetParameters.name] The name of the resource that is * unique within a resource group. This name can be used to access the * resource. * * @param {string} [subnetParameters.etag] A unique read-only string that * changes whenever the resource is updated. * * @param {string} [subnetParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {Subnet} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {Subnet} [result] - The deserialized result object if an error did not occur. * See {@link Subnet} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: models.Subnet, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: models.Subnet, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, subnetName: string, subnetParameters: models.Subnet, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Prepares a subnet by applying network intent policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} prepareNetworkPoliciesRequestParameters Parameters supplied * to prepare subnet by applying network intent policies. * * @param {string} [prepareNetworkPoliciesRequestParameters.serviceName] The * name of the service for which subnet is being prepared for. * * @param {string} [prepareNetworkPoliciesRequestParameters.resourceGroupName] * The name of the resource group where the Network Intent Policy will be * stored. * * @param {array} * [prepareNetworkPoliciesRequestParameters.networkIntentPolicyConfigurations] * A list of NetworkIntentPolicyConfiguration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginPrepareNetworkPoliciesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, subnetName: string, prepareNetworkPoliciesRequestParameters: models.PrepareNetworkPoliciesRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Prepares a subnet by applying network intent policies. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} subnetName The name of the subnet. * * @param {object} prepareNetworkPoliciesRequestParameters Parameters supplied * to prepare subnet by applying network intent policies. * * @param {string} [prepareNetworkPoliciesRequestParameters.serviceName] The * name of the service for which subnet is being prepared for. * * @param {string} [prepareNetworkPoliciesRequestParameters.resourceGroupName] * The name of the resource group where the Network Intent Policy will be * stored. * * @param {array} * [prepareNetworkPoliciesRequestParameters.networkIntentPolicyConfigurations] * A list of NetworkIntentPolicyConfiguration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginPrepareNetworkPolicies(resourceGroupName: string, virtualNetworkName: string, subnetName: string, prepareNetworkPoliciesRequestParameters: models.PrepareNetworkPoliciesRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginPrepareNetworkPolicies(resourceGroupName: string, virtualNetworkName: string, subnetName: string, prepareNetworkPoliciesRequestParameters: models.PrepareNetworkPoliciesRequest, callback: ServiceCallback): void; beginPrepareNetworkPolicies(resourceGroupName: string, virtualNetworkName: string, subnetName: string, prepareNetworkPoliciesRequestParameters: models.PrepareNetworkPoliciesRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all subnets in a virtual network. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all subnets in a virtual network. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {SubnetListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {SubnetListResult} [result] - The deserialized result object if an error did not occur. * See {@link SubnetListResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VirtualNetworkPeerings * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VirtualNetworkPeerings { /** * Deletes the specified virtual network peering. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} virtualNetworkPeeringName The name of the virtual network * peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified virtual network peering. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} virtualNetworkPeeringName The name of the virtual network * peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified virtual network peering. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} virtualNetworkPeeringName The name of the virtual network * peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified virtual network peering. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} virtualNetworkPeeringName The name of the virtual network * peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkPeering} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkPeering} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, callback: ServiceCallback): void; get(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a peering in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} virtualNetworkPeeringName The name of the peering. * * @param {object} virtualNetworkPeeringParameters Parameters supplied to the * create or update virtual network peering operation. * * @param {boolean} [virtualNetworkPeeringParameters.allowVirtualNetworkAccess] * Whether the VMs in the local virtual network space would be able to access * the VMs in remote virtual network space. * * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] * Whether the forwarded traffic from the VMs in the local virtual network will * be allowed/disallowed in remote virtual network. * * @param {boolean} [virtualNetworkPeeringParameters.allowGatewayTransit] If * gateway links can be used in remote virtual networking to link to this * virtual network. * * @param {boolean} [virtualNetworkPeeringParameters.useRemoteGateways] If * remote gateways can be used on this virtual network. If the flag is set to * true, and allowGatewayTransit on remote peering is also true, virtual * network will use gateways of remote virtual network for transit. Only one * peering can have this flag set to true. This flag cannot be set if virtual * network already has a gateway. * * @param {object} [virtualNetworkPeeringParameters.remoteVirtualNetwork] The * reference of the remote virtual network. The remote virtual network can be * in the same or different region (preview). See here to register for the * preview and learn more * (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). * * @param {string} [virtualNetworkPeeringParameters.remoteVirtualNetwork.id] * Resource ID. * * @param {object} [virtualNetworkPeeringParameters.remoteAddressSpace] The * reference of the remote virtual network address space. * * @param {array} * [virtualNetworkPeeringParameters.remoteAddressSpace.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [virtualNetworkPeeringParameters.peeringState] The status of * the virtual network peering. Possible values are 'Initiated', 'Connected', * and 'Disconnected'. Possible values include: 'Initiated', 'Connected', * 'Disconnected' * * @param {string} [virtualNetworkPeeringParameters.provisioningState] The * provisioning state of the resource. * * @param {string} [virtualNetworkPeeringParameters.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [virtualNetworkPeeringParameters.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [virtualNetworkPeeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: models.VirtualNetworkPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a peering in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} virtualNetworkPeeringName The name of the peering. * * @param {object} virtualNetworkPeeringParameters Parameters supplied to the * create or update virtual network peering operation. * * @param {boolean} [virtualNetworkPeeringParameters.allowVirtualNetworkAccess] * Whether the VMs in the local virtual network space would be able to access * the VMs in remote virtual network space. * * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] * Whether the forwarded traffic from the VMs in the local virtual network will * be allowed/disallowed in remote virtual network. * * @param {boolean} [virtualNetworkPeeringParameters.allowGatewayTransit] If * gateway links can be used in remote virtual networking to link to this * virtual network. * * @param {boolean} [virtualNetworkPeeringParameters.useRemoteGateways] If * remote gateways can be used on this virtual network. If the flag is set to * true, and allowGatewayTransit on remote peering is also true, virtual * network will use gateways of remote virtual network for transit. Only one * peering can have this flag set to true. This flag cannot be set if virtual * network already has a gateway. * * @param {object} [virtualNetworkPeeringParameters.remoteVirtualNetwork] The * reference of the remote virtual network. The remote virtual network can be * in the same or different region (preview). See here to register for the * preview and learn more * (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). * * @param {string} [virtualNetworkPeeringParameters.remoteVirtualNetwork.id] * Resource ID. * * @param {object} [virtualNetworkPeeringParameters.remoteAddressSpace] The * reference of the remote virtual network address space. * * @param {array} * [virtualNetworkPeeringParameters.remoteAddressSpace.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [virtualNetworkPeeringParameters.peeringState] The status of * the virtual network peering. Possible values are 'Initiated', 'Connected', * and 'Disconnected'. Possible values include: 'Initiated', 'Connected', * 'Disconnected' * * @param {string} [virtualNetworkPeeringParameters.provisioningState] The * provisioning state of the resource. * * @param {string} [virtualNetworkPeeringParameters.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [virtualNetworkPeeringParameters.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [virtualNetworkPeeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkPeering} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkPeering} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: models.VirtualNetworkPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: models.VirtualNetworkPeering, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: models.VirtualNetworkPeering, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all virtual network peerings in a virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all virtual network peerings in a virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkPeeringListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkPeeringListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkPeeringListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, virtualNetworkName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, virtualNetworkName: string, callback: ServiceCallback): void; list(resourceGroupName: string, virtualNetworkName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified virtual network peering. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} virtualNetworkPeeringName The name of the virtual network * peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified virtual network peering. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} virtualNetworkPeeringName The name of the virtual network * peering. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a peering in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} virtualNetworkPeeringName The name of the peering. * * @param {object} virtualNetworkPeeringParameters Parameters supplied to the * create or update virtual network peering operation. * * @param {boolean} [virtualNetworkPeeringParameters.allowVirtualNetworkAccess] * Whether the VMs in the local virtual network space would be able to access * the VMs in remote virtual network space. * * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] * Whether the forwarded traffic from the VMs in the local virtual network will * be allowed/disallowed in remote virtual network. * * @param {boolean} [virtualNetworkPeeringParameters.allowGatewayTransit] If * gateway links can be used in remote virtual networking to link to this * virtual network. * * @param {boolean} [virtualNetworkPeeringParameters.useRemoteGateways] If * remote gateways can be used on this virtual network. If the flag is set to * true, and allowGatewayTransit on remote peering is also true, virtual * network will use gateways of remote virtual network for transit. Only one * peering can have this flag set to true. This flag cannot be set if virtual * network already has a gateway. * * @param {object} [virtualNetworkPeeringParameters.remoteVirtualNetwork] The * reference of the remote virtual network. The remote virtual network can be * in the same or different region (preview). See here to register for the * preview and learn more * (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). * * @param {string} [virtualNetworkPeeringParameters.remoteVirtualNetwork.id] * Resource ID. * * @param {object} [virtualNetworkPeeringParameters.remoteAddressSpace] The * reference of the remote virtual network address space. * * @param {array} * [virtualNetworkPeeringParameters.remoteAddressSpace.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [virtualNetworkPeeringParameters.peeringState] The status of * the virtual network peering. Possible values are 'Initiated', 'Connected', * and 'Disconnected'. Possible values include: 'Initiated', 'Connected', * 'Disconnected' * * @param {string} [virtualNetworkPeeringParameters.provisioningState] The * provisioning state of the resource. * * @param {string} [virtualNetworkPeeringParameters.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [virtualNetworkPeeringParameters.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [virtualNetworkPeeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: models.VirtualNetworkPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a peering in the specified virtual network. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkName The name of the virtual network. * * @param {string} virtualNetworkPeeringName The name of the peering. * * @param {object} virtualNetworkPeeringParameters Parameters supplied to the * create or update virtual network peering operation. * * @param {boolean} [virtualNetworkPeeringParameters.allowVirtualNetworkAccess] * Whether the VMs in the local virtual network space would be able to access * the VMs in remote virtual network space. * * @param {boolean} [virtualNetworkPeeringParameters.allowForwardedTraffic] * Whether the forwarded traffic from the VMs in the local virtual network will * be allowed/disallowed in remote virtual network. * * @param {boolean} [virtualNetworkPeeringParameters.allowGatewayTransit] If * gateway links can be used in remote virtual networking to link to this * virtual network. * * @param {boolean} [virtualNetworkPeeringParameters.useRemoteGateways] If * remote gateways can be used on this virtual network. If the flag is set to * true, and allowGatewayTransit on remote peering is also true, virtual * network will use gateways of remote virtual network for transit. Only one * peering can have this flag set to true. This flag cannot be set if virtual * network already has a gateway. * * @param {object} [virtualNetworkPeeringParameters.remoteVirtualNetwork] The * reference of the remote virtual network. The remote virtual network can be * in the same or different region (preview). See here to register for the * preview and learn more * (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). * * @param {string} [virtualNetworkPeeringParameters.remoteVirtualNetwork.id] * Resource ID. * * @param {object} [virtualNetworkPeeringParameters.remoteAddressSpace] The * reference of the remote virtual network address space. * * @param {array} * [virtualNetworkPeeringParameters.remoteAddressSpace.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [virtualNetworkPeeringParameters.peeringState] The status of * the virtual network peering. Possible values are 'Initiated', 'Connected', * and 'Disconnected'. Possible values include: 'Initiated', 'Connected', * 'Disconnected' * * @param {string} [virtualNetworkPeeringParameters.provisioningState] The * provisioning state of the resource. * * @param {string} [virtualNetworkPeeringParameters.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [virtualNetworkPeeringParameters.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [virtualNetworkPeeringParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkPeering} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkPeering} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkPeering} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: models.VirtualNetworkPeering, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: models.VirtualNetworkPeering, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, virtualNetworkName: string, virtualNetworkPeeringName: string, virtualNetworkPeeringParameters: models.VirtualNetworkPeering, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all virtual network peerings in a virtual network. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all virtual network peerings in a virtual network. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkPeeringListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkPeeringListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkPeeringListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VirtualNetworkGateways * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VirtualNetworkGateways { /** * Creates or updates a virtual network gateway in the specified resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to create or update virtual * network gateway operation. * * @param {array} [parameters.ipConfigurations] IP configurations for virtual * network gateway. * * @param {string} [parameters.gatewayType] The type of this virtual network * gateway. Possible values are: 'Vpn' and 'ExpressRoute'. Possible values * include: 'Vpn', 'ExpressRoute' * * @param {string} [parameters.vpnType] The type of this virtual network * gateway. Possible values are: 'PolicyBased' and 'RouteBased'. Possible * values include: 'PolicyBased', 'RouteBased' * * @param {boolean} [parameters.enableBgp] Whether BGP is enabled for this * virtual network gateway or not. * * @param {boolean} [parameters.activeActive] ActiveActive flag * * @param {object} [parameters.gatewayDefaultSite] The reference of the * LocalNetworkGateway resource which represents local network site having * default routes. Assign Null value in case of removing existing default site * setting. * * @param {string} [parameters.gatewayDefaultSite.id] Resource ID. * * @param {object} [parameters.sku] The reference of the * VirtualNetworkGatewaySku resource which represents the SKU selected for * Virtual network gateway. * * @param {string} [parameters.sku.name] Gateway SKU name. Possible values * include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', * 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', * 'ErGw2AZ', 'ErGw3AZ' * * @param {string} [parameters.sku.tier] Gateway SKU tier. Possible values * include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', * 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', * 'ErGw2AZ', 'ErGw3AZ' * * @param {number} [parameters.sku.capacity] The capacity. * * @param {object} [parameters.vpnClientConfiguration] The reference of the * VpnClientConfiguration resource which represents the P2S VpnClient * configurations. * * @param {object} [parameters.vpnClientConfiguration.vpnClientAddressPool] The * reference of the address space resource which represents Address space for * P2S VpnClient. * * @param {array} [parameters.vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. * * @param {array} * [parameters.vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. * * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * * @param {array} [parameters.vpnClientConfiguration.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for virtual network gateway P2S client. * * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The * radius server address property of the VirtualNetworkGateway resource for vpn * client connection. * * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The * radius secret property of the VirtualNetworkGateway resource for vpn client * connection. * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * * @param {string} [parameters.bgpSettings.bgpPeeringAddress] The BGP peering * address and BGP identifier of this BGP speaker. * * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * * @param {object} [parameters.customRoutes] The reference of the address space * resource which represents the custom routes address space specified by the * the customer for virtual network gateway and VpnClient. * * @param {array} [parameters.customRoutes.addressPrefixes] A list of address * blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VirtualNetworkGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a virtual network gateway in the specified resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to create or update virtual * network gateway operation. * * @param {array} [parameters.ipConfigurations] IP configurations for virtual * network gateway. * * @param {string} [parameters.gatewayType] The type of this virtual network * gateway. Possible values are: 'Vpn' and 'ExpressRoute'. Possible values * include: 'Vpn', 'ExpressRoute' * * @param {string} [parameters.vpnType] The type of this virtual network * gateway. Possible values are: 'PolicyBased' and 'RouteBased'. Possible * values include: 'PolicyBased', 'RouteBased' * * @param {boolean} [parameters.enableBgp] Whether BGP is enabled for this * virtual network gateway or not. * * @param {boolean} [parameters.activeActive] ActiveActive flag * * @param {object} [parameters.gatewayDefaultSite] The reference of the * LocalNetworkGateway resource which represents local network site having * default routes. Assign Null value in case of removing existing default site * setting. * * @param {string} [parameters.gatewayDefaultSite.id] Resource ID. * * @param {object} [parameters.sku] The reference of the * VirtualNetworkGatewaySku resource which represents the SKU selected for * Virtual network gateway. * * @param {string} [parameters.sku.name] Gateway SKU name. Possible values * include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', * 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', * 'ErGw2AZ', 'ErGw3AZ' * * @param {string} [parameters.sku.tier] Gateway SKU tier. Possible values * include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', * 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', * 'ErGw2AZ', 'ErGw3AZ' * * @param {number} [parameters.sku.capacity] The capacity. * * @param {object} [parameters.vpnClientConfiguration] The reference of the * VpnClientConfiguration resource which represents the P2S VpnClient * configurations. * * @param {object} [parameters.vpnClientConfiguration.vpnClientAddressPool] The * reference of the address space resource which represents Address space for * P2S VpnClient. * * @param {array} [parameters.vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. * * @param {array} * [parameters.vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. * * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * * @param {array} [parameters.vpnClientConfiguration.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for virtual network gateway P2S client. * * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The * radius server address property of the VirtualNetworkGateway resource for vpn * client connection. * * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The * radius secret property of the VirtualNetworkGateway resource for vpn client * connection. * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * * @param {string} [parameters.bgpSettings.bgpPeeringAddress] The BGP peering * address and BGP identifier of this BGP speaker. * * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * * @param {object} [parameters.customRoutes] The reference of the address space * resource which represents the custom routes address space specified by the * the customer for virtual network gateway and VpnClient. * * @param {array} [parameters.customRoutes.addressPrefixes] A list of address * blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VirtualNetworkGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VirtualNetworkGateway, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VirtualNetworkGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified virtual network gateway by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified virtual network gateway by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; get(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified virtual network gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified virtual network gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a virtual network gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to update virtual network * gateway tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a virtual network gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to update virtual network * gateway tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all virtual network gateways by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all virtual network gateways by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the connections in a virtual network gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listConnectionsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the connections in a virtual network gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayListConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayListConnectionsResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayListConnectionsResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listConnections(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listConnections(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; listConnections(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Resets the primary of the virtual network gateway in the specified resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.gatewayVip] Virtual network gateway vip address * supplied to the begin reset of the active-active feature enabled gateway. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ resetWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { gatewayVip? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Resets the primary of the virtual network gateway in the specified resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.gatewayVip] Virtual network gateway vip address * supplied to the begin reset of the active-active feature enabled gateway. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ reset(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { gatewayVip? : string, customHeaders? : { [headerName: string]: string; } }): Promise; reset(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; reset(resourceGroupName: string, virtualNetworkGatewayName: string, options: { gatewayVip? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Resets the VPN client shared key of the virtual network gateway in the * specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ resetVpnClientSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Resets the VPN client shared key of the virtual network gateway in the * specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ resetVpnClientSharedKey(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; resetVpnClientSharedKey(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; resetVpnClientSharedKey(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Generates VPN client package for P2S client of the virtual network gateway * in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to the generate virtual * network gateway VPN client package operation. * * @param {string} [parameters.processorArchitecture] VPN client Processor * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values * include: 'Amd64', 'X86' * * @param {string} [parameters.authenticationMethod] VPN client authentication * method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' * * @param {string} [parameters.radiusServerAuthCertificate] The public * certificate data for the radius server authentication certificate as a * Base-64 encoded string. Required only if external radius authentication has * been configured with EAPTLS authentication. * * @param {array} [parameters.clientRootCertificates] A list of client root * certificates public certificate data encoded as Base-64 strings. Optional * parameter for external radius based authentication with EAPTLS. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ generatevpnclientpackageWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Generates VPN client package for P2S client of the virtual network gateway * in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to the generate virtual * network gateway VPN client package operation. * * @param {string} [parameters.processorArchitecture] VPN client Processor * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values * include: 'Amd64', 'X86' * * @param {string} [parameters.authenticationMethod] VPN client authentication * method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' * * @param {string} [parameters.radiusServerAuthCertificate] The public * certificate data for the radius server authentication certificate as a * Base-64 encoded string. Required only if external radius authentication has * been configured with EAPTLS authentication. * * @param {array} [parameters.clientRootCertificates] A list of client root * certificates public certificate data encoded as Base-64 strings. Optional * parameter for external radius based authentication with EAPTLS. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {String} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ generatevpnclientpackage(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; generatevpnclientpackage(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, callback: ServiceCallback): void; generatevpnclientpackage(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Generates VPN profile for P2S client of the virtual network gateway in the * specified resource group. Used for IKEV2 and radius based authentication. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to the generate virtual * network gateway VPN client package operation. * * @param {string} [parameters.processorArchitecture] VPN client Processor * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values * include: 'Amd64', 'X86' * * @param {string} [parameters.authenticationMethod] VPN client authentication * method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' * * @param {string} [parameters.radiusServerAuthCertificate] The public * certificate data for the radius server authentication certificate as a * Base-64 encoded string. Required only if external radius authentication has * been configured with EAPTLS authentication. * * @param {array} [parameters.clientRootCertificates] A list of client root * certificates public certificate data encoded as Base-64 strings. Optional * parameter for external radius based authentication with EAPTLS. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ generateVpnProfileWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Generates VPN profile for P2S client of the virtual network gateway in the * specified resource group. Used for IKEV2 and radius based authentication. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to the generate virtual * network gateway VPN client package operation. * * @param {string} [parameters.processorArchitecture] VPN client Processor * Architecture. Possible values are: 'AMD64' and 'X86'. Possible values * include: 'Amd64', 'X86' * * @param {string} [parameters.authenticationMethod] VPN client authentication * method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' * * @param {string} [parameters.radiusServerAuthCertificate] The public * certificate data for the radius server authentication certificate as a * Base-64 encoded string. Required only if external radius authentication has * been configured with EAPTLS authentication. * * @param {array} [parameters.clientRootCertificates] A list of client root * certificates public certificate data encoded as Base-64 strings. Optional * parameter for external radius based authentication with EAPTLS. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {String} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ generateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; generateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, callback: ServiceCallback): void; generateVpnProfile(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VpnClientParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets pre-generated VPN profile for P2S client of the virtual network gateway * in the specified resource group. The profile needs to be generated first * using generateVpnProfile. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getVpnProfilePackageUrlWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets pre-generated VPN profile for P2S client of the virtual network gateway * in the specified resource group. The profile needs to be generated first * using generateVpnProfile. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {String} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getVpnProfilePackageUrl(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getVpnProfilePackageUrl(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; getVpnProfilePackageUrl(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.peer] The IP address of the peer to retrieve the * status of. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getBgpPeerStatusWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { peer? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.peer] The IP address of the peer to retrieve the * status of. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {BgpPeerStatusListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {BgpPeerStatusListResult} [result] - The deserialized result object if an error did not occur. * See {@link BgpPeerStatusListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getBgpPeerStatus(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { peer? : string, customHeaders? : { [headerName: string]: string; } }): Promise; getBgpPeerStatus(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; getBgpPeerStatus(resourceGroupName: string, virtualNetworkGatewayName: string, options: { peer? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets a xml format representation for supported vpn devices. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ supportedVpnDevicesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets a xml format representation for supported vpn devices. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {String} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ supportedVpnDevices(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; supportedVpnDevices(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; supportedVpnDevices(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * This operation retrieves a list of routes the virtual network gateway has * learned, including routes learned from BGP peers. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getLearnedRoutesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * This operation retrieves a list of routes the virtual network gateway has * learned, including routes learned from BGP peers. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {GatewayRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {GatewayRouteListResult} [result] - The deserialized result object if an error did not occur. * See {@link GatewayRouteListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getLearnedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getLearnedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; getLearnedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * This operation retrieves a list of routes the virtual network gateway is * advertising to the specified peer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {string} peer The IP address of the peer * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getAdvertisedRoutesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * This operation retrieves a list of routes the virtual network gateway is * advertising to the specified peer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {string} peer The IP address of the peer * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {GatewayRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {GatewayRouteListResult} [result] - The deserialized result object if an error did not occur. * See {@link GatewayRouteListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getAdvertisedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getAdvertisedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, callback: ServiceCallback): void; getAdvertisedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy * for P2S client of virtual network gateway in the specified resource group * through Network resource provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} vpnclientIpsecParams Parameters supplied to the Begin Set * vpnclient ipsec parameters of Virtual Network Gateway P2S client operation * through Network resource provider. * * @param {number} vpnclientIpsecParams.saLifeTimeSeconds The IPSec Security * Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for * P2S client. * * @param {number} vpnclientIpsecParams.saDataSizeKilobytes The IPSec Security * Association (also called Quick Mode or Phase 2 SA) payload size in KB for * P2S client.. * * @param {string} vpnclientIpsecParams.ipsecEncryption The IPSec encryption * algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', * 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' * * @param {string} vpnclientIpsecParams.ipsecIntegrity The IPSec integrity * algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', * 'GCMAES128', 'GCMAES192', 'GCMAES256' * * @param {string} vpnclientIpsecParams.ikeEncryption The IKE encryption * algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', * 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' * * @param {string} vpnclientIpsecParams.ikeIntegrity The IKE integrity * algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', * 'SHA384', 'GCMAES256', 'GCMAES128' * * @param {string} vpnclientIpsecParams.dhGroup The DH Group used in IKE Phase * 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', * 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' * * @param {string} vpnclientIpsecParams.pfsGroup The Pfs Group used in IKE * Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', * 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM' * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ setVpnclientIpsecParametersWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: models.VpnClientIPsecParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy * for P2S client of virtual network gateway in the specified resource group * through Network resource provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} vpnclientIpsecParams Parameters supplied to the Begin Set * vpnclient ipsec parameters of Virtual Network Gateway P2S client operation * through Network resource provider. * * @param {number} vpnclientIpsecParams.saLifeTimeSeconds The IPSec Security * Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for * P2S client. * * @param {number} vpnclientIpsecParams.saDataSizeKilobytes The IPSec Security * Association (also called Quick Mode or Phase 2 SA) payload size in KB for * P2S client.. * * @param {string} vpnclientIpsecParams.ipsecEncryption The IPSec encryption * algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', * 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' * * @param {string} vpnclientIpsecParams.ipsecIntegrity The IPSec integrity * algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', * 'GCMAES128', 'GCMAES192', 'GCMAES256' * * @param {string} vpnclientIpsecParams.ikeEncryption The IKE encryption * algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', * 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' * * @param {string} vpnclientIpsecParams.ikeIntegrity The IKE integrity * algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', * 'SHA384', 'GCMAES256', 'GCMAES128' * * @param {string} vpnclientIpsecParams.dhGroup The DH Group used in IKE Phase * 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', * 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' * * @param {string} vpnclientIpsecParams.pfsGroup The Pfs Group used in IKE * Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', * 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM' * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnClientIPsecParameters} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnClientIPsecParameters} [result] - The deserialized result object if an error did not occur. * See {@link VpnClientIPsecParameters} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ setVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: models.VpnClientIPsecParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; setVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: models.VpnClientIPsecParameters, callback: ServiceCallback): void; setVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: models.VpnClientIPsecParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The Get VpnclientIpsecParameters operation retrieves information about the * vpnclient ipsec policy for P2S client of virtual network gateway in the * specified resource group through Network resource provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The virtual network gateway name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getVpnclientIpsecParametersWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The Get VpnclientIpsecParameters operation retrieves information about the * vpnclient ipsec policy for P2S client of virtual network gateway in the * specified resource group through Network resource provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The virtual network gateway name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnClientIPsecParameters} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnClientIPsecParameters} [result] - The deserialized result object if an error did not occur. * See {@link VpnClientIPsecParameters} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; getVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets a xml format representation for vpn device configuration script. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection for which the configuration script is generated. * * @param {object} parameters Parameters supplied to the generate vpn device * script operation. * * @param {string} [parameters.vendor] The vendor for the vpn device. * * @param {string} [parameters.deviceFamily] The device family for the vpn * device. * * @param {string} [parameters.firmwareVersion] The firmware version for the * vpn device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ vpnDeviceConfigurationScriptWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VpnDeviceScriptParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets a xml format representation for vpn device configuration script. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection for which the configuration script is generated. * * @param {object} parameters Parameters supplied to the generate vpn device * script operation. * * @param {string} [parameters.vendor] The vendor for the vpn device. * * @param {string} [parameters.deviceFamily] The device family for the vpn * device. * * @param {string} [parameters.firmwareVersion] The firmware version for the * vpn device. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {String} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ vpnDeviceConfigurationScript(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VpnDeviceScriptParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; vpnDeviceConfigurationScript(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VpnDeviceScriptParameters, callback: ServiceCallback): void; vpnDeviceConfigurationScript(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VpnDeviceScriptParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a virtual network gateway in the specified resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to create or update virtual * network gateway operation. * * @param {array} [parameters.ipConfigurations] IP configurations for virtual * network gateway. * * @param {string} [parameters.gatewayType] The type of this virtual network * gateway. Possible values are: 'Vpn' and 'ExpressRoute'. Possible values * include: 'Vpn', 'ExpressRoute' * * @param {string} [parameters.vpnType] The type of this virtual network * gateway. Possible values are: 'PolicyBased' and 'RouteBased'. Possible * values include: 'PolicyBased', 'RouteBased' * * @param {boolean} [parameters.enableBgp] Whether BGP is enabled for this * virtual network gateway or not. * * @param {boolean} [parameters.activeActive] ActiveActive flag * * @param {object} [parameters.gatewayDefaultSite] The reference of the * LocalNetworkGateway resource which represents local network site having * default routes. Assign Null value in case of removing existing default site * setting. * * @param {string} [parameters.gatewayDefaultSite.id] Resource ID. * * @param {object} [parameters.sku] The reference of the * VirtualNetworkGatewaySku resource which represents the SKU selected for * Virtual network gateway. * * @param {string} [parameters.sku.name] Gateway SKU name. Possible values * include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', * 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', * 'ErGw2AZ', 'ErGw3AZ' * * @param {string} [parameters.sku.tier] Gateway SKU tier. Possible values * include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', * 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', * 'ErGw2AZ', 'ErGw3AZ' * * @param {number} [parameters.sku.capacity] The capacity. * * @param {object} [parameters.vpnClientConfiguration] The reference of the * VpnClientConfiguration resource which represents the P2S VpnClient * configurations. * * @param {object} [parameters.vpnClientConfiguration.vpnClientAddressPool] The * reference of the address space resource which represents Address space for * P2S VpnClient. * * @param {array} [parameters.vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. * * @param {array} * [parameters.vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. * * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * * @param {array} [parameters.vpnClientConfiguration.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for virtual network gateway P2S client. * * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The * radius server address property of the VirtualNetworkGateway resource for vpn * client connection. * * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The * radius secret property of the VirtualNetworkGateway resource for vpn client * connection. * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * * @param {string} [parameters.bgpSettings.bgpPeeringAddress] The BGP peering * address and BGP identifier of this BGP speaker. * * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * * @param {object} [parameters.customRoutes] The reference of the address space * resource which represents the custom routes address space specified by the * the customer for virtual network gateway and VpnClient. * * @param {array} [parameters.customRoutes.addressPrefixes] A list of address * blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VirtualNetworkGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a virtual network gateway in the specified resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to create or update virtual * network gateway operation. * * @param {array} [parameters.ipConfigurations] IP configurations for virtual * network gateway. * * @param {string} [parameters.gatewayType] The type of this virtual network * gateway. Possible values are: 'Vpn' and 'ExpressRoute'. Possible values * include: 'Vpn', 'ExpressRoute' * * @param {string} [parameters.vpnType] The type of this virtual network * gateway. Possible values are: 'PolicyBased' and 'RouteBased'. Possible * values include: 'PolicyBased', 'RouteBased' * * @param {boolean} [parameters.enableBgp] Whether BGP is enabled for this * virtual network gateway or not. * * @param {boolean} [parameters.activeActive] ActiveActive flag * * @param {object} [parameters.gatewayDefaultSite] The reference of the * LocalNetworkGateway resource which represents local network site having * default routes. Assign Null value in case of removing existing default site * setting. * * @param {string} [parameters.gatewayDefaultSite.id] Resource ID. * * @param {object} [parameters.sku] The reference of the * VirtualNetworkGatewaySku resource which represents the SKU selected for * Virtual network gateway. * * @param {string} [parameters.sku.name] Gateway SKU name. Possible values * include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', * 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', * 'ErGw2AZ', 'ErGw3AZ' * * @param {string} [parameters.sku.tier] Gateway SKU tier. Possible values * include: 'Basic', 'HighPerformance', 'Standard', 'UltraPerformance', * 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', * 'ErGw2AZ', 'ErGw3AZ' * * @param {number} [parameters.sku.capacity] The capacity. * * @param {object} [parameters.vpnClientConfiguration] The reference of the * VpnClientConfiguration resource which represents the P2S VpnClient * configurations. * * @param {object} [parameters.vpnClientConfiguration.vpnClientAddressPool] The * reference of the address space resource which represents Address space for * P2S VpnClient. * * @param {array} [parameters.vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. * * @param {array} * [parameters.vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. * * @param {array} [parameters.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * * @param {array} [parameters.vpnClientConfiguration.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for virtual network gateway P2S client. * * @param {string} [parameters.vpnClientConfiguration.radiusServerAddress] The * radius server address property of the VirtualNetworkGateway resource for vpn * client connection. * * @param {string} [parameters.vpnClientConfiguration.radiusServerSecret] The * radius secret property of the VirtualNetworkGateway resource for vpn client * connection. * * @param {object} [parameters.bgpSettings] Virtual network gateway's BGP * speaker settings. * * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * * @param {string} [parameters.bgpSettings.bgpPeeringAddress] The BGP peering * address and BGP identifier of this BGP speaker. * * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * * @param {object} [parameters.customRoutes] The reference of the address space * resource which represents the custom routes address space specified by the * the customer for virtual network gateway and VpnClient. * * @param {array} [parameters.customRoutes.addressPrefixes] A list of address * blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGateway resource. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VirtualNetworkGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VirtualNetworkGateway, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.VirtualNetworkGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified virtual network gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified virtual network gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a virtual network gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to update virtual network * gateway tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a virtual network gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} parameters Parameters supplied to update virtual network * gateway tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Resets the primary of the virtual network gateway in the specified resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.gatewayVip] Virtual network gateway vip address * supplied to the begin reset of the active-active feature enabled gateway. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginResetWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { gatewayVip? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Resets the primary of the virtual network gateway in the specified resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.gatewayVip] Virtual network gateway vip address * supplied to the begin reset of the active-active feature enabled gateway. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginReset(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { gatewayVip? : string, customHeaders? : { [headerName: string]: string; } }): Promise; beginReset(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; beginReset(resourceGroupName: string, virtualNetworkGatewayName: string, options: { gatewayVip? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Resets the VPN client shared key of the virtual network gateway in the * specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginResetVpnClientSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Resets the VPN client shared key of the virtual network gateway in the * specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginResetVpnClientSharedKey(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginResetVpnClientSharedKey(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; beginResetVpnClientSharedKey(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets pre-generated VPN profile for P2S client of the virtual network gateway * in the specified resource group. The profile needs to be generated first * using generateVpnProfile. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetVpnProfilePackageUrlWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets pre-generated VPN profile for P2S client of the virtual network gateway * in the specified resource group. The profile needs to be generated first * using generateVpnProfile. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {String} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {String} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetVpnProfilePackageUrl(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetVpnProfilePackageUrl(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; beginGetVpnProfilePackageUrl(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.peer] The IP address of the peer to retrieve the * status of. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetBgpPeerStatusWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { peer? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The GetBgpPeerStatus operation retrieves the status of all BGP peers. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {string} [options.peer] The IP address of the peer to retrieve the * status of. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {BgpPeerStatusListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {BgpPeerStatusListResult} [result] - The deserialized result object if an error did not occur. * See {@link BgpPeerStatusListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetBgpPeerStatus(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { peer? : string, customHeaders? : { [headerName: string]: string; } }): Promise; beginGetBgpPeerStatus(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; beginGetBgpPeerStatus(resourceGroupName: string, virtualNetworkGatewayName: string, options: { peer? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * This operation retrieves a list of routes the virtual network gateway has * learned, including routes learned from BGP peers. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetLearnedRoutesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * This operation retrieves a list of routes the virtual network gateway has * learned, including routes learned from BGP peers. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {GatewayRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {GatewayRouteListResult} [result] - The deserialized result object if an error did not occur. * See {@link GatewayRouteListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetLearnedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetLearnedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; beginGetLearnedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * This operation retrieves a list of routes the virtual network gateway is * advertising to the specified peer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {string} peer The IP address of the peer * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetAdvertisedRoutesWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * This operation retrieves a list of routes the virtual network gateway is * advertising to the specified peer. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {string} peer The IP address of the peer * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {GatewayRouteListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {GatewayRouteListResult} [result] - The deserialized result object if an error did not occur. * See {@link GatewayRouteListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetAdvertisedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetAdvertisedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, callback: ServiceCallback): void; beginGetAdvertisedRoutes(resourceGroupName: string, virtualNetworkGatewayName: string, peer: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy * for P2S client of virtual network gateway in the specified resource group * through Network resource provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} vpnclientIpsecParams Parameters supplied to the Begin Set * vpnclient ipsec parameters of Virtual Network Gateway P2S client operation * through Network resource provider. * * @param {number} vpnclientIpsecParams.saLifeTimeSeconds The IPSec Security * Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for * P2S client. * * @param {number} vpnclientIpsecParams.saDataSizeKilobytes The IPSec Security * Association (also called Quick Mode or Phase 2 SA) payload size in KB for * P2S client.. * * @param {string} vpnclientIpsecParams.ipsecEncryption The IPSec encryption * algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', * 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' * * @param {string} vpnclientIpsecParams.ipsecIntegrity The IPSec integrity * algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', * 'GCMAES128', 'GCMAES192', 'GCMAES256' * * @param {string} vpnclientIpsecParams.ikeEncryption The IKE encryption * algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', * 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' * * @param {string} vpnclientIpsecParams.ikeIntegrity The IKE integrity * algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', * 'SHA384', 'GCMAES256', 'GCMAES128' * * @param {string} vpnclientIpsecParams.dhGroup The DH Group used in IKE Phase * 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', * 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' * * @param {string} vpnclientIpsecParams.pfsGroup The Pfs Group used in IKE * Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', * 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM' * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginSetVpnclientIpsecParametersWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: models.VpnClientIPsecParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The Set VpnclientIpsecParameters operation sets the vpnclient ipsec policy * for P2S client of virtual network gateway in the specified resource group * through Network resource provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The name of the virtual network * gateway. * * @param {object} vpnclientIpsecParams Parameters supplied to the Begin Set * vpnclient ipsec parameters of Virtual Network Gateway P2S client operation * through Network resource provider. * * @param {number} vpnclientIpsecParams.saLifeTimeSeconds The IPSec Security * Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for * P2S client. * * @param {number} vpnclientIpsecParams.saDataSizeKilobytes The IPSec Security * Association (also called Quick Mode or Phase 2 SA) payload size in KB for * P2S client.. * * @param {string} vpnclientIpsecParams.ipsecEncryption The IPSec encryption * algorithm (IKE phase 1). Possible values include: 'None', 'DES', 'DES3', * 'AES128', 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' * * @param {string} vpnclientIpsecParams.ipsecIntegrity The IPSec integrity * algorithm (IKE phase 1). Possible values include: 'MD5', 'SHA1', 'SHA256', * 'GCMAES128', 'GCMAES192', 'GCMAES256' * * @param {string} vpnclientIpsecParams.ikeEncryption The IKE encryption * algorithm (IKE phase 2). Possible values include: 'DES', 'DES3', 'AES128', * 'AES192', 'AES256', 'GCMAES256', 'GCMAES128' * * @param {string} vpnclientIpsecParams.ikeIntegrity The IKE integrity * algorithm (IKE phase 2). Possible values include: 'MD5', 'SHA1', 'SHA256', * 'SHA384', 'GCMAES256', 'GCMAES128' * * @param {string} vpnclientIpsecParams.dhGroup The DH Group used in IKE Phase * 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', * 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' * * @param {string} vpnclientIpsecParams.pfsGroup The Pfs Group used in IKE * Phase 2 for new child SA. Possible values include: 'None', 'PFS1', 'PFS2', * 'PFS2048', 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM' * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnClientIPsecParameters} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnClientIPsecParameters} [result] - The deserialized result object if an error did not occur. * See {@link VpnClientIPsecParameters} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginSetVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: models.VpnClientIPsecParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginSetVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: models.VpnClientIPsecParameters, callback: ServiceCallback): void; beginSetVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, vpnclientIpsecParams: models.VpnClientIPsecParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The Get VpnclientIpsecParameters operation retrieves information about the * vpnclient ipsec policy for P2S client of virtual network gateway in the * specified resource group through Network resource provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The virtual network gateway name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGetVpnclientIpsecParametersWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The Get VpnclientIpsecParameters operation retrieves information about the * vpnclient ipsec policy for P2S client of virtual network gateway in the * specified resource group through Network resource provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayName The virtual network gateway name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnClientIPsecParameters} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnClientIPsecParameters} [result] - The deserialized result object if an error did not occur. * See {@link VpnClientIPsecParameters} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGetVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGetVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, callback: ServiceCallback): void; beginGetVpnclientIpsecParameters(resourceGroupName: string, virtualNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all virtual network gateways by resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all virtual network gateways by resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the connections in a virtual network gateway. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listConnectionsNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the connections in a virtual network gateway. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayListConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayListConnectionsResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayListConnectionsResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listConnectionsNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listConnectionsNext(nextPageLink: string, callback: ServiceCallback): void; listConnectionsNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VirtualNetworkGatewayConnections * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VirtualNetworkGatewayConnections { /** * Creates or updates a virtual network gateway connection in the specified * resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} parameters Parameters supplied to the create or update * virtual network gateway connection operation. * * @param {string} [parameters.authorizationKey] The authorizationKey. * * @param {object} parameters.virtualNetworkGateway1 The reference to virtual * network gateway resource. * * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. * * @param {string} [parameters.virtualNetworkGateway2.gatewayType] The type of * this virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. * Possible values include: 'Vpn', 'ExpressRoute' * * @param {string} [parameters.virtualNetworkGateway2.vpnType] The type of this * virtual network gateway. Possible values are: 'PolicyBased' and * 'RouteBased'. Possible values include: 'PolicyBased', 'RouteBased' * * @param {boolean} [parameters.virtualNetworkGateway2.enableBgp] Whether BGP * is enabled for this virtual network gateway or not. * * @param {boolean} [parameters.virtualNetworkGateway2.activeActive] * ActiveActive flag * * @param {object} [parameters.virtualNetworkGateway2.gatewayDefaultSite] The * reference of the LocalNetworkGateway resource which represents local network * site having default routes. Assign Null value in case of removing existing * default site setting. * * @param {object} [parameters.virtualNetworkGateway2.sku] The reference of the * VirtualNetworkGatewaySku resource which represents the SKU selected for * Virtual network gateway. * * @param {string} [parameters.virtualNetworkGateway2.sku.name] Gateway SKU * name. Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' * * @param {string} [parameters.virtualNetworkGateway2.sku.tier] Gateway SKU * tier. Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' * * @param {number} [parameters.virtualNetworkGateway2.sku.capacity] The * capacity. * * @param {object} [parameters.virtualNetworkGateway2.vpnClientConfiguration] * The reference of the VpnClientConfiguration resource which represents the * P2S VpnClient configurations. * * @param {object} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] * The reference of the address space resource which represents Address space * for P2S VpnClient. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for virtual network gateway P2S client. * * @param {string} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] * The radius server address property of the VirtualNetworkGateway resource for * vpn client connection. * * @param {string} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] * The radius secret property of the VirtualNetworkGateway resource for vpn * client connection. * * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual * network gateway's BGP speaker settings. * * @param {object} [parameters.virtualNetworkGateway2.customRoutes] The * reference of the address space resource which represents the custom routes * address space specified by the the customer for virtual network gateway and * VpnClient. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. * * @param {string} [parameters.virtualNetworkGateway2.etag] Gets a unique * read-only string that changes whenever the resource is updated. * * @param {string} [parameters.virtualNetworkGateway2.id] Resource ID. * * @param {string} [parameters.virtualNetworkGateway2.location] Resource * location. * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * * @param {object} [parameters.localNetworkGateway2] The reference to local * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. * * @param {array} * [parameters.localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A * list of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.localNetworkGateway2.gatewayIpAddress] IP * address of local network gateway. * * @param {object} [parameters.localNetworkGateway2.bgpSettings] Local network * gateway's BGP speaker settings. * * @param {number} [parameters.localNetworkGateway2.bgpSettings.asn] The BGP * speaker's ASN. * * @param {string} * [parameters.localNetworkGateway2.bgpSettings.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [parameters.localNetworkGateway2.bgpSettings.peerWeight] The * weight added to routes learned from this BGP speaker. * * @param {string} [parameters.localNetworkGateway2.resourceGuid] The resource * GUID property of the LocalNetworkGateway resource. * * @param {string} [parameters.localNetworkGateway2.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.localNetworkGateway2.id] Resource ID. * * @param {string} [parameters.localNetworkGateway2.location] Resource * location. * * @param {object} [parameters.localNetworkGateway2.tags] Resource tags. * * @param {string} parameters.connectionType Gateway connection type. Possible * values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' * * @param {string} [parameters.connectionProtocol] Connection protocol used for * this connection. Possible values include: 'IKEv2', 'IKEv1' * * @param {number} [parameters.routingWeight] The routing weight. * * @param {string} [parameters.sharedKey] The IPSec shared key. * * @param {object} [parameters.peer] The reference to peerings resource. * * @param {string} [parameters.peer.id] Resource ID. * * @param {boolean} [parameters.enableBgp] EnableBgp flag * * @param {boolean} [parameters.usePolicyBasedTrafficSelectors] Enable * policy-based traffic selectors. * * @param {array} [parameters.ipsecPolicies] The IPSec Policies to be * considered by this connection. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGatewayConnection resource. * * @param {boolean} [parameters.expressRouteGatewayBypass] Bypass ExpressRoute * Gateway for data forwarding * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VirtualNetworkGatewayConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a virtual network gateway connection in the specified * resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} parameters Parameters supplied to the create or update * virtual network gateway connection operation. * * @param {string} [parameters.authorizationKey] The authorizationKey. * * @param {object} parameters.virtualNetworkGateway1 The reference to virtual * network gateway resource. * * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. * * @param {string} [parameters.virtualNetworkGateway2.gatewayType] The type of * this virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. * Possible values include: 'Vpn', 'ExpressRoute' * * @param {string} [parameters.virtualNetworkGateway2.vpnType] The type of this * virtual network gateway. Possible values are: 'PolicyBased' and * 'RouteBased'. Possible values include: 'PolicyBased', 'RouteBased' * * @param {boolean} [parameters.virtualNetworkGateway2.enableBgp] Whether BGP * is enabled for this virtual network gateway or not. * * @param {boolean} [parameters.virtualNetworkGateway2.activeActive] * ActiveActive flag * * @param {object} [parameters.virtualNetworkGateway2.gatewayDefaultSite] The * reference of the LocalNetworkGateway resource which represents local network * site having default routes. Assign Null value in case of removing existing * default site setting. * * @param {object} [parameters.virtualNetworkGateway2.sku] The reference of the * VirtualNetworkGatewaySku resource which represents the SKU selected for * Virtual network gateway. * * @param {string} [parameters.virtualNetworkGateway2.sku.name] Gateway SKU * name. Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' * * @param {string} [parameters.virtualNetworkGateway2.sku.tier] Gateway SKU * tier. Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' * * @param {number} [parameters.virtualNetworkGateway2.sku.capacity] The * capacity. * * @param {object} [parameters.virtualNetworkGateway2.vpnClientConfiguration] * The reference of the VpnClientConfiguration resource which represents the * P2S VpnClient configurations. * * @param {object} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] * The reference of the address space resource which represents Address space * for P2S VpnClient. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for virtual network gateway P2S client. * * @param {string} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] * The radius server address property of the VirtualNetworkGateway resource for * vpn client connection. * * @param {string} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] * The radius secret property of the VirtualNetworkGateway resource for vpn * client connection. * * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual * network gateway's BGP speaker settings. * * @param {object} [parameters.virtualNetworkGateway2.customRoutes] The * reference of the address space resource which represents the custom routes * address space specified by the the customer for virtual network gateway and * VpnClient. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. * * @param {string} [parameters.virtualNetworkGateway2.etag] Gets a unique * read-only string that changes whenever the resource is updated. * * @param {string} [parameters.virtualNetworkGateway2.id] Resource ID. * * @param {string} [parameters.virtualNetworkGateway2.location] Resource * location. * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * * @param {object} [parameters.localNetworkGateway2] The reference to local * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. * * @param {array} * [parameters.localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A * list of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.localNetworkGateway2.gatewayIpAddress] IP * address of local network gateway. * * @param {object} [parameters.localNetworkGateway2.bgpSettings] Local network * gateway's BGP speaker settings. * * @param {number} [parameters.localNetworkGateway2.bgpSettings.asn] The BGP * speaker's ASN. * * @param {string} * [parameters.localNetworkGateway2.bgpSettings.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [parameters.localNetworkGateway2.bgpSettings.peerWeight] The * weight added to routes learned from this BGP speaker. * * @param {string} [parameters.localNetworkGateway2.resourceGuid] The resource * GUID property of the LocalNetworkGateway resource. * * @param {string} [parameters.localNetworkGateway2.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.localNetworkGateway2.id] Resource ID. * * @param {string} [parameters.localNetworkGateway2.location] Resource * location. * * @param {object} [parameters.localNetworkGateway2.tags] Resource tags. * * @param {string} parameters.connectionType Gateway connection type. Possible * values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' * * @param {string} [parameters.connectionProtocol] Connection protocol used for * this connection. Possible values include: 'IKEv2', 'IKEv1' * * @param {number} [parameters.routingWeight] The routing weight. * * @param {string} [parameters.sharedKey] The IPSec shared key. * * @param {object} [parameters.peer] The reference to peerings resource. * * @param {string} [parameters.peer.id] Resource ID. * * @param {boolean} [parameters.enableBgp] EnableBgp flag * * @param {boolean} [parameters.usePolicyBasedTrafficSelectors] Enable * policy-based traffic selectors. * * @param {array} [parameters.ipsecPolicies] The IPSec Policies to be * considered by this connection. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGatewayConnection resource. * * @param {boolean} [parameters.expressRouteGatewayBypass] Bypass ExpressRoute * Gateway for data forwarding * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayConnection} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VirtualNetworkGatewayConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VirtualNetworkGatewayConnection, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VirtualNetworkGatewayConnection, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified virtual network gateway connection by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified virtual network gateway connection by resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayConnection} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, callback: ServiceCallback): void; get(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified virtual network Gateway connection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified virtual network Gateway connection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a virtual network gateway connection tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} parameters Parameters supplied to update virtual network * gateway connection tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a virtual network gateway connection tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} parameters Parameters supplied to update virtual network * gateway connection tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayConnection} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual * network gateway connection shared key for passed virtual network gateway * connection in the specified resource group through Network resource * provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The virtual network * gateway connection name. * * @param {object} parameters Parameters supplied to the Begin Set Virtual * Network Gateway connection Shared key operation throughNetwork resource * provider. * * @param {string} parameters.value The virtual network connection shared key * value. * * @param {string} [parameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ setSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual * network gateway connection shared key for passed virtual network gateway * connection in the specified resource group through Network resource * provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The virtual network * gateway connection name. * * @param {object} parameters Parameters supplied to the Begin Set Virtual * Network Gateway connection Shared key operation throughNetwork resource * provider. * * @param {string} parameters.value The virtual network connection shared key * value. * * @param {string} [parameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionSharedKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionSharedKey} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionSharedKey} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ setSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; setSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionSharedKey, callback: ServiceCallback): void; setSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionSharedKey, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves * information about the specified virtual network gateway connection shared * key through Network resource provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The virtual network * gateway connection shared key name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves * information about the specified virtual network gateway connection shared * key through Network resource provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The virtual network * gateway connection shared key name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionSharedKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionSharedKey} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionSharedKey} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ getSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; getSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, callback: ServiceCallback): void; getSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The List VirtualNetworkGatewayConnections operation retrieves all the * virtual network gateways connections created. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The List VirtualNetworkGatewayConnections operation retrieves all the * virtual network gateways connections created. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayConnectionListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayConnectionListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The VirtualNetworkGatewayConnectionResetSharedKey operation resets the * virtual network gateway connection shared key for passed virtual network * gateway connection in the specified resource group through Network resource * provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The virtual network * gateway connection reset shared key Name. * * @param {object} parameters Parameters supplied to the begin reset virtual * network gateway connection shared key operation through network resource * provider. * * @param {number} parameters.keyLength The virtual network connection reset * shared key length, should between 1 and 128. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ resetSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionResetSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The VirtualNetworkGatewayConnectionResetSharedKey operation resets the * virtual network gateway connection shared key for passed virtual network * gateway connection in the specified resource group through Network resource * provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The virtual network * gateway connection reset shared key Name. * * @param {object} parameters Parameters supplied to the begin reset virtual * network gateway connection shared key operation through network resource * provider. * * @param {number} parameters.keyLength The virtual network connection reset * shared key length, should between 1 and 128. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionResetSharedKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionResetSharedKey} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionResetSharedKey} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ resetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionResetSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; resetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionResetSharedKey, callback: ServiceCallback): void; resetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionResetSharedKey, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a virtual network gateway connection in the specified * resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} parameters Parameters supplied to the create or update * virtual network gateway connection operation. * * @param {string} [parameters.authorizationKey] The authorizationKey. * * @param {object} parameters.virtualNetworkGateway1 The reference to virtual * network gateway resource. * * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. * * @param {string} [parameters.virtualNetworkGateway2.gatewayType] The type of * this virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. * Possible values include: 'Vpn', 'ExpressRoute' * * @param {string} [parameters.virtualNetworkGateway2.vpnType] The type of this * virtual network gateway. Possible values are: 'PolicyBased' and * 'RouteBased'. Possible values include: 'PolicyBased', 'RouteBased' * * @param {boolean} [parameters.virtualNetworkGateway2.enableBgp] Whether BGP * is enabled for this virtual network gateway or not. * * @param {boolean} [parameters.virtualNetworkGateway2.activeActive] * ActiveActive flag * * @param {object} [parameters.virtualNetworkGateway2.gatewayDefaultSite] The * reference of the LocalNetworkGateway resource which represents local network * site having default routes. Assign Null value in case of removing existing * default site setting. * * @param {object} [parameters.virtualNetworkGateway2.sku] The reference of the * VirtualNetworkGatewaySku resource which represents the SKU selected for * Virtual network gateway. * * @param {string} [parameters.virtualNetworkGateway2.sku.name] Gateway SKU * name. Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' * * @param {string} [parameters.virtualNetworkGateway2.sku.tier] Gateway SKU * tier. Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' * * @param {number} [parameters.virtualNetworkGateway2.sku.capacity] The * capacity. * * @param {object} [parameters.virtualNetworkGateway2.vpnClientConfiguration] * The reference of the VpnClientConfiguration resource which represents the * P2S VpnClient configurations. * * @param {object} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] * The reference of the address space resource which represents Address space * for P2S VpnClient. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for virtual network gateway P2S client. * * @param {string} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] * The radius server address property of the VirtualNetworkGateway resource for * vpn client connection. * * @param {string} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] * The radius secret property of the VirtualNetworkGateway resource for vpn * client connection. * * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual * network gateway's BGP speaker settings. * * @param {object} [parameters.virtualNetworkGateway2.customRoutes] The * reference of the address space resource which represents the custom routes * address space specified by the the customer for virtual network gateway and * VpnClient. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. * * @param {string} [parameters.virtualNetworkGateway2.etag] Gets a unique * read-only string that changes whenever the resource is updated. * * @param {string} [parameters.virtualNetworkGateway2.id] Resource ID. * * @param {string} [parameters.virtualNetworkGateway2.location] Resource * location. * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * * @param {object} [parameters.localNetworkGateway2] The reference to local * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. * * @param {array} * [parameters.localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A * list of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.localNetworkGateway2.gatewayIpAddress] IP * address of local network gateway. * * @param {object} [parameters.localNetworkGateway2.bgpSettings] Local network * gateway's BGP speaker settings. * * @param {number} [parameters.localNetworkGateway2.bgpSettings.asn] The BGP * speaker's ASN. * * @param {string} * [parameters.localNetworkGateway2.bgpSettings.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [parameters.localNetworkGateway2.bgpSettings.peerWeight] The * weight added to routes learned from this BGP speaker. * * @param {string} [parameters.localNetworkGateway2.resourceGuid] The resource * GUID property of the LocalNetworkGateway resource. * * @param {string} [parameters.localNetworkGateway2.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.localNetworkGateway2.id] Resource ID. * * @param {string} [parameters.localNetworkGateway2.location] Resource * location. * * @param {object} [parameters.localNetworkGateway2.tags] Resource tags. * * @param {string} parameters.connectionType Gateway connection type. Possible * values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' * * @param {string} [parameters.connectionProtocol] Connection protocol used for * this connection. Possible values include: 'IKEv2', 'IKEv1' * * @param {number} [parameters.routingWeight] The routing weight. * * @param {string} [parameters.sharedKey] The IPSec shared key. * * @param {object} [parameters.peer] The reference to peerings resource. * * @param {string} [parameters.peer.id] Resource ID. * * @param {boolean} [parameters.enableBgp] EnableBgp flag * * @param {boolean} [parameters.usePolicyBasedTrafficSelectors] Enable * policy-based traffic selectors. * * @param {array} [parameters.ipsecPolicies] The IPSec Policies to be * considered by this connection. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGatewayConnection resource. * * @param {boolean} [parameters.expressRouteGatewayBypass] Bypass ExpressRoute * Gateway for data forwarding * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VirtualNetworkGatewayConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a virtual network gateway connection in the specified * resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} parameters Parameters supplied to the create or update * virtual network gateway connection operation. * * @param {string} [parameters.authorizationKey] The authorizationKey. * * @param {object} parameters.virtualNetworkGateway1 The reference to virtual * network gateway resource. * * @param {object} [parameters.virtualNetworkGateway2] The reference to virtual * network gateway resource. * * @param {array} [parameters.virtualNetworkGateway2.ipConfigurations] IP * configurations for virtual network gateway. * * @param {string} [parameters.virtualNetworkGateway2.gatewayType] The type of * this virtual network gateway. Possible values are: 'Vpn' and 'ExpressRoute'. * Possible values include: 'Vpn', 'ExpressRoute' * * @param {string} [parameters.virtualNetworkGateway2.vpnType] The type of this * virtual network gateway. Possible values are: 'PolicyBased' and * 'RouteBased'. Possible values include: 'PolicyBased', 'RouteBased' * * @param {boolean} [parameters.virtualNetworkGateway2.enableBgp] Whether BGP * is enabled for this virtual network gateway or not. * * @param {boolean} [parameters.virtualNetworkGateway2.activeActive] * ActiveActive flag * * @param {object} [parameters.virtualNetworkGateway2.gatewayDefaultSite] The * reference of the LocalNetworkGateway resource which represents local network * site having default routes. Assign Null value in case of removing existing * default site setting. * * @param {object} [parameters.virtualNetworkGateway2.sku] The reference of the * VirtualNetworkGatewaySku resource which represents the SKU selected for * Virtual network gateway. * * @param {string} [parameters.virtualNetworkGateway2.sku.name] Gateway SKU * name. Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' * * @param {string} [parameters.virtualNetworkGateway2.sku.tier] Gateway SKU * tier. Possible values include: 'Basic', 'HighPerformance', 'Standard', * 'UltraPerformance', 'VpnGw1', 'VpnGw2', 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', * 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', 'ErGw3AZ' * * @param {number} [parameters.virtualNetworkGateway2.sku.capacity] The * capacity. * * @param {object} [parameters.virtualNetworkGateway2.vpnClientConfiguration] * The reference of the VpnClientConfiguration resource which represents the * P2S VpnClient configurations. * * @param {object} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientAddressPool] * The reference of the address space resource which represents Address space * for P2S VpnClient. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRootCertificates] * VpnClientRootCertificate for virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientRevokedCertificates] * VpnClientRevokedCertificate for Virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientProtocols] * VpnClientProtocols for Virtual network gateway. * * @param {array} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for virtual network gateway P2S client. * * @param {string} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerAddress] * The radius server address property of the VirtualNetworkGateway resource for * vpn client connection. * * @param {string} * [parameters.virtualNetworkGateway2.vpnClientConfiguration.radiusServerSecret] * The radius secret property of the VirtualNetworkGateway resource for vpn * client connection. * * @param {object} [parameters.virtualNetworkGateway2.bgpSettings] Virtual * network gateway's BGP speaker settings. * * @param {object} [parameters.virtualNetworkGateway2.customRoutes] The * reference of the address space resource which represents the custom routes * address space specified by the the customer for virtual network gateway and * VpnClient. * * @param {string} [parameters.virtualNetworkGateway2.resourceGuid] The * resource GUID property of the VirtualNetworkGateway resource. * * @param {string} [parameters.virtualNetworkGateway2.etag] Gets a unique * read-only string that changes whenever the resource is updated. * * @param {string} [parameters.virtualNetworkGateway2.id] Resource ID. * * @param {string} [parameters.virtualNetworkGateway2.location] Resource * location. * * @param {object} [parameters.virtualNetworkGateway2.tags] Resource tags. * * @param {object} [parameters.localNetworkGateway2] The reference to local * network gateway resource. * * @param {object} [parameters.localNetworkGateway2.localNetworkAddressSpace] * Local network site address space. * * @param {array} * [parameters.localNetworkGateway2.localNetworkAddressSpace.addressPrefixes] A * list of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.localNetworkGateway2.gatewayIpAddress] IP * address of local network gateway. * * @param {object} [parameters.localNetworkGateway2.bgpSettings] Local network * gateway's BGP speaker settings. * * @param {number} [parameters.localNetworkGateway2.bgpSettings.asn] The BGP * speaker's ASN. * * @param {string} * [parameters.localNetworkGateway2.bgpSettings.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [parameters.localNetworkGateway2.bgpSettings.peerWeight] The * weight added to routes learned from this BGP speaker. * * @param {string} [parameters.localNetworkGateway2.resourceGuid] The resource * GUID property of the LocalNetworkGateway resource. * * @param {string} [parameters.localNetworkGateway2.etag] A unique read-only * string that changes whenever the resource is updated. * * @param {string} [parameters.localNetworkGateway2.id] Resource ID. * * @param {string} [parameters.localNetworkGateway2.location] Resource * location. * * @param {object} [parameters.localNetworkGateway2.tags] Resource tags. * * @param {string} parameters.connectionType Gateway connection type. Possible * values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' * * @param {string} [parameters.connectionProtocol] Connection protocol used for * this connection. Possible values include: 'IKEv2', 'IKEv1' * * @param {number} [parameters.routingWeight] The routing weight. * * @param {string} [parameters.sharedKey] The IPSec shared key. * * @param {object} [parameters.peer] The reference to peerings resource. * * @param {string} [parameters.peer.id] Resource ID. * * @param {boolean} [parameters.enableBgp] EnableBgp flag * * @param {boolean} [parameters.usePolicyBasedTrafficSelectors] Enable * policy-based traffic selectors. * * @param {array} [parameters.ipsecPolicies] The IPSec Policies to be * considered by this connection. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * VirtualNetworkGatewayConnection resource. * * @param {boolean} [parameters.expressRouteGatewayBypass] Bypass ExpressRoute * Gateway for data forwarding * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayConnection} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VirtualNetworkGatewayConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VirtualNetworkGatewayConnection, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.VirtualNetworkGatewayConnection, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified virtual network Gateway connection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified virtual network Gateway connection. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a virtual network gateway connection tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} parameters Parameters supplied to update virtual network * gateway connection tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a virtual network gateway connection tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The name of the virtual * network gateway connection. * * @param {object} parameters Parameters supplied to update virtual network * gateway connection tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayConnection} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual * network gateway connection shared key for passed virtual network gateway * connection in the specified resource group through Network resource * provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The virtual network * gateway connection name. * * @param {object} parameters Parameters supplied to the Begin Set Virtual * Network Gateway connection Shared key operation throughNetwork resource * provider. * * @param {string} parameters.value The virtual network connection shared key * value. * * @param {string} [parameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginSetSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The Put VirtualNetworkGatewayConnectionSharedKey operation sets the virtual * network gateway connection shared key for passed virtual network gateway * connection in the specified resource group through Network resource * provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The virtual network * gateway connection name. * * @param {object} parameters Parameters supplied to the Begin Set Virtual * Network Gateway connection Shared key operation throughNetwork resource * provider. * * @param {string} parameters.value The virtual network connection shared key * value. * * @param {string} [parameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionSharedKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionSharedKey} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionSharedKey} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginSetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginSetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionSharedKey, callback: ServiceCallback): void; beginSetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionSharedKey, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The VirtualNetworkGatewayConnectionResetSharedKey operation resets the * virtual network gateway connection shared key for passed virtual network * gateway connection in the specified resource group through Network resource * provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The virtual network * gateway connection reset shared key Name. * * @param {object} parameters Parameters supplied to the begin reset virtual * network gateway connection shared key operation through network resource * provider. * * @param {number} parameters.keyLength The virtual network connection reset * shared key length, should between 1 and 128. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginResetSharedKeyWithHttpOperationResponse(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionResetSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The VirtualNetworkGatewayConnectionResetSharedKey operation resets the * virtual network gateway connection shared key for passed virtual network * gateway connection in the specified resource group through Network resource * provider. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} virtualNetworkGatewayConnectionName The virtual network * gateway connection reset shared key Name. * * @param {object} parameters Parameters supplied to the begin reset virtual * network gateway connection shared key operation through network resource * provider. * * @param {number} parameters.keyLength The virtual network connection reset * shared key length, should between 1 and 128. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ConnectionResetSharedKey} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ConnectionResetSharedKey} [result] - The deserialized result object if an error did not occur. * See {@link ConnectionResetSharedKey} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginResetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionResetSharedKey, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginResetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionResetSharedKey, callback: ServiceCallback): void; beginResetSharedKey(resourceGroupName: string, virtualNetworkGatewayConnectionName: string, parameters: models.ConnectionResetSharedKey, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * The List VirtualNetworkGatewayConnections operation retrieves all the * virtual network gateways connections created. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * The List VirtualNetworkGatewayConnections operation retrieves all the * virtual network gateways connections created. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkGatewayConnectionListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkGatewayConnectionListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkGatewayConnectionListResult} * for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * LocalNetworkGateways * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface LocalNetworkGateways { /** * Creates or updates a local network gateway in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} parameters Parameters supplied to the create or update local * network gateway operation. * * @param {object} [parameters.localNetworkAddressSpace] Local network site * address space. * * @param {array} [parameters.localNetworkAddressSpace.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.gatewayIpAddress] IP address of local network * gateway. * * @param {object} [parameters.bgpSettings] Local network gateway's BGP speaker * settings. * * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * * @param {string} [parameters.bgpSettings.bgpPeeringAddress] The BGP peering * address and BGP identifier of this BGP speaker. * * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * LocalNetworkGateway resource. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.LocalNetworkGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a local network gateway in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} parameters Parameters supplied to the create or update local * network gateway operation. * * @param {object} [parameters.localNetworkAddressSpace] Local network site * address space. * * @param {array} [parameters.localNetworkAddressSpace.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.gatewayIpAddress] IP address of local network * gateway. * * @param {object} [parameters.bgpSettings] Local network gateway's BGP speaker * settings. * * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * * @param {string} [parameters.bgpSettings.bgpPeeringAddress] The BGP peering * address and BGP identifier of this BGP speaker. * * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * LocalNetworkGateway resource. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LocalNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LocalNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link LocalNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.LocalNetworkGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.LocalNetworkGateway, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.LocalNetworkGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets the specified local network gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets the specified local network gateway in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LocalNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LocalNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link LocalNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, localNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, localNetworkGatewayName: string, callback: ServiceCallback): void; get(resourceGroupName: string, localNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified local network gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified local network gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, localNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, localNetworkGatewayName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, localNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a local network gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} parameters Parameters supplied to update local network * gateway tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a local network gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} parameters Parameters supplied to update local network * gateway tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LocalNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LocalNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link LocalNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the local network gateways in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the local network gateways in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LocalNetworkGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LocalNetworkGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link LocalNetworkGatewayListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a local network gateway in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} parameters Parameters supplied to the create or update local * network gateway operation. * * @param {object} [parameters.localNetworkAddressSpace] Local network site * address space. * * @param {array} [parameters.localNetworkAddressSpace.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.gatewayIpAddress] IP address of local network * gateway. * * @param {object} [parameters.bgpSettings] Local network gateway's BGP speaker * settings. * * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * * @param {string} [parameters.bgpSettings.bgpPeeringAddress] The BGP peering * address and BGP identifier of this BGP speaker. * * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * LocalNetworkGateway resource. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.LocalNetworkGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a local network gateway in the specified resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} parameters Parameters supplied to the create or update local * network gateway operation. * * @param {object} [parameters.localNetworkAddressSpace] Local network site * address space. * * @param {array} [parameters.localNetworkAddressSpace.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [parameters.gatewayIpAddress] IP address of local network * gateway. * * @param {object} [parameters.bgpSettings] Local network gateway's BGP speaker * settings. * * @param {number} [parameters.bgpSettings.asn] The BGP speaker's ASN. * * @param {string} [parameters.bgpSettings.bgpPeeringAddress] The BGP peering * address and BGP identifier of this BGP speaker. * * @param {number} [parameters.bgpSettings.peerWeight] The weight added to * routes learned from this BGP speaker. * * @param {string} [parameters.resourceGuid] The resource GUID property of the * LocalNetworkGateway resource. * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LocalNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LocalNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link LocalNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.LocalNetworkGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.LocalNetworkGateway, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.LocalNetworkGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified local network gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified local network gateway. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, localNetworkGatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, localNetworkGatewayName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, localNetworkGatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a local network gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} parameters Parameters supplied to update local network * gateway tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a local network gateway tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} localNetworkGatewayName The name of the local network * gateway. * * @param {object} parameters Parameters supplied to update local network * gateway tags. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LocalNetworkGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LocalNetworkGateway} [result] - The deserialized result object if an error did not occur. * See {@link LocalNetworkGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, localNetworkGatewayName: string, parameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the local network gateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the local network gateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {LocalNetworkGatewayListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {LocalNetworkGatewayListResult} [result] - The deserialized result object if an error did not occur. * See {@link LocalNetworkGatewayListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VirtualNetworkTaps * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VirtualNetworkTaps { /** * Deletes the specified virtual network tap. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the virtual network tap. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, tapName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified virtual network tap. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the virtual network tap. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, tapName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, tapName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, tapName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets information about the specified virtual network tap. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of virtual network tap. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, tapName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets information about the specified virtual network tap. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of virtual network tap. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkTap} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkTap} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkTap} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, tapName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, tapName: string, callback: ServiceCallback): void; get(resourceGroupName: string, tapName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a Virtual Network Tap. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the virtual network tap. * * @param {object} parameters Parameters supplied to the create or update * virtual network tap operation. * * @param {object} [parameters.destinationNetworkInterfaceIPConfiguration] The * reference to the private IP Address of the collector nic that will receive * the tap * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] * The reference to Virtual Network Taps. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] * The reference of ApplicationGatewayBackendAddressPool resource. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] * The reference of LoadBalancerBackendAddressPool resource. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] * A list of references of LoadBalancerInboundNatRules. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAddress] * Private IP address of the IP configuration. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] * The private IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAddressVersion] * Available from Api-Version 2016-03-30 onwards, it represents whether the * specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible * values include: 'IPv4', 'IPv6' * * @param {object} * [parameters.destinationNetworkInterfaceIPConfiguration.subnet] Subnet bound * to the IP configuration. * * @param {boolean} * [parameters.destinationNetworkInterfaceIPConfiguration.primary] Gets whether * this is a primary customer address on the network interface. * * @param {object} * [parameters.destinationNetworkInterfaceIPConfiguration.publicIPAddress] * Public IP address bound to the IP configuration. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] * Application security groups in which the IP configuration is included. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.provisioningState] * The provisioning state of the network interface IP configuration. Possible * values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.id] * Resource ID. * * @param {object} [parameters.destinationLoadBalancerFrontEndIPConfiguration] * The reference to the private IP address on the internal Load Balancer that * will receive the tap * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] * The private IP address of the IP configuration. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] * The Private IP allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet] The * reference of the subnet resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] * The address prefix for the subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] * List of address prefixes for the subnet. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] * The reference of the RouteTable resource. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. * * @param {boolean} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] * The provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.natGateway] * Nat gateway associated with this subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] * An array of service endpoints. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] * An array of service endpoint policies. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] * Gets an array of references to services injecting into this subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] * Gets an array of references to the delegations on the subnet. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] * The provisioning state of the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.name] The * name of the resource that is unique within a resource group. This name can * be used to access the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] A * unique read-only string that changes whenever the resource is updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.id] * Resource ID. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] * The reference of the Public IP resource. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] * The public IP address SKU. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] * Name of a public IP address SKU. Possible values include: 'Basic', * 'Standard' * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] * The public IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] * The public IP address version. Possible values include: 'IPv4', 'IPv6' * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] * The FQDN of the DNS record associated with the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] * Gets or sets the Domain name label.The concatenation of the domain name * label and the regionalized DNS zone make up the fully qualified domain name * associated with the public IP address. If a domain name label is specified, * an A DNS record is created for the public IP in the Microsoft Azure DNS * system. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.fqdn] * Gets the FQDN, Fully qualified domain name of the A DNS record associated * with the public IP. This is the concatenation of the domainNameLabel and the * regionalized DNS zone. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name * that resolves to this public IP address. If the reverseFqdn is specified, * then a PTR DNS record is created pointing from the IP address in the * in-addr.arpa domain to the reverse FQDN. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings] * The DDoS protection custom policy associated with the public IP address. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy] * The DDoS custom policy associated with the public IP. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.protectionCoverage] * The DDoS protection policy customizability of the public IP. Only standard * coverage will have the ability to be customized. Possible values include: * 'Basic', 'Standard' * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] * The list of tags associated with the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] * The IP address associated with the public IP address resource. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] * The Public IP Prefix this Public IP Address should be allocated from. * * @param {number} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] * The idle timeout of the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] * The resource GUID property of the public IP resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] * The provisioning state of the PublicIP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] * The reference of the Public IP Prefix resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] * Gets the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.name] The name of * the resource that is unique within a resource group. This name can be used * to access the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.zones] A list of * availability zones denoting the IP allocated for the resource needs to come * from. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.id] Resource ID. * * @param {number} [parameters.destinationPort] The VXLAN destination port that * will receive the tapped traffic. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, tapName: string, parameters: models.VirtualNetworkTap, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a Virtual Network Tap. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the virtual network tap. * * @param {object} parameters Parameters supplied to the create or update * virtual network tap operation. * * @param {object} [parameters.destinationNetworkInterfaceIPConfiguration] The * reference to the private IP Address of the collector nic that will receive * the tap * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] * The reference to Virtual Network Taps. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] * The reference of ApplicationGatewayBackendAddressPool resource. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] * The reference of LoadBalancerBackendAddressPool resource. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] * A list of references of LoadBalancerInboundNatRules. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAddress] * Private IP address of the IP configuration. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] * The private IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAddressVersion] * Available from Api-Version 2016-03-30 onwards, it represents whether the * specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible * values include: 'IPv4', 'IPv6' * * @param {object} * [parameters.destinationNetworkInterfaceIPConfiguration.subnet] Subnet bound * to the IP configuration. * * @param {boolean} * [parameters.destinationNetworkInterfaceIPConfiguration.primary] Gets whether * this is a primary customer address on the network interface. * * @param {object} * [parameters.destinationNetworkInterfaceIPConfiguration.publicIPAddress] * Public IP address bound to the IP configuration. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] * Application security groups in which the IP configuration is included. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.provisioningState] * The provisioning state of the network interface IP configuration. Possible * values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.id] * Resource ID. * * @param {object} [parameters.destinationLoadBalancerFrontEndIPConfiguration] * The reference to the private IP address on the internal Load Balancer that * will receive the tap * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] * The private IP address of the IP configuration. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] * The Private IP allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet] The * reference of the subnet resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] * The address prefix for the subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] * List of address prefixes for the subnet. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] * The reference of the RouteTable resource. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. * * @param {boolean} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] * The provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.natGateway] * Nat gateway associated with this subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] * An array of service endpoints. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] * An array of service endpoint policies. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] * Gets an array of references to services injecting into this subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] * Gets an array of references to the delegations on the subnet. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] * The provisioning state of the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.name] The * name of the resource that is unique within a resource group. This name can * be used to access the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] A * unique read-only string that changes whenever the resource is updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.id] * Resource ID. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] * The reference of the Public IP resource. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] * The public IP address SKU. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] * Name of a public IP address SKU. Possible values include: 'Basic', * 'Standard' * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] * The public IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] * The public IP address version. Possible values include: 'IPv4', 'IPv6' * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] * The FQDN of the DNS record associated with the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] * Gets or sets the Domain name label.The concatenation of the domain name * label and the regionalized DNS zone make up the fully qualified domain name * associated with the public IP address. If a domain name label is specified, * an A DNS record is created for the public IP in the Microsoft Azure DNS * system. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.fqdn] * Gets the FQDN, Fully qualified domain name of the A DNS record associated * with the public IP. This is the concatenation of the domainNameLabel and the * regionalized DNS zone. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name * that resolves to this public IP address. If the reverseFqdn is specified, * then a PTR DNS record is created pointing from the IP address in the * in-addr.arpa domain to the reverse FQDN. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings] * The DDoS protection custom policy associated with the public IP address. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy] * The DDoS custom policy associated with the public IP. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.protectionCoverage] * The DDoS protection policy customizability of the public IP. Only standard * coverage will have the ability to be customized. Possible values include: * 'Basic', 'Standard' * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] * The list of tags associated with the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] * The IP address associated with the public IP address resource. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] * The Public IP Prefix this Public IP Address should be allocated from. * * @param {number} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] * The idle timeout of the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] * The resource GUID property of the public IP resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] * The provisioning state of the PublicIP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] * The reference of the Public IP Prefix resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] * Gets the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.name] The name of * the resource that is unique within a resource group. This name can be used * to access the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.zones] A list of * availability zones denoting the IP allocated for the resource needs to come * from. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.id] Resource ID. * * @param {number} [parameters.destinationPort] The VXLAN destination port that * will receive the tapped traffic. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkTap} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkTap} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkTap} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, tapName: string, parameters: models.VirtualNetworkTap, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, tapName: string, parameters: models.VirtualNetworkTap, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, tapName: string, parameters: models.VirtualNetworkTap, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates an VirtualNetworkTap tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the tap. * * @param {object} tapParameters Parameters supplied to update * VirtualNetworkTap tags. * * @param {object} [tapParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, tapName: string, tapParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates an VirtualNetworkTap tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the tap. * * @param {object} tapParameters Parameters supplied to update * VirtualNetworkTap tags. * * @param {object} [tapParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkTap} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkTap} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkTap} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, tapName: string, tapParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, tapName: string, tapParameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, tapName: string, tapParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the VirtualNetworkTaps in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the VirtualNetworkTaps in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkTapListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkTapListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkTapListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the VirtualNetworkTaps in a subscription. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the VirtualNetworkTaps in a subscription. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkTapListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkTapListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkTapListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes the specified virtual network tap. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the virtual network tap. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, tapName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified virtual network tap. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the virtual network tap. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, tapName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, tapName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, tapName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or updates a Virtual Network Tap. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the virtual network tap. * * @param {object} parameters Parameters supplied to the create or update * virtual network tap operation. * * @param {object} [parameters.destinationNetworkInterfaceIPConfiguration] The * reference to the private IP Address of the collector nic that will receive * the tap * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] * The reference to Virtual Network Taps. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] * The reference of ApplicationGatewayBackendAddressPool resource. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] * The reference of LoadBalancerBackendAddressPool resource. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] * A list of references of LoadBalancerInboundNatRules. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAddress] * Private IP address of the IP configuration. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] * The private IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAddressVersion] * Available from Api-Version 2016-03-30 onwards, it represents whether the * specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible * values include: 'IPv4', 'IPv6' * * @param {object} * [parameters.destinationNetworkInterfaceIPConfiguration.subnet] Subnet bound * to the IP configuration. * * @param {boolean} * [parameters.destinationNetworkInterfaceIPConfiguration.primary] Gets whether * this is a primary customer address on the network interface. * * @param {object} * [parameters.destinationNetworkInterfaceIPConfiguration.publicIPAddress] * Public IP address bound to the IP configuration. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] * Application security groups in which the IP configuration is included. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.provisioningState] * The provisioning state of the network interface IP configuration. Possible * values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.id] * Resource ID. * * @param {object} [parameters.destinationLoadBalancerFrontEndIPConfiguration] * The reference to the private IP address on the internal Load Balancer that * will receive the tap * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] * The private IP address of the IP configuration. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] * The Private IP allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet] The * reference of the subnet resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] * The address prefix for the subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] * List of address prefixes for the subnet. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] * The reference of the RouteTable resource. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. * * @param {boolean} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] * The provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.natGateway] * Nat gateway associated with this subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] * An array of service endpoints. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] * An array of service endpoint policies. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] * Gets an array of references to services injecting into this subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] * Gets an array of references to the delegations on the subnet. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] * The provisioning state of the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.name] The * name of the resource that is unique within a resource group. This name can * be used to access the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] A * unique read-only string that changes whenever the resource is updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.id] * Resource ID. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] * The reference of the Public IP resource. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] * The public IP address SKU. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] * Name of a public IP address SKU. Possible values include: 'Basic', * 'Standard' * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] * The public IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] * The public IP address version. Possible values include: 'IPv4', 'IPv6' * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] * The FQDN of the DNS record associated with the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] * Gets or sets the Domain name label.The concatenation of the domain name * label and the regionalized DNS zone make up the fully qualified domain name * associated with the public IP address. If a domain name label is specified, * an A DNS record is created for the public IP in the Microsoft Azure DNS * system. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.fqdn] * Gets the FQDN, Fully qualified domain name of the A DNS record associated * with the public IP. This is the concatenation of the domainNameLabel and the * regionalized DNS zone. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name * that resolves to this public IP address. If the reverseFqdn is specified, * then a PTR DNS record is created pointing from the IP address in the * in-addr.arpa domain to the reverse FQDN. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings] * The DDoS protection custom policy associated with the public IP address. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy] * The DDoS custom policy associated with the public IP. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.protectionCoverage] * The DDoS protection policy customizability of the public IP. Only standard * coverage will have the ability to be customized. Possible values include: * 'Basic', 'Standard' * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] * The list of tags associated with the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] * The IP address associated with the public IP address resource. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] * The Public IP Prefix this Public IP Address should be allocated from. * * @param {number} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] * The idle timeout of the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] * The resource GUID property of the public IP resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] * The provisioning state of the PublicIP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] * The reference of the Public IP Prefix resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] * Gets the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.name] The name of * the resource that is unique within a resource group. This name can be used * to access the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.zones] A list of * availability zones denoting the IP allocated for the resource needs to come * from. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.id] Resource ID. * * @param {number} [parameters.destinationPort] The VXLAN destination port that * will receive the tapped traffic. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, tapName: string, parameters: models.VirtualNetworkTap, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or updates a Virtual Network Tap. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the virtual network tap. * * @param {object} parameters Parameters supplied to the create or update * virtual network tap operation. * * @param {object} [parameters.destinationNetworkInterfaceIPConfiguration] The * reference to the private IP Address of the collector nic that will receive * the tap * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.virtualNetworkTaps] * The reference to Virtual Network Taps. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.applicationGatewayBackendAddressPools] * The reference of ApplicationGatewayBackendAddressPool resource. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.loadBalancerBackendAddressPools] * The reference of LoadBalancerBackendAddressPool resource. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.loadBalancerInboundNatRules] * A list of references of LoadBalancerInboundNatRules. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAddress] * Private IP address of the IP configuration. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAllocationMethod] * The private IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.privateIPAddressVersion] * Available from Api-Version 2016-03-30 onwards, it represents whether the * specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible * values include: 'IPv4', 'IPv6' * * @param {object} * [parameters.destinationNetworkInterfaceIPConfiguration.subnet] Subnet bound * to the IP configuration. * * @param {boolean} * [parameters.destinationNetworkInterfaceIPConfiguration.primary] Gets whether * this is a primary customer address on the network interface. * * @param {object} * [parameters.destinationNetworkInterfaceIPConfiguration.publicIPAddress] * Public IP address bound to the IP configuration. * * @param {array} * [parameters.destinationNetworkInterfaceIPConfiguration.applicationSecurityGroups] * Application security groups in which the IP configuration is included. * * @param {string} * [parameters.destinationNetworkInterfaceIPConfiguration.provisioningState] * The provisioning state of the network interface IP configuration. Possible * values are: 'Updating', 'Deleting', and 'Failed'. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.name] * The name of the resource that is unique within a resource group. This name * can be used to access the resource. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} [parameters.destinationNetworkInterfaceIPConfiguration.id] * Resource ID. * * @param {object} [parameters.destinationLoadBalancerFrontEndIPConfiguration] * The reference to the private IP address on the internal Load Balancer that * will receive the tap * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.privateIPAddress] * The private IP address of the IP configuration. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.privateIPAllocationMethod] * The Private IP allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet] The * reference of the subnet resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefix] * The address prefix for the subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.addressPrefixes] * List of address prefixes for the subnet. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup] * The reference of the NetworkSecurityGroup resource. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.securityRules] * A collection of security rules of the network security group. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.defaultSecurityRules] * The default security rules of network security group. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.resourceGuid] * The resource GUID property of the network security group resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.provisioningState] * The provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.networkSecurityGroup.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable] * The reference of the RouteTable resource. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.routes] * Collection of routes contained within a route table. * * @param {boolean} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.disableBgpRoutePropagation] * Gets or sets whether to disable the routes learned by BGP on that route * table. True means disable. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.provisioningState] * The provisioning state of the resource. Possible values are: 'Updating', * 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.etag] * Gets a unique read-only string that changes whenever the resource is * updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.routeTable.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.natGateway] * Nat gateway associated with this subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpoints] * An array of service endpoints. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceEndpointPolicies] * An array of service endpoint policies. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.resourceNavigationLinks] * Gets an array of references to the external resources using subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.serviceAssociationLinks] * Gets an array of references to services injecting into this subnet. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.delegations] * Gets an array of references to the delegations on the subnet. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.provisioningState] * The provisioning state of the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.name] The * name of the resource that is unique within a resource group. This name can * be used to access the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.etag] A * unique read-only string that changes whenever the resource is updated. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.subnet.id] * Resource ID. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress] * The reference of the Public IP resource. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku] * The public IP address SKU. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.sku.name] * Name of a public IP address SKU. Possible values include: 'Basic', * 'Standard' * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAllocationMethod] * The public IP address allocation method. Possible values include: 'Static', * 'Dynamic' * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPAddressVersion] * The public IP address version. Possible values include: 'IPv4', 'IPv6' * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings] * The FQDN of the DNS record associated with the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.domainNameLabel] * Gets or sets the Domain name label.The concatenation of the domain name * label and the regionalized DNS zone make up the fully qualified domain name * associated with the public IP address. If a domain name label is specified, * an A DNS record is created for the public IP in the Microsoft Azure DNS * system. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.fqdn] * Gets the FQDN, Fully qualified domain name of the A DNS record associated * with the public IP. This is the concatenation of the domainNameLabel and the * regionalized DNS zone. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.dnsSettings.reverseFqdn] * Gets or Sets the Reverse FQDN. A user-visible, fully qualified domain name * that resolves to this public IP address. If the reverseFqdn is specified, * then a PTR DNS record is created pointing from the IP address in the * in-addr.arpa domain to the reverse FQDN. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings] * The DDoS protection custom policy associated with the public IP address. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.ddosCustomPolicy] * The DDoS custom policy associated with the public IP. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ddosSettings.protectionCoverage] * The DDoS protection policy customizability of the public IP. Only standard * coverage will have the ability to be customized. Possible values include: * 'Basic', 'Standard' * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipTags] * The list of tags associated with the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.ipAddress] * The IP address associated with the public IP address resource. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.publicIPPrefix] * The Public IP Prefix this Public IP Address should be allocated from. * * @param {number} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.idleTimeoutInMinutes] * The idle timeout of the public IP address. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.resourceGuid] * The resource GUID property of the public IP resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.provisioningState] * The provisioning state of the PublicIP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.etag] * A unique read-only string that changes whenever the resource is updated. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.zones] * A list of availability zones denoting the IP allocated for the resource * needs to come from. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.location] * Resource location. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPAddress.tags] * Resource tags. * * @param {object} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix] * The reference of the Public IP Prefix resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.publicIPPrefix.id] * Resource ID. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.provisioningState] * Gets the provisioning state of the public IP resource. Possible values are: * 'Updating', 'Deleting', and 'Failed'. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.name] The name of * the resource that is unique within a resource group. This name can be used * to access the resource. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.etag] A unique * read-only string that changes whenever the resource is updated. * * @param {array} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.zones] A list of * availability zones denoting the IP allocated for the resource needs to come * from. * * @param {string} * [parameters.destinationLoadBalancerFrontEndIPConfiguration.id] Resource ID. * * @param {number} [parameters.destinationPort] The VXLAN destination port that * will receive the tapped traffic. * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkTap} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkTap} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkTap} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, tapName: string, parameters: models.VirtualNetworkTap, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, tapName: string, parameters: models.VirtualNetworkTap, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, tapName: string, parameters: models.VirtualNetworkTap, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates an VirtualNetworkTap tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the tap. * * @param {object} tapParameters Parameters supplied to update * VirtualNetworkTap tags. * * @param {object} [tapParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, tapName: string, tapParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates an VirtualNetworkTap tags. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} tapName The name of the tap. * * @param {object} tapParameters Parameters supplied to update * VirtualNetworkTap tags. * * @param {object} [tapParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkTap} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkTap} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkTap} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, tapName: string, tapParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, tapName: string, tapParameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, tapName: string, tapParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the VirtualNetworkTaps in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the VirtualNetworkTaps in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkTapListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkTapListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkTapListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the VirtualNetworkTaps in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the VirtualNetworkTaps in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualNetworkTapListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualNetworkTapListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualNetworkTapListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VirtualWans * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VirtualWans { /** * Retrieves the details of a VirtualWAN. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being retrieved. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the details of a VirtualWAN. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being retrieved. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualWAN} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualWAN} [result] - The deserialized result object if an error did not occur. * See {@link VirtualWAN} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, virtualWANName: string, callback: ServiceCallback): void; get(resourceGroupName: string, virtualWANName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing * VirtualWAN. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being created or * updated. * * @param {object} wANParameters Parameters supplied to create or update * VirtualWAN. * * @param {boolean} [wANParameters.disableVpnEncryption] Vpn encryption to be * disabled or not. * * @param {string} [wANParameters.securityProviderName] The Security Provider * name. * * @param {boolean} [wANParameters.allowBranchToBranchTraffic] True if branch * to branch traffic is allowed. * * @param {boolean} [wANParameters.allowVnetToVnetTraffic] True if Vnet to Vnet * traffic is allowed. * * @param {string} [wANParameters.office365LocalBreakoutCategory] The office * local breakout category. Possible values include: 'Optimize', * 'OptimizeAndAllow', 'All', 'None' * * @param {array} [wANParameters.p2SVpnServerConfigurations] List of all * P2SVpnServerConfigurations associated with the virtual wan. * * @param {string} [wANParameters.provisioningState] The provisioning state of * the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' * * @param {string} [wANParameters.id] Resource ID. * * @param {string} [wANParameters.location] Resource location. * * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, wANParameters: models.VirtualWAN, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing * VirtualWAN. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being created or * updated. * * @param {object} wANParameters Parameters supplied to create or update * VirtualWAN. * * @param {boolean} [wANParameters.disableVpnEncryption] Vpn encryption to be * disabled or not. * * @param {string} [wANParameters.securityProviderName] The Security Provider * name. * * @param {boolean} [wANParameters.allowBranchToBranchTraffic] True if branch * to branch traffic is allowed. * * @param {boolean} [wANParameters.allowVnetToVnetTraffic] True if Vnet to Vnet * traffic is allowed. * * @param {string} [wANParameters.office365LocalBreakoutCategory] The office * local breakout category. Possible values include: 'Optimize', * 'OptimizeAndAllow', 'All', 'None' * * @param {array} [wANParameters.p2SVpnServerConfigurations] List of all * P2SVpnServerConfigurations associated with the virtual wan. * * @param {string} [wANParameters.provisioningState] The provisioning state of * the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' * * @param {string} [wANParameters.id] Resource ID. * * @param {string} [wANParameters.location] Resource location. * * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualWAN} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualWAN} [result] - The deserialized result object if an error did not occur. * See {@link VirtualWAN} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, virtualWANName: string, wANParameters: models.VirtualWAN, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, virtualWANName: string, wANParameters: models.VirtualWAN, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, virtualWANName: string, wANParameters: models.VirtualWAN, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a VirtualWAN tags. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being updated. * * @param {object} wANParameters Parameters supplied to Update VirtualWAN tags. * * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, wANParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a VirtualWAN tags. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being updated. * * @param {object} wANParameters Parameters supplied to Update VirtualWAN tags. * * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualWAN} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualWAN} [result] - The deserialized result object if an error did not occur. * See {@link VirtualWAN} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, virtualWANName: string, wANParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, virtualWANName: string, wANParameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, virtualWANName: string, wANParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a VirtualWAN. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being deleted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a VirtualWAN. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being deleted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, virtualWANName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, virtualWANName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VirtualWANs in a resource group. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VirtualWANs in a resource group. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVirtualWANsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVirtualWANsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVirtualWANsResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VirtualWANs in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VirtualWANs in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVirtualWANsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVirtualWANsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVirtualWANsResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing * VirtualWAN. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being created or * updated. * * @param {object} wANParameters Parameters supplied to create or update * VirtualWAN. * * @param {boolean} [wANParameters.disableVpnEncryption] Vpn encryption to be * disabled or not. * * @param {string} [wANParameters.securityProviderName] The Security Provider * name. * * @param {boolean} [wANParameters.allowBranchToBranchTraffic] True if branch * to branch traffic is allowed. * * @param {boolean} [wANParameters.allowVnetToVnetTraffic] True if Vnet to Vnet * traffic is allowed. * * @param {string} [wANParameters.office365LocalBreakoutCategory] The office * local breakout category. Possible values include: 'Optimize', * 'OptimizeAndAllow', 'All', 'None' * * @param {array} [wANParameters.p2SVpnServerConfigurations] List of all * P2SVpnServerConfigurations associated with the virtual wan. * * @param {string} [wANParameters.provisioningState] The provisioning state of * the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' * * @param {string} [wANParameters.id] Resource ID. * * @param {string} [wANParameters.location] Resource location. * * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, wANParameters: models.VirtualWAN, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a VirtualWAN resource if it doesn't exist else updates the existing * VirtualWAN. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being created or * updated. * * @param {object} wANParameters Parameters supplied to create or update * VirtualWAN. * * @param {boolean} [wANParameters.disableVpnEncryption] Vpn encryption to be * disabled or not. * * @param {string} [wANParameters.securityProviderName] The Security Provider * name. * * @param {boolean} [wANParameters.allowBranchToBranchTraffic] True if branch * to branch traffic is allowed. * * @param {boolean} [wANParameters.allowVnetToVnetTraffic] True if Vnet to Vnet * traffic is allowed. * * @param {string} [wANParameters.office365LocalBreakoutCategory] The office * local breakout category. Possible values include: 'Optimize', * 'OptimizeAndAllow', 'All', 'None' * * @param {array} [wANParameters.p2SVpnServerConfigurations] List of all * P2SVpnServerConfigurations associated with the virtual wan. * * @param {string} [wANParameters.provisioningState] The provisioning state of * the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', * 'Failed' * * @param {string} [wANParameters.id] Resource ID. * * @param {string} [wANParameters.location] Resource location. * * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualWAN} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualWAN} [result] - The deserialized result object if an error did not occur. * See {@link VirtualWAN} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, virtualWANName: string, wANParameters: models.VirtualWAN, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, virtualWANName: string, wANParameters: models.VirtualWAN, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, virtualWANName: string, wANParameters: models.VirtualWAN, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates a VirtualWAN tags. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being updated. * * @param {object} wANParameters Parameters supplied to Update VirtualWAN tags. * * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, wANParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates a VirtualWAN tags. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being updated. * * @param {object} wANParameters Parameters supplied to Update VirtualWAN tags. * * @param {object} [wANParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualWAN} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualWAN} [result] - The deserialized result object if an error did not occur. * See {@link VirtualWAN} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, virtualWANName: string, wANParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, virtualWANName: string, wANParameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, virtualWANName: string, wANParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a VirtualWAN. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being deleted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a VirtualWAN. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWANName The name of the VirtualWAN being deleted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, virtualWANName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, virtualWANName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, virtualWANName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VirtualWANs in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VirtualWANs in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVirtualWANsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVirtualWANsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVirtualWANsResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VirtualWANs in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VirtualWANs in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVirtualWANsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVirtualWANsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVirtualWANsResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VpnSites * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VpnSites { /** * Retrieves the details of a VPN site. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being retrieved. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the details of a VPN site. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being retrieved. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnSite} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnSite} [result] - The deserialized result object if an error did not occur. * See {@link VpnSite} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, vpnSiteName: string, callback: ServiceCallback): void; get(resourceGroupName: string, vpnSiteName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a VpnSite resource if it doesn't exist else updates the existing * VpnSite. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being created or * updated. * * @param {object} vpnSiteParameters Parameters supplied to create or update * VpnSite. * * @param {object} [vpnSiteParameters.virtualWan] The VirtualWAN to which the * vpnSite belongs * * @param {string} [vpnSiteParameters.virtualWan.id] Resource ID. * * @param {object} [vpnSiteParameters.deviceProperties] The device properties * * @param {string} [vpnSiteParameters.deviceProperties.deviceVendor] Name of * the device Vendor. * * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of * the device. * * @param {number} [vpnSiteParameters.deviceProperties.linkSpeedInMbps] Link * speed. * * @param {string} [vpnSiteParameters.ipAddress] The ip-address for the * vpn-site. * * @param {string} [vpnSiteParameters.siteKey] The key for vpn-site that can be * used for connections. * * @param {object} [vpnSiteParameters.addressSpace] The AddressSpace that * contains an array of IP address ranges. * * @param {array} [vpnSiteParameters.addressSpace.addressPrefixes] A list of * address blocks reserved for this virtual network in CIDR notation. * * @param {object} [vpnSiteParameters.bgpProperties] The set of bgp properties. * * @param {number} [vpnSiteParameters.bgpProperties.asn] The BGP speaker's ASN. * * @param {string} [vpnSiteParameters.bgpProperties.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [vpnSiteParameters.bgpProperties.peerWeight] The weight * added to routes learned from this BGP speaker. * * @param {string} [vpnSiteParameters.provisioningState] The provisioning state * of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {boolean} [vpnSiteParameters.isSecuritySite] IsSecuritySite flag * * @param {string} [vpnSiteParameters.id] Resource ID. * * @param {string} [vpnSiteParameters.location] Resource location. * * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.VpnSite, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a VpnSite resource if it doesn't exist else updates the existing * VpnSite. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being created or * updated. * * @param {object} vpnSiteParameters Parameters supplied to create or update * VpnSite. * * @param {object} [vpnSiteParameters.virtualWan] The VirtualWAN to which the * vpnSite belongs * * @param {string} [vpnSiteParameters.virtualWan.id] Resource ID. * * @param {object} [vpnSiteParameters.deviceProperties] The device properties * * @param {string} [vpnSiteParameters.deviceProperties.deviceVendor] Name of * the device Vendor. * * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of * the device. * * @param {number} [vpnSiteParameters.deviceProperties.linkSpeedInMbps] Link * speed. * * @param {string} [vpnSiteParameters.ipAddress] The ip-address for the * vpn-site. * * @param {string} [vpnSiteParameters.siteKey] The key for vpn-site that can be * used for connections. * * @param {object} [vpnSiteParameters.addressSpace] The AddressSpace that * contains an array of IP address ranges. * * @param {array} [vpnSiteParameters.addressSpace.addressPrefixes] A list of * address blocks reserved for this virtual network in CIDR notation. * * @param {object} [vpnSiteParameters.bgpProperties] The set of bgp properties. * * @param {number} [vpnSiteParameters.bgpProperties.asn] The BGP speaker's ASN. * * @param {string} [vpnSiteParameters.bgpProperties.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [vpnSiteParameters.bgpProperties.peerWeight] The weight * added to routes learned from this BGP speaker. * * @param {string} [vpnSiteParameters.provisioningState] The provisioning state * of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {boolean} [vpnSiteParameters.isSecuritySite] IsSecuritySite flag * * @param {string} [vpnSiteParameters.id] Resource ID. * * @param {string} [vpnSiteParameters.location] Resource location. * * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnSite} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnSite} [result] - The deserialized result object if an error did not occur. * See {@link VpnSite} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.VpnSite, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.VpnSite, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.VpnSite, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates VpnSite tags. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being updated. * * @param {object} vpnSiteParameters Parameters supplied to update VpnSite * tags. * * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates VpnSite tags. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being updated. * * @param {object} vpnSiteParameters Parameters supplied to update VpnSite * tags. * * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnSite} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnSite} [result] - The deserialized result object if an error did not occur. * See {@link VpnSite} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a VpnSite. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being deleted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a VpnSite. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being deleted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, vpnSiteName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, vpnSiteName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the vpnSites in a resource group. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the vpnSites in a resource group. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVpnSitesResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVpnSitesResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVpnSitesResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VpnSites in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VpnSites in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVpnSitesResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVpnSitesResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVpnSitesResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a VpnSite resource if it doesn't exist else updates the existing * VpnSite. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being created or * updated. * * @param {object} vpnSiteParameters Parameters supplied to create or update * VpnSite. * * @param {object} [vpnSiteParameters.virtualWan] The VirtualWAN to which the * vpnSite belongs * * @param {string} [vpnSiteParameters.virtualWan.id] Resource ID. * * @param {object} [vpnSiteParameters.deviceProperties] The device properties * * @param {string} [vpnSiteParameters.deviceProperties.deviceVendor] Name of * the device Vendor. * * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of * the device. * * @param {number} [vpnSiteParameters.deviceProperties.linkSpeedInMbps] Link * speed. * * @param {string} [vpnSiteParameters.ipAddress] The ip-address for the * vpn-site. * * @param {string} [vpnSiteParameters.siteKey] The key for vpn-site that can be * used for connections. * * @param {object} [vpnSiteParameters.addressSpace] The AddressSpace that * contains an array of IP address ranges. * * @param {array} [vpnSiteParameters.addressSpace.addressPrefixes] A list of * address blocks reserved for this virtual network in CIDR notation. * * @param {object} [vpnSiteParameters.bgpProperties] The set of bgp properties. * * @param {number} [vpnSiteParameters.bgpProperties.asn] The BGP speaker's ASN. * * @param {string} [vpnSiteParameters.bgpProperties.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [vpnSiteParameters.bgpProperties.peerWeight] The weight * added to routes learned from this BGP speaker. * * @param {string} [vpnSiteParameters.provisioningState] The provisioning state * of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {boolean} [vpnSiteParameters.isSecuritySite] IsSecuritySite flag * * @param {string} [vpnSiteParameters.id] Resource ID. * * @param {string} [vpnSiteParameters.location] Resource location. * * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.VpnSite, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a VpnSite resource if it doesn't exist else updates the existing * VpnSite. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being created or * updated. * * @param {object} vpnSiteParameters Parameters supplied to create or update * VpnSite. * * @param {object} [vpnSiteParameters.virtualWan] The VirtualWAN to which the * vpnSite belongs * * @param {string} [vpnSiteParameters.virtualWan.id] Resource ID. * * @param {object} [vpnSiteParameters.deviceProperties] The device properties * * @param {string} [vpnSiteParameters.deviceProperties.deviceVendor] Name of * the device Vendor. * * @param {string} [vpnSiteParameters.deviceProperties.deviceModel] Model of * the device. * * @param {number} [vpnSiteParameters.deviceProperties.linkSpeedInMbps] Link * speed. * * @param {string} [vpnSiteParameters.ipAddress] The ip-address for the * vpn-site. * * @param {string} [vpnSiteParameters.siteKey] The key for vpn-site that can be * used for connections. * * @param {object} [vpnSiteParameters.addressSpace] The AddressSpace that * contains an array of IP address ranges. * * @param {array} [vpnSiteParameters.addressSpace.addressPrefixes] A list of * address blocks reserved for this virtual network in CIDR notation. * * @param {object} [vpnSiteParameters.bgpProperties] The set of bgp properties. * * @param {number} [vpnSiteParameters.bgpProperties.asn] The BGP speaker's ASN. * * @param {string} [vpnSiteParameters.bgpProperties.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [vpnSiteParameters.bgpProperties.peerWeight] The weight * added to routes learned from this BGP speaker. * * @param {string} [vpnSiteParameters.provisioningState] The provisioning state * of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {boolean} [vpnSiteParameters.isSecuritySite] IsSecuritySite flag * * @param {string} [vpnSiteParameters.id] Resource ID. * * @param {string} [vpnSiteParameters.location] Resource location. * * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnSite} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnSite} [result] - The deserialized result object if an error did not occur. * See {@link VpnSite} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.VpnSite, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.VpnSite, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.VpnSite, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates VpnSite tags. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being updated. * * @param {object} vpnSiteParameters Parameters supplied to update VpnSite * tags. * * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates VpnSite tags. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being updated. * * @param {object} vpnSiteParameters Parameters supplied to update VpnSite * tags. * * @param {object} [vpnSiteParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnSite} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnSite} [result] - The deserialized result object if an error did not occur. * See {@link VpnSite} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, vpnSiteName: string, vpnSiteParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a VpnSite. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being deleted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a VpnSite. * * @param {string} resourceGroupName The resource group name of the VpnSite. * * @param {string} vpnSiteName The name of the VpnSite being deleted. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, vpnSiteName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, vpnSiteName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, vpnSiteName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the vpnSites in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the vpnSites in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVpnSitesResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVpnSitesResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVpnSitesResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VpnSites in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VpnSites in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVpnSitesResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVpnSitesResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVpnSitesResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VpnSitesConfiguration * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VpnSitesConfiguration { /** * Gives the sas-url to download the configurations for vpn-sites in a resource * group. * * @param {string} resourceGroupName The resource group name. * * @param {string} virtualWANName The name of the VirtualWAN for which * configuration of all vpn-sites is needed. * * @param {object} request Parameters supplied to download vpn-sites * configuration. * * @param {array} [request.vpnSites] List of resource-ids of the vpn-sites for * which config is to be downloaded. * * @param {string} request.outputBlobSasUrl The sas-url to download the * configurations for vpn-sites * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ downloadWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, request: models.GetVpnSitesConfigurationRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gives the sas-url to download the configurations for vpn-sites in a resource * group. * * @param {string} resourceGroupName The resource group name. * * @param {string} virtualWANName The name of the VirtualWAN for which * configuration of all vpn-sites is needed. * * @param {object} request Parameters supplied to download vpn-sites * configuration. * * @param {array} [request.vpnSites] List of resource-ids of the vpn-sites for * which config is to be downloaded. * * @param {string} request.outputBlobSasUrl The sas-url to download the * configurations for vpn-sites * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ download(resourceGroupName: string, virtualWANName: string, request: models.GetVpnSitesConfigurationRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; download(resourceGroupName: string, virtualWANName: string, request: models.GetVpnSitesConfigurationRequest, callback: ServiceCallback): void; download(resourceGroupName: string, virtualWANName: string, request: models.GetVpnSitesConfigurationRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gives the sas-url to download the configurations for vpn-sites in a resource * group. * * @param {string} resourceGroupName The resource group name. * * @param {string} virtualWANName The name of the VirtualWAN for which * configuration of all vpn-sites is needed. * * @param {object} request Parameters supplied to download vpn-sites * configuration. * * @param {array} [request.vpnSites] List of resource-ids of the vpn-sites for * which config is to be downloaded. * * @param {string} request.outputBlobSasUrl The sas-url to download the * configurations for vpn-sites * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDownloadWithHttpOperationResponse(resourceGroupName: string, virtualWANName: string, request: models.GetVpnSitesConfigurationRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gives the sas-url to download the configurations for vpn-sites in a resource * group. * * @param {string} resourceGroupName The resource group name. * * @param {string} virtualWANName The name of the VirtualWAN for which * configuration of all vpn-sites is needed. * * @param {object} request Parameters supplied to download vpn-sites * configuration. * * @param {array} [request.vpnSites] List of resource-ids of the vpn-sites for * which config is to be downloaded. * * @param {string} request.outputBlobSasUrl The sas-url to download the * configurations for vpn-sites * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDownload(resourceGroupName: string, virtualWANName: string, request: models.GetVpnSitesConfigurationRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDownload(resourceGroupName: string, virtualWANName: string, request: models.GetVpnSitesConfigurationRequest, callback: ServiceCallback): void; beginDownload(resourceGroupName: string, virtualWANName: string, request: models.GetVpnSitesConfigurationRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VirtualHubs * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VirtualHubs { /** * Retrieves the details of a VirtualHub. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the details of a VirtualHub. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualHub} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualHub} [result] - The deserialized result object if an error did not occur. * See {@link VirtualHub} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, virtualHubName: string, callback: ServiceCallback): void; get(resourceGroupName: string, virtualHubName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a VirtualHub resource if it doesn't exist else updates the existing * VirtualHub. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} virtualHubParameters Parameters supplied to create or update * VirtualHub. * * @param {object} [virtualHubParameters.virtualWan] The VirtualWAN to which * the VirtualHub belongs * * @param {object} [virtualHubParameters.vpnGateway] The VpnGateway associated * with this VirtualHub * * @param {object} [virtualHubParameters.p2SVpnGateway] The P2SVpnGateway * associated with this VirtualHub * * @param {object} [virtualHubParameters.expressRouteGateway] The * expressRouteGateway associated with this VirtualHub * * @param {string} [virtualHubParameters.expressRouteGateway.id] Resource ID. * * @param {array} [virtualHubParameters.virtualNetworkConnections] List of all * vnet connections with this VirtualHub. * * @param {string} [virtualHubParameters.addressPrefix] Address-prefix for this * VirtualHub. * * @param {object} [virtualHubParameters.routeTable] The routeTable associated * with this virtual hub. * * @param {array} [virtualHubParameters.routeTable.routes] List of all routes. * * @param {string} [virtualHubParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {string} [virtualHubParameters.id] Resource ID. * * @param {string} [virtualHubParameters.location] Resource location. * * @param {object} [virtualHubParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.VirtualHub, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a VirtualHub resource if it doesn't exist else updates the existing * VirtualHub. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} virtualHubParameters Parameters supplied to create or update * VirtualHub. * * @param {object} [virtualHubParameters.virtualWan] The VirtualWAN to which * the VirtualHub belongs * * @param {object} [virtualHubParameters.vpnGateway] The VpnGateway associated * with this VirtualHub * * @param {object} [virtualHubParameters.p2SVpnGateway] The P2SVpnGateway * associated with this VirtualHub * * @param {object} [virtualHubParameters.expressRouteGateway] The * expressRouteGateway associated with this VirtualHub * * @param {string} [virtualHubParameters.expressRouteGateway.id] Resource ID. * * @param {array} [virtualHubParameters.virtualNetworkConnections] List of all * vnet connections with this VirtualHub. * * @param {string} [virtualHubParameters.addressPrefix] Address-prefix for this * VirtualHub. * * @param {object} [virtualHubParameters.routeTable] The routeTable associated * with this virtual hub. * * @param {array} [virtualHubParameters.routeTable.routes] List of all routes. * * @param {string} [virtualHubParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {string} [virtualHubParameters.id] Resource ID. * * @param {string} [virtualHubParameters.location] Resource location. * * @param {object} [virtualHubParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualHub} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualHub} [result] - The deserialized result object if an error did not occur. * See {@link VirtualHub} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.VirtualHub, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.VirtualHub, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.VirtualHub, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates VirtualHub tags. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} virtualHubParameters Parameters supplied to update * VirtualHub tags. * * @param {object} [virtualHubParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates VirtualHub tags. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} virtualHubParameters Parameters supplied to update * VirtualHub tags. * * @param {object} [virtualHubParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualHub} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualHub} [result] - The deserialized result object if an error did not occur. * See {@link VirtualHub} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a VirtualHub. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a VirtualHub. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, virtualHubName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, virtualHubName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VirtualHubs in a resource group. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VirtualHubs in a resource group. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVirtualHubsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVirtualHubsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVirtualHubsResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VirtualHubs in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VirtualHubs in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVirtualHubsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVirtualHubsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVirtualHubsResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a VirtualHub resource if it doesn't exist else updates the existing * VirtualHub. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} virtualHubParameters Parameters supplied to create or update * VirtualHub. * * @param {object} [virtualHubParameters.virtualWan] The VirtualWAN to which * the VirtualHub belongs * * @param {object} [virtualHubParameters.vpnGateway] The VpnGateway associated * with this VirtualHub * * @param {object} [virtualHubParameters.p2SVpnGateway] The P2SVpnGateway * associated with this VirtualHub * * @param {object} [virtualHubParameters.expressRouteGateway] The * expressRouteGateway associated with this VirtualHub * * @param {string} [virtualHubParameters.expressRouteGateway.id] Resource ID. * * @param {array} [virtualHubParameters.virtualNetworkConnections] List of all * vnet connections with this VirtualHub. * * @param {string} [virtualHubParameters.addressPrefix] Address-prefix for this * VirtualHub. * * @param {object} [virtualHubParameters.routeTable] The routeTable associated * with this virtual hub. * * @param {array} [virtualHubParameters.routeTable.routes] List of all routes. * * @param {string} [virtualHubParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {string} [virtualHubParameters.id] Resource ID. * * @param {string} [virtualHubParameters.location] Resource location. * * @param {object} [virtualHubParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.VirtualHub, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a VirtualHub resource if it doesn't exist else updates the existing * VirtualHub. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} virtualHubParameters Parameters supplied to create or update * VirtualHub. * * @param {object} [virtualHubParameters.virtualWan] The VirtualWAN to which * the VirtualHub belongs * * @param {object} [virtualHubParameters.vpnGateway] The VpnGateway associated * with this VirtualHub * * @param {object} [virtualHubParameters.p2SVpnGateway] The P2SVpnGateway * associated with this VirtualHub * * @param {object} [virtualHubParameters.expressRouteGateway] The * expressRouteGateway associated with this VirtualHub * * @param {string} [virtualHubParameters.expressRouteGateway.id] Resource ID. * * @param {array} [virtualHubParameters.virtualNetworkConnections] List of all * vnet connections with this VirtualHub. * * @param {string} [virtualHubParameters.addressPrefix] Address-prefix for this * VirtualHub. * * @param {object} [virtualHubParameters.routeTable] The routeTable associated * with this virtual hub. * * @param {array} [virtualHubParameters.routeTable.routes] List of all routes. * * @param {string} [virtualHubParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {string} [virtualHubParameters.id] Resource ID. * * @param {string} [virtualHubParameters.location] Resource location. * * @param {object} [virtualHubParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualHub} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualHub} [result] - The deserialized result object if an error did not occur. * See {@link VirtualHub} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.VirtualHub, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.VirtualHub, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.VirtualHub, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates VirtualHub tags. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} virtualHubParameters Parameters supplied to update * VirtualHub tags. * * @param {object} [virtualHubParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates VirtualHub tags. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} virtualHubParameters Parameters supplied to update * VirtualHub tags. * * @param {object} [virtualHubParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VirtualHub} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VirtualHub} [result] - The deserialized result object if an error did not occur. * See {@link VirtualHub} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, virtualHubName: string, virtualHubParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a VirtualHub. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a VirtualHub. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, virtualHubName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, virtualHubName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VirtualHubs in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VirtualHubs in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVirtualHubsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVirtualHubsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVirtualHubsResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VirtualHubs in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VirtualHubs in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVirtualHubsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVirtualHubsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVirtualHubsResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * HubVirtualNetworkConnections * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface HubVirtualNetworkConnections { /** * Retrieves the details of a HubVirtualNetworkConnection. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {string} connectionName The name of the vpn connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the details of a HubVirtualNetworkConnection. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {string} connectionName The name of the vpn connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {HubVirtualNetworkConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {HubVirtualNetworkConnection} [result] - The deserialized result object if an error did not occur. * See {@link HubVirtualNetworkConnection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, virtualHubName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, virtualHubName: string, connectionName: string, callback: ServiceCallback): void; get(resourceGroupName: string, virtualHubName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves the details of all HubVirtualNetworkConnections. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the details of all HubVirtualNetworkConnections. * * @param {string} resourceGroupName The resource group name of the VirtualHub. * * @param {string} virtualHubName The name of the VirtualHub. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListHubVirtualNetworkConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListHubVirtualNetworkConnectionsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListHubVirtualNetworkConnectionsResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, virtualHubName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, virtualHubName: string, callback: ServiceCallback): void; list(resourceGroupName: string, virtualHubName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves the details of all HubVirtualNetworkConnections. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the details of all HubVirtualNetworkConnections. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListHubVirtualNetworkConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListHubVirtualNetworkConnectionsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListHubVirtualNetworkConnectionsResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VpnGateways * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VpnGateways { /** * Retrieves the details of a virtual wan vpn gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the details of a virtual wan vpn gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnGateway} [result] - The deserialized result object if an error did not occur. * See {@link VpnGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, gatewayName: string, callback: ServiceCallback): void; get(resourceGroupName: string, gatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the * existing gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} vpnGatewayParameters Parameters supplied to create or Update * a virtual wan vpn gateway. * * @param {object} [vpnGatewayParameters.virtualHub] The VirtualHub to which * the gateway belongs * * @param {string} [vpnGatewayParameters.virtualHub.id] Resource ID. * * @param {array} [vpnGatewayParameters.connections] List of all vpn * connections to the gateway. * * @param {object} [vpnGatewayParameters.bgpSettings] Local network gateway's * BGP speaker settings. * * @param {number} [vpnGatewayParameters.bgpSettings.asn] The BGP speaker's * ASN. * * @param {string} [vpnGatewayParameters.bgpSettings.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [vpnGatewayParameters.bgpSettings.peerWeight] The weight * added to routes learned from this BGP speaker. * * @param {string} [vpnGatewayParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit * for this vpn gateway. * * @param {string} [vpnGatewayParameters.id] Resource ID. * * @param {string} [vpnGatewayParameters.location] Resource location. * * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.VpnGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the * existing gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} vpnGatewayParameters Parameters supplied to create or Update * a virtual wan vpn gateway. * * @param {object} [vpnGatewayParameters.virtualHub] The VirtualHub to which * the gateway belongs * * @param {string} [vpnGatewayParameters.virtualHub.id] Resource ID. * * @param {array} [vpnGatewayParameters.connections] List of all vpn * connections to the gateway. * * @param {object} [vpnGatewayParameters.bgpSettings] Local network gateway's * BGP speaker settings. * * @param {number} [vpnGatewayParameters.bgpSettings.asn] The BGP speaker's * ASN. * * @param {string} [vpnGatewayParameters.bgpSettings.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [vpnGatewayParameters.bgpSettings.peerWeight] The weight * added to routes learned from this BGP speaker. * * @param {string} [vpnGatewayParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit * for this vpn gateway. * * @param {string} [vpnGatewayParameters.id] Resource ID. * * @param {string} [vpnGatewayParameters.location] Resource location. * * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnGateway} [result] - The deserialized result object if an error did not occur. * See {@link VpnGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.VpnGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.VpnGateway, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.VpnGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates virtual wan vpn gateway tags. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} vpnGatewayParameters Parameters supplied to update a virtual * wan vpn gateway tags. * * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates virtual wan vpn gateway tags. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} vpnGatewayParameters Parameters supplied to update a virtual * wan vpn gateway tags. * * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnGateway} [result] - The deserialized result object if an error did not occur. * See {@link VpnGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a virtual wan vpn gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a virtual wan vpn gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, gatewayName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, gatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VpnGateways in a resource group. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VpnGateways in a resource group. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVpnGatewaysResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVpnGatewaysResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VpnGateways in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VpnGateways in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVpnGatewaysResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVpnGatewaysResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the * existing gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} vpnGatewayParameters Parameters supplied to create or Update * a virtual wan vpn gateway. * * @param {object} [vpnGatewayParameters.virtualHub] The VirtualHub to which * the gateway belongs * * @param {string} [vpnGatewayParameters.virtualHub.id] Resource ID. * * @param {array} [vpnGatewayParameters.connections] List of all vpn * connections to the gateway. * * @param {object} [vpnGatewayParameters.bgpSettings] Local network gateway's * BGP speaker settings. * * @param {number} [vpnGatewayParameters.bgpSettings.asn] The BGP speaker's * ASN. * * @param {string} [vpnGatewayParameters.bgpSettings.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [vpnGatewayParameters.bgpSettings.peerWeight] The weight * added to routes learned from this BGP speaker. * * @param {string} [vpnGatewayParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit * for this vpn gateway. * * @param {string} [vpnGatewayParameters.id] Resource ID. * * @param {string} [vpnGatewayParameters.location] Resource location. * * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.VpnGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a virtual wan vpn gateway if it doesn't exist else updates the * existing gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} vpnGatewayParameters Parameters supplied to create or Update * a virtual wan vpn gateway. * * @param {object} [vpnGatewayParameters.virtualHub] The VirtualHub to which * the gateway belongs * * @param {string} [vpnGatewayParameters.virtualHub.id] Resource ID. * * @param {array} [vpnGatewayParameters.connections] List of all vpn * connections to the gateway. * * @param {object} [vpnGatewayParameters.bgpSettings] Local network gateway's * BGP speaker settings. * * @param {number} [vpnGatewayParameters.bgpSettings.asn] The BGP speaker's * ASN. * * @param {string} [vpnGatewayParameters.bgpSettings.bgpPeeringAddress] The BGP * peering address and BGP identifier of this BGP speaker. * * @param {number} [vpnGatewayParameters.bgpSettings.peerWeight] The weight * added to routes learned from this BGP speaker. * * @param {string} [vpnGatewayParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {number} [vpnGatewayParameters.vpnGatewayScaleUnit] The scale unit * for this vpn gateway. * * @param {string} [vpnGatewayParameters.id] Resource ID. * * @param {string} [vpnGatewayParameters.location] Resource location. * * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnGateway} [result] - The deserialized result object if an error did not occur. * See {@link VpnGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.VpnGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.VpnGateway, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.VpnGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates virtual wan vpn gateway tags. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} vpnGatewayParameters Parameters supplied to update a virtual * wan vpn gateway tags. * * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates virtual wan vpn gateway tags. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} vpnGatewayParameters Parameters supplied to update a virtual * wan vpn gateway tags. * * @param {object} [vpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnGateway} [result] - The deserialized result object if an error did not occur. * See {@link VpnGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, gatewayName: string, vpnGatewayParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a virtual wan vpn gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a virtual wan vpn gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, gatewayName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, gatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VpnGateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VpnGateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVpnGatewaysResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVpnGatewaysResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the VpnGateways in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the VpnGateways in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVpnGatewaysResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVpnGatewaysResult} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * VpnConnections * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface VpnConnections { /** * Retrieves the details of a vpn connection. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {string} connectionName The name of the vpn connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the details of a vpn connection. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {string} connectionName The name of the vpn connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnConnection} [result] - The deserialized result object if an error did not occur. * See {@link VpnConnection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, gatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, gatewayName: string, connectionName: string, callback: ServiceCallback): void; get(resourceGroupName: string, gatewayName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else * updates the existing connection. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {string} connectionName The name of the connection. * * @param {object} vpnConnectionParameters Parameters supplied to create or * Update a VPN Connection. * * @param {object} [vpnConnectionParameters.remoteVpnSite] Id of the connected * vpn site. * * @param {string} [vpnConnectionParameters.remoteVpnSite.id] Resource ID. * * @param {number} [vpnConnectionParameters.routingWeight] Routing weight for * vpn connection. * * @param {string} [vpnConnectionParameters.connectionStatus] The connection * status. Possible values include: 'Unknown', 'Connecting', 'Connected', * 'NotConnected' * * @param {string} [vpnConnectionParameters.vpnConnectionProtocolType] * Connection protocol used for this connection. Possible values include: * 'IKEv2', 'IKEv1' * * @param {number} [vpnConnectionParameters.connectionBandwidth] Expected * bandwidth in MBPS. * * @param {string} [vpnConnectionParameters.sharedKey] SharedKey for the vpn * connection. * * @param {boolean} [vpnConnectionParameters.enableBgp] EnableBgp flag * * @param {array} [vpnConnectionParameters.ipsecPolicies] The IPSec Policies to * be considered by this connection. * * @param {boolean} [vpnConnectionParameters.enableRateLimiting] EnableBgp flag * * @param {boolean} [vpnConnectionParameters.enableInternetSecurity] Enable * internet security * * @param {boolean} [vpnConnectionParameters.useLocalAzureIpAddress] Use local * azure ip to initiate connection * * @param {string} [vpnConnectionParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {string} [vpnConnectionParameters.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. * * @param {string} [vpnConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, connectionName: string, vpnConnectionParameters: models.VpnConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else * updates the existing connection. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {string} connectionName The name of the connection. * * @param {object} vpnConnectionParameters Parameters supplied to create or * Update a VPN Connection. * * @param {object} [vpnConnectionParameters.remoteVpnSite] Id of the connected * vpn site. * * @param {string} [vpnConnectionParameters.remoteVpnSite.id] Resource ID. * * @param {number} [vpnConnectionParameters.routingWeight] Routing weight for * vpn connection. * * @param {string} [vpnConnectionParameters.connectionStatus] The connection * status. Possible values include: 'Unknown', 'Connecting', 'Connected', * 'NotConnected' * * @param {string} [vpnConnectionParameters.vpnConnectionProtocolType] * Connection protocol used for this connection. Possible values include: * 'IKEv2', 'IKEv1' * * @param {number} [vpnConnectionParameters.connectionBandwidth] Expected * bandwidth in MBPS. * * @param {string} [vpnConnectionParameters.sharedKey] SharedKey for the vpn * connection. * * @param {boolean} [vpnConnectionParameters.enableBgp] EnableBgp flag * * @param {array} [vpnConnectionParameters.ipsecPolicies] The IPSec Policies to * be considered by this connection. * * @param {boolean} [vpnConnectionParameters.enableRateLimiting] EnableBgp flag * * @param {boolean} [vpnConnectionParameters.enableInternetSecurity] Enable * internet security * * @param {boolean} [vpnConnectionParameters.useLocalAzureIpAddress] Use local * azure ip to initiate connection * * @param {string} [vpnConnectionParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {string} [vpnConnectionParameters.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. * * @param {string} [vpnConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnConnection} [result] - The deserialized result object if an error did not occur. * See {@link VpnConnection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, gatewayName: string, connectionName: string, vpnConnectionParameters: models.VpnConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, gatewayName: string, connectionName: string, vpnConnectionParameters: models.VpnConnection, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, gatewayName: string, connectionName: string, vpnConnectionParameters: models.VpnConnection, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a vpn connection. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {string} connectionName The name of the connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a vpn connection. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {string} connectionName The name of the connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, gatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, gatewayName: string, connectionName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, gatewayName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByVpnGatewayWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVpnConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVpnConnectionsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVpnConnectionsResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByVpnGateway(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByVpnGateway(resourceGroupName: string, gatewayName: string, callback: ServiceCallback): void; listByVpnGateway(resourceGroupName: string, gatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else * updates the existing connection. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {string} connectionName The name of the connection. * * @param {object} vpnConnectionParameters Parameters supplied to create or * Update a VPN Connection. * * @param {object} [vpnConnectionParameters.remoteVpnSite] Id of the connected * vpn site. * * @param {string} [vpnConnectionParameters.remoteVpnSite.id] Resource ID. * * @param {number} [vpnConnectionParameters.routingWeight] Routing weight for * vpn connection. * * @param {string} [vpnConnectionParameters.connectionStatus] The connection * status. Possible values include: 'Unknown', 'Connecting', 'Connected', * 'NotConnected' * * @param {string} [vpnConnectionParameters.vpnConnectionProtocolType] * Connection protocol used for this connection. Possible values include: * 'IKEv2', 'IKEv1' * * @param {number} [vpnConnectionParameters.connectionBandwidth] Expected * bandwidth in MBPS. * * @param {string} [vpnConnectionParameters.sharedKey] SharedKey for the vpn * connection. * * @param {boolean} [vpnConnectionParameters.enableBgp] EnableBgp flag * * @param {array} [vpnConnectionParameters.ipsecPolicies] The IPSec Policies to * be considered by this connection. * * @param {boolean} [vpnConnectionParameters.enableRateLimiting] EnableBgp flag * * @param {boolean} [vpnConnectionParameters.enableInternetSecurity] Enable * internet security * * @param {boolean} [vpnConnectionParameters.useLocalAzureIpAddress] Use local * azure ip to initiate connection * * @param {string} [vpnConnectionParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {string} [vpnConnectionParameters.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. * * @param {string} [vpnConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, connectionName: string, vpnConnectionParameters: models.VpnConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else * updates the existing connection. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {string} connectionName The name of the connection. * * @param {object} vpnConnectionParameters Parameters supplied to create or * Update a VPN Connection. * * @param {object} [vpnConnectionParameters.remoteVpnSite] Id of the connected * vpn site. * * @param {string} [vpnConnectionParameters.remoteVpnSite.id] Resource ID. * * @param {number} [vpnConnectionParameters.routingWeight] Routing weight for * vpn connection. * * @param {string} [vpnConnectionParameters.connectionStatus] The connection * status. Possible values include: 'Unknown', 'Connecting', 'Connected', * 'NotConnected' * * @param {string} [vpnConnectionParameters.vpnConnectionProtocolType] * Connection protocol used for this connection. Possible values include: * 'IKEv2', 'IKEv1' * * @param {number} [vpnConnectionParameters.connectionBandwidth] Expected * bandwidth in MBPS. * * @param {string} [vpnConnectionParameters.sharedKey] SharedKey for the vpn * connection. * * @param {boolean} [vpnConnectionParameters.enableBgp] EnableBgp flag * * @param {array} [vpnConnectionParameters.ipsecPolicies] The IPSec Policies to * be considered by this connection. * * @param {boolean} [vpnConnectionParameters.enableRateLimiting] EnableBgp flag * * @param {boolean} [vpnConnectionParameters.enableInternetSecurity] Enable * internet security * * @param {boolean} [vpnConnectionParameters.useLocalAzureIpAddress] Use local * azure ip to initiate connection * * @param {string} [vpnConnectionParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {string} [vpnConnectionParameters.name] The name of the resource that * is unique within a resource group. This name can be used to access the * resource. * * @param {string} [vpnConnectionParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnConnection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnConnection} [result] - The deserialized result object if an error did not occur. * See {@link VpnConnection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, connectionName: string, vpnConnectionParameters: models.VpnConnection, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, connectionName: string, vpnConnectionParameters: models.VpnConnection, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, connectionName: string, vpnConnectionParameters: models.VpnConnection, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a vpn connection. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {string} connectionName The name of the connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a vpn connection. * * @param {string} resourceGroupName The resource group name of the VpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {string} connectionName The name of the connection. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, gatewayName: string, connectionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, gatewayName: string, connectionName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, gatewayName: string, connectionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByVpnGatewayNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves all vpn connections for a particular virtual wan vpn gateway. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListVpnConnectionsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListVpnConnectionsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListVpnConnectionsResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByVpnGatewayNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByVpnGatewayNext(nextPageLink: string, callback: ServiceCallback): void; listByVpnGatewayNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * P2sVpnServerConfigurations * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface P2sVpnServerConfigurations { /** * Retrieves the details of a P2SVpnServerConfiguration. * * @param {string} resourceGroupName The resource group name of the * P2SVpnServerConfiguration. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {string} p2SVpnServerConfigurationName The name of the * P2SVpnServerConfiguration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the details of a P2SVpnServerConfiguration. * * @param {string} resourceGroupName The resource group name of the * P2SVpnServerConfiguration. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {string} p2SVpnServerConfigurationName The name of the * P2SVpnServerConfiguration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {P2SVpnServerConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {P2SVpnServerConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link P2SVpnServerConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, callback: ServiceCallback): void; get(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a P2SVpnServerConfiguration to associate with a VirtualWan if it * doesn't exist else updates the existing P2SVpnServerConfiguration. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {string} p2SVpnServerConfigurationName The name of the * P2SVpnServerConfiguration. * * @param {object} p2SVpnServerConfigurationParameters Parameters supplied to * create or Update a P2SVpnServerConfiguration. * * @param {string} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesName] * The name of the P2SVpnServerConfiguration that is unique within a VirtualWan * in a resource group. This name can be used to access the resource along with * Paren VirtualWan resource name. * * @param {array} [p2SVpnServerConfigurationParameters.vpnProtocols] VPN * protocols for the P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigVpnClientRootCertificates] * VPN client root certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigVpnClientRevokedCertificates] * VPN client revoked certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigRadiusServerRootCertificates] * Radius Server root certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigRadiusClientRootCertificates] * Radius client root certificate of P2SVpnServerConfiguration. * * @param {array} [p2SVpnServerConfigurationParameters.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for P2SVpnServerConfiguration. * * @param {string} [p2SVpnServerConfigurationParameters.radiusServerAddress] * The radius server address property of the P2SVpnServerConfiguration resource * for point to site client connection. * * @param {string} [p2SVpnServerConfigurationParameters.radiusServerSecret] The * radius secret property of the P2SVpnServerConfiguration resource for point * to site client connection. * * @param {string} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesEtag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} [p2SVpnServerConfigurationParameters.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [p2SVpnServerConfigurationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, p2SVpnServerConfigurationParameters: models.P2SVpnServerConfiguration, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a P2SVpnServerConfiguration to associate with a VirtualWan if it * doesn't exist else updates the existing P2SVpnServerConfiguration. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {string} p2SVpnServerConfigurationName The name of the * P2SVpnServerConfiguration. * * @param {object} p2SVpnServerConfigurationParameters Parameters supplied to * create or Update a P2SVpnServerConfiguration. * * @param {string} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesName] * The name of the P2SVpnServerConfiguration that is unique within a VirtualWan * in a resource group. This name can be used to access the resource along with * Paren VirtualWan resource name. * * @param {array} [p2SVpnServerConfigurationParameters.vpnProtocols] VPN * protocols for the P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigVpnClientRootCertificates] * VPN client root certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigVpnClientRevokedCertificates] * VPN client revoked certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigRadiusServerRootCertificates] * Radius Server root certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigRadiusClientRootCertificates] * Radius client root certificate of P2SVpnServerConfiguration. * * @param {array} [p2SVpnServerConfigurationParameters.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for P2SVpnServerConfiguration. * * @param {string} [p2SVpnServerConfigurationParameters.radiusServerAddress] * The radius server address property of the P2SVpnServerConfiguration resource * for point to site client connection. * * @param {string} [p2SVpnServerConfigurationParameters.radiusServerSecret] The * radius secret property of the P2SVpnServerConfiguration resource for point * to site client connection. * * @param {string} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesEtag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} [p2SVpnServerConfigurationParameters.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [p2SVpnServerConfigurationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {P2SVpnServerConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {P2SVpnServerConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link P2SVpnServerConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, p2SVpnServerConfigurationParameters: models.P2SVpnServerConfiguration, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, p2SVpnServerConfigurationParameters: models.P2SVpnServerConfiguration, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, p2SVpnServerConfigurationParameters: models.P2SVpnServerConfiguration, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a P2SVpnServerConfiguration. * * @param {string} resourceGroupName The resource group name of the * P2SVpnServerConfiguration. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {string} p2SVpnServerConfigurationName The name of the * P2SVpnServerConfiguration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a P2SVpnServerConfiguration. * * @param {string} resourceGroupName The resource group name of the * P2SVpnServerConfiguration. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {string} p2SVpnServerConfigurationName The name of the * P2SVpnServerConfiguration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByVirtualWanWithHttpOperationResponse(resourceGroupName: string, virtualWanName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListP2SVpnServerConfigurationsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListP2SVpnServerConfigurationsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListP2SVpnServerConfigurationsResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByVirtualWan(resourceGroupName: string, virtualWanName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByVirtualWan(resourceGroupName: string, virtualWanName: string, callback: ServiceCallback): void; listByVirtualWan(resourceGroupName: string, virtualWanName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a P2SVpnServerConfiguration to associate with a VirtualWan if it * doesn't exist else updates the existing P2SVpnServerConfiguration. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {string} p2SVpnServerConfigurationName The name of the * P2SVpnServerConfiguration. * * @param {object} p2SVpnServerConfigurationParameters Parameters supplied to * create or Update a P2SVpnServerConfiguration. * * @param {string} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesName] * The name of the P2SVpnServerConfiguration that is unique within a VirtualWan * in a resource group. This name can be used to access the resource along with * Paren VirtualWan resource name. * * @param {array} [p2SVpnServerConfigurationParameters.vpnProtocols] VPN * protocols for the P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigVpnClientRootCertificates] * VPN client root certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigVpnClientRevokedCertificates] * VPN client revoked certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigRadiusServerRootCertificates] * Radius Server root certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigRadiusClientRootCertificates] * Radius client root certificate of P2SVpnServerConfiguration. * * @param {array} [p2SVpnServerConfigurationParameters.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for P2SVpnServerConfiguration. * * @param {string} [p2SVpnServerConfigurationParameters.radiusServerAddress] * The radius server address property of the P2SVpnServerConfiguration resource * for point to site client connection. * * @param {string} [p2SVpnServerConfigurationParameters.radiusServerSecret] The * radius secret property of the P2SVpnServerConfiguration resource for point * to site client connection. * * @param {string} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesEtag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} [p2SVpnServerConfigurationParameters.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [p2SVpnServerConfigurationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, p2SVpnServerConfigurationParameters: models.P2SVpnServerConfiguration, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a P2SVpnServerConfiguration to associate with a VirtualWan if it * doesn't exist else updates the existing P2SVpnServerConfiguration. * * @param {string} resourceGroupName The resource group name of the VirtualWan. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {string} p2SVpnServerConfigurationName The name of the * P2SVpnServerConfiguration. * * @param {object} p2SVpnServerConfigurationParameters Parameters supplied to * create or Update a P2SVpnServerConfiguration. * * @param {string} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesName] * The name of the P2SVpnServerConfiguration that is unique within a VirtualWan * in a resource group. This name can be used to access the resource along with * Paren VirtualWan resource name. * * @param {array} [p2SVpnServerConfigurationParameters.vpnProtocols] VPN * protocols for the P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigVpnClientRootCertificates] * VPN client root certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigVpnClientRevokedCertificates] * VPN client revoked certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigRadiusServerRootCertificates] * Radius Server root certificate of P2SVpnServerConfiguration. * * @param {array} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigRadiusClientRootCertificates] * Radius client root certificate of P2SVpnServerConfiguration. * * @param {array} [p2SVpnServerConfigurationParameters.vpnClientIpsecPolicies] * VpnClientIpsecPolicies for P2SVpnServerConfiguration. * * @param {string} [p2SVpnServerConfigurationParameters.radiusServerAddress] * The radius server address property of the P2SVpnServerConfiguration resource * for point to site client connection. * * @param {string} [p2SVpnServerConfigurationParameters.radiusServerSecret] The * radius secret property of the P2SVpnServerConfiguration resource for point * to site client connection. * * @param {string} * [p2SVpnServerConfigurationParameters.p2SVpnServerConfigurationPropertiesEtag] * A unique read-only string that changes whenever the resource is updated. * * @param {string} [p2SVpnServerConfigurationParameters.name] The name of the * resource that is unique within a resource group. This name can be used to * access the resource. * * @param {string} [p2SVpnServerConfigurationParameters.id] Resource ID. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {P2SVpnServerConfiguration} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {P2SVpnServerConfiguration} [result] - The deserialized result object if an error did not occur. * See {@link P2SVpnServerConfiguration} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, p2SVpnServerConfigurationParameters: models.P2SVpnServerConfiguration, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, p2SVpnServerConfigurationParameters: models.P2SVpnServerConfiguration, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, p2SVpnServerConfigurationParameters: models.P2SVpnServerConfiguration, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a P2SVpnServerConfiguration. * * @param {string} resourceGroupName The resource group name of the * P2SVpnServerConfiguration. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {string} p2SVpnServerConfigurationName The name of the * P2SVpnServerConfiguration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a P2SVpnServerConfiguration. * * @param {string} resourceGroupName The resource group name of the * P2SVpnServerConfiguration. * * @param {string} virtualWanName The name of the VirtualWan. * * @param {string} p2SVpnServerConfigurationName The name of the * P2SVpnServerConfiguration. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, virtualWanName: string, p2SVpnServerConfigurationName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByVirtualWanNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListP2SVpnServerConfigurationsResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListP2SVpnServerConfigurationsResult} [result] - The deserialized result object if an error did not occur. * See {@link ListP2SVpnServerConfigurationsResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByVirtualWanNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByVirtualWanNext(nextPageLink: string, callback: ServiceCallback): void; listByVirtualWanNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * P2sVpnGateways * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface P2sVpnGateways { /** * Retrieves the details of a virtual wan p2s vpn gateway. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieves the details of a virtual wan p2s vpn gateway. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {P2SVpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {P2SVpnGateway} [result] - The deserialized result object if an error did not occur. * See {@link P2SVpnGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, gatewayName: string, callback: ServiceCallback): void; get(resourceGroupName: string, gatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the * existing gateway. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} p2SVpnGatewayParameters Parameters supplied to create or * Update a virtual wan p2s vpn gateway. * * @param {object} [p2SVpnGatewayParameters.virtualHub] The VirtualHub to which * the gateway belongs * * @param {string} [p2SVpnGatewayParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {number} [p2SVpnGatewayParameters.vpnGatewayScaleUnit] The scale unit * for this p2s vpn gateway. * * @param {object} [p2SVpnGatewayParameters.p2SVpnServerConfiguration] The * P2SVpnServerConfiguration to which the p2sVpnGateway is attached to. * * @param {string} [p2SVpnGatewayParameters.p2SVpnServerConfiguration.id] * Resource ID. * * @param {object} [p2SVpnGatewayParameters.vpnClientAddressPool] The reference * of the address space resource which represents Address space for P2S * VpnClient. * * @param {object} [p2SVpnGatewayParameters.customRoutes] The reference of the * address space resource which represents the custom routes specified by the * customer for P2SVpnGateway and P2S VpnClient. * * @param {array} [p2SVpnGatewayParameters.customRoutes.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [p2SVpnGatewayParameters.id] Resource ID. * * @param {string} [p2SVpnGatewayParameters.location] Resource location. * * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.P2SVpnGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the * existing gateway. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} p2SVpnGatewayParameters Parameters supplied to create or * Update a virtual wan p2s vpn gateway. * * @param {object} [p2SVpnGatewayParameters.virtualHub] The VirtualHub to which * the gateway belongs * * @param {string} [p2SVpnGatewayParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {number} [p2SVpnGatewayParameters.vpnGatewayScaleUnit] The scale unit * for this p2s vpn gateway. * * @param {object} [p2SVpnGatewayParameters.p2SVpnServerConfiguration] The * P2SVpnServerConfiguration to which the p2sVpnGateway is attached to. * * @param {string} [p2SVpnGatewayParameters.p2SVpnServerConfiguration.id] * Resource ID. * * @param {object} [p2SVpnGatewayParameters.vpnClientAddressPool] The reference * of the address space resource which represents Address space for P2S * VpnClient. * * @param {object} [p2SVpnGatewayParameters.customRoutes] The reference of the * address space resource which represents the custom routes specified by the * customer for P2SVpnGateway and P2S VpnClient. * * @param {array} [p2SVpnGatewayParameters.customRoutes.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [p2SVpnGatewayParameters.id] Resource ID. * * @param {string} [p2SVpnGatewayParameters.location] Resource location. * * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {P2SVpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {P2SVpnGateway} [result] - The deserialized result object if an error did not occur. * See {@link P2SVpnGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.P2SVpnGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.P2SVpnGateway, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.P2SVpnGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates virtual wan p2s vpn gateway tags. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} p2SVpnGatewayParameters Parameters supplied to update a * virtual wan p2s vpn gateway tags. * * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ updateTagsWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates virtual wan p2s vpn gateway tags. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} p2SVpnGatewayParameters Parameters supplied to update a * virtual wan p2s vpn gateway tags. * * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {P2SVpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {P2SVpnGateway} [result] - The deserialized result object if an error did not occur. * See {@link P2SVpnGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ updateTags(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; updateTags(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.TagsObject, callback: ServiceCallback): void; updateTags(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a virtual wan p2s vpn gateway. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a virtual wan p2s vpn gateway. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, gatewayName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, gatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the P2SVpnGateways in a resource group. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the P2SVpnGateways in a resource group. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListP2SVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListP2SVpnGatewaysResult} [result] - The deserialized result object if an error did not occur. * See {@link ListP2SVpnGatewaysResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the P2SVpnGateways in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the P2SVpnGateways in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListP2SVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListP2SVpnGatewaysResult} [result] - The deserialized result object if an error did not occur. * See {@link ListP2SVpnGatewaysResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(callback: ServiceCallback): void; list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified * resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} gatewayName The name of the P2SVpnGateway. * * @param {object} parameters Parameters supplied to the generate P2SVpnGateway * VPN client package operation. * * @param {string} [parameters.authenticationMethod] VPN client authentication * method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ generateVpnProfileWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, parameters: models.P2SVpnProfileParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified * resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} gatewayName The name of the P2SVpnGateway. * * @param {object} parameters Parameters supplied to the generate P2SVpnGateway * VPN client package operation. * * @param {string} [parameters.authenticationMethod] VPN client authentication * method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnProfileResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnProfileResponse} [result] - The deserialized result object if an error did not occur. * See {@link VpnProfileResponse} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ generateVpnProfile(resourceGroupName: string, gatewayName: string, parameters: models.P2SVpnProfileParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; generateVpnProfile(resourceGroupName: string, gatewayName: string, parameters: models.P2SVpnProfileParameters, callback: ServiceCallback): void; generateVpnProfile(resourceGroupName: string, gatewayName: string, parameters: models.P2SVpnProfileParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the * existing gateway. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} p2SVpnGatewayParameters Parameters supplied to create or * Update a virtual wan p2s vpn gateway. * * @param {object} [p2SVpnGatewayParameters.virtualHub] The VirtualHub to which * the gateway belongs * * @param {string} [p2SVpnGatewayParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {number} [p2SVpnGatewayParameters.vpnGatewayScaleUnit] The scale unit * for this p2s vpn gateway. * * @param {object} [p2SVpnGatewayParameters.p2SVpnServerConfiguration] The * P2SVpnServerConfiguration to which the p2sVpnGateway is attached to. * * @param {string} [p2SVpnGatewayParameters.p2SVpnServerConfiguration.id] * Resource ID. * * @param {object} [p2SVpnGatewayParameters.vpnClientAddressPool] The reference * of the address space resource which represents Address space for P2S * VpnClient. * * @param {object} [p2SVpnGatewayParameters.customRoutes] The reference of the * address space resource which represents the custom routes specified by the * customer for P2SVpnGateway and P2S VpnClient. * * @param {array} [p2SVpnGatewayParameters.customRoutes.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [p2SVpnGatewayParameters.id] Resource ID. * * @param {string} [p2SVpnGatewayParameters.location] Resource location. * * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.P2SVpnGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the * existing gateway. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} p2SVpnGatewayParameters Parameters supplied to create or * Update a virtual wan p2s vpn gateway. * * @param {object} [p2SVpnGatewayParameters.virtualHub] The VirtualHub to which * the gateway belongs * * @param {string} [p2SVpnGatewayParameters.provisioningState] The provisioning * state of the resource. Possible values include: 'Succeeded', 'Updating', * 'Deleting', 'Failed' * * @param {number} [p2SVpnGatewayParameters.vpnGatewayScaleUnit] The scale unit * for this p2s vpn gateway. * * @param {object} [p2SVpnGatewayParameters.p2SVpnServerConfiguration] The * P2SVpnServerConfiguration to which the p2sVpnGateway is attached to. * * @param {string} [p2SVpnGatewayParameters.p2SVpnServerConfiguration.id] * Resource ID. * * @param {object} [p2SVpnGatewayParameters.vpnClientAddressPool] The reference * of the address space resource which represents Address space for P2S * VpnClient. * * @param {object} [p2SVpnGatewayParameters.customRoutes] The reference of the * address space resource which represents the custom routes specified by the * customer for P2SVpnGateway and P2S VpnClient. * * @param {array} [p2SVpnGatewayParameters.customRoutes.addressPrefixes] A list * of address blocks reserved for this virtual network in CIDR notation. * * @param {string} [p2SVpnGatewayParameters.id] Resource ID. * * @param {string} [p2SVpnGatewayParameters.location] Resource location. * * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {P2SVpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {P2SVpnGateway} [result] - The deserialized result object if an error did not occur. * See {@link P2SVpnGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.P2SVpnGateway, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.P2SVpnGateway, callback: ServiceCallback): void; beginCreateOrUpdate(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.P2SVpnGateway, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Updates virtual wan p2s vpn gateway tags. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} p2SVpnGatewayParameters Parameters supplied to update a * virtual wan p2s vpn gateway tags. * * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginUpdateTagsWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates virtual wan p2s vpn gateway tags. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} p2SVpnGatewayParameters Parameters supplied to update a * virtual wan p2s vpn gateway tags. * * @param {object} [p2SVpnGatewayParameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {P2SVpnGateway} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {P2SVpnGateway} [result] - The deserialized result object if an error did not occur. * See {@link P2SVpnGateway} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginUpdateTags(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.TagsObject, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginUpdateTags(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.TagsObject, callback: ServiceCallback): void; beginUpdateTags(resourceGroupName: string, gatewayName: string, p2SVpnGatewayParameters: models.TagsObject, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes a virtual wan p2s vpn gateway. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes a virtual wan p2s vpn gateway. * * @param {string} resourceGroupName The resource group name of the * P2SVpnGateway. * * @param {string} gatewayName The name of the gateway. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, gatewayName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, gatewayName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, gatewayName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified * resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} gatewayName The name of the P2SVpnGateway. * * @param {object} parameters Parameters supplied to the generate P2SVpnGateway * VPN client package operation. * * @param {string} [parameters.authenticationMethod] VPN client authentication * method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginGenerateVpnProfileWithHttpOperationResponse(resourceGroupName: string, gatewayName: string, parameters: models.P2SVpnProfileParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Generates VPN profile for P2S client of the P2SVpnGateway in the specified * resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} gatewayName The name of the P2SVpnGateway. * * @param {object} parameters Parameters supplied to the generate P2SVpnGateway * VPN client package operation. * * @param {string} [parameters.authenticationMethod] VPN client authentication * method. Possible values include: 'EAPTLS', 'EAPMSCHAPv2' * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {VpnProfileResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {VpnProfileResponse} [result] - The deserialized result object if an error did not occur. * See {@link VpnProfileResponse} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginGenerateVpnProfile(resourceGroupName: string, gatewayName: string, parameters: models.P2SVpnProfileParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginGenerateVpnProfile(resourceGroupName: string, gatewayName: string, parameters: models.P2SVpnProfileParameters, callback: ServiceCallback): void; beginGenerateVpnProfile(resourceGroupName: string, gatewayName: string, parameters: models.P2SVpnProfileParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the P2SVpnGateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the P2SVpnGateways in a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListP2SVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListP2SVpnGatewaysResult} [result] - The deserialized result object if an error did not occur. * See {@link ListP2SVpnGatewaysResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all the P2SVpnGateways in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all the P2SVpnGateways in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {ListP2SVpnGatewaysResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {ListP2SVpnGatewaysResult} [result] - The deserialized result object if an error did not occur. * See {@link ListP2SVpnGatewaysResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class * WebApplicationFirewallPolicies * __NOTE__: An instance of this class is automatically created for an * instance of the NetworkManagementClient. */ export interface WebApplicationFirewallPolicies { /** * Lists all of the protection policies within a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the protection policies within a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {WebApplicationFirewallPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {WebApplicationFirewallPolicyListResult} [result] - The deserialized result object if an error did not occur. * See {@link WebApplicationFirewallPolicyListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; list(resourceGroupName: string, callback: ServiceCallback): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the WAF policies in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the WAF policies in a subscription. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {WebApplicationFirewallPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {WebApplicationFirewallPolicyListResult} [result] - The deserialized result object if an error did not occur. * See {@link WebApplicationFirewallPolicyListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAll(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAll(callback: ServiceCallback): void; listAll(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Retrieve protection policy with specified name within a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} policyName The name of the policy * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, policyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Retrieve protection policy with specified name within a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} policyName The name of the policy * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {WebApplicationFirewallPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {WebApplicationFirewallPolicy} [result] - The deserialized result object if an error did not occur. * See {@link WebApplicationFirewallPolicy} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName: string, policyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; get(resourceGroupName: string, policyName: string, callback: ServiceCallback): void; get(resourceGroupName: string, policyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Creates or update policy with specified rule set name within a resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} policyName The name of the policy. * * @param {object} parameters Policy to be created. * * @param {object} [parameters.policySettings] Describes policySettings for * policy * * @param {string} [parameters.policySettings.enabledState] Describes if the * policy is in enabled state or disabled state. Possible values include: * 'Disabled', 'Enabled' * * @param {string} [parameters.policySettings.mode] Describes if it is in * detection mode or prevention mode at policy level. Possible values include: * 'Prevention', 'Detection' * * @param {array} [parameters.customRules] Describes custom rules inside the * policy * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, policyName: string, parameters: models.WebApplicationFirewallPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Creates or update policy with specified rule set name within a resource * group. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} policyName The name of the policy. * * @param {object} parameters Policy to be created. * * @param {object} [parameters.policySettings] Describes policySettings for * policy * * @param {string} [parameters.policySettings.enabledState] Describes if the * policy is in enabled state or disabled state. Possible values include: * 'Disabled', 'Enabled' * * @param {string} [parameters.policySettings.mode] Describes if it is in * detection mode or prevention mode at policy level. Possible values include: * 'Prevention', 'Detection' * * @param {array} [parameters.customRules] Describes custom rules inside the * policy * * @param {string} [parameters.etag] Gets a unique read-only string that * changes whenever the resource is updated. * * @param {string} [parameters.id] Resource ID. * * @param {string} [parameters.location] Resource location. * * @param {object} [parameters.tags] Resource tags. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {WebApplicationFirewallPolicy} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {WebApplicationFirewallPolicy} [result] - The deserialized result object if an error did not occur. * See {@link WebApplicationFirewallPolicy} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName: string, policyName: string, parameters: models.WebApplicationFirewallPolicy, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; createOrUpdate(resourceGroupName: string, policyName: string, parameters: models.WebApplicationFirewallPolicy, callback: ServiceCallback): void; createOrUpdate(resourceGroupName: string, policyName: string, parameters: models.WebApplicationFirewallPolicy, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes Policy * * @param {string} resourceGroupName The name of the resource group. * * @param {string} policyName The name of the policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, policyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes Policy * * @param {string} resourceGroupName The name of the resource group. * * @param {string} policyName The name of the policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName: string, policyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; deleteMethod(resourceGroupName: string, policyName: string, callback: ServiceCallback): void; deleteMethod(resourceGroupName: string, policyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Deletes Policy * * @param {string} resourceGroupName The name of the resource group. * * @param {string} policyName The name of the policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, policyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes Policy * * @param {string} resourceGroupName The name of the resource group. * * @param {string} policyName The name of the policy. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ beginDeleteMethod(resourceGroupName: string, policyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; beginDeleteMethod(resourceGroupName: string, policyName: string, callback: ServiceCallback): void; beginDeleteMethod(resourceGroupName: string, policyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Lists all of the protection policies within a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the protection policies within a resource group. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {WebApplicationFirewallPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {WebApplicationFirewallPolicyListResult} [result] - The deserialized result object if an error did not occur. * See {@link WebApplicationFirewallPolicyListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listNext(nextPageLink: string, callback: ServiceCallback): void; listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** * Gets all the WAF policies in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAllNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Gets all the WAF policies in a subscription. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {ServiceCallback} [optionalCallback] - The optional callback. * * @returns {ServiceCallback|Promise} If a callback was passed as the last * parameter then it returns the callback else returns a Promise. * * {Promise} A promise is returned. * * @resolve {WebApplicationFirewallPolicyListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * * {ServiceCallback} optionalCallback(err, result, request, response) * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * * {WebApplicationFirewallPolicyListResult} [result] - The deserialized result object if an error did not occur. * See {@link WebApplicationFirewallPolicyListResult} for * more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ listAllNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; listAllNext(nextPageLink: string, callback: ServiceCallback): void; listAllNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; }